]> granicus.if.org Git - postgresql/blob - configure
Put back storage/proc.h in postmaster.c.
[postgresql] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for PostgreSQL 9.3devel.
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, 2007, 2008 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-2012, 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   # Pre-4.2 versions of Zsh do 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 as_nl='
45 '
46 export as_nl
47 # Printing a long string crashes Solaris 7 /usr/bin/printf.
48 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
50 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
51 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85 # Support unset when possible.
86 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
87   as_unset=unset
88 else
89   as_unset=false
90 fi
91
92
93 # IFS
94 # We need space, tab and new line, in precisely that order.  Quoting is
95 # there to prevent editors from complaining about space-tab.
96 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
97 # splitting by setting IFS to empty value.)
98 IFS=" ""        $as_nl"
99
100 # Find who we are.  Look in the path if we contain no directory separator.
101 case $0 in
102   *[\\/]* ) as_myself=$0 ;;
103   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
104 for as_dir in $PATH
105 do
106   IFS=$as_save_IFS
107   test -z "$as_dir" && as_dir=.
108   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109 done
110 IFS=$as_save_IFS
111
112      ;;
113 esac
114 # We did not find ourselves, most probably we were run as `sh COMMAND'
115 # in which case we are not to be found in the path.
116 if test "x$as_myself" = x; then
117   as_myself=$0
118 fi
119 if test ! -f "$as_myself"; then
120   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
121   { (exit 1); exit 1; }
122 fi
123
124 # Work around bugs in pre-3.0 UWIN ksh.
125 for as_var in ENV MAIL MAILPATH
126 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
127 done
128 PS1='$ '
129 PS2='> '
130 PS4='+ '
131
132 # NLS nuisances.
133 LC_ALL=C
134 export LC_ALL
135 LANGUAGE=C
136 export LANGUAGE
137
138 # Required to use basename.
139 if expr a : '\(a\)' >/dev/null 2>&1 &&
140    test "X`expr 00001 : '.*\(...\)'`" = X001; then
141   as_expr=expr
142 else
143   as_expr=false
144 fi
145
146 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
147   as_basename=basename
148 else
149   as_basename=false
150 fi
151
152
153 # Name of the executable.
154 as_me=`$as_basename -- "$0" ||
155 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
156          X"$0" : 'X\(//\)$' \| \
157          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
158 $as_echo X/"$0" |
159     sed '/^.*\/\([^/][^/]*\)\/*$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\/\)$/{
164             s//\1/
165             q
166           }
167           /^X\/\(\/\).*/{
168             s//\1/
169             q
170           }
171           s/.*/./; q'`
172
173 # CDPATH.
174 $as_unset CDPATH
175
176
177 if test "x$CONFIG_SHELL" = x; then
178   if (eval ":") 2>/dev/null; then
179   as_have_required=yes
180 else
181   as_have_required=no
182 fi
183
184   if test $as_have_required = yes &&     (eval ":
185 (as_func_return () {
186   (exit \$1)
187 }
188 as_func_success () {
189   as_func_return 0
190 }
191 as_func_failure () {
192   as_func_return 1
193 }
194 as_func_ret_success () {
195   return 0
196 }
197 as_func_ret_failure () {
198   return 1
199 }
200
201 exitcode=0
202 if as_func_success; then
203   :
204 else
205   exitcode=1
206   echo as_func_success failed.
207 fi
208
209 if as_func_failure; then
210   exitcode=1
211   echo as_func_failure succeeded.
212 fi
213
214 if as_func_ret_success; then
215   :
216 else
217   exitcode=1
218   echo as_func_ret_success failed.
219 fi
220
221 if as_func_ret_failure; then
222   exitcode=1
223   echo as_func_ret_failure succeeded.
224 fi
225
226 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
227   :
228 else
229   exitcode=1
230   echo positional parameters were not saved.
231 fi
232
233 test \$exitcode = 0) || { (exit 1); exit 1; }
234
235 (
236   as_lineno_1=\$LINENO
237   as_lineno_2=\$LINENO
238   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
239   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
240 ") 2> /dev/null; then
241   :
242 else
243   as_candidate_shells=
244     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
245 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 do
247   IFS=$as_save_IFS
248   test -z "$as_dir" && as_dir=.
249   case $as_dir in
250          /*)
251            for as_base in sh bash ksh sh5; do
252              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
253            done;;
254        esac
255 done
256 IFS=$as_save_IFS
257
258
259       for as_shell in $as_candidate_shells $SHELL; do
260          # Try only shells that exist, to save several forks.
261          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
262                 { ("$as_shell") 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 _ASEOF
280 }; then
281   CONFIG_SHELL=$as_shell
282                as_have_required=yes
283                if { "$as_shell" 2> /dev/null <<\_ASEOF
284 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285   emulate sh
286   NULLCMD=:
287   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
288   # is contrary to our usage.  Disable this feature.
289   alias -g '${1+"$@"}'='"$@"'
290   setopt NO_GLOB_SUBST
291 else
292   case `(set -o) 2>/dev/null` in
293   *posix*) set -o posix ;;
294 esac
295
296 fi
297
298
299 :
300 (as_func_return () {
301   (exit $1)
302 }
303 as_func_success () {
304   as_func_return 0
305 }
306 as_func_failure () {
307   as_func_return 1
308 }
309 as_func_ret_success () {
310   return 0
311 }
312 as_func_ret_failure () {
313   return 1
314 }
315
316 exitcode=0
317 if as_func_success; then
318   :
319 else
320   exitcode=1
321   echo as_func_success failed.
322 fi
323
324 if as_func_failure; then
325   exitcode=1
326   echo as_func_failure succeeded.
327 fi
328
329 if as_func_ret_success; then
330   :
331 else
332   exitcode=1
333   echo as_func_ret_success failed.
334 fi
335
336 if as_func_ret_failure; then
337   exitcode=1
338   echo as_func_ret_failure succeeded.
339 fi
340
341 if ( set x; as_func_ret_success y && test x = "$1" ); then
342   :
343 else
344   exitcode=1
345   echo positional parameters were not saved.
346 fi
347
348 test $exitcode = 0) || { (exit 1); exit 1; }
349
350 (
351   as_lineno_1=$LINENO
352   as_lineno_2=$LINENO
353   test "x$as_lineno_1" != "x$as_lineno_2" &&
354   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
355
356 _ASEOF
357 }; then
358   break
359 fi
360
361 fi
362
363       done
364
365       if test "x$CONFIG_SHELL" != x; then
366   for as_var in BASH_ENV ENV
367         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368         done
369         export CONFIG_SHELL
370         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
371 fi
372
373
374     if test $as_have_required = no; then
375   echo This script requires a shell more modern than all the
376       echo shells that I found on your system.  Please install a
377       echo modern shell, or manually run the script under such a
378       echo shell if you do have one.
379       { (exit 1); exit 1; }
380 fi
381
382
383 fi
384
385 fi
386
387
388
389 (eval "as_func_return () {
390   (exit \$1)
391 }
392 as_func_success () {
393   as_func_return 0
394 }
395 as_func_failure () {
396   as_func_return 1
397 }
398 as_func_ret_success () {
399   return 0
400 }
401 as_func_ret_failure () {
402   return 1
403 }
404
405 exitcode=0
406 if as_func_success; then
407   :
408 else
409   exitcode=1
410   echo as_func_success failed.
411 fi
412
413 if as_func_failure; then
414   exitcode=1
415   echo as_func_failure succeeded.
416 fi
417
418 if as_func_ret_success; then
419   :
420 else
421   exitcode=1
422   echo as_func_ret_success failed.
423 fi
424
425 if as_func_ret_failure; then
426   exitcode=1
427   echo as_func_ret_failure succeeded.
428 fi
429
430 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
431   :
432 else
433   exitcode=1
434   echo positional parameters were not saved.
435 fi
436
437 test \$exitcode = 0") || {
438   echo No shell found that supports shell functions.
439   echo Please tell bug-autoconf@gnu.org about your system,
440   echo including any error possibly output before this message.
441   echo This can help us improve future autoconf versions.
442   echo Configuration will now proceed without shell functions.
443 }
444
445
446
447   as_lineno_1=$LINENO
448   as_lineno_2=$LINENO
449   test "x$as_lineno_1" != "x$as_lineno_2" &&
450   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
451
452   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
453   # uniformly replaced by the line number.  The first 'sed' inserts a
454   # line-number line after each line using $LINENO; the second 'sed'
455   # does the real work.  The second script uses 'N' to pair each
456   # line-number line with the line containing $LINENO, and appends
457   # trailing '-' during substitution so that $LINENO is not a special
458   # case at line end.
459   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
460   # scripts with optimization help from Paolo Bonzini.  Blame Lee
461   # E. McMahon (1931-1989) for sed's syntax.  :-)
462   sed -n '
463     p
464     /[$]LINENO/=
465   ' <$as_myself |
466     sed '
467       s/[$]LINENO.*/&-/
468       t lineno
469       b
470       :lineno
471       N
472       :loop
473       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
474       t loop
475       s/-\n.*//
476     ' >$as_me.lineno &&
477   chmod +x "$as_me.lineno" ||
478     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
479    { (exit 1); exit 1; }; }
480
481   # Don't try to exec as it changes $[0], causing all sort of problems
482   # (the dirname of $[0] is not the place where we might find the
483   # original and so on.  Autoconf is especially sensitive to this).
484   . "./$as_me.lineno"
485   # Exit status is that of the last command.
486   exit
487 }
488
489
490 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
491   as_dirname=dirname
492 else
493   as_dirname=false
494 fi
495
496 ECHO_C= ECHO_N= ECHO_T=
497 case `echo -n x` in
498 -n*)
499   case `echo 'x\c'` in
500   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
501   *)   ECHO_C='\c';;
502   esac;;
503 *)
504   ECHO_N='-n';;
505 esac
506 if expr a : '\(a\)' >/dev/null 2>&1 &&
507    test "X`expr 00001 : '.*\(...\)'`" = X001; then
508   as_expr=expr
509 else
510   as_expr=false
511 fi
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515   rm -f conf$$.dir/conf$$.file
516 else
517   rm -f conf$$.dir
518   mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521   if ln -s conf$$.file conf$$ 2>/dev/null; then
522     as_ln_s='ln -s'
523     # ... but there are two gotchas:
524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526     # In both cases, we have to default to `cp -p'.
527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528       as_ln_s='cp -p'
529   elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531   else
532     as_ln_s='cp -p'
533   fi
534 else
535   as_ln_s='cp -p'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541   as_mkdir_p=:
542 else
543   test -d ./-p && rmdir ./-p
544   as_mkdir_p=false
545 fi
546
547 if test -x / >/dev/null 2>&1; then
548   as_test_x='test -x'
549 else
550   if ls -dL / >/dev/null 2>&1; then
551     as_ls_L_option=L
552   else
553     as_ls_L_option=
554   fi
555   as_test_x='
556     eval sh -c '\''
557       if test -d "$1"; then
558         test -d "$1/.";
559       else
560         case $1 in
561         -*)set "./$1";;
562         esac;
563         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
564         ???[sx]*):;;*)false;;esac;fi
565     '\'' sh
566   '
567 fi
568 as_executable_p=$as_test_x
569
570 # Sed expression to map a string onto a valid CPP name.
571 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
572
573 # Sed expression to map a string onto a valid variable name.
574 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575
576
577
578 exec 7<&0 </dev/null 6>&1
579
580 # Name of the host.
581 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
582 # so uname gets run too.
583 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584
585 #
586 # Initializations.
587 #
588 ac_default_prefix=/usr/local
589 ac_clean_files=
590 ac_config_libobj_dir=.
591 LIBOBJS=
592 cross_compiling=no
593 subdirs=
594 MFLAGS=
595 MAKEFLAGS=
596 SHELL=${CONFIG_SHELL-/bin/sh}
597
598 # Identity of this package.
599 PACKAGE_NAME='PostgreSQL'
600 PACKAGE_TARNAME='postgresql'
601 PACKAGE_VERSION='9.3devel'
602 PACKAGE_STRING='PostgreSQL 9.3devel'
603 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
604
605 ac_unique_file="src/backend/access/common/heaptuple.c"
606 ac_default_prefix=/usr/local/pgsql
607 # Factoring default headers for most tests.
608 ac_includes_default="\
609 #include <stdio.h>
610 #ifdef HAVE_SYS_TYPES_H
611 # include <sys/types.h>
612 #endif
613 #ifdef HAVE_SYS_STAT_H
614 # include <sys/stat.h>
615 #endif
616 #ifdef STDC_HEADERS
617 # include <stdlib.h>
618 # include <stddef.h>
619 #else
620 # ifdef HAVE_STDLIB_H
621 #  include <stdlib.h>
622 # endif
623 #endif
624 #ifdef HAVE_STRING_H
625 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
626 #  include <memory.h>
627 # endif
628 # include <string.h>
629 #endif
630 #ifdef HAVE_STRINGS_H
631 # include <strings.h>
632 #endif
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
635 #endif
636 #ifdef HAVE_STDINT_H
637 # include <stdint.h>
638 #endif
639 #ifdef HAVE_UNISTD_H
640 # include <unistd.h>
641 #endif"
642
643 ac_subst_vars='LTLIBOBJS
644 vpath_build
645 OSX
646 XSLTPROC
647 COLLATEINDEX
648 DOCBOOKSTYLE
649 have_docbook
650 JADE
651 NSGMLS
652 TCL_SHLIB_LD_LIBS
653 TCL_SHARED_BUILD
654 TCL_LIB_SPEC
655 TCL_LIBS
656 TCL_LIB_FILE
657 TCL_INCLUDE_SPEC
658 TCL_CONFIG_SH
659 TCLSH
660 XGETTEXT
661 MSGMERGE
662 MSGFMT
663 HAVE_POSIX_SIGNALS
664 LDAP_LIBS_BE
665 LDAP_LIBS_FE
666 PTHREAD_CFLAGS
667 PTHREAD_LIBS
668 PTHREAD_CC
669 acx_pthread_config
670 have_win32_dbghelp
671 HAVE_IPV6
672 LIBOBJS
673 OSSP_UUID_LIBS
674 ZIC
675 python_additional_libs
676 python_libspec
677 python_libdir
678 python_includespec
679 python_configdir
680 python_version
681 python_majorversion
682 PYTHON
683 perl_embed_ldflags
684 perl_useshrplib
685 perl_privlibexp
686 perl_archlibexp
687 PERL
688 FLEXFLAGS
689 FLEX
690 BISONFLAGS
691 BISON
692 MKDIR_P
693 AWK
694 LN_S
695 TAR
696 install_bin
697 INSTALL_DATA
698 INSTALL_SCRIPT
699 INSTALL_PROGRAM
700 WINDRES
701 DLLWRAP
702 DLLTOOL
703 AR
704 STRIP_SHARED_LIB
705 STRIP_STATIC_LIB
706 STRIP
707 RANLIB
708 ld_R_works
709 with_gnu_ld
710 LD
711 LDFLAGS_SL
712 LDFLAGS_EX
713 ELF_SYS
714 EGREP
715 GREP
716 with_zlib
717 with_system_tzdata
718 with_libxslt
719 with_libxml
720 XML2_CONFIG
721 with_ossp_uuid
722 with_selinux
723 with_openssl
724 krb_srvtab
725 with_python
726 with_perl
727 with_tcl
728 enable_thread_safety
729 INCLUDES
730 autodepend
731 TAS
732 GCC
733 CPP
734 SUN_STUDIO_CC
735 OBJEXT
736 EXEEXT
737 ac_ct_CC
738 CPPFLAGS
739 LDFLAGS
740 CFLAGS
741 CC
742 enable_dtrace
743 DTRACEFLAGS
744 DTRACE
745 enable_coverage
746 GENHTML
747 LCOV
748 GCOV
749 enable_debug
750 enable_rpath
751 enable_shared
752 default_port
753 WANTED_LANGUAGES
754 enable_nls
755 PORTNAME
756 host_os
757 host_vendor
758 host_cpu
759 host
760 build_os
761 build_vendor
762 build_cpu
763 build
764 PG_MAJORVERSION
765 configure_args
766 target_alias
767 host_alias
768 build_alias
769 LIBS
770 ECHO_T
771 ECHO_N
772 ECHO_C
773 DEFS
774 mandir
775 localedir
776 libdir
777 psdir
778 pdfdir
779 dvidir
780 htmldir
781 infodir
782 docdir
783 oldincludedir
784 includedir
785 localstatedir
786 sharedstatedir
787 sysconfdir
788 datadir
789 datarootdir
790 libexecdir
791 sbindir
792 bindir
793 program_transform_name
794 prefix
795 exec_prefix
796 PACKAGE_BUGREPORT
797 PACKAGE_STRING
798 PACKAGE_VERSION
799 PACKAGE_TARNAME
800 PACKAGE_NAME
801 PATH_SEPARATOR
802 SHELL'
803 ac_subst_files=''
804 ac_user_opts='
805 enable_option_checking
806 with_template
807 with_includes
808 with_libraries
809 with_libs
810 enable_integer_datetimes
811 enable_nls
812 with_pgport
813 enable_shared
814 enable_rpath
815 enable_spinlocks
816 enable_debug
817 enable_profiling
818 enable_coverage
819 enable_dtrace
820 with_blocksize
821 with_segsize
822 with_wal_blocksize
823 with_wal_segsize
824 with_CC
825 enable_depend
826 enable_cassert
827 enable_thread_safety
828 with_tcl
829 with_tclconfig
830 with_perl
831 with_python
832 with_gssapi
833 with_krb5
834 with_krb_srvnam
835 with_pam
836 with_ldap
837 with_bonjour
838 with_openssl
839 with_selinux
840 with_readline
841 with_libedit_preferred
842 with_ossp_uuid
843 with_libxml
844 with_libxslt
845 with_system_tzdata
846 with_zlib
847 with_gnu_ld
848 enable_largefile
849 enable_float4_byval
850 enable_float8_byval
851 '
852       ac_precious_vars='build_alias
853 host_alias
854 target_alias
855 CC
856 CFLAGS
857 LDFLAGS
858 LIBS
859 CPPFLAGS
860 CPP
861 LDFLAGS_EX
862 LDFLAGS_SL
863 DOCBOOKSTYLE'
864
865
866 # Initialize some variables set by options.
867 ac_init_help=
868 ac_init_version=false
869 ac_unrecognized_opts=
870 ac_unrecognized_sep=
871 # The variables have the same names as the options, with
872 # dashes changed to underlines.
873 cache_file=/dev/null
874 exec_prefix=NONE
875 no_create=
876 no_recursion=
877 prefix=NONE
878 program_prefix=NONE
879 program_suffix=NONE
880 program_transform_name=s,x,x,
881 silent=
882 site=
883 srcdir=
884 verbose=
885 x_includes=NONE
886 x_libraries=NONE
887
888 # Installation directory options.
889 # These are left unexpanded so users can "make install exec_prefix=/foo"
890 # and all the variables that are supposed to be based on exec_prefix
891 # by default will actually change.
892 # Use braces instead of parens because sh, perl, etc. also accept them.
893 # (The list follows the same order as the GNU Coding Standards.)
894 bindir='${exec_prefix}/bin'
895 sbindir='${exec_prefix}/sbin'
896 libexecdir='${exec_prefix}/libexec'
897 datarootdir='${prefix}/share'
898 datadir='${datarootdir}'
899 sysconfdir='${prefix}/etc'
900 sharedstatedir='${prefix}/com'
901 localstatedir='${prefix}/var'
902 includedir='${prefix}/include'
903 oldincludedir='/usr/include'
904 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
905 infodir='${datarootdir}/info'
906 htmldir='${docdir}'
907 dvidir='${docdir}'
908 pdfdir='${docdir}'
909 psdir='${docdir}'
910 libdir='${exec_prefix}/lib'
911 localedir='${datarootdir}/locale'
912 mandir='${datarootdir}/man'
913
914 ac_prev=
915 ac_dashdash=
916 for ac_option
917 do
918   # If the previous option needs an argument, assign it.
919   if test -n "$ac_prev"; then
920     eval $ac_prev=\$ac_option
921     ac_prev=
922     continue
923   fi
924
925   case $ac_option in
926   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927   *)    ac_optarg=yes ;;
928   esac
929
930   # Accept the important Cygnus configure options, so we can diagnose typos.
931
932   case $ac_dashdash$ac_option in
933   --)
934     ac_dashdash=yes ;;
935
936   -bindir | --bindir | --bindi | --bind | --bin | --bi)
937     ac_prev=bindir ;;
938   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
939     bindir=$ac_optarg ;;
940
941   -build | --build | --buil | --bui | --bu)
942     ac_prev=build_alias ;;
943   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
944     build_alias=$ac_optarg ;;
945
946   -cache-file | --cache-file | --cache-fil | --cache-fi \
947   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
948     ac_prev=cache_file ;;
949   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
950   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
951     cache_file=$ac_optarg ;;
952
953   --config-cache | -C)
954     cache_file=config.cache ;;
955
956   -datadir | --datadir | --datadi | --datad)
957     ac_prev=datadir ;;
958   -datadir=* | --datadir=* | --datadi=* | --datad=*)
959     datadir=$ac_optarg ;;
960
961   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
962   | --dataroo | --dataro | --datar)
963     ac_prev=datarootdir ;;
964   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
965   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
966     datarootdir=$ac_optarg ;;
967
968   -disable-* | --disable-*)
969     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
970     # Reject names that are not valid shell variable names.
971     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
973    { (exit 1); exit 1; }; }
974     ac_useropt_orig=$ac_useropt
975     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976     case $ac_user_opts in
977       *"
978 "enable_$ac_useropt"
979 "*) ;;
980       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
981          ac_unrecognized_sep=', ';;
982     esac
983     eval enable_$ac_useropt=no ;;
984
985   -docdir | --docdir | --docdi | --doc | --do)
986     ac_prev=docdir ;;
987   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
988     docdir=$ac_optarg ;;
989
990   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
991     ac_prev=dvidir ;;
992   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
993     dvidir=$ac_optarg ;;
994
995   -enable-* | --enable-*)
996     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
997     # Reject names that are not valid shell variable names.
998     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1000    { (exit 1); exit 1; }; }
1001     ac_useropt_orig=$ac_useropt
1002     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1003     case $ac_user_opts in
1004       *"
1005 "enable_$ac_useropt"
1006 "*) ;;
1007       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1008          ac_unrecognized_sep=', ';;
1009     esac
1010     eval enable_$ac_useropt=\$ac_optarg ;;
1011
1012   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1013   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1014   | --exec | --exe | --ex)
1015     ac_prev=exec_prefix ;;
1016   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1017   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1018   | --exec=* | --exe=* | --ex=*)
1019     exec_prefix=$ac_optarg ;;
1020
1021   -gas | --gas | --ga | --g)
1022     # Obsolete; use --with-gas.
1023     with_gas=yes ;;
1024
1025   -help | --help | --hel | --he | -h)
1026     ac_init_help=long ;;
1027   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1028     ac_init_help=recursive ;;
1029   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1030     ac_init_help=short ;;
1031
1032   -host | --host | --hos | --ho)
1033     ac_prev=host_alias ;;
1034   -host=* | --host=* | --hos=* | --ho=*)
1035     host_alias=$ac_optarg ;;
1036
1037   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038     ac_prev=htmldir ;;
1039   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040   | --ht=*)
1041     htmldir=$ac_optarg ;;
1042
1043   -includedir | --includedir | --includedi | --included | --include \
1044   | --includ | --inclu | --incl | --inc)
1045     ac_prev=includedir ;;
1046   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1047   | --includ=* | --inclu=* | --incl=* | --inc=*)
1048     includedir=$ac_optarg ;;
1049
1050   -infodir | --infodir | --infodi | --infod | --info | --inf)
1051     ac_prev=infodir ;;
1052   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1053     infodir=$ac_optarg ;;
1054
1055   -libdir | --libdir | --libdi | --libd)
1056     ac_prev=libdir ;;
1057   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1058     libdir=$ac_optarg ;;
1059
1060   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1061   | --libexe | --libex | --libe)
1062     ac_prev=libexecdir ;;
1063   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1064   | --libexe=* | --libex=* | --libe=*)
1065     libexecdir=$ac_optarg ;;
1066
1067   -localedir | --localedir | --localedi | --localed | --locale)
1068     ac_prev=localedir ;;
1069   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1070     localedir=$ac_optarg ;;
1071
1072   -localstatedir | --localstatedir | --localstatedi | --localstated \
1073   | --localstate | --localstat | --localsta | --localst | --locals)
1074     ac_prev=localstatedir ;;
1075   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1076   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1077     localstatedir=$ac_optarg ;;
1078
1079   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080     ac_prev=mandir ;;
1081   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1082     mandir=$ac_optarg ;;
1083
1084   -nfp | --nfp | --nf)
1085     # Obsolete; use --without-fp.
1086     with_fp=no ;;
1087
1088   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1089   | --no-cr | --no-c | -n)
1090     no_create=yes ;;
1091
1092   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1093   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1094     no_recursion=yes ;;
1095
1096   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1097   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1098   | --oldin | --oldi | --old | --ol | --o)
1099     ac_prev=oldincludedir ;;
1100   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1101   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1102   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1103     oldincludedir=$ac_optarg ;;
1104
1105   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106     ac_prev=prefix ;;
1107   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1108     prefix=$ac_optarg ;;
1109
1110   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1111   | --program-pre | --program-pr | --program-p)
1112     ac_prev=program_prefix ;;
1113   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1114   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1115     program_prefix=$ac_optarg ;;
1116
1117   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1118   | --program-suf | --program-su | --program-s)
1119     ac_prev=program_suffix ;;
1120   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1121   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1122     program_suffix=$ac_optarg ;;
1123
1124   -program-transform-name | --program-transform-name \
1125   | --program-transform-nam | --program-transform-na \
1126   | --program-transform-n | --program-transform- \
1127   | --program-transform | --program-transfor \
1128   | --program-transfo | --program-transf \
1129   | --program-trans | --program-tran \
1130   | --progr-tra | --program-tr | --program-t)
1131     ac_prev=program_transform_name ;;
1132   -program-transform-name=* | --program-transform-name=* \
1133   | --program-transform-nam=* | --program-transform-na=* \
1134   | --program-transform-n=* | --program-transform-=* \
1135   | --program-transform=* | --program-transfor=* \
1136   | --program-transfo=* | --program-transf=* \
1137   | --program-trans=* | --program-tran=* \
1138   | --progr-tra=* | --program-tr=* | --program-t=*)
1139     program_transform_name=$ac_optarg ;;
1140
1141   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142     ac_prev=pdfdir ;;
1143   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1144     pdfdir=$ac_optarg ;;
1145
1146   -psdir | --psdir | --psdi | --psd | --ps)
1147     ac_prev=psdir ;;
1148   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1149     psdir=$ac_optarg ;;
1150
1151   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152   | -silent | --silent | --silen | --sile | --sil)
1153     silent=yes ;;
1154
1155   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1156     ac_prev=sbindir ;;
1157   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1158   | --sbi=* | --sb=*)
1159     sbindir=$ac_optarg ;;
1160
1161   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1162   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1163   | --sharedst | --shareds | --shared | --share | --shar \
1164   | --sha | --sh)
1165     ac_prev=sharedstatedir ;;
1166   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1167   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1168   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1169   | --sha=* | --sh=*)
1170     sharedstatedir=$ac_optarg ;;
1171
1172   -site | --site | --sit)
1173     ac_prev=site ;;
1174   -site=* | --site=* | --sit=*)
1175     site=$ac_optarg ;;
1176
1177   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1178     ac_prev=srcdir ;;
1179   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1180     srcdir=$ac_optarg ;;
1181
1182   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1183   | --syscon | --sysco | --sysc | --sys | --sy)
1184     ac_prev=sysconfdir ;;
1185   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1186   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1187     sysconfdir=$ac_optarg ;;
1188
1189   -target | --target | --targe | --targ | --tar | --ta | --t)
1190     ac_prev=target_alias ;;
1191   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1192     target_alias=$ac_optarg ;;
1193
1194   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1195     verbose=yes ;;
1196
1197   -version | --version | --versio | --versi | --vers | -V)
1198     ac_init_version=: ;;
1199
1200   -with-* | --with-*)
1201     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1202     # Reject names that are not valid shell variable names.
1203     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1205    { (exit 1); exit 1; }; }
1206     ac_useropt_orig=$ac_useropt
1207     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208     case $ac_user_opts in
1209       *"
1210 "with_$ac_useropt"
1211 "*) ;;
1212       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1213          ac_unrecognized_sep=', ';;
1214     esac
1215     eval with_$ac_useropt=\$ac_optarg ;;
1216
1217   -without-* | --without-*)
1218     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1219     # Reject names that are not valid shell variable names.
1220     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1221       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1222    { (exit 1); exit 1; }; }
1223     ac_useropt_orig=$ac_useropt
1224     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225     case $ac_user_opts in
1226       *"
1227 "with_$ac_useropt"
1228 "*) ;;
1229       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1230          ac_unrecognized_sep=', ';;
1231     esac
1232     eval with_$ac_useropt=no ;;
1233
1234   --x)
1235     # Obsolete; use --with-x.
1236     with_x=yes ;;
1237
1238   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1239   | --x-incl | --x-inc | --x-in | --x-i)
1240     ac_prev=x_includes ;;
1241   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1242   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1243     x_includes=$ac_optarg ;;
1244
1245   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1246   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1247     ac_prev=x_libraries ;;
1248   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1249   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1250     x_libraries=$ac_optarg ;;
1251
1252   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1253 Try \`$0 --help' for more information." >&2
1254    { (exit 1); exit 1; }; }
1255     ;;
1256
1257   *=*)
1258     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1259     # Reject names that are not valid shell variable names.
1260     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1261       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1262    { (exit 1); exit 1; }; }
1263     eval $ac_envvar=\$ac_optarg
1264     export $ac_envvar ;;
1265
1266   *)
1267     # FIXME: should be removed in autoconf 3.0.
1268     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1269     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1270       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1271     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1272     ;;
1273
1274   esac
1275 done
1276
1277 if test -n "$ac_prev"; then
1278   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1279   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1280    { (exit 1); exit 1; }; }
1281 fi
1282
1283 if test -n "$ac_unrecognized_opts"; then
1284   case $enable_option_checking in
1285     no) ;;
1286     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1287    { (exit 1); exit 1; }; } ;;
1288     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1289   esac
1290 fi
1291
1292 # Check all directory arguments for consistency.
1293 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1294                 datadir sysconfdir sharedstatedir localstatedir includedir \
1295                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1296                 libdir localedir mandir
1297 do
1298   eval ac_val=\$$ac_var
1299   # Remove trailing slashes.
1300   case $ac_val in
1301     */ )
1302       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1303       eval $ac_var=\$ac_val;;
1304   esac
1305   # Be sure to have absolute directory names.
1306   case $ac_val in
1307     [\\/$]* | ?:[\\/]* )  continue;;
1308     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1309   esac
1310   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1311    { (exit 1); exit 1; }; }
1312 done
1313
1314 # There might be people who depend on the old broken behavior: `$host'
1315 # used to hold the argument of --host etc.
1316 # FIXME: To remove some day.
1317 build=$build_alias
1318 host=$host_alias
1319 target=$target_alias
1320
1321 # FIXME: To remove some day.
1322 if test "x$host_alias" != x; then
1323   if test "x$build_alias" = x; then
1324     cross_compiling=maybe
1325     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1326     If a cross compiler is detected then cross compile mode will be used." >&2
1327   elif test "x$build_alias" != "x$host_alias"; then
1328     cross_compiling=yes
1329   fi
1330 fi
1331
1332 ac_tool_prefix=
1333 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334
1335 test "$silent" = yes && exec 6>/dev/null
1336
1337
1338 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339 ac_ls_di=`ls -di .` &&
1340 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1342    { (exit 1); exit 1; }; }
1343 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1345    { (exit 1); exit 1; }; }
1346
1347
1348 # Find the source files, if location was not specified.
1349 if test -z "$srcdir"; then
1350   ac_srcdir_defaulted=yes
1351   # Try the directory containing this script, then the parent directory.
1352   ac_confdir=`$as_dirname -- "$as_myself" ||
1353 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1354          X"$as_myself" : 'X\(//\)[^/]' \| \
1355          X"$as_myself" : 'X\(//\)$' \| \
1356          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1357 $as_echo X"$as_myself" |
1358     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1359             s//\1/
1360             q
1361           }
1362           /^X\(\/\/\)[^/].*/{
1363             s//\1/
1364             q
1365           }
1366           /^X\(\/\/\)$/{
1367             s//\1/
1368             q
1369           }
1370           /^X\(\/\).*/{
1371             s//\1/
1372             q
1373           }
1374           s/.*/./; q'`
1375   srcdir=$ac_confdir
1376   if test ! -r "$srcdir/$ac_unique_file"; then
1377     srcdir=..
1378   fi
1379 else
1380   ac_srcdir_defaulted=no
1381 fi
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1384   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1385    { (exit 1); exit 1; }; }
1386 fi
1387 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1388 ac_abs_confdir=`(
1389         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1390    { (exit 1); exit 1; }; }
1391         pwd)`
1392 # When building in place, set srcdir=.
1393 if test "$ac_abs_confdir" = "$ac_pwd"; then
1394   srcdir=.
1395 fi
1396 # Remove unnecessary trailing slashes from srcdir.
1397 # Double slashes in file names in object file debugging info
1398 # mess up M-x gdb in Emacs.
1399 case $srcdir in
1400 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1401 esac
1402 for ac_var in $ac_precious_vars; do
1403   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1404   eval ac_env_${ac_var}_value=\$${ac_var}
1405   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1406   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407 done
1408
1409 #
1410 # Report the --help message.
1411 #
1412 if test "$ac_init_help" = "long"; then
1413   # Omit some internal or obsolete options to make the list less imposing.
1414   # This message is too long to be a string in the A/UX 3.1 sh.
1415   cat <<_ACEOF
1416 \`configure' configures PostgreSQL 9.3devel to adapt to many kinds of systems.
1417
1418 Usage: $0 [OPTION]... [VAR=VALUE]...
1419
1420 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1421 VAR=VALUE.  See below for descriptions of some of the useful variables.
1422
1423 Defaults for the options are specified in brackets.
1424
1425 Configuration:
1426   -h, --help              display this help and exit
1427       --help=short        display options specific to this package
1428       --help=recursive    display the short help of all the included packages
1429   -V, --version           display version information and exit
1430   -q, --quiet, --silent   do not print \`checking...' messages
1431       --cache-file=FILE   cache test results in FILE [disabled]
1432   -C, --config-cache      alias for \`--cache-file=config.cache'
1433   -n, --no-create         do not create output files
1434       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1435
1436 Installation directories:
1437   --prefix=PREFIX         install architecture-independent files in PREFIX
1438                           [$ac_default_prefix]
1439   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1440                           [PREFIX]
1441
1442 By default, \`make install' will install all the files in
1443 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1444 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1445 for instance \`--prefix=\$HOME'.
1446
1447 For better control, use the options below.
1448
1449 Fine tuning of the installation directories:
1450   --bindir=DIR            user executables [EPREFIX/bin]
1451   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1452   --libexecdir=DIR        program executables [EPREFIX/libexec]
1453   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1454   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1455   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1456   --libdir=DIR            object code libraries [EPREFIX/lib]
1457   --includedir=DIR        C header files [PREFIX/include]
1458   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1459   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1460   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1461   --infodir=DIR           info documentation [DATAROOTDIR/info]
1462   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1463   --mandir=DIR            man documentation [DATAROOTDIR/man]
1464   --docdir=DIR            documentation root [DATAROOTDIR/doc/postgresql]
1465   --htmldir=DIR           html documentation [DOCDIR]
1466   --dvidir=DIR            dvi documentation [DOCDIR]
1467   --pdfdir=DIR            pdf documentation [DOCDIR]
1468   --psdir=DIR             ps documentation [DOCDIR]
1469 _ACEOF
1470
1471   cat <<\_ACEOF
1472
1473 System types:
1474   --build=BUILD     configure for building on BUILD [guessed]
1475   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1476 _ACEOF
1477 fi
1478
1479 if test -n "$ac_init_help"; then
1480   case $ac_init_help in
1481      short | recursive ) echo "Configuration of PostgreSQL 9.3devel:";;
1482    esac
1483   cat <<\_ACEOF
1484
1485 Optional Features:
1486   --disable-option-checking  ignore unrecognized --enable/--with options
1487   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1488   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1489   --disable-integer-datetimes
1490                           disable 64-bit integer date/time support
1491   --enable-nls[=LANGUAGES]
1492                           enable Native Language Support
1493   --disable-shared        do not build shared libraries
1494   --disable-rpath         do not embed shared library search path in
1495                           executables
1496   --disable-spinlocks     do not use spinlocks
1497   --enable-debug          build with debugging symbols (-g)
1498   --enable-profiling      build with profiling enabled
1499   --enable-coverage       build with coverage testing instrumentation
1500   --enable-dtrace         build with DTrace support
1501   --enable-depend         turn on automatic dependency tracking
1502   --enable-cassert        enable assertion checks (for debugging)
1503   --disable-thread-safety disable thread-safety in client libraries
1504   --disable-largefile     omit support for large files
1505   --disable-float4-byval  disable float4 passed by value
1506   --disable-float8-byval  disable float8 passed by value
1507
1508 Optional Packages:
1509   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1510   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1511   --with-template=NAME    override operating system template
1512   --with-includes=DIRS    look for additional header files in DIRS
1513   --with-libraries=DIRS   look for additional libraries in DIRS
1514   --with-libs=DIRS        alternative spelling of --with-libraries
1515   --with-pgport=PORTNUM   set default port number [5432]
1516   --with-blocksize=BLOCKSIZE
1517                           set table block size in kB [8]
1518   --with-segsize=SEGSIZE  set table segment size in GB [1]
1519   --with-wal-blocksize=BLOCKSIZE
1520                           set WAL block size in kB [8]
1521   --with-wal-segsize=SEGSIZE
1522                           set WAL segment size in MB [16]
1523   --with-CC=CMD           set compiler (deprecated)
1524   --with-tcl              build Tcl modules (PL/Tcl)
1525   --with-tclconfig=DIR    tclConfig.sh is in DIR
1526   --with-perl             build Perl modules (PL/Perl)
1527   --with-python           build Python modules (PL/Python)
1528   --with-gssapi           build with GSSAPI support
1529   --with-krb5             build with Kerberos 5 support
1530   --with-krb-srvnam=NAME  default service principal name in Kerberos
1531                           [postgres]
1532   --with-pam              build with PAM support
1533   --with-ldap             build with LDAP support
1534   --with-bonjour          build with Bonjour support
1535   --with-openssl          build with OpenSSL support
1536   --with-selinux          build with SELinux support
1537   --without-readline      do not use GNU Readline nor BSD Libedit for editing
1538   --with-libedit-preferred
1539                           prefer BSD Libedit over GNU Readline
1540   --with-ossp-uuid        build contrib/uuid-ossp, requires OSSP UUID library
1541   --with-libxml           build with XML support
1542   --with-libxslt          use XSLT support when building contrib/xml2
1543   --with-system-tzdata=DIR
1544                           use system time zone data in DIR
1545   --without-zlib          do not use Zlib
1546   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1547
1548 Some influential environment variables:
1549   CC          C compiler command
1550   CFLAGS      C compiler flags
1551   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1552               nonstandard directory <lib dir>
1553   LIBS        libraries to pass to the linker, e.g. -l<library>
1554   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1555               you have headers in a nonstandard directory <include dir>
1556   CPP         C preprocessor
1557   LDFLAGS_EX  extra linker flags for linking executables only
1558   LDFLAGS_SL  extra linker flags for linking shared libraries only
1559   DOCBOOKSTYLE
1560               location of DocBook stylesheets
1561
1562 Use these variables to override the choices made by `configure' or to help
1563 it to find libraries and programs with nonstandard names/locations.
1564
1565 Report bugs to <pgsql-bugs@postgresql.org>.
1566 _ACEOF
1567 ac_status=$?
1568 fi
1569
1570 if test "$ac_init_help" = "recursive"; then
1571   # If there are subdirs, report their specific --help.
1572   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1573     test -d "$ac_dir" ||
1574       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1575       continue
1576     ac_builddir=.
1577
1578 case "$ac_dir" in
1579 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580 *)
1581   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1582   # A ".." for each directory in $ac_dir_suffix.
1583   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1584   case $ac_top_builddir_sub in
1585   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1586   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1587   esac ;;
1588 esac
1589 ac_abs_top_builddir=$ac_pwd
1590 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1591 # for backward compatibility:
1592 ac_top_builddir=$ac_top_build_prefix
1593
1594 case $srcdir in
1595   .)  # We are building in place.
1596     ac_srcdir=.
1597     ac_top_srcdir=$ac_top_builddir_sub
1598     ac_abs_top_srcdir=$ac_pwd ;;
1599   [\\/]* | ?:[\\/]* )  # Absolute name.
1600     ac_srcdir=$srcdir$ac_dir_suffix;
1601     ac_top_srcdir=$srcdir
1602     ac_abs_top_srcdir=$srcdir ;;
1603   *) # Relative name.
1604     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1605     ac_top_srcdir=$ac_top_build_prefix$srcdir
1606     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1607 esac
1608 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1609
1610     cd "$ac_dir" || { ac_status=$?; continue; }
1611     # Check for guested configure.
1612     if test -f "$ac_srcdir/configure.gnu"; then
1613       echo &&
1614       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1615     elif test -f "$ac_srcdir/configure"; then
1616       echo &&
1617       $SHELL "$ac_srcdir/configure" --help=recursive
1618     else
1619       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1620     fi || ac_status=$?
1621     cd "$ac_pwd" || { ac_status=$?; break; }
1622   done
1623 fi
1624
1625 test -n "$ac_init_help" && exit $ac_status
1626 if $ac_init_version; then
1627   cat <<\_ACEOF
1628 PostgreSQL configure 9.3devel
1629 generated by GNU Autoconf 2.63
1630
1631 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1632 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1633 This configure script is free software; the Free Software Foundation
1634 gives unlimited permission to copy, distribute and modify it.
1635
1636 Copyright (c) 1996-2012, PostgreSQL Global Development Group
1637 _ACEOF
1638   exit
1639 fi
1640 cat >config.log <<_ACEOF
1641 This file contains any messages produced by compilers while
1642 running configure, to aid debugging if configure makes a mistake.
1643
1644 It was created by PostgreSQL $as_me 9.3devel, which was
1645 generated by GNU Autoconf 2.63.  Invocation command line was
1646
1647   $ $0 $@
1648
1649 _ACEOF
1650 exec 5>>config.log
1651 {
1652 cat <<_ASUNAME
1653 ## --------- ##
1654 ## Platform. ##
1655 ## --------- ##
1656
1657 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1658 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1659 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1660 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1661 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1662
1663 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1664 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1665
1666 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1667 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1668 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1669 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1670 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1671 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1672 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1673
1674 _ASUNAME
1675
1676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1677 for as_dir in $PATH
1678 do
1679   IFS=$as_save_IFS
1680   test -z "$as_dir" && as_dir=.
1681   $as_echo "PATH: $as_dir"
1682 done
1683 IFS=$as_save_IFS
1684
1685 } >&5
1686
1687 cat >&5 <<_ACEOF
1688
1689
1690 ## ----------- ##
1691 ## Core tests. ##
1692 ## ----------- ##
1693
1694 _ACEOF
1695
1696
1697 # Keep a trace of the command line.
1698 # Strip out --no-create and --no-recursion so they do not pile up.
1699 # Strip out --silent because we don't want to record it for future runs.
1700 # Also quote any args containing shell meta-characters.
1701 # Make two passes to allow for proper duplicate-argument suppression.
1702 ac_configure_args=
1703 ac_configure_args0=
1704 ac_configure_args1=
1705 ac_must_keep_next=false
1706 for ac_pass in 1 2
1707 do
1708   for ac_arg
1709   do
1710     case $ac_arg in
1711     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1712     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1713     | -silent | --silent | --silen | --sile | --sil)
1714       continue ;;
1715     *\'*)
1716       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1717     esac
1718     case $ac_pass in
1719     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1720     2)
1721       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1722       if test $ac_must_keep_next = true; then
1723         ac_must_keep_next=false # Got value, back to normal.
1724       else
1725         case $ac_arg in
1726           *=* | --config-cache | -C | -disable-* | --disable-* \
1727           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1728           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1729           | -with-* | --with-* | -without-* | --without-* | --x)
1730             case "$ac_configure_args0 " in
1731               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1732             esac
1733             ;;
1734           -* ) ac_must_keep_next=true ;;
1735         esac
1736       fi
1737       ac_configure_args="$ac_configure_args '$ac_arg'"
1738       ;;
1739     esac
1740   done
1741 done
1742 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1743 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1744
1745 # When interrupted or exit'd, cleanup temporary files, and complete
1746 # config.log.  We remove comments because anyway the quotes in there
1747 # would cause problems or look ugly.
1748 # WARNING: Use '\'' to represent an apostrophe within the trap.
1749 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1750 trap 'exit_status=$?
1751   # Save into config.log some information that might help in debugging.
1752   {
1753     echo
1754
1755     cat <<\_ASBOX
1756 ## ---------------- ##
1757 ## Cache variables. ##
1758 ## ---------------- ##
1759 _ASBOX
1760     echo
1761     # The following way of writing the cache mishandles newlines in values,
1762 (
1763   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1764     eval ac_val=\$$ac_var
1765     case $ac_val in #(
1766     *${as_nl}*)
1767       case $ac_var in #(
1768       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1769 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1770       esac
1771       case $ac_var in #(
1772       _ | IFS | as_nl) ;; #(
1773       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1774       *) $as_unset $ac_var ;;
1775       esac ;;
1776     esac
1777   done
1778   (set) 2>&1 |
1779     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1780     *${as_nl}ac_space=\ *)
1781       sed -n \
1782         "s/'\''/'\''\\\\'\'''\''/g;
1783           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1784       ;; #(
1785     *)
1786       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1787       ;;
1788     esac |
1789     sort
1790 )
1791     echo
1792
1793     cat <<\_ASBOX
1794 ## ----------------- ##
1795 ## Output variables. ##
1796 ## ----------------- ##
1797 _ASBOX
1798     echo
1799     for ac_var in $ac_subst_vars
1800     do
1801       eval ac_val=\$$ac_var
1802       case $ac_val in
1803       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1804       esac
1805       $as_echo "$ac_var='\''$ac_val'\''"
1806     done | sort
1807     echo
1808
1809     if test -n "$ac_subst_files"; then
1810       cat <<\_ASBOX
1811 ## ------------------- ##
1812 ## File substitutions. ##
1813 ## ------------------- ##
1814 _ASBOX
1815       echo
1816       for ac_var in $ac_subst_files
1817       do
1818         eval ac_val=\$$ac_var
1819         case $ac_val in
1820         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1821         esac
1822         $as_echo "$ac_var='\''$ac_val'\''"
1823       done | sort
1824       echo
1825     fi
1826
1827     if test -s confdefs.h; then
1828       cat <<\_ASBOX
1829 ## ----------- ##
1830 ## confdefs.h. ##
1831 ## ----------- ##
1832 _ASBOX
1833       echo
1834       cat confdefs.h
1835       echo
1836     fi
1837     test "$ac_signal" != 0 &&
1838       $as_echo "$as_me: caught signal $ac_signal"
1839     $as_echo "$as_me: exit $exit_status"
1840   } >&5
1841   rm -f core *.core core.conftest.* &&
1842     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1843     exit $exit_status
1844 ' 0
1845 for ac_signal in 1 2 13 15; do
1846   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1847 done
1848 ac_signal=0
1849
1850 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1851 rm -f -r conftest* confdefs.h
1852
1853 # Predefined preprocessor variables.
1854
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_NAME "$PACKAGE_NAME"
1857 _ACEOF
1858
1859
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1862 _ACEOF
1863
1864
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1867 _ACEOF
1868
1869
1870 cat >>confdefs.h <<_ACEOF
1871 #define PACKAGE_STRING "$PACKAGE_STRING"
1872 _ACEOF
1873
1874
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1877 _ACEOF
1878
1879
1880 # Let the site file select an alternate cache file if it wants to.
1881 # Prefer an explicitly selected file to automatically selected ones.
1882 ac_site_file1=NONE
1883 ac_site_file2=NONE
1884 if test -n "$CONFIG_SITE"; then
1885   ac_site_file1=$CONFIG_SITE
1886 elif test "x$prefix" != xNONE; then
1887   ac_site_file1=$prefix/share/config.site
1888   ac_site_file2=$prefix/etc/config.site
1889 else
1890   ac_site_file1=$ac_default_prefix/share/config.site
1891   ac_site_file2=$ac_default_prefix/etc/config.site
1892 fi
1893 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1894 do
1895   test "x$ac_site_file" = xNONE && continue
1896   if test -r "$ac_site_file"; then
1897     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1898 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1899     sed 's/^/| /' "$ac_site_file" >&5
1900     . "$ac_site_file"
1901   fi
1902 done
1903
1904 if test -r "$cache_file"; then
1905   # Some versions of bash will fail to source /dev/null (special
1906   # files actually), so we avoid doing that.
1907   if test -f "$cache_file"; then
1908     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1909 $as_echo "$as_me: loading cache $cache_file" >&6;}
1910     case $cache_file in
1911       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1912       *)                      . "./$cache_file";;
1913     esac
1914   fi
1915 else
1916   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1917 $as_echo "$as_me: creating cache $cache_file" >&6;}
1918   >$cache_file
1919 fi
1920
1921 # Check that the precious variables saved in the cache have kept the same
1922 # value.
1923 ac_cache_corrupted=false
1924 for ac_var in $ac_precious_vars; do
1925   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1926   eval ac_new_set=\$ac_env_${ac_var}_set
1927   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1928   eval ac_new_val=\$ac_env_${ac_var}_value
1929   case $ac_old_set,$ac_new_set in
1930     set,)
1931       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1932 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1933       ac_cache_corrupted=: ;;
1934     ,set)
1935       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1936 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1937       ac_cache_corrupted=: ;;
1938     ,);;
1939     *)
1940       if test "x$ac_old_val" != "x$ac_new_val"; then
1941         # differences in whitespace do not lead to failure.
1942         ac_old_val_w=`echo x $ac_old_val`
1943         ac_new_val_w=`echo x $ac_new_val`
1944         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1945           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1946 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1947           ac_cache_corrupted=:
1948         else
1949           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1950 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1951           eval $ac_var=\$ac_old_val
1952         fi
1953         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1954 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1955         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1956 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1957       fi;;
1958   esac
1959   # Pass precious variables to config.status.
1960   if test "$ac_new_set" = set; then
1961     case $ac_new_val in
1962     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1963     *) ac_arg=$ac_var=$ac_new_val ;;
1964     esac
1965     case " $ac_configure_args " in
1966       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1967       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1968     esac
1969   fi
1970 done
1971 if $ac_cache_corrupted; then
1972   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1974   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1975 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1976   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1977 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1978    { (exit 1); exit 1; }; }
1979 fi
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005 ac_ext=c
2006 ac_cpp='$CPP $CPPFLAGS'
2007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2010
2011
2012
2013
2014
2015
2016 ac_aux_dir=
2017 for ac_dir in config "$srcdir"/config; do
2018   if test -f "$ac_dir/install-sh"; then
2019     ac_aux_dir=$ac_dir
2020     ac_install_sh="$ac_aux_dir/install-sh -c"
2021     break
2022   elif test -f "$ac_dir/install.sh"; then
2023     ac_aux_dir=$ac_dir
2024     ac_install_sh="$ac_aux_dir/install.sh -c"
2025     break
2026   elif test -f "$ac_dir/shtool"; then
2027     ac_aux_dir=$ac_dir
2028     ac_install_sh="$ac_aux_dir/shtool install -c"
2029     break
2030   fi
2031 done
2032 if test -z "$ac_aux_dir"; then
2033   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2034 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2035    { (exit 1); exit 1; }; }
2036 fi
2037
2038 # These three variables are undocumented and unsupported,
2039 # and are intended to be withdrawn in a future Autoconf release.
2040 # They can cause serious problems if a builder's source tree is in a directory
2041 # whose full name contains unusual characters.
2042 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2043 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2044 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2045
2046
2047
2048 configure_args=$ac_configure_args
2049
2050
2051
2052 cat >>confdefs.h <<_ACEOF
2053 #define PG_VERSION "$PACKAGE_VERSION"
2054 _ACEOF
2055
2056 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2057
2058
2059 cat >>confdefs.h <<_ACEOF
2060 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2061 _ACEOF
2062
2063
2064 # Make sure we can run config.sub.
2065 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2066   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2067 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2068    { (exit 1); exit 1; }; }
2069
2070 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2071 $as_echo_n "checking build system type... " >&6; }
2072 if test "${ac_cv_build+set}" = set; then
2073   $as_echo_n "(cached) " >&6
2074 else
2075   ac_build_alias=$build_alias
2076 test "x$ac_build_alias" = x &&
2077   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2078 test "x$ac_build_alias" = x &&
2079   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2080 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2081    { (exit 1); exit 1; }; }
2082 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2083   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2084 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2085    { (exit 1); exit 1; }; }
2086
2087 fi
2088 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2089 $as_echo "$ac_cv_build" >&6; }
2090 case $ac_cv_build in
2091 *-*-*) ;;
2092 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2093 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2094    { (exit 1); exit 1; }; };;
2095 esac
2096 build=$ac_cv_build
2097 ac_save_IFS=$IFS; IFS='-'
2098 set x $ac_cv_build
2099 shift
2100 build_cpu=$1
2101 build_vendor=$2
2102 shift; shift
2103 # Remember, the first character of IFS is used to create $*,
2104 # except with old shells:
2105 build_os=$*
2106 IFS=$ac_save_IFS
2107 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2108
2109
2110 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2111 $as_echo_n "checking host system type... " >&6; }
2112 if test "${ac_cv_host+set}" = set; then
2113   $as_echo_n "(cached) " >&6
2114 else
2115   if test "x$host_alias" = x; then
2116   ac_cv_host=$ac_cv_build
2117 else
2118   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2119     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2120 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2121    { (exit 1); exit 1; }; }
2122 fi
2123
2124 fi
2125 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2126 $as_echo "$ac_cv_host" >&6; }
2127 case $ac_cv_host in
2128 *-*-*) ;;
2129 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2130 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2131    { (exit 1); exit 1; }; };;
2132 esac
2133 host=$ac_cv_host
2134 ac_save_IFS=$IFS; IFS='-'
2135 set x $ac_cv_host
2136 shift
2137 host_cpu=$1
2138 host_vendor=$2
2139 shift; shift
2140 # Remember, the first character of IFS is used to create $*,
2141 # except with old shells:
2142 host_os=$*
2143 IFS=$ac_save_IFS
2144 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2145
2146
2147
2148 template=
2149 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2150 $as_echo_n "checking which template to use... " >&6; }
2151
2152
2153
2154
2155 # Check whether --with-template was given.
2156 if test "${with_template+set}" = set; then
2157   withval=$with_template;
2158   case $withval in
2159     yes)
2160       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2161 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2162    { (exit 1); exit 1; }; }
2163       ;;
2164     no)
2165       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2166 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2167    { (exit 1); exit 1; }; }
2168       ;;
2169     *)
2170
2171   case $withval in
2172     list)   echo; ls "$srcdir/src/template"; exit;;
2173     *)      if test -f "$srcdir/src/template/$with_template" ; then
2174               template=$withval
2175             else
2176               { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2177 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2178    { (exit 1); exit 1; }; }
2179             fi;;
2180   esac
2181
2182       ;;
2183   esac
2184
2185 else
2186
2187 # --with-template not given
2188
2189 case $host_os in
2190      aix*) template=aix ;;
2191   cygwin*) template=cygwin ;;
2192   darwin*) template=darwin ;;
2193 dragonfly*) template=netbsd ;;
2194  freebsd*) template=freebsd ;;
2195     hpux*) template=hpux ;;
2196     irix*) template=irix ;;
2197  linux*|gnu*|k*bsd*-gnu)
2198            template=linux ;;
2199    mingw*) template=win32 ;;
2200   netbsd*) template=netbsd ;;
2201  openbsd*) template=openbsd ;;
2202      osf*) template=osf ;;
2203      sco*) template=sco ;;
2204  solaris*) template=solaris ;;
2205    sysv5*) template=unixware ;;
2206 esac
2207
2208   if test x"$template" = x"" ; then
2209     { { $as_echo "$as_me:$LINENO: error:
2210 *******************************************************************
2211 PostgreSQL has apparently not been ported to your platform yet.
2212 To try a manual configuration, look into the src/template directory
2213 for a similar platform and use the '--with-template=' option.
2214
2215 Please also contact <pgsql-bugs@postgresql.org> to see about
2216 rectifying this.  Include the above 'checking host system type...'
2217 line.
2218 *******************************************************************
2219 " >&5
2220 $as_echo "$as_me: error:
2221 *******************************************************************
2222 PostgreSQL has apparently not been ported to your platform yet.
2223 To try a manual configuration, look into the src/template directory
2224 for a similar platform and use the '--with-template=' option.
2225
2226 Please also contact <pgsql-bugs@postgresql.org> to see about
2227 rectifying this.  Include the above 'checking host system type...'
2228 line.
2229 *******************************************************************
2230 " >&2;}
2231    { (exit 1); exit 1; }; }
2232   fi
2233
2234
2235 fi
2236
2237
2238
2239 { $as_echo "$as_me:$LINENO: result: $template" >&5
2240 $as_echo "$template" >&6; }
2241
2242 PORTNAME=$template
2243
2244
2245 # Initialize default assumption that we do not need separate assembly code
2246 # for TAS (test-and-set).  This can be overridden by the template file
2247 # when it's executed.
2248 need_tas=no
2249 tas_file=dummy.s
2250
2251
2252
2253 ##
2254 ## Command line options
2255 ##
2256
2257 #
2258 # Add non-standard directories to the include path
2259 #
2260
2261
2262
2263 # Check whether --with-includes was given.
2264 if test "${with_includes+set}" = set; then
2265   withval=$with_includes;
2266   case $withval in
2267     yes)
2268       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2269 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2270    { (exit 1); exit 1; }; }
2271       ;;
2272     no)
2273       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2274 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2275    { (exit 1); exit 1; }; }
2276       ;;
2277     *)
2278
2279       ;;
2280   esac
2281
2282 fi
2283
2284
2285
2286
2287 #
2288 # Add non-standard directories to the library search path
2289 #
2290
2291
2292
2293 # Check whether --with-libraries was given.
2294 if test "${with_libraries+set}" = set; then
2295   withval=$with_libraries;
2296   case $withval in
2297     yes)
2298       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2299 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2300    { (exit 1); exit 1; }; }
2301       ;;
2302     no)
2303       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2304 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2305    { (exit 1); exit 1; }; }
2306       ;;
2307     *)
2308       LIBRARY_DIRS=$withval
2309       ;;
2310   esac
2311
2312 fi
2313
2314
2315
2316
2317
2318
2319 # Check whether --with-libs was given.
2320 if test "${with_libs+set}" = set; then
2321   withval=$with_libs;
2322   case $withval in
2323     yes)
2324       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2325 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2326    { (exit 1); exit 1; }; }
2327       ;;
2328     no)
2329       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2330 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2331    { (exit 1); exit 1; }; }
2332       ;;
2333     *)
2334       LIBRARY_DIRS=$withval
2335       ;;
2336   esac
2337
2338 fi
2339
2340
2341
2342
2343 #
2344 # 64-bit integer date/time storage: enabled by default.
2345 #
2346 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2347 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2348
2349
2350 # Check whether --enable-integer-datetimes was given.
2351 if test "${enable_integer_datetimes+set}" = set; then
2352   enableval=$enable_integer_datetimes;
2353   case $enableval in
2354     yes)
2355
2356 cat >>confdefs.h <<\_ACEOF
2357 #define USE_INTEGER_DATETIMES 1
2358 _ACEOF
2359
2360       ;;
2361     no)
2362       :
2363       ;;
2364     *)
2365       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2366 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2367    { (exit 1); exit 1; }; }
2368       ;;
2369   esac
2370
2371 else
2372   enable_integer_datetimes=yes
2373
2374 cat >>confdefs.h <<\_ACEOF
2375 #define USE_INTEGER_DATETIMES 1
2376 _ACEOF
2377
2378 fi
2379
2380
2381 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2382 $as_echo "$enable_integer_datetimes" >&6; }
2383
2384
2385 #
2386 # NLS
2387 #
2388 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2389 $as_echo_n "checking whether NLS is wanted... " >&6; }
2390
2391
2392 # Check whether --enable-nls was given.
2393 if test "${enable_nls+set}" = set; then
2394   enableval=$enable_nls;
2395   case $enableval in
2396     yes)
2397       :
2398       ;;
2399     no)
2400       :
2401       ;;
2402     *)
2403       enable_nls=yes
2404 WANTED_LANGUAGES=$enableval
2405       ;;
2406   esac
2407
2408 else
2409   enable_nls=no
2410 fi
2411
2412
2413
2414 if test "$enable_nls" = yes; then
2415
2416 cat >>confdefs.h <<\_ACEOF
2417 #define ENABLE_NLS 1
2418 _ACEOF
2419
2420 fi
2421
2422 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2423 $as_echo "$enable_nls" >&6; }
2424
2425
2426
2427 #
2428 # Default port number (--with-pgport), default 5432
2429 #
2430 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2431 $as_echo_n "checking for default port number... " >&6; }
2432
2433
2434
2435 # Check whether --with-pgport was given.
2436 if test "${with_pgport+set}" = set; then
2437   withval=$with_pgport;
2438   case $withval in
2439     yes)
2440       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2441 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2442    { (exit 1); exit 1; }; }
2443       ;;
2444     no)
2445       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2446 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2447    { (exit 1); exit 1; }; }
2448       ;;
2449     *)
2450       default_port=$withval
2451       ;;
2452   esac
2453
2454 else
2455   default_port=5432
2456 fi
2457
2458
2459 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2460 $as_echo "$default_port" >&6; }
2461 # Need both of these because some places want an integer and some a string
2462
2463 cat >>confdefs.h <<_ACEOF
2464 #define DEF_PGPORT ${default_port}
2465 _ACEOF
2466
2467
2468 cat >>confdefs.h <<_ACEOF
2469 #define DEF_PGPORT_STR "${default_port}"
2470 _ACEOF
2471
2472
2473
2474 #
2475 # Option to disable shared libraries
2476 #
2477
2478
2479 # Check whether --enable-shared was given.
2480 if test "${enable_shared+set}" = set; then
2481   enableval=$enable_shared;
2482   case $enableval in
2483     yes)
2484       :
2485       ;;
2486     no)
2487       :
2488       ;;
2489     *)
2490       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2491 $as_echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2492    { (exit 1); exit 1; }; }
2493       ;;
2494   esac
2495
2496 else
2497   enable_shared=yes
2498
2499 fi
2500
2501
2502
2503
2504 #
2505 # '-rpath'-like feature can be disabled
2506 #
2507
2508
2509 # Check whether --enable-rpath was given.
2510 if test "${enable_rpath+set}" = set; then
2511   enableval=$enable_rpath;
2512   case $enableval in
2513     yes)
2514       :
2515       ;;
2516     no)
2517       :
2518       ;;
2519     *)
2520       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2521 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2522    { (exit 1); exit 1; }; }
2523       ;;
2524   esac
2525
2526 else
2527   enable_rpath=yes
2528
2529 fi
2530
2531
2532
2533
2534 #
2535 # Spinlocks
2536 #
2537
2538
2539 # Check whether --enable-spinlocks was given.
2540 if test "${enable_spinlocks+set}" = set; then
2541   enableval=$enable_spinlocks;
2542   case $enableval in
2543     yes)
2544       :
2545       ;;
2546     no)
2547       :
2548       ;;
2549     *)
2550       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2551 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2552    { (exit 1); exit 1; }; }
2553       ;;
2554   esac
2555
2556 else
2557   enable_spinlocks=yes
2558
2559 fi
2560
2561
2562
2563 #
2564 # --enable-debug adds -g to compiler flags
2565 #
2566
2567
2568 # Check whether --enable-debug was given.
2569 if test "${enable_debug+set}" = set; then
2570   enableval=$enable_debug;
2571   case $enableval in
2572     yes)
2573       :
2574       ;;
2575     no)
2576       :
2577       ;;
2578     *)
2579       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2580 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2581    { (exit 1); exit 1; }; }
2582       ;;
2583   esac
2584
2585 else
2586   enable_debug=no
2587
2588 fi
2589
2590
2591
2592
2593 #
2594 # --enable-profiling enables gcc profiling
2595 #
2596
2597
2598 # Check whether --enable-profiling was given.
2599 if test "${enable_profiling+set}" = set; then
2600   enableval=$enable_profiling;
2601   case $enableval in
2602     yes)
2603       :
2604       ;;
2605     no)
2606       :
2607       ;;
2608     *)
2609       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2610 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2611    { (exit 1); exit 1; }; }
2612       ;;
2613   esac
2614
2615 else
2616   enable_profiling=no
2617
2618 fi
2619
2620
2621
2622 #
2623 # --enable-coverage enables generation of code coverage metrics with gcov
2624 #
2625
2626
2627 # Check whether --enable-coverage was given.
2628 if test "${enable_coverage+set}" = set; then
2629   enableval=$enable_coverage;
2630   case $enableval in
2631     yes)
2632       for ac_prog in gcov
2633 do
2634   # Extract the first word of "$ac_prog", so it can be a program name with args.
2635 set dummy $ac_prog; ac_word=$2
2636 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2637 $as_echo_n "checking for $ac_word... " >&6; }
2638 if test "${ac_cv_prog_GCOV+set}" = set; then
2639   $as_echo_n "(cached) " >&6
2640 else
2641   if test -n "$GCOV"; then
2642   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2643 else
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 for as_dir in $PATH
2646 do
2647   IFS=$as_save_IFS
2648   test -z "$as_dir" && as_dir=.
2649   for ac_exec_ext in '' $ac_executable_extensions; do
2650   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2651     ac_cv_prog_GCOV="$ac_prog"
2652     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2653     break 2
2654   fi
2655 done
2656 done
2657 IFS=$as_save_IFS
2658
2659 fi
2660 fi
2661 GCOV=$ac_cv_prog_GCOV
2662 if test -n "$GCOV"; then
2663   { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2664 $as_echo "$GCOV" >&6; }
2665 else
2666   { $as_echo "$as_me:$LINENO: result: no" >&5
2667 $as_echo "no" >&6; }
2668 fi
2669
2670
2671   test -n "$GCOV" && break
2672 done
2673
2674 if test -z "$GCOV"; then
2675   { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2676 $as_echo "$as_me: error: gcov not found" >&2;}
2677    { (exit 1); exit 1; }; }
2678 fi
2679 for ac_prog in lcov
2680 do
2681   # Extract the first word of "$ac_prog", so it can be a program name with args.
2682 set dummy $ac_prog; ac_word=$2
2683 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2684 $as_echo_n "checking for $ac_word... " >&6; }
2685 if test "${ac_cv_prog_LCOV+set}" = set; then
2686   $as_echo_n "(cached) " >&6
2687 else
2688   if test -n "$LCOV"; then
2689   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2690 else
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH
2693 do
2694   IFS=$as_save_IFS
2695   test -z "$as_dir" && as_dir=.
2696   for ac_exec_ext in '' $ac_executable_extensions; do
2697   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2698     ac_cv_prog_LCOV="$ac_prog"
2699     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2700     break 2
2701   fi
2702 done
2703 done
2704 IFS=$as_save_IFS
2705
2706 fi
2707 fi
2708 LCOV=$ac_cv_prog_LCOV
2709 if test -n "$LCOV"; then
2710   { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2711 $as_echo "$LCOV" >&6; }
2712 else
2713   { $as_echo "$as_me:$LINENO: result: no" >&5
2714 $as_echo "no" >&6; }
2715 fi
2716
2717
2718   test -n "$LCOV" && break
2719 done
2720
2721 if test -z "$LCOV"; then
2722   { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2723 $as_echo "$as_me: error: lcov not found" >&2;}
2724    { (exit 1); exit 1; }; }
2725 fi
2726 for ac_prog in genhtml
2727 do
2728   # Extract the first word of "$ac_prog", so it can be a program name with args.
2729 set dummy $ac_prog; ac_word=$2
2730 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2731 $as_echo_n "checking for $ac_word... " >&6; }
2732 if test "${ac_cv_prog_GENHTML+set}" = set; then
2733   $as_echo_n "(cached) " >&6
2734 else
2735   if test -n "$GENHTML"; then
2736   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2737 else
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 for as_dir in $PATH
2740 do
2741   IFS=$as_save_IFS
2742   test -z "$as_dir" && as_dir=.
2743   for ac_exec_ext in '' $ac_executable_extensions; do
2744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2745     ac_cv_prog_GENHTML="$ac_prog"
2746     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2747     break 2
2748   fi
2749 done
2750 done
2751 IFS=$as_save_IFS
2752
2753 fi
2754 fi
2755 GENHTML=$ac_cv_prog_GENHTML
2756 if test -n "$GENHTML"; then
2757   { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2758 $as_echo "$GENHTML" >&6; }
2759 else
2760   { $as_echo "$as_me:$LINENO: result: no" >&5
2761 $as_echo "no" >&6; }
2762 fi
2763
2764
2765   test -n "$GENHTML" && break
2766 done
2767
2768 if test -z "$GENHTML"; then
2769   { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2770 $as_echo "$as_me: error: genhtml not found" >&2;}
2771    { (exit 1); exit 1; }; }
2772 fi
2773       ;;
2774     no)
2775       :
2776       ;;
2777     *)
2778       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2779 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2780    { (exit 1); exit 1; }; }
2781       ;;
2782   esac
2783
2784 else
2785   enable_coverage=no
2786
2787 fi
2788
2789
2790
2791
2792 #
2793 # DTrace
2794 #
2795
2796
2797 # Check whether --enable-dtrace was given.
2798 if test "${enable_dtrace+set}" = set; then
2799   enableval=$enable_dtrace;
2800   case $enableval in
2801     yes)
2802       for ac_prog in dtrace
2803 do
2804   # Extract the first word of "$ac_prog", so it can be a program name with args.
2805 set dummy $ac_prog; ac_word=$2
2806 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2807 $as_echo_n "checking for $ac_word... " >&6; }
2808 if test "${ac_cv_prog_DTRACE+set}" = set; then
2809   $as_echo_n "(cached) " >&6
2810 else
2811   if test -n "$DTRACE"; then
2812   ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2813 else
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 for as_dir in $PATH
2816 do
2817   IFS=$as_save_IFS
2818   test -z "$as_dir" && as_dir=.
2819   for ac_exec_ext in '' $ac_executable_extensions; do
2820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2821     ac_cv_prog_DTRACE="$ac_prog"
2822     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2823     break 2
2824   fi
2825 done
2826 done
2827 IFS=$as_save_IFS
2828
2829 fi
2830 fi
2831 DTRACE=$ac_cv_prog_DTRACE
2832 if test -n "$DTRACE"; then
2833   { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2834 $as_echo "$DTRACE" >&6; }
2835 else
2836   { $as_echo "$as_me:$LINENO: result: no" >&5
2837 $as_echo "no" >&6; }
2838 fi
2839
2840
2841   test -n "$DTRACE" && break
2842 done
2843
2844 if test -z "$DTRACE"; then
2845   { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2846 $as_echo "$as_me: error: dtrace not found" >&2;}
2847    { (exit 1); exit 1; }; }
2848 fi
2849
2850       ;;
2851     no)
2852       :
2853       ;;
2854     *)
2855       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2856 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2857    { (exit 1); exit 1; }; }
2858       ;;
2859   esac
2860
2861 else
2862   enable_dtrace=no
2863
2864 fi
2865
2866
2867
2868
2869 #
2870 # Block size
2871 #
2872 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2873 $as_echo_n "checking for block size... " >&6; }
2874
2875
2876
2877 # Check whether --with-blocksize was given.
2878 if test "${with_blocksize+set}" = set; then
2879   withval=$with_blocksize;
2880   case $withval in
2881     yes)
2882       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2883 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2884    { (exit 1); exit 1; }; }
2885       ;;
2886     no)
2887       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2888 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2889    { (exit 1); exit 1; }; }
2890       ;;
2891     *)
2892       blocksize=$withval
2893       ;;
2894   esac
2895
2896 else
2897   blocksize=8
2898 fi
2899
2900
2901 case ${blocksize} in
2902   1) BLCKSZ=1024;;
2903   2) BLCKSZ=2048;;
2904   4) BLCKSZ=4096;;
2905   8) BLCKSZ=8192;;
2906  16) BLCKSZ=16384;;
2907  32) BLCKSZ=32768;;
2908   *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2909 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2910    { (exit 1); exit 1; }; }
2911 esac
2912 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2913 $as_echo "${blocksize}kB" >&6; }
2914
2915
2916 cat >>confdefs.h <<_ACEOF
2917 #define BLCKSZ ${BLCKSZ}
2918 _ACEOF
2919
2920
2921 #
2922 # Relation segment size
2923 #
2924 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2925 $as_echo_n "checking for segment size... " >&6; }
2926
2927
2928
2929 # Check whether --with-segsize was given.
2930 if test "${with_segsize+set}" = set; then
2931   withval=$with_segsize;
2932   case $withval in
2933     yes)
2934       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2935 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2936    { (exit 1); exit 1; }; }
2937       ;;
2938     no)
2939       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2940 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2941    { (exit 1); exit 1; }; }
2942       ;;
2943     *)
2944       segsize=$withval
2945       ;;
2946   esac
2947
2948 else
2949   segsize=1
2950 fi
2951
2952
2953 # this expression is set up to avoid unnecessary integer overflow
2954 # blocksize is already guaranteed to be a factor of 1024
2955 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2956 test $? -eq 0 || exit 1
2957 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2958 $as_echo "${segsize}GB" >&6; }
2959
2960
2961 cat >>confdefs.h <<_ACEOF
2962 #define RELSEG_SIZE ${RELSEG_SIZE}
2963 _ACEOF
2964
2965
2966 #
2967 # WAL block size
2968 #
2969 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2970 $as_echo_n "checking for WAL block size... " >&6; }
2971
2972
2973
2974 # Check whether --with-wal-blocksize was given.
2975 if test "${with_wal_blocksize+set}" = set; then
2976   withval=$with_wal_blocksize;
2977   case $withval in
2978     yes)
2979       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2980 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2981    { (exit 1); exit 1; }; }
2982       ;;
2983     no)
2984       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2985 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2986    { (exit 1); exit 1; }; }
2987       ;;
2988     *)
2989       wal_blocksize=$withval
2990       ;;
2991   esac
2992
2993 else
2994   wal_blocksize=8
2995 fi
2996
2997
2998 case ${wal_blocksize} in
2999   1) XLOG_BLCKSZ=1024;;
3000   2) XLOG_BLCKSZ=2048;;
3001   4) XLOG_BLCKSZ=4096;;
3002   8) XLOG_BLCKSZ=8192;;
3003  16) XLOG_BLCKSZ=16384;;
3004  32) XLOG_BLCKSZ=32768;;
3005  64) XLOG_BLCKSZ=65536;;
3006   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
3007 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3008    { (exit 1); exit 1; }; }
3009 esac
3010 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
3011 $as_echo "${wal_blocksize}kB" >&6; }
3012
3013
3014 cat >>confdefs.h <<_ACEOF
3015 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3016 _ACEOF
3017
3018
3019 #
3020 # WAL segment size
3021 #
3022 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
3023 $as_echo_n "checking for WAL segment size... " >&6; }
3024
3025
3026
3027 # Check whether --with-wal-segsize was given.
3028 if test "${with_wal_segsize+set}" = set; then
3029   withval=$with_wal_segsize;
3030   case $withval in
3031     yes)
3032       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3033 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3034    { (exit 1); exit 1; }; }
3035       ;;
3036     no)
3037       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3038 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3039    { (exit 1); exit 1; }; }
3040       ;;
3041     *)
3042       wal_segsize=$withval
3043       ;;
3044   esac
3045
3046 else
3047   wal_segsize=16
3048 fi
3049
3050
3051 case ${wal_segsize} in
3052   1) ;;
3053   2) ;;
3054   4) ;;
3055   8) ;;
3056  16) ;;
3057  32) ;;
3058  64) ;;
3059   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3060 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3061    { (exit 1); exit 1; }; }
3062 esac
3063 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3064 $as_echo "${wal_segsize}MB" >&6; }
3065
3066
3067 cat >>confdefs.h <<_ACEOF
3068 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3069 _ACEOF
3070
3071
3072 #
3073 # C compiler
3074 #
3075
3076 # For historical reasons you can also use --with-CC to specify the C compiler
3077 # to use, although the standard way to do this is to set the CC environment
3078 # variable.
3079
3080
3081
3082 # Check whether --with-CC was given.
3083 if test "${with_CC+set}" = set; then
3084   withval=$with_CC;
3085   case $withval in
3086     yes)
3087       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3088 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3089    { (exit 1); exit 1; }; }
3090       ;;
3091     no)
3092       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3093 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3094    { (exit 1); exit 1; }; }
3095       ;;
3096     *)
3097       CC=$with_CC
3098       ;;
3099   esac
3100
3101 fi
3102
3103
3104
3105 case $template in
3106   aix) pgac_cc_list="gcc xlc";;
3107  irix) pgac_cc_list="cc";; # no gcc
3108     *) pgac_cc_list="gcc cc";;
3109 esac
3110
3111 ac_ext=c
3112 ac_cpp='$CPP $CPPFLAGS'
3113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3116 if test -n "$ac_tool_prefix"; then
3117   for ac_prog in $pgac_cc_list
3118   do
3119     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3120 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3121 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3122 $as_echo_n "checking for $ac_word... " >&6; }
3123 if test "${ac_cv_prog_CC+set}" = set; then
3124   $as_echo_n "(cached) " >&6
3125 else
3126   if test -n "$CC"; then
3127   ac_cv_prog_CC="$CC" # Let the user override the test.
3128 else
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 for as_dir in $PATH
3131 do
3132   IFS=$as_save_IFS
3133   test -z "$as_dir" && as_dir=.
3134   for ac_exec_ext in '' $ac_executable_extensions; do
3135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3136     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3137     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3138     break 2
3139   fi
3140 done
3141 done
3142 IFS=$as_save_IFS
3143
3144 fi
3145 fi
3146 CC=$ac_cv_prog_CC
3147 if test -n "$CC"; then
3148   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3149 $as_echo "$CC" >&6; }
3150 else
3151   { $as_echo "$as_me:$LINENO: result: no" >&5
3152 $as_echo "no" >&6; }
3153 fi
3154
3155
3156     test -n "$CC" && break
3157   done
3158 fi
3159 if test -z "$CC"; then
3160   ac_ct_CC=$CC
3161   for ac_prog in $pgac_cc_list
3162 do
3163   # Extract the first word of "$ac_prog", so it can be a program name with args.
3164 set dummy $ac_prog; ac_word=$2
3165 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3168   $as_echo_n "(cached) " >&6
3169 else
3170   if test -n "$ac_ct_CC"; then
3171   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3172 else
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH
3175 do
3176   IFS=$as_save_IFS
3177   test -z "$as_dir" && as_dir=.
3178   for ac_exec_ext in '' $ac_executable_extensions; do
3179   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3180     ac_cv_prog_ac_ct_CC="$ac_prog"
3181     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3182     break 2
3183   fi
3184 done
3185 done
3186 IFS=$as_save_IFS
3187
3188 fi
3189 fi
3190 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3191 if test -n "$ac_ct_CC"; then
3192   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3193 $as_echo "$ac_ct_CC" >&6; }
3194 else
3195   { $as_echo "$as_me:$LINENO: result: no" >&5
3196 $as_echo "no" >&6; }
3197 fi
3198
3199
3200   test -n "$ac_ct_CC" && break
3201 done
3202
3203   if test "x$ac_ct_CC" = x; then
3204     CC=""
3205   else
3206     case $cross_compiling:$ac_tool_warned in
3207 yes:)
3208 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3210 ac_tool_warned=yes ;;
3211 esac
3212     CC=$ac_ct_CC
3213   fi
3214 fi
3215
3216
3217 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3219 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3220 See \`config.log' for more details." >&5
3221 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3222 See \`config.log' for more details." >&2;}
3223    { (exit 1); exit 1; }; }; }
3224
3225 # Provide some information about the compiler.
3226 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3227 set X $ac_compile
3228 ac_compiler=$2
3229 { (ac_try="$ac_compiler --version >&5"
3230 case "(($ac_try" in
3231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232   *) ac_try_echo=$ac_try;;
3233 esac
3234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3235 $as_echo "$ac_try_echo") >&5
3236   (eval "$ac_compiler --version >&5") 2>&5
3237   ac_status=$?
3238   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239   (exit $ac_status); }
3240 { (ac_try="$ac_compiler -v >&5"
3241 case "(($ac_try" in
3242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243   *) ac_try_echo=$ac_try;;
3244 esac
3245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3246 $as_echo "$ac_try_echo") >&5
3247   (eval "$ac_compiler -v >&5") 2>&5
3248   ac_status=$?
3249   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250   (exit $ac_status); }
3251 { (ac_try="$ac_compiler -V >&5"
3252 case "(($ac_try" in
3253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254   *) ac_try_echo=$ac_try;;
3255 esac
3256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3257 $as_echo "$ac_try_echo") >&5
3258   (eval "$ac_compiler -V >&5") 2>&5
3259   ac_status=$?
3260   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261   (exit $ac_status); }
3262
3263 cat >conftest.$ac_ext <<_ACEOF
3264 /* confdefs.h.  */
3265 _ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h.  */
3269
3270 int
3271 main ()
3272 {
3273
3274   ;
3275   return 0;
3276 }
3277 _ACEOF
3278 ac_clean_files_save=$ac_clean_files
3279 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3280 # Try to create an executable without -o first, disregard a.out.
3281 # It will help us diagnose broken compilers, and finding out an intuition
3282 # of exeext.
3283 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3284 $as_echo_n "checking for C compiler default output file name... " >&6; }
3285 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3286
3287 # The possible output files:
3288 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3289
3290 ac_rmfiles=
3291 for ac_file in $ac_files
3292 do
3293   case $ac_file in
3294     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3295     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3296   esac
3297 done
3298 rm -f $ac_rmfiles
3299
3300 if { (ac_try="$ac_link_default"
3301 case "(($ac_try" in
3302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303   *) ac_try_echo=$ac_try;;
3304 esac
3305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3306 $as_echo "$ac_try_echo") >&5
3307   (eval "$ac_link_default") 2>&5
3308   ac_status=$?
3309   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310   (exit $ac_status); }; then
3311   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3312 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3313 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3314 # so that the user can short-circuit this test for compilers unknown to
3315 # Autoconf.
3316 for ac_file in $ac_files ''
3317 do
3318   test -f "$ac_file" || continue
3319   case $ac_file in
3320     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3321         ;;
3322     [ab].out )
3323         # We found the default executable, but exeext='' is most
3324         # certainly right.
3325         break;;
3326     *.* )
3327         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3328         then :; else
3329            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3330         fi
3331         # We set ac_cv_exeext here because the later test for it is not
3332         # safe: cross compilers may not add the suffix if given an `-o'
3333         # argument, so we may need to know it at that point already.
3334         # Even if this section looks crufty: it has the advantage of
3335         # actually working.
3336         break;;
3337     * )
3338         break;;
3339   esac
3340 done
3341 test "$ac_cv_exeext" = no && ac_cv_exeext=
3342
3343 else
3344   ac_file=''
3345 fi
3346
3347 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3348 $as_echo "$ac_file" >&6; }
3349 if test -z "$ac_file"; then
3350   $as_echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3352
3353 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3356 See \`config.log' for more details." >&5
3357 $as_echo "$as_me: error: C compiler cannot create executables
3358 See \`config.log' for more details." >&2;}
3359    { (exit 77); exit 77; }; }; }
3360 fi
3361
3362 ac_exeext=$ac_cv_exeext
3363
3364 # Check that the compiler produces executables we can run.  If not, either
3365 # the compiler is broken, or we cross compile.
3366 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3367 $as_echo_n "checking whether the C compiler works... " >&6; }
3368 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3369 # If not cross compiling, check that we can run a simple program.
3370 if test "$cross_compiling" != yes; then
3371   if { ac_try='./$ac_file'
3372   { (case "(($ac_try" in
3373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374   *) ac_try_echo=$ac_try;;
3375 esac
3376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3377 $as_echo "$ac_try_echo") >&5
3378   (eval "$ac_try") 2>&5
3379   ac_status=$?
3380   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381   (exit $ac_status); }; }; then
3382     cross_compiling=no
3383   else
3384     if test "$cross_compiling" = maybe; then
3385         cross_compiling=yes
3386     else
3387         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3389 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3390 If you meant to cross compile, use \`--host'.
3391 See \`config.log' for more details." >&5
3392 $as_echo "$as_me: error: cannot run C compiled programs.
3393 If you meant to cross compile, use \`--host'.
3394 See \`config.log' for more details." >&2;}
3395    { (exit 1); exit 1; }; }; }
3396     fi
3397   fi
3398 fi
3399 { $as_echo "$as_me:$LINENO: result: yes" >&5
3400 $as_echo "yes" >&6; }
3401
3402 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3403 ac_clean_files=$ac_clean_files_save
3404 # Check that the compiler produces executables we can run.  If not, either
3405 # the compiler is broken, or we cross compile.
3406 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3407 $as_echo_n "checking whether we are cross compiling... " >&6; }
3408 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3409 $as_echo "$cross_compiling" >&6; }
3410
3411 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3412 $as_echo_n "checking for suffix of executables... " >&6; }
3413 if { (ac_try="$ac_link"
3414 case "(($ac_try" in
3415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416   *) ac_try_echo=$ac_try;;
3417 esac
3418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3419 $as_echo "$ac_try_echo") >&5
3420   (eval "$ac_link") 2>&5
3421   ac_status=$?
3422   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423   (exit $ac_status); }; then
3424   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3425 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3426 # work properly (i.e., refer to `conftest.exe'), while it won't with
3427 # `rm'.
3428 for ac_file in conftest.exe conftest conftest.*; do
3429   test -f "$ac_file" || continue
3430   case $ac_file in
3431     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3432     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3433           break;;
3434     * ) break;;
3435   esac
3436 done
3437 else
3438   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3440 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3441 See \`config.log' for more details." >&5
3442 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3443 See \`config.log' for more details." >&2;}
3444    { (exit 1); exit 1; }; }; }
3445 fi
3446
3447 rm -f conftest$ac_cv_exeext
3448 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3449 $as_echo "$ac_cv_exeext" >&6; }
3450
3451 rm -f conftest.$ac_ext
3452 EXEEXT=$ac_cv_exeext
3453 ac_exeext=$EXEEXT
3454 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3455 $as_echo_n "checking for suffix of object files... " >&6; }
3456 if test "${ac_cv_objext+set}" = set; then
3457   $as_echo_n "(cached) " >&6
3458 else
3459   cat >conftest.$ac_ext <<_ACEOF
3460 /* confdefs.h.  */
3461 _ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h.  */
3465
3466 int
3467 main ()
3468 {
3469
3470   ;
3471   return 0;
3472 }
3473 _ACEOF
3474 rm -f conftest.o conftest.obj
3475 if { (ac_try="$ac_compile"
3476 case "(($ac_try" in
3477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478   *) ac_try_echo=$ac_try;;
3479 esac
3480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3481 $as_echo "$ac_try_echo") >&5
3482   (eval "$ac_compile") 2>&5
3483   ac_status=$?
3484   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485   (exit $ac_status); }; then
3486   for ac_file in conftest.o conftest.obj conftest.*; do
3487   test -f "$ac_file" || continue;
3488   case $ac_file in
3489     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3490     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3491        break;;
3492   esac
3493 done
3494 else
3495   $as_echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3497
3498 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3500 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3501 See \`config.log' for more details." >&5
3502 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3503 See \`config.log' for more details." >&2;}
3504    { (exit 1); exit 1; }; }; }
3505 fi
3506
3507 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3508 fi
3509 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3510 $as_echo "$ac_cv_objext" >&6; }
3511 OBJEXT=$ac_cv_objext
3512 ac_objext=$OBJEXT
3513 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3514 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3515 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3516   $as_echo_n "(cached) " >&6
3517 else
3518   cat >conftest.$ac_ext <<_ACEOF
3519 /* confdefs.h.  */
3520 _ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h.  */
3524
3525 int
3526 main ()
3527 {
3528 #ifndef __GNUC__
3529        choke me
3530 #endif
3531
3532   ;
3533   return 0;
3534 }
3535 _ACEOF
3536 rm -f conftest.$ac_objext
3537 if { (ac_try="$ac_compile"
3538 case "(($ac_try" in
3539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540   *) ac_try_echo=$ac_try;;
3541 esac
3542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3543 $as_echo "$ac_try_echo") >&5
3544   (eval "$ac_compile") 2>conftest.er1
3545   ac_status=$?
3546   grep -v '^ *+' conftest.er1 >conftest.err
3547   rm -f conftest.er1
3548   cat conftest.err >&5
3549   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550   (exit $ac_status); } && {
3551          test -z "$ac_c_werror_flag" ||
3552          test ! -s conftest.err
3553        } && test -s conftest.$ac_objext; then
3554   ac_compiler_gnu=yes
3555 else
3556   $as_echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3558
3559         ac_compiler_gnu=no
3560 fi
3561
3562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3563 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3564
3565 fi
3566 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3567 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3568 if test $ac_compiler_gnu = yes; then
3569   GCC=yes
3570 else
3571   GCC=
3572 fi
3573 ac_test_CFLAGS=${CFLAGS+set}
3574 ac_save_CFLAGS=$CFLAGS
3575 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3576 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3577 if test "${ac_cv_prog_cc_g+set}" = set; then
3578   $as_echo_n "(cached) " >&6
3579 else
3580   ac_save_c_werror_flag=$ac_c_werror_flag
3581    ac_c_werror_flag=yes
3582    ac_cv_prog_cc_g=no
3583    CFLAGS="-g"
3584    cat >conftest.$ac_ext <<_ACEOF
3585 /* confdefs.h.  */
3586 _ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h.  */
3590
3591 int
3592 main ()
3593 {
3594
3595   ;
3596   return 0;
3597 }
3598 _ACEOF
3599 rm -f conftest.$ac_objext
3600 if { (ac_try="$ac_compile"
3601 case "(($ac_try" in
3602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603   *) ac_try_echo=$ac_try;;
3604 esac
3605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3606 $as_echo "$ac_try_echo") >&5
3607   (eval "$ac_compile") 2>conftest.er1
3608   ac_status=$?
3609   grep -v '^ *+' conftest.er1 >conftest.err
3610   rm -f conftest.er1
3611   cat conftest.err >&5
3612   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613   (exit $ac_status); } && {
3614          test -z "$ac_c_werror_flag" ||
3615          test ! -s conftest.err
3616        } && test -s conftest.$ac_objext; then
3617   ac_cv_prog_cc_g=yes
3618 else
3619   $as_echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3621
3622         CFLAGS=""
3623       cat >conftest.$ac_ext <<_ACEOF
3624 /* confdefs.h.  */
3625 _ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h.  */
3629
3630 int
3631 main ()
3632 {
3633
3634   ;
3635   return 0;
3636 }
3637 _ACEOF
3638 rm -f conftest.$ac_objext
3639 if { (ac_try="$ac_compile"
3640 case "(($ac_try" in
3641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642   *) ac_try_echo=$ac_try;;
3643 esac
3644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3645 $as_echo "$ac_try_echo") >&5
3646   (eval "$ac_compile") 2>conftest.er1
3647   ac_status=$?
3648   grep -v '^ *+' conftest.er1 >conftest.err
3649   rm -f conftest.er1
3650   cat conftest.err >&5
3651   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652   (exit $ac_status); } && {
3653          test -z "$ac_c_werror_flag" ||
3654          test ! -s conftest.err
3655        } && test -s conftest.$ac_objext; then
3656   :
3657 else
3658   $as_echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3660
3661         ac_c_werror_flag=$ac_save_c_werror_flag
3662          CFLAGS="-g"
3663          cat >conftest.$ac_ext <<_ACEOF
3664 /* confdefs.h.  */
3665 _ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h.  */
3669
3670 int
3671 main ()
3672 {
3673
3674   ;
3675   return 0;
3676 }
3677 _ACEOF
3678 rm -f conftest.$ac_objext
3679 if { (ac_try="$ac_compile"
3680 case "(($ac_try" in
3681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682   *) ac_try_echo=$ac_try;;
3683 esac
3684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3685 $as_echo "$ac_try_echo") >&5
3686   (eval "$ac_compile") 2>conftest.er1
3687   ac_status=$?
3688   grep -v '^ *+' conftest.er1 >conftest.err
3689   rm -f conftest.er1
3690   cat conftest.err >&5
3691   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692   (exit $ac_status); } && {
3693          test -z "$ac_c_werror_flag" ||
3694          test ! -s conftest.err
3695        } && test -s conftest.$ac_objext; then
3696   ac_cv_prog_cc_g=yes
3697 else
3698   $as_echo "$as_me: failed program was:" >&5
3699 sed 's/^/| /' conftest.$ac_ext >&5
3700
3701
3702 fi
3703
3704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705 fi
3706
3707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3708 fi
3709
3710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3711    ac_c_werror_flag=$ac_save_c_werror_flag
3712 fi
3713 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3714 $as_echo "$ac_cv_prog_cc_g" >&6; }
3715 if test "$ac_test_CFLAGS" = set; then
3716   CFLAGS=$ac_save_CFLAGS
3717 elif test $ac_cv_prog_cc_g = yes; then
3718   if test "$GCC" = yes; then
3719     CFLAGS="-g -O2"
3720   else
3721     CFLAGS="-g"
3722   fi
3723 else
3724   if test "$GCC" = yes; then
3725     CFLAGS="-O2"
3726   else
3727     CFLAGS=
3728   fi
3729 fi
3730 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3731 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3732 if test "${ac_cv_prog_cc_c89+set}" = set; then
3733   $as_echo_n "(cached) " >&6
3734 else
3735   ac_cv_prog_cc_c89=no
3736 ac_save_CC=$CC
3737 cat >conftest.$ac_ext <<_ACEOF
3738 /* confdefs.h.  */
3739 _ACEOF
3740 cat confdefs.h >>conftest.$ac_ext
3741 cat >>conftest.$ac_ext <<_ACEOF
3742 /* end confdefs.h.  */
3743 #include <stdarg.h>
3744 #include <stdio.h>
3745 #include <sys/types.h>
3746 #include <sys/stat.h>
3747 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3748 struct buf { int x; };
3749 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3750 static char *e (p, i)
3751      char **p;
3752      int i;
3753 {
3754   return p[i];
3755 }
3756 static char *f (char * (*g) (char **, int), char **p, ...)
3757 {
3758   char *s;
3759   va_list v;
3760   va_start (v,p);
3761   s = g (p, va_arg (v,int));
3762   va_end (v);
3763   return s;
3764 }
3765
3766 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3767    function prototypes and stuff, but not '\xHH' hex character constants.
3768    These don't provoke an error unfortunately, instead are silently treated
3769    as 'x'.  The following induces an error, until -std is added to get
3770    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3771    array size at least.  It's necessary to write '\x00'==0 to get something
3772    that's true only with -std.  */
3773 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3774
3775 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3776    inside strings and character constants.  */
3777 #define FOO(x) 'x'
3778 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3779
3780 int test (int i, double x);
3781 struct s1 {int (*f) (int a);};
3782 struct s2 {int (*f) (double a);};
3783 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3784 int argc;
3785 char **argv;
3786 int
3787 main ()
3788 {
3789 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3790   ;
3791   return 0;
3792 }
3793 _ACEOF
3794 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3795         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3796 do
3797   CC="$ac_save_CC $ac_arg"
3798   rm -f conftest.$ac_objext
3799 if { (ac_try="$ac_compile"
3800 case "(($ac_try" in
3801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802   *) ac_try_echo=$ac_try;;
3803 esac
3804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3805 $as_echo "$ac_try_echo") >&5
3806   (eval "$ac_compile") 2>conftest.er1
3807   ac_status=$?
3808   grep -v '^ *+' conftest.er1 >conftest.err
3809   rm -f conftest.er1
3810   cat conftest.err >&5
3811   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812   (exit $ac_status); } && {
3813          test -z "$ac_c_werror_flag" ||
3814          test ! -s conftest.err
3815        } && test -s conftest.$ac_objext; then
3816   ac_cv_prog_cc_c89=$ac_arg
3817 else
3818   $as_echo "$as_me: failed program was:" >&5
3819 sed 's/^/| /' conftest.$ac_ext >&5
3820
3821
3822 fi
3823
3824 rm -f core conftest.err conftest.$ac_objext
3825   test "x$ac_cv_prog_cc_c89" != "xno" && break
3826 done
3827 rm -f conftest.$ac_ext
3828 CC=$ac_save_CC
3829
3830 fi
3831 # AC_CACHE_VAL
3832 case "x$ac_cv_prog_cc_c89" in
3833   x)
3834     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3835 $as_echo "none needed" >&6; } ;;
3836   xno)
3837     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3838 $as_echo "unsupported" >&6; } ;;
3839   *)
3840     CC="$CC $ac_cv_prog_cc_c89"
3841     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3842 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3843 esac
3844
3845
3846 ac_ext=c
3847 ac_cpp='$CPP $CPPFLAGS'
3848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3851
3852
3853 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3854 # but has idiosyncrasies of its own.  We assume icc will define
3855 # __INTEL_COMPILER regardless of CFLAGS.
3856
3857 cat >conftest.$ac_ext <<_ACEOF
3858 /* confdefs.h.  */
3859 _ACEOF
3860 cat confdefs.h >>conftest.$ac_ext
3861 cat >>conftest.$ac_ext <<_ACEOF
3862 /* end confdefs.h.  */
3863
3864 int
3865 main ()
3866 {
3867 #ifndef __INTEL_COMPILER
3868 choke me
3869 #endif
3870   ;
3871   return 0;
3872 }
3873 _ACEOF
3874 rm -f conftest.$ac_objext
3875 if { (ac_try="$ac_compile"
3876 case "(($ac_try" in
3877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878   *) ac_try_echo=$ac_try;;
3879 esac
3880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3881 $as_echo "$ac_try_echo") >&5
3882   (eval "$ac_compile") 2>conftest.er1
3883   ac_status=$?
3884   grep -v '^ *+' conftest.er1 >conftest.err
3885   rm -f conftest.er1
3886   cat conftest.err >&5
3887   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888   (exit $ac_status); } && {
3889          test -z "$ac_c_werror_flag" ||
3890          test ! -s conftest.err
3891        } && test -s conftest.$ac_objext; then
3892   ICC=yes
3893 else
3894   $as_echo "$as_me: failed program was:" >&5
3895 sed 's/^/| /' conftest.$ac_ext >&5
3896
3897         ICC=no
3898 fi
3899
3900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901
3902 # Check if it's Sun Studio compiler. We assume that
3903 # __SUNPRO_C will be defined for Sun Studio compilers
3904 cat >conftest.$ac_ext <<_ACEOF
3905 /* confdefs.h.  */
3906 _ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h.  */
3910
3911 int
3912 main ()
3913 {
3914 #ifndef __SUNPRO_C
3915 choke me
3916 #endif
3917   ;
3918   return 0;
3919 }
3920 _ACEOF
3921 rm -f conftest.$ac_objext
3922 if { (ac_try="$ac_compile"
3923 case "(($ac_try" in
3924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925   *) ac_try_echo=$ac_try;;
3926 esac
3927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3928 $as_echo "$ac_try_echo") >&5
3929   (eval "$ac_compile") 2>conftest.er1
3930   ac_status=$?
3931   grep -v '^ *+' conftest.er1 >conftest.err
3932   rm -f conftest.er1
3933   cat conftest.err >&5
3934   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935   (exit $ac_status); } && {
3936          test -z "$ac_c_werror_flag" ||
3937          test ! -s conftest.err
3938        } && test -s conftest.$ac_objext; then
3939   SUN_STUDIO_CC=yes
3940 else
3941   $as_echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3943
3944         SUN_STUDIO_CC=no
3945 fi
3946
3947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3948
3949
3950
3951 unset CFLAGS
3952
3953 #
3954 # Read the template
3955 #
3956 . "$srcdir/src/template/$template" || exit
3957
3958 # CFLAGS are selected so:
3959 # If the user specifies something in the environment, that is used.
3960 # else:  If the template file set something, that is used.
3961 # else:  If coverage was enabled, don't set anything.
3962 # else:  If the compiler is GCC, then we use -O2.
3963 # else:  If the compiler is something else, then we use -O, unless debugging.
3964
3965 if test "$ac_env_CFLAGS_set" = set; then
3966   CFLAGS=$ac_env_CFLAGS_value
3967 elif test "${CFLAGS+set}" = set; then
3968   : # (keep what template set)
3969 elif test "$enable_coverage" = yes; then
3970   : # no optimization by default
3971 elif test "$GCC" = yes; then
3972   CFLAGS="-O2"
3973 else
3974   # if the user selected debug mode, don't use -O
3975   if test "$enable_debug" != yes; then
3976     CFLAGS="-O"
3977   fi
3978 fi
3979
3980 # Some versions of GCC support some additional useful warning flags.
3981 # Check whether they are supported, and add them to CFLAGS if so.
3982 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
3983 # but has its own.  Also check other compiler-specific flags here.
3984
3985 if test "$GCC" = yes -a "$ICC" = no; then
3986   CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3987   # These work in some but not all gcc versions
3988   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wdeclaration-after-statement" >&5
3989 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
3990 if test "${pgac_cv_prog_cc_cflags__Wdeclaration_after_statement+set}" = set; then
3991   $as_echo_n "(cached) " >&6
3992 else
3993   pgac_save_CFLAGS=$CFLAGS
3994 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3995 ac_save_c_werror_flag=$ac_c_werror_flag
3996 ac_c_werror_flag=yes
3997 cat >conftest.$ac_ext <<_ACEOF
3998 /* confdefs.h.  */
3999 _ACEOF
4000 cat confdefs.h >>conftest.$ac_ext
4001 cat >>conftest.$ac_ext <<_ACEOF
4002 /* end confdefs.h.  */
4003
4004 int
4005 main ()
4006 {
4007
4008   ;
4009   return 0;
4010 }
4011 _ACEOF
4012 rm -f conftest.$ac_objext
4013 if { (ac_try="$ac_compile"
4014 case "(($ac_try" in
4015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016   *) ac_try_echo=$ac_try;;
4017 esac
4018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4019 $as_echo "$ac_try_echo") >&5
4020   (eval "$ac_compile") 2>conftest.er1
4021   ac_status=$?
4022   grep -v '^ *+' conftest.er1 >conftest.err
4023   rm -f conftest.er1
4024   cat conftest.err >&5
4025   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026   (exit $ac_status); } && {
4027          test -z "$ac_c_werror_flag" ||
4028          test ! -s conftest.err
4029        } && test -s conftest.$ac_objext; then
4030   pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
4031 else
4032   $as_echo "$as_me: failed program was:" >&5
4033 sed 's/^/| /' conftest.$ac_ext >&5
4034
4035         pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
4036 fi
4037
4038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4039 ac_c_werror_flag=$ac_save_c_werror_flag
4040 CFLAGS="$pgac_save_CFLAGS"
4041 fi
4042 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
4043 $as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
4044 if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
4045   CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4046 fi
4047
4048   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wendif-labels" >&5
4049 $as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
4050 if test "${pgac_cv_prog_cc_cflags__Wendif_labels+set}" = set; then
4051   $as_echo_n "(cached) " >&6
4052 else
4053   pgac_save_CFLAGS=$CFLAGS
4054 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4055 ac_save_c_werror_flag=$ac_c_werror_flag
4056 ac_c_werror_flag=yes
4057 cat >conftest.$ac_ext <<_ACEOF
4058 /* confdefs.h.  */
4059 _ACEOF
4060 cat confdefs.h >>conftest.$ac_ext
4061 cat >>conftest.$ac_ext <<_ACEOF
4062 /* end confdefs.h.  */
4063
4064 int
4065 main ()
4066 {
4067
4068   ;
4069   return 0;
4070 }
4071 _ACEOF
4072 rm -f conftest.$ac_objext
4073 if { (ac_try="$ac_compile"
4074 case "(($ac_try" in
4075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076   *) ac_try_echo=$ac_try;;
4077 esac
4078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4079 $as_echo "$ac_try_echo") >&5
4080   (eval "$ac_compile") 2>conftest.er1
4081   ac_status=$?
4082   grep -v '^ *+' conftest.er1 >conftest.err
4083   rm -f conftest.er1
4084   cat conftest.err >&5
4085   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086   (exit $ac_status); } && {
4087          test -z "$ac_c_werror_flag" ||
4088          test ! -s conftest.err
4089        } && test -s conftest.$ac_objext; then
4090   pgac_cv_prog_cc_cflags__Wendif_labels=yes
4091 else
4092   $as_echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4094
4095         pgac_cv_prog_cc_cflags__Wendif_labels=no
4096 fi
4097
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099 ac_c_werror_flag=$ac_save_c_werror_flag
4100 CFLAGS="$pgac_save_CFLAGS"
4101 fi
4102 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
4103 $as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
4104 if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
4105   CFLAGS="$CFLAGS -Wendif-labels"
4106 fi
4107
4108   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5
4109 $as_echo_n "checking whether $CC supports -Wmissing-format-attribute... " >&6; }
4110 if test "${pgac_cv_prog_cc_cflags__Wmissing_format_attribute+set}" = set; then
4111   $as_echo_n "(cached) " >&6
4112 else
4113   pgac_save_CFLAGS=$CFLAGS
4114 CFLAGS="$pgac_save_CFLAGS -Wmissing-format-attribute"
4115 ac_save_c_werror_flag=$ac_c_werror_flag
4116 ac_c_werror_flag=yes
4117 cat >conftest.$ac_ext <<_ACEOF
4118 /* confdefs.h.  */
4119 _ACEOF
4120 cat confdefs.h >>conftest.$ac_ext
4121 cat >>conftest.$ac_ext <<_ACEOF
4122 /* end confdefs.h.  */
4123
4124 int
4125 main ()
4126 {
4127
4128   ;
4129   return 0;
4130 }
4131 _ACEOF
4132 rm -f conftest.$ac_objext
4133 if { (ac_try="$ac_compile"
4134 case "(($ac_try" in
4135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136   *) ac_try_echo=$ac_try;;
4137 esac
4138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4139 $as_echo "$ac_try_echo") >&5
4140   (eval "$ac_compile") 2>conftest.er1
4141   ac_status=$?
4142   grep -v '^ *+' conftest.er1 >conftest.err
4143   rm -f conftest.er1
4144   cat conftest.err >&5
4145   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146   (exit $ac_status); } && {
4147          test -z "$ac_c_werror_flag" ||
4148          test ! -s conftest.err
4149        } && test -s conftest.$ac_objext; then
4150   pgac_cv_prog_cc_cflags__Wmissing_format_attribute=yes
4151 else
4152   $as_echo "$as_me: failed program was:" >&5
4153 sed 's/^/| /' conftest.$ac_ext >&5
4154
4155         pgac_cv_prog_cc_cflags__Wmissing_format_attribute=no
4156 fi
4157
4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159 ac_c_werror_flag=$ac_save_c_werror_flag
4160 CFLAGS="$pgac_save_CFLAGS"
4161 fi
4162 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&5
4163 $as_echo "$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&6; }
4164 if test x"$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" = x"yes"; then
4165   CFLAGS="$CFLAGS -Wmissing-format-attribute"
4166 fi
4167
4168   # This was included in -Wall/-Wformat in older GCC versions
4169   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wformat-security" >&5
4170 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
4171 if test "${pgac_cv_prog_cc_cflags__Wformat_security+set}" = set; then
4172   $as_echo_n "(cached) " >&6
4173 else
4174   pgac_save_CFLAGS=$CFLAGS
4175 CFLAGS="$pgac_save_CFLAGS -Wformat-security"
4176 ac_save_c_werror_flag=$ac_c_werror_flag
4177 ac_c_werror_flag=yes
4178 cat >conftest.$ac_ext <<_ACEOF
4179 /* confdefs.h.  */
4180 _ACEOF
4181 cat confdefs.h >>conftest.$ac_ext
4182 cat >>conftest.$ac_ext <<_ACEOF
4183 /* end confdefs.h.  */
4184
4185 int
4186 main ()
4187 {
4188
4189   ;
4190   return 0;
4191 }
4192 _ACEOF
4193 rm -f conftest.$ac_objext
4194 if { (ac_try="$ac_compile"
4195 case "(($ac_try" in
4196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4197   *) ac_try_echo=$ac_try;;
4198 esac
4199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4200 $as_echo "$ac_try_echo") >&5
4201   (eval "$ac_compile") 2>conftest.er1
4202   ac_status=$?
4203   grep -v '^ *+' conftest.er1 >conftest.err
4204   rm -f conftest.er1
4205   cat conftest.err >&5
4206   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207   (exit $ac_status); } && {
4208          test -z "$ac_c_werror_flag" ||
4209          test ! -s conftest.err
4210        } && test -s conftest.$ac_objext; then
4211   pgac_cv_prog_cc_cflags__Wformat_security=yes
4212 else
4213   $as_echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4215
4216         pgac_cv_prog_cc_cflags__Wformat_security=no
4217 fi
4218
4219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4220 ac_c_werror_flag=$ac_save_c_werror_flag
4221 CFLAGS="$pgac_save_CFLAGS"
4222 fi
4223 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
4224 $as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
4225 if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
4226   CFLAGS="$CFLAGS -Wformat-security"
4227 fi
4228
4229   # Disable strict-aliasing rules; needed for gcc 3.3+
4230   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4231 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4232 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4233   $as_echo_n "(cached) " >&6
4234 else
4235   pgac_save_CFLAGS=$CFLAGS
4236 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4237 ac_save_c_werror_flag=$ac_c_werror_flag
4238 ac_c_werror_flag=yes
4239 cat >conftest.$ac_ext <<_ACEOF
4240 /* confdefs.h.  */
4241 _ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h.  */
4245
4246 int
4247 main ()
4248 {
4249
4250   ;
4251   return 0;
4252 }
4253 _ACEOF
4254 rm -f conftest.$ac_objext
4255 if { (ac_try="$ac_compile"
4256 case "(($ac_try" in
4257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258   *) ac_try_echo=$ac_try;;
4259 esac
4260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4261 $as_echo "$ac_try_echo") >&5
4262   (eval "$ac_compile") 2>conftest.er1
4263   ac_status=$?
4264   grep -v '^ *+' conftest.er1 >conftest.err
4265   rm -f conftest.er1
4266   cat conftest.err >&5
4267   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268   (exit $ac_status); } && {
4269          test -z "$ac_c_werror_flag" ||
4270          test ! -s conftest.err
4271        } && test -s conftest.$ac_objext; then
4272   pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4273 else
4274   $as_echo "$as_me: failed program was:" >&5
4275 sed 's/^/| /' conftest.$ac_ext >&5
4276
4277         pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4278 fi
4279
4280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4281 ac_c_werror_flag=$ac_save_c_werror_flag
4282 CFLAGS="$pgac_save_CFLAGS"
4283 fi
4284 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4285 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4286 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4287   CFLAGS="$CFLAGS -fno-strict-aliasing"
4288 fi
4289
4290   # Disable optimizations that assume no overflow; needed for gcc 4.3+
4291   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fwrapv" >&5
4292 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4293 if test "${pgac_cv_prog_cc_cflags__fwrapv+set}" = set; then
4294   $as_echo_n "(cached) " >&6
4295 else
4296   pgac_save_CFLAGS=$CFLAGS
4297 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4298 ac_save_c_werror_flag=$ac_c_werror_flag
4299 ac_c_werror_flag=yes
4300 cat >conftest.$ac_ext <<_ACEOF
4301 /* confdefs.h.  */
4302 _ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h.  */
4306
4307 int
4308 main ()
4309 {
4310
4311   ;
4312   return 0;
4313 }
4314 _ACEOF
4315 rm -f conftest.$ac_objext
4316 if { (ac_try="$ac_compile"
4317 case "(($ac_try" in
4318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319   *) ac_try_echo=$ac_try;;
4320 esac
4321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4322 $as_echo "$ac_try_echo") >&5
4323   (eval "$ac_compile") 2>conftest.er1
4324   ac_status=$?
4325   grep -v '^ *+' conftest.er1 >conftest.err
4326   rm -f conftest.er1
4327   cat conftest.err >&5
4328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329   (exit $ac_status); } && {
4330          test -z "$ac_c_werror_flag" ||
4331          test ! -s conftest.err
4332        } && test -s conftest.$ac_objext; then
4333   pgac_cv_prog_cc_cflags__fwrapv=yes
4334 else
4335   $as_echo "$as_me: failed program was:" >&5
4336 sed 's/^/| /' conftest.$ac_ext >&5
4337
4338         pgac_cv_prog_cc_cflags__fwrapv=no
4339 fi
4340
4341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4342 ac_c_werror_flag=$ac_save_c_werror_flag
4343 CFLAGS="$pgac_save_CFLAGS"
4344 fi
4345 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4346 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4347 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4348   CFLAGS="$CFLAGS -fwrapv"
4349 fi
4350
4351   # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
4352   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fexcess-precision=standard" >&5
4353 $as_echo_n "checking whether $CC supports -fexcess-precision=standard... " >&6; }
4354 if test "${pgac_cv_prog_cc_cflags__fexcess_precision_standard+set}" = set; then
4355   $as_echo_n "(cached) " >&6
4356 else
4357   pgac_save_CFLAGS=$CFLAGS
4358 CFLAGS="$pgac_save_CFLAGS -fexcess-precision=standard"
4359 ac_save_c_werror_flag=$ac_c_werror_flag
4360 ac_c_werror_flag=yes
4361 cat >conftest.$ac_ext <<_ACEOF
4362 /* confdefs.h.  */
4363 _ACEOF
4364 cat confdefs.h >>conftest.$ac_ext
4365 cat >>conftest.$ac_ext <<_ACEOF
4366 /* end confdefs.h.  */
4367
4368 int
4369 main ()
4370 {
4371
4372   ;
4373   return 0;
4374 }
4375 _ACEOF
4376 rm -f conftest.$ac_objext
4377 if { (ac_try="$ac_compile"
4378 case "(($ac_try" in
4379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380   *) ac_try_echo=$ac_try;;
4381 esac
4382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4383 $as_echo "$ac_try_echo") >&5
4384   (eval "$ac_compile") 2>conftest.er1
4385   ac_status=$?
4386   grep -v '^ *+' conftest.er1 >conftest.err
4387   rm -f conftest.er1
4388   cat conftest.err >&5
4389   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390   (exit $ac_status); } && {
4391          test -z "$ac_c_werror_flag" ||
4392          test ! -s conftest.err
4393        } && test -s conftest.$ac_objext; then
4394   pgac_cv_prog_cc_cflags__fexcess_precision_standard=yes
4395 else
4396   $as_echo "$as_me: failed program was:" >&5
4397 sed 's/^/| /' conftest.$ac_ext >&5
4398
4399         pgac_cv_prog_cc_cflags__fexcess_precision_standard=no
4400 fi
4401
4402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4403 ac_c_werror_flag=$ac_save_c_werror_flag
4404 CFLAGS="$pgac_save_CFLAGS"
4405 fi
4406 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&5
4407 $as_echo "$pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&6; }
4408 if test x"$pgac_cv_prog_cc_cflags__fexcess_precision_standard" = x"yes"; then
4409   CFLAGS="$CFLAGS -fexcess-precision=standard"
4410 fi
4411
4412 elif test "$ICC" = yes; then
4413   # Intel's compiler has a bug/misoptimization in checking for
4414   # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4415   { $as_echo "$as_me:$LINENO: checking whether $CC supports -mp1" >&5
4416 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4417 if test "${pgac_cv_prog_cc_cflags__mp1+set}" = set; then
4418   $as_echo_n "(cached) " >&6
4419 else
4420   pgac_save_CFLAGS=$CFLAGS
4421 CFLAGS="$pgac_save_CFLAGS -mp1"
4422 ac_save_c_werror_flag=$ac_c_werror_flag
4423 ac_c_werror_flag=yes
4424 cat >conftest.$ac_ext <<_ACEOF
4425 /* confdefs.h.  */
4426 _ACEOF
4427 cat confdefs.h >>conftest.$ac_ext
4428 cat >>conftest.$ac_ext <<_ACEOF
4429 /* end confdefs.h.  */
4430
4431 int
4432 main ()
4433 {
4434
4435   ;
4436   return 0;
4437 }
4438 _ACEOF
4439 rm -f conftest.$ac_objext
4440 if { (ac_try="$ac_compile"
4441 case "(($ac_try" in
4442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443   *) ac_try_echo=$ac_try;;
4444 esac
4445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4446 $as_echo "$ac_try_echo") >&5
4447   (eval "$ac_compile") 2>conftest.er1
4448   ac_status=$?
4449   grep -v '^ *+' conftest.er1 >conftest.err
4450   rm -f conftest.er1
4451   cat conftest.err >&5
4452   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453   (exit $ac_status); } && {
4454          test -z "$ac_c_werror_flag" ||
4455          test ! -s conftest.err
4456        } && test -s conftest.$ac_objext; then
4457   pgac_cv_prog_cc_cflags__mp1=yes
4458 else
4459   $as_echo "$as_me: failed program was:" >&5
4460 sed 's/^/| /' conftest.$ac_ext >&5
4461
4462         pgac_cv_prog_cc_cflags__mp1=no
4463 fi
4464
4465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4466 ac_c_werror_flag=$ac_save_c_werror_flag
4467 CFLAGS="$pgac_save_CFLAGS"
4468 fi
4469 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4470 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4471 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4472   CFLAGS="$CFLAGS -mp1"
4473 fi
4474
4475   # Make sure strict aliasing is off (though this is said to be the default)
4476   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4477 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4478 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4479   $as_echo_n "(cached) " >&6
4480 else
4481   pgac_save_CFLAGS=$CFLAGS
4482 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4483 ac_save_c_werror_flag=$ac_c_werror_flag
4484 ac_c_werror_flag=yes
4485 cat >conftest.$ac_ext <<_ACEOF
4486 /* confdefs.h.  */
4487 _ACEOF
4488 cat confdefs.h >>conftest.$ac_ext
4489 cat >>conftest.$ac_ext <<_ACEOF
4490 /* end confdefs.h.  */
4491
4492 int
4493 main ()
4494 {
4495
4496   ;
4497   return 0;
4498 }
4499 _ACEOF
4500 rm -f conftest.$ac_objext
4501 if { (ac_try="$ac_compile"
4502 case "(($ac_try" in
4503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504   *) ac_try_echo=$ac_try;;
4505 esac
4506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4507 $as_echo "$ac_try_echo") >&5
4508   (eval "$ac_compile") 2>conftest.er1
4509   ac_status=$?
4510   grep -v '^ *+' conftest.er1 >conftest.err
4511   rm -f conftest.er1
4512   cat conftest.err >&5
4513   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514   (exit $ac_status); } && {
4515          test -z "$ac_c_werror_flag" ||
4516          test ! -s conftest.err
4517        } && test -s conftest.$ac_objext; then
4518   pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4519 else
4520   $as_echo "$as_me: failed program was:" >&5
4521 sed 's/^/| /' conftest.$ac_ext >&5
4522
4523         pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4524 fi
4525
4526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4527 ac_c_werror_flag=$ac_save_c_werror_flag
4528 CFLAGS="$pgac_save_CFLAGS"
4529 fi
4530 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4531 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4532 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4533   CFLAGS="$CFLAGS -fno-strict-aliasing"
4534 fi
4535
4536 elif test "$PORTNAME" = "aix"; then
4537   # AIX's xlc has to have strict aliasing turned off too
4538   { $as_echo "$as_me:$LINENO: checking whether $CC supports -qnoansialias" >&5
4539 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4540 if test "${pgac_cv_prog_cc_cflags__qnoansialias+set}" = set; then
4541   $as_echo_n "(cached) " >&6
4542 else
4543   pgac_save_CFLAGS=$CFLAGS
4544 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4545 ac_save_c_werror_flag=$ac_c_werror_flag
4546 ac_c_werror_flag=yes
4547 cat >conftest.$ac_ext <<_ACEOF
4548 /* confdefs.h.  */
4549 _ACEOF
4550 cat confdefs.h >>conftest.$ac_ext
4551 cat >>conftest.$ac_ext <<_ACEOF
4552 /* end confdefs.h.  */
4553
4554 int
4555 main ()
4556 {
4557
4558   ;
4559   return 0;
4560 }
4561 _ACEOF
4562 rm -f conftest.$ac_objext
4563 if { (ac_try="$ac_compile"
4564 case "(($ac_try" in
4565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566   *) ac_try_echo=$ac_try;;
4567 esac
4568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4569 $as_echo "$ac_try_echo") >&5
4570   (eval "$ac_compile") 2>conftest.er1
4571   ac_status=$?
4572   grep -v '^ *+' conftest.er1 >conftest.err
4573   rm -f conftest.er1
4574   cat conftest.err >&5
4575   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576   (exit $ac_status); } && {
4577          test -z "$ac_c_werror_flag" ||
4578          test ! -s conftest.err
4579        } && test -s conftest.$ac_objext; then
4580   pgac_cv_prog_cc_cflags__qnoansialias=yes
4581 else
4582   $as_echo "$as_me: failed program was:" >&5
4583 sed 's/^/| /' conftest.$ac_ext >&5
4584
4585         pgac_cv_prog_cc_cflags__qnoansialias=no
4586 fi
4587
4588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4589 ac_c_werror_flag=$ac_save_c_werror_flag
4590 CFLAGS="$pgac_save_CFLAGS"
4591 fi
4592 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4593 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4594 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4595   CFLAGS="$CFLAGS -qnoansialias"
4596 fi
4597
4598 elif test "$PORTNAME" = "hpux"; then
4599   # On some versions of HP-UX, libm functions do not set errno by default.
4600   # Fix that by using +Olibmerrno if the compiler recognizes it.
4601   { $as_echo "$as_me:$LINENO: checking whether $CC supports +Olibmerrno" >&5
4602 $as_echo_n "checking whether $CC supports +Olibmerrno... " >&6; }
4603 if test "${pgac_cv_prog_cc_cflags_pOlibmerrno+set}" = set; then
4604   $as_echo_n "(cached) " >&6
4605 else
4606   pgac_save_CFLAGS=$CFLAGS
4607 CFLAGS="$pgac_save_CFLAGS +Olibmerrno"
4608 ac_save_c_werror_flag=$ac_c_werror_flag
4609 ac_c_werror_flag=yes
4610 cat >conftest.$ac_ext <<_ACEOF
4611 /* confdefs.h.  */
4612 _ACEOF
4613 cat confdefs.h >>conftest.$ac_ext
4614 cat >>conftest.$ac_ext <<_ACEOF
4615 /* end confdefs.h.  */
4616
4617 int
4618 main ()
4619 {
4620
4621   ;
4622   return 0;
4623 }
4624 _ACEOF
4625 rm -f conftest.$ac_objext
4626 if { (ac_try="$ac_compile"
4627 case "(($ac_try" in
4628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4629   *) ac_try_echo=$ac_try;;
4630 esac
4631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4632 $as_echo "$ac_try_echo") >&5
4633   (eval "$ac_compile") 2>conftest.er1
4634   ac_status=$?
4635   grep -v '^ *+' conftest.er1 >conftest.err
4636   rm -f conftest.er1
4637   cat conftest.err >&5
4638   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639   (exit $ac_status); } && {
4640          test -z "$ac_c_werror_flag" ||
4641          test ! -s conftest.err
4642        } && test -s conftest.$ac_objext; then
4643   pgac_cv_prog_cc_cflags_pOlibmerrno=yes
4644 else
4645   $as_echo "$as_me: failed program was:" >&5
4646 sed 's/^/| /' conftest.$ac_ext >&5
4647
4648         pgac_cv_prog_cc_cflags_pOlibmerrno=no
4649 fi
4650
4651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4652 ac_c_werror_flag=$ac_save_c_werror_flag
4653 CFLAGS="$pgac_save_CFLAGS"
4654 fi
4655 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags_pOlibmerrno" >&5
4656 $as_echo "$pgac_cv_prog_cc_cflags_pOlibmerrno" >&6; }
4657 if test x"$pgac_cv_prog_cc_cflags_pOlibmerrno" = x"yes"; then
4658   CFLAGS="$CFLAGS +Olibmerrno"
4659 fi
4660
4661 fi
4662
4663 # supply -g if --enable-debug
4664 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4665   CFLAGS="$CFLAGS -g"
4666 fi
4667
4668 # enable code coverage if --enable-coverage
4669 if test "$enable_coverage" = yes; then
4670   if test "$GCC" = yes; then
4671     CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4672   else
4673     { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4674 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4675    { (exit 1); exit 1; }; }
4676   fi
4677 fi
4678
4679 # enable profiling if --enable-profiling
4680 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4681   if test "$GCC" = yes; then
4682
4683 cat >>confdefs.h <<\_ACEOF
4684 #define PROFILE_PID_DIR 1
4685 _ACEOF
4686
4687     CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4688   else
4689     { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4690 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4691    { (exit 1); exit 1; }; }
4692   fi
4693 fi
4694
4695 # We already have this in Makefile.win32, but configure needs it too
4696 if test "$PORTNAME" = "win32"; then
4697   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4698 fi
4699
4700 # Check if the compiler still works with the template settings
4701 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4702 $as_echo_n "checking whether the C compiler still works... " >&6; }
4703 cat >conftest.$ac_ext <<_ACEOF
4704 /* confdefs.h.  */
4705 _ACEOF
4706 cat confdefs.h >>conftest.$ac_ext
4707 cat >>conftest.$ac_ext <<_ACEOF
4708 /* end confdefs.h.  */
4709
4710 int
4711 main ()
4712 {
4713 return 0;
4714   ;
4715   return 0;
4716 }
4717 _ACEOF
4718 rm -f conftest.$ac_objext conftest$ac_exeext
4719 if { (ac_try="$ac_link"
4720 case "(($ac_try" in
4721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4722   *) ac_try_echo=$ac_try;;
4723 esac
4724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4725 $as_echo "$ac_try_echo") >&5
4726   (eval "$ac_link") 2>conftest.er1
4727   ac_status=$?
4728   grep -v '^ *+' conftest.er1 >conftest.err
4729   rm -f conftest.er1
4730   cat conftest.err >&5
4731   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732   (exit $ac_status); } && {
4733          test -z "$ac_c_werror_flag" ||
4734          test ! -s conftest.err
4735        } && test -s conftest$ac_exeext && {
4736          test "$cross_compiling" = yes ||
4737          $as_test_x conftest$ac_exeext
4738        }; then
4739   { $as_echo "$as_me:$LINENO: result: yes" >&5
4740 $as_echo "yes" >&6; }
4741 else
4742   $as_echo "$as_me: failed program was:" >&5
4743 sed 's/^/| /' conftest.$ac_ext >&5
4744
4745         { $as_echo "$as_me:$LINENO: result: no" >&5
4746 $as_echo "no" >&6; }
4747    { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4748 $as_echo "$as_me: error: cannot proceed" >&2;}
4749    { (exit 1); exit 1; }; }
4750 fi
4751
4752 rm -rf conftest.dSYM
4753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4754       conftest$ac_exeext conftest.$ac_ext
4755
4756 # Defend against gcc -ffast-math
4757 if test "$GCC" = yes; then
4758 cat >conftest.$ac_ext <<_ACEOF
4759 /* confdefs.h.  */
4760 _ACEOF
4761 cat confdefs.h >>conftest.$ac_ext
4762 cat >>conftest.$ac_ext <<_ACEOF
4763 /* end confdefs.h.  */
4764
4765 int
4766 main ()
4767 {
4768 #ifdef __FAST_MATH__
4769 choke me
4770 #endif
4771   ;
4772   return 0;
4773 }
4774 _ACEOF
4775 rm -f conftest.$ac_objext
4776 if { (ac_try="$ac_compile"
4777 case "(($ac_try" in
4778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4779   *) ac_try_echo=$ac_try;;
4780 esac
4781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4782 $as_echo "$ac_try_echo") >&5
4783   (eval "$ac_compile") 2>conftest.er1
4784   ac_status=$?
4785   grep -v '^ *+' conftest.er1 >conftest.err
4786   rm -f conftest.er1
4787   cat conftest.err >&5
4788   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789   (exit $ac_status); } && {
4790          test -z "$ac_c_werror_flag" ||
4791          test ! -s conftest.err
4792        } && test -s conftest.$ac_objext; then
4793   :
4794 else
4795   $as_echo "$as_me: failed program was:" >&5
4796 sed 's/^/| /' conftest.$ac_ext >&5
4797
4798         { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4799 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4800    { (exit 1); exit 1; }; }
4801 fi
4802
4803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4804 fi
4805
4806 ac_ext=c
4807 ac_cpp='$CPP $CPPFLAGS'
4808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4811 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4812 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4813 # On Suns, sometimes $CPP names a directory.
4814 if test -n "$CPP" && test -d "$CPP"; then
4815   CPP=
4816 fi
4817 if test -z "$CPP"; then
4818   if test "${ac_cv_prog_CPP+set}" = set; then
4819   $as_echo_n "(cached) " >&6
4820 else
4821       # Double quotes because CPP needs to be expanded
4822     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4823     do
4824       ac_preproc_ok=false
4825 for ac_c_preproc_warn_flag in '' yes
4826 do
4827   # Use a header file that comes with gcc, so configuring glibc
4828   # with a fresh cross-compiler works.
4829   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4830   # <limits.h> exists even on freestanding compilers.
4831   # On the NeXT, cc -E runs the code through the compiler's parser,
4832   # not just through cpp. "Syntax error" is here to catch this case.
4833   cat >conftest.$ac_ext <<_ACEOF
4834 /* confdefs.h.  */
4835 _ACEOF
4836 cat confdefs.h >>conftest.$ac_ext
4837 cat >>conftest.$ac_ext <<_ACEOF
4838 /* end confdefs.h.  */
4839 #ifdef __STDC__
4840 # include <limits.h>
4841 #else
4842 # include <assert.h>
4843 #endif
4844                      Syntax error
4845 _ACEOF
4846 if { (ac_try="$ac_cpp conftest.$ac_ext"
4847 case "(($ac_try" in
4848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4849   *) ac_try_echo=$ac_try;;
4850 esac
4851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4852 $as_echo "$ac_try_echo") >&5
4853   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4854   ac_status=$?
4855   grep -v '^ *+' conftest.er1 >conftest.err
4856   rm -f conftest.er1
4857   cat conftest.err >&5
4858   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859   (exit $ac_status); } >/dev/null && {
4860          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4861          test ! -s conftest.err
4862        }; then
4863   :
4864 else
4865   $as_echo "$as_me: failed program was:" >&5
4866 sed 's/^/| /' conftest.$ac_ext >&5
4867
4868   # Broken: fails on valid input.
4869 continue
4870 fi
4871
4872 rm -f conftest.err conftest.$ac_ext
4873
4874   # OK, works on sane cases.  Now check whether nonexistent headers
4875   # can be detected and how.
4876   cat >conftest.$ac_ext <<_ACEOF
4877 /* confdefs.h.  */
4878 _ACEOF
4879 cat confdefs.h >>conftest.$ac_ext
4880 cat >>conftest.$ac_ext <<_ACEOF
4881 /* end confdefs.h.  */
4882 #include <ac_nonexistent.h>
4883 _ACEOF
4884 if { (ac_try="$ac_cpp conftest.$ac_ext"
4885 case "(($ac_try" in
4886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4887   *) ac_try_echo=$ac_try;;
4888 esac
4889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4890 $as_echo "$ac_try_echo") >&5
4891   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4892   ac_status=$?
4893   grep -v '^ *+' conftest.er1 >conftest.err
4894   rm -f conftest.er1
4895   cat conftest.err >&5
4896   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897   (exit $ac_status); } >/dev/null && {
4898          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4899          test ! -s conftest.err
4900        }; then
4901   # Broken: success on invalid input.
4902 continue
4903 else
4904   $as_echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4906
4907   # Passes both tests.
4908 ac_preproc_ok=:
4909 break
4910 fi
4911
4912 rm -f conftest.err conftest.$ac_ext
4913
4914 done
4915 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4916 rm -f conftest.err conftest.$ac_ext
4917 if $ac_preproc_ok; then
4918   break
4919 fi
4920
4921     done
4922     ac_cv_prog_CPP=$CPP
4923
4924 fi
4925   CPP=$ac_cv_prog_CPP
4926 else
4927   ac_cv_prog_CPP=$CPP
4928 fi
4929 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4930 $as_echo "$CPP" >&6; }
4931 ac_preproc_ok=false
4932 for ac_c_preproc_warn_flag in '' yes
4933 do
4934   # Use a header file that comes with gcc, so configuring glibc
4935   # with a fresh cross-compiler works.
4936   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4937   # <limits.h> exists even on freestanding compilers.
4938   # On the NeXT, cc -E runs the code through the compiler's parser,
4939   # not just through cpp. "Syntax error" is here to catch this case.
4940   cat >conftest.$ac_ext <<_ACEOF
4941 /* confdefs.h.  */
4942 _ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h.  */
4946 #ifdef __STDC__
4947 # include <limits.h>
4948 #else
4949 # include <assert.h>
4950 #endif
4951                      Syntax error
4952 _ACEOF
4953 if { (ac_try="$ac_cpp conftest.$ac_ext"
4954 case "(($ac_try" in
4955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4956   *) ac_try_echo=$ac_try;;
4957 esac
4958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4959 $as_echo "$ac_try_echo") >&5
4960   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4961   ac_status=$?
4962   grep -v '^ *+' conftest.er1 >conftest.err
4963   rm -f conftest.er1
4964   cat conftest.err >&5
4965   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966   (exit $ac_status); } >/dev/null && {
4967          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4968          test ! -s conftest.err
4969        }; then
4970   :
4971 else
4972   $as_echo "$as_me: failed program was:" >&5
4973 sed 's/^/| /' conftest.$ac_ext >&5
4974
4975   # Broken: fails on valid input.
4976 continue
4977 fi
4978
4979 rm -f conftest.err conftest.$ac_ext
4980
4981   # OK, works on sane cases.  Now check whether nonexistent headers
4982   # can be detected and how.
4983   cat >conftest.$ac_ext <<_ACEOF
4984 /* confdefs.h.  */
4985 _ACEOF
4986 cat confdefs.h >>conftest.$ac_ext
4987 cat >>conftest.$ac_ext <<_ACEOF
4988 /* end confdefs.h.  */
4989 #include <ac_nonexistent.h>
4990 _ACEOF
4991 if { (ac_try="$ac_cpp conftest.$ac_ext"
4992 case "(($ac_try" in
4993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4994   *) ac_try_echo=$ac_try;;
4995 esac
4996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4997 $as_echo "$ac_try_echo") >&5
4998   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4999   ac_status=$?
5000   grep -v '^ *+' conftest.er1 >conftest.err
5001   rm -f conftest.er1
5002   cat conftest.err >&5
5003   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004   (exit $ac_status); } >/dev/null && {
5005          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5006          test ! -s conftest.err
5007        }; then
5008   # Broken: success on invalid input.
5009 continue
5010 else
5011   $as_echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5013
5014   # Passes both tests.
5015 ac_preproc_ok=:
5016 break
5017 fi
5018
5019 rm -f conftest.err conftest.$ac_ext
5020
5021 done
5022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5023 rm -f conftest.err conftest.$ac_ext
5024 if $ac_preproc_ok; then
5025   :
5026 else
5027   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5029 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5030 See \`config.log' for more details." >&5
5031 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5032 See \`config.log' for more details." >&2;}
5033    { (exit 1); exit 1; }; }; }
5034 fi
5035
5036 ac_ext=c
5037 ac_cpp='$CPP $CPPFLAGS'
5038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5041
5042
5043
5044
5045 #
5046 # Set up TAS assembly code if needed; the template file has now had its
5047 # chance to request this.
5048 #
5049 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
5050
5051
5052 if test "$need_tas" = yes ; then
5053   TAS=tas.o
5054 else
5055   TAS=""
5056 fi
5057
5058
5059
5060 #
5061 # Automatic dependency tracking
5062 #
5063
5064
5065 # Check whether --enable-depend was given.
5066 if test "${enable_depend+set}" = set; then
5067   enableval=$enable_depend;
5068   case $enableval in
5069     yes)
5070       autodepend=yes
5071       ;;
5072     no)
5073       :
5074       ;;
5075     *)
5076       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
5077 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
5078    { (exit 1); exit 1; }; }
5079       ;;
5080   esac
5081
5082 else
5083   enable_depend=no
5084
5085 fi
5086
5087
5088
5089
5090
5091 #
5092 # Enable assert checks
5093 #
5094
5095
5096 # Check whether --enable-cassert was given.
5097 if test "${enable_cassert+set}" = set; then
5098   enableval=$enable_cassert;
5099   case $enableval in
5100     yes)
5101
5102 cat >>confdefs.h <<\_ACEOF
5103 #define USE_ASSERT_CHECKING 1
5104 _ACEOF
5105
5106       ;;
5107     no)
5108       :
5109       ;;
5110     *)
5111       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
5112 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
5113    { (exit 1); exit 1; }; }
5114       ;;
5115   esac
5116
5117 else
5118   enable_cassert=no
5119
5120 fi
5121
5122
5123
5124
5125 #
5126 # Include directories
5127 #
5128 ac_save_IFS=$IFS
5129 IFS="${IFS}${PATH_SEPARATOR}"
5130 # SRCH_INC comes from the template file
5131 for dir in $with_includes $SRCH_INC; do
5132   if test -d "$dir"; then
5133     INCLUDES="$INCLUDES -I$dir"
5134   else
5135     { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
5136 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
5137   fi
5138 done
5139 IFS=$ac_save_IFS
5140
5141
5142
5143 #
5144 # Library directories
5145 #
5146 ac_save_IFS=$IFS
5147 IFS="${IFS}${PATH_SEPARATOR}"
5148 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
5149 for dir in $LIBRARY_DIRS $SRCH_LIB; do
5150   if test -d "$dir"; then
5151     LIBDIRS="$LIBDIRS -L$dir"
5152   else
5153     { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
5154 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
5155   fi
5156 done
5157 IFS=$ac_save_IFS
5158
5159 #
5160 # Enable thread-safe client libraries
5161 #
5162 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
5163 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
5164
5165
5166 # Check whether --enable-thread-safety was given.
5167 if test "${enable_thread_safety+set}" = set; then
5168   enableval=$enable_thread_safety;
5169   case $enableval in
5170     yes)
5171       :
5172       ;;
5173     no)
5174       :
5175       ;;
5176     *)
5177       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
5178 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
5179    { (exit 1); exit 1; }; }
5180       ;;
5181   esac
5182
5183 else
5184   enable_thread_safety=yes
5185
5186 fi
5187
5188
5189 if test "$enable_thread_safety" = yes; then
5190
5191 cat >>confdefs.h <<\_ACEOF
5192 #define ENABLE_THREAD_SAFETY 1
5193 _ACEOF
5194
5195 fi
5196 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
5197 $as_echo "$enable_thread_safety" >&6; }
5198
5199
5200 #
5201 # Optionally build Tcl modules (PL/Tcl)
5202 #
5203 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
5204 $as_echo_n "checking whether to build with Tcl... " >&6; }
5205
5206
5207
5208 # Check whether --with-tcl was given.
5209 if test "${with_tcl+set}" = set; then
5210   withval=$with_tcl;
5211   case $withval in
5212     yes)
5213       :
5214       ;;
5215     no)
5216       :
5217       ;;
5218     *)
5219       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
5220 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
5221    { (exit 1); exit 1; }; }
5222       ;;
5223   esac
5224
5225 else
5226   with_tcl=no
5227
5228 fi
5229
5230
5231 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
5232 $as_echo "$with_tcl" >&6; }
5233
5234
5235 # We see if the path to the Tcl/Tk configuration scripts is specified.
5236 # This will override the use of tclsh to find the paths to search.
5237
5238
5239
5240
5241 # Check whether --with-tclconfig was given.
5242 if test "${with_tclconfig+set}" = set; then
5243   withval=$with_tclconfig;
5244   case $withval in
5245     yes)
5246       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5247 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5248    { (exit 1); exit 1; }; }
5249       ;;
5250     no)
5251       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5252 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5253    { (exit 1); exit 1; }; }
5254       ;;
5255     *)
5256
5257       ;;
5258   esac
5259
5260 fi
5261
5262
5263
5264 #
5265 # Optionally build Perl modules (PL/Perl)
5266 #
5267 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
5268 $as_echo_n "checking whether to build Perl modules... " >&6; }
5269
5270
5271
5272 # Check whether --with-perl was given.
5273 if test "${with_perl+set}" = set; then
5274   withval=$with_perl;
5275   case $withval in
5276     yes)
5277       :
5278       ;;
5279     no)
5280       :
5281       ;;
5282     *)
5283       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
5284 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
5285    { (exit 1); exit 1; }; }
5286       ;;
5287   esac
5288
5289 else
5290   with_perl=no
5291
5292 fi
5293
5294
5295 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
5296 $as_echo "$with_perl" >&6; }
5297
5298
5299 #
5300 # Optionally build Python modules (PL/Python)
5301 #
5302 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5303 $as_echo_n "checking whether to build Python modules... " >&6; }
5304
5305
5306
5307 # Check whether --with-python was given.
5308 if test "${with_python+set}" = set; then
5309   withval=$with_python;
5310   case $withval in
5311     yes)
5312       :
5313       ;;
5314     no)
5315       :
5316       ;;
5317     *)
5318       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5319 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5320    { (exit 1); exit 1; }; }
5321       ;;
5322   esac
5323
5324 else
5325   with_python=no
5326
5327 fi
5328
5329
5330 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5331 $as_echo "$with_python" >&6; }
5332
5333
5334 #
5335 # GSSAPI
5336 #
5337 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5338 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5339
5340
5341
5342 # Check whether --with-gssapi was given.
5343 if test "${with_gssapi+set}" = set; then
5344   withval=$with_gssapi;
5345   case $withval in
5346     yes)
5347
5348
5349 cat >>confdefs.h <<\_ACEOF
5350 #define ENABLE_GSS 1
5351 _ACEOF
5352
5353   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5354
5355       ;;
5356     no)
5357       :
5358       ;;
5359     *)
5360       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5361 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5362    { (exit 1); exit 1; }; }
5363       ;;
5364   esac
5365
5366 else
5367   with_gssapi=no
5368
5369 fi
5370
5371
5372 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5373 $as_echo "$with_gssapi" >&6; }
5374
5375 #
5376 # Kerberos 5
5377 #
5378 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5379 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5380
5381
5382
5383 # Check whether --with-krb5 was given.
5384 if test "${with_krb5+set}" = set; then
5385   withval=$with_krb5;
5386   case $withval in
5387     yes)
5388
5389
5390 cat >>confdefs.h <<\_ACEOF
5391 #define KRB5 1
5392 _ACEOF
5393
5394   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5395
5396       ;;
5397     no)
5398       :
5399       ;;
5400     *)
5401       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5402 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5403    { (exit 1); exit 1; }; }
5404       ;;
5405   esac
5406
5407 else
5408   with_krb5=no
5409
5410 fi
5411
5412
5413 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5414 $as_echo "$with_krb5" >&6; }
5415
5416
5417
5418
5419
5420 #
5421 # Kerberos configuration parameters
5422 #
5423
5424
5425
5426 # Check whether --with-krb-srvnam was given.
5427 if test "${with_krb_srvnam+set}" = set; then
5428   withval=$with_krb_srvnam;
5429   case $withval in
5430     yes)
5431       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5432 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5433    { (exit 1); exit 1; }; }
5434       ;;
5435     no)
5436       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5437 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5438    { (exit 1); exit 1; }; }
5439       ;;
5440     *)
5441
5442       ;;
5443   esac
5444
5445 else
5446   with_krb_srvnam="postgres"
5447 fi
5448
5449
5450
5451 cat >>confdefs.h <<_ACEOF
5452 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5453 _ACEOF
5454
5455
5456
5457 #
5458 # PAM
5459 #
5460 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5461 $as_echo_n "checking whether to build with PAM support... " >&6; }
5462
5463
5464
5465 # Check whether --with-pam was given.
5466 if test "${with_pam+set}" = set; then
5467   withval=$with_pam;
5468   case $withval in
5469     yes)
5470
5471 cat >>confdefs.h <<\_ACEOF
5472 #define USE_PAM 1
5473 _ACEOF
5474
5475       ;;
5476     no)
5477       :
5478       ;;
5479     *)
5480       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5481 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5482    { (exit 1); exit 1; }; }
5483       ;;
5484   esac
5485
5486 else
5487   with_pam=no
5488
5489 fi
5490
5491
5492 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5493 $as_echo "$with_pam" >&6; }
5494
5495
5496 #
5497 # LDAP
5498 #
5499 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5500 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5501
5502
5503
5504 # Check whether --with-ldap was given.
5505 if test "${with_ldap+set}" = set; then
5506   withval=$with_ldap;
5507   case $withval in
5508     yes)
5509
5510 cat >>confdefs.h <<\_ACEOF
5511 #define USE_LDAP 1
5512 _ACEOF
5513
5514       ;;
5515     no)
5516       :
5517       ;;
5518     *)
5519       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5520 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5521    { (exit 1); exit 1; }; }
5522       ;;
5523   esac
5524
5525 else
5526   with_ldap=no
5527
5528 fi
5529
5530
5531 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5532 $as_echo "$with_ldap" >&6; }
5533
5534
5535 #
5536 # Bonjour
5537 #
5538 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5539 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5540
5541
5542
5543 # Check whether --with-bonjour was given.
5544 if test "${with_bonjour+set}" = set; then
5545   withval=$with_bonjour;
5546   case $withval in
5547     yes)
5548
5549 cat >>confdefs.h <<\_ACEOF
5550 #define USE_BONJOUR 1
5551 _ACEOF
5552
5553       ;;
5554     no)
5555       :
5556       ;;
5557     *)
5558       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5559 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5560    { (exit 1); exit 1; }; }
5561       ;;
5562   esac
5563
5564 else
5565   with_bonjour=no
5566
5567 fi
5568
5569
5570 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5571 $as_echo "$with_bonjour" >&6; }
5572
5573
5574 #
5575 # OpenSSL
5576 #
5577 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5578 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5579
5580
5581
5582 # Check whether --with-openssl was given.
5583 if test "${with_openssl+set}" = set; then
5584   withval=$with_openssl;
5585   case $withval in
5586     yes)
5587
5588 cat >>confdefs.h <<\_ACEOF
5589 #define USE_SSL 1
5590 _ACEOF
5591
5592       ;;
5593     no)
5594       :
5595       ;;
5596     *)
5597       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5598 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5599    { (exit 1); exit 1; }; }
5600       ;;
5601   esac
5602
5603 else
5604   with_openssl=no
5605
5606 fi
5607
5608
5609 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5610 $as_echo "$with_openssl" >&6; }
5611
5612
5613 #
5614 # SELinux
5615 #
5616 { $as_echo "$as_me:$LINENO: checking whether to build with SELinux support" >&5
5617 $as_echo_n "checking whether to build with SELinux support... " >&6; }
5618
5619
5620
5621 # Check whether --with-selinux was given.
5622 if test "${with_selinux+set}" = set; then
5623   withval=$with_selinux;
5624   case $withval in
5625     yes)
5626       :
5627       ;;
5628     no)
5629       :
5630       ;;
5631     *)
5632       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-selinux option" >&5
5633 $as_echo "$as_me: error: no argument expected for --with-selinux option" >&2;}
5634    { (exit 1); exit 1; }; }
5635       ;;
5636   esac
5637
5638 else
5639   with_selinux=no
5640
5641 fi
5642
5643
5644
5645 { $as_echo "$as_me:$LINENO: result: $with_selinux" >&5
5646 $as_echo "$with_selinux" >&6; }
5647
5648 #
5649 # Readline
5650 #
5651
5652
5653
5654 # Check whether --with-readline was given.
5655 if test "${with_readline+set}" = set; then
5656   withval=$with_readline;
5657   case $withval in
5658     yes)
5659       :
5660       ;;
5661     no)
5662       :
5663       ;;
5664     *)
5665       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5666 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5667    { (exit 1); exit 1; }; }
5668       ;;
5669   esac
5670
5671 else
5672   with_readline=yes
5673
5674 fi
5675
5676
5677 # readline on MinGW has problems with backslashes in psql and other bugs.
5678 # This is particularly a problem with non-US code pages.
5679 # Therefore disable its use until we understand the cause. 2004-07-20
5680 if test "$PORTNAME" = "win32"; then
5681   if test "$with_readline" = yes; then
5682     { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5683 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5684     with_readline=no
5685   fi
5686 fi
5687
5688
5689 #
5690 # Prefer libedit
5691 #
5692
5693
5694
5695 # Check whether --with-libedit-preferred was given.
5696 if test "${with_libedit_preferred+set}" = set; then
5697   withval=$with_libedit_preferred;
5698   case $withval in
5699     yes)
5700       :
5701       ;;
5702     no)
5703       :
5704       ;;
5705     *)
5706       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5707 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5708    { (exit 1); exit 1; }; }
5709       ;;
5710   esac
5711
5712 else
5713   with_libedit_preferred=no
5714
5715 fi
5716
5717
5718
5719
5720 #
5721 # OSSP UUID library
5722 #
5723
5724
5725
5726 # Check whether --with-ossp-uuid was given.
5727 if test "${with_ossp_uuid+set}" = set; then
5728   withval=$with_ossp_uuid;
5729   case $withval in
5730     yes)
5731       :
5732       ;;
5733     no)
5734       :
5735       ;;
5736     *)
5737       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5738 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5739    { (exit 1); exit 1; }; }
5740       ;;
5741   esac
5742
5743 else
5744   with_ossp_uuid=no
5745
5746 fi
5747
5748
5749
5750
5751
5752 #
5753 # XML
5754 #
5755
5756
5757
5758 # Check whether --with-libxml was given.
5759 if test "${with_libxml+set}" = set; then
5760   withval=$with_libxml;
5761   case $withval in
5762     yes)
5763
5764 cat >>confdefs.h <<\_ACEOF
5765 #define USE_LIBXML 1
5766 _ACEOF
5767
5768       ;;
5769     no)
5770       :
5771       ;;
5772     *)
5773       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5774 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5775    { (exit 1); exit 1; }; }
5776       ;;
5777   esac
5778
5779 else
5780   with_libxml=no
5781
5782 fi
5783
5784
5785
5786 if test "$with_libxml" = yes ; then
5787   for ac_prog in xml2-config
5788 do
5789   # Extract the first word of "$ac_prog", so it can be a program name with args.
5790 set dummy $ac_prog; ac_word=$2
5791 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5792 $as_echo_n "checking for $ac_word... " >&6; }
5793 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5794   $as_echo_n "(cached) " >&6
5795 else
5796   if test -n "$XML2_CONFIG"; then
5797   ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5798 else
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH
5801 do
5802   IFS=$as_save_IFS
5803   test -z "$as_dir" && as_dir=.
5804   for ac_exec_ext in '' $ac_executable_extensions; do
5805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5806     ac_cv_prog_XML2_CONFIG="$ac_prog"
5807     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5808     break 2
5809   fi
5810 done
5811 done
5812 IFS=$as_save_IFS
5813
5814 fi
5815 fi
5816 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5817 if test -n "$XML2_CONFIG"; then
5818   { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5819 $as_echo "$XML2_CONFIG" >&6; }
5820 else
5821   { $as_echo "$as_me:$LINENO: result: no" >&5
5822 $as_echo "no" >&6; }
5823 fi
5824
5825
5826   test -n "$XML2_CONFIG" && break
5827 done
5828
5829   if test -n "$XML2_CONFIG"; then
5830     for pgac_option in `$XML2_CONFIG --cflags`; do
5831       case $pgac_option in
5832         -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5833       esac
5834     done
5835     for pgac_option in `$XML2_CONFIG --libs`; do
5836       case $pgac_option in
5837         -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5838       esac
5839     done
5840   fi
5841 fi
5842
5843
5844
5845 #
5846 # XSLT
5847 #
5848
5849
5850
5851 # Check whether --with-libxslt was given.
5852 if test "${with_libxslt+set}" = set; then
5853   withval=$with_libxslt;
5854   case $withval in
5855     yes)
5856
5857 cat >>confdefs.h <<\_ACEOF
5858 #define USE_LIBXSLT 1
5859 _ACEOF
5860
5861       ;;
5862     no)
5863       :
5864       ;;
5865     *)
5866       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5867 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5868    { (exit 1); exit 1; }; }
5869       ;;
5870   esac
5871
5872 else
5873   with_libxslt=no
5874
5875 fi
5876
5877
5878
5879
5880
5881
5882 #
5883 # tzdata
5884 #
5885
5886
5887
5888 # Check whether --with-system-tzdata was given.
5889 if test "${with_system_tzdata+set}" = set; then
5890   withval=$with_system_tzdata;
5891   case $withval in
5892     yes)
5893       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5894 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5895    { (exit 1); exit 1; }; }
5896       ;;
5897     no)
5898       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5899 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5900    { (exit 1); exit 1; }; }
5901       ;;
5902     *)
5903
5904       ;;
5905   esac
5906
5907 fi
5908
5909
5910
5911
5912 #
5913 # Zlib
5914 #
5915
5916
5917
5918 # Check whether --with-zlib was given.
5919 if test "${with_zlib+set}" = set; then
5920   withval=$with_zlib;
5921   case $withval in
5922     yes)
5923       :
5924       ;;
5925     no)
5926       :
5927       ;;
5928     *)
5929       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5930 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5931    { (exit 1); exit 1; }; }
5932       ;;
5933   esac
5934
5935 else
5936   with_zlib=yes
5937
5938 fi
5939
5940
5941
5942
5943 #
5944 # Elf
5945 #
5946
5947 # Assume system is ELF if it predefines __ELF__ as 1,
5948 # otherwise believe host_os based default.
5949 case $host_os in
5950     freebsd1*|freebsd2*) elf=no;;
5951     freebsd3*|freebsd4*) elf=yes;;
5952 esac
5953
5954
5955 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5956 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5957 if test "${ac_cv_path_GREP+set}" = set; then
5958   $as_echo_n "(cached) " >&6
5959 else
5960   if test -z "$GREP"; then
5961   ac_path_GREP_found=false
5962   # Loop through the user's path and test for each of PROGNAME-LIST
5963   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5965 do
5966   IFS=$as_save_IFS
5967   test -z "$as_dir" && as_dir=.
5968   for ac_prog in grep ggrep; do
5969     for ac_exec_ext in '' $ac_executable_extensions; do
5970       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5971       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5972 # Check for GNU ac_path_GREP and select it if it is found.
5973   # Check for GNU $ac_path_GREP
5974 case `"$ac_path_GREP" --version 2>&1` in
5975 *GNU*)
5976   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5977 *)
5978   ac_count=0
5979   $as_echo_n 0123456789 >"conftest.in"
5980   while :
5981   do
5982     cat "conftest.in" "conftest.in" >"conftest.tmp"
5983     mv "conftest.tmp" "conftest.in"
5984     cp "conftest.in" "conftest.nl"
5985     $as_echo 'GREP' >> "conftest.nl"
5986     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5987     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5988     ac_count=`expr $ac_count + 1`
5989     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5990       # Best one so far, save it but keep looking for a better one
5991       ac_cv_path_GREP="$ac_path_GREP"
5992       ac_path_GREP_max=$ac_count
5993     fi
5994     # 10*(2^10) chars as input seems more than enough
5995     test $ac_count -gt 10 && break
5996   done
5997   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5998 esac
5999
6000       $ac_path_GREP_found && break 3
6001     done
6002   done
6003 done
6004 IFS=$as_save_IFS
6005   if test -z "$ac_cv_path_GREP"; then
6006     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6007 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6008    { (exit 1); exit 1; }; }
6009   fi
6010 else
6011   ac_cv_path_GREP=$GREP
6012 fi
6013
6014 fi
6015 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6016 $as_echo "$ac_cv_path_GREP" >&6; }
6017  GREP="$ac_cv_path_GREP"
6018
6019
6020 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
6021 $as_echo_n "checking for egrep... " >&6; }
6022 if test "${ac_cv_path_EGREP+set}" = set; then
6023   $as_echo_n "(cached) " >&6
6024 else
6025   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6026    then ac_cv_path_EGREP="$GREP -E"
6027    else
6028      if test -z "$EGREP"; then
6029   ac_path_EGREP_found=false
6030   # Loop through the user's path and test for each of PROGNAME-LIST
6031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6033 do
6034   IFS=$as_save_IFS
6035   test -z "$as_dir" && as_dir=.
6036   for ac_prog in egrep; do
6037     for ac_exec_ext in '' $ac_executable_extensions; do
6038       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6039       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6040 # Check for GNU ac_path_EGREP and select it if it is found.
6041   # Check for GNU $ac_path_EGREP
6042 case `"$ac_path_EGREP" --version 2>&1` in
6043 *GNU*)
6044   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6045 *)
6046   ac_count=0
6047   $as_echo_n 0123456789 >"conftest.in"
6048   while :
6049   do
6050     cat "conftest.in" "conftest.in" >"conftest.tmp"
6051     mv "conftest.tmp" "conftest.in"
6052     cp "conftest.in" "conftest.nl"
6053     $as_echo 'EGREP' >> "conftest.nl"
6054     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6055     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6056     ac_count=`expr $ac_count + 1`
6057     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6058       # Best one so far, save it but keep looking for a better one
6059       ac_cv_path_EGREP="$ac_path_EGREP"
6060       ac_path_EGREP_max=$ac_count
6061     fi
6062     # 10*(2^10) chars as input seems more than enough
6063     test $ac_count -gt 10 && break
6064   done
6065   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6066 esac
6067
6068       $ac_path_EGREP_found && break 3
6069     done
6070   done
6071 done
6072 IFS=$as_save_IFS
6073   if test -z "$ac_cv_path_EGREP"; then
6074     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6075 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6076    { (exit 1); exit 1; }; }
6077   fi
6078 else
6079   ac_cv_path_EGREP=$EGREP
6080 fi
6081
6082    fi
6083 fi
6084 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6085 $as_echo "$ac_cv_path_EGREP" >&6; }
6086  EGREP="$ac_cv_path_EGREP"
6087
6088
6089 cat >conftest.$ac_ext <<_ACEOF
6090 /* confdefs.h.  */
6091 _ACEOF
6092 cat confdefs.h >>conftest.$ac_ext
6093 cat >>conftest.$ac_ext <<_ACEOF
6094 /* end confdefs.h.  */
6095 #if __ELF__
6096   yes
6097 #endif
6098
6099 _ACEOF
6100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6101   $EGREP "yes" >/dev/null 2>&1; then
6102   ELF_SYS=true
6103 else
6104   if test "X$elf" = "Xyes" ; then
6105   ELF_SYS=true
6106 else
6107   ELF_SYS=
6108 fi
6109 fi
6110 rm -f conftest*
6111
6112
6113
6114 #
6115 # Assignments
6116 #
6117
6118 CPPFLAGS="$CPPFLAGS $INCLUDES"
6119 LDFLAGS="$LDFLAGS $LIBDIRS"
6120
6121
6122
6123
6124
6125 # Check whether --with-gnu-ld was given.
6126 if test "${with_gnu_ld+set}" = set; then
6127   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6128 else
6129   with_gnu_ld=no
6130 fi
6131
6132 ac_prog=ld
6133 if test "$GCC" = yes; then
6134   # Check if gcc -print-prog-name=ld gives a path.
6135   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6136 $as_echo_n "checking for ld used by GCC... " >&6; }
6137   case $host in
6138   *-*-mingw*)
6139     # gcc leaves a trailing carriage return which upsets mingw
6140     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6141   *)
6142     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6143   esac
6144   case "$ac_prog" in
6145     # Accept absolute paths.
6146     [\\/]* | [A-Za-z]:[\\/]*)
6147       re_direlt='/[^/][^/]*/\.\./'
6148       # Canonicalize the path of ld
6149       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6150       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6151         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6152       done
6153       test -z "$LD" && LD="$ac_prog"
6154       ;;
6155   "")
6156     # If it fails, then pretend we aren't using GCC.
6157     ac_prog=ld
6158     ;;
6159   *)
6160     # If it is relative, then search for the first ld in PATH.
6161     with_gnu_ld=unknown
6162     ;;
6163   esac
6164 elif test "$with_gnu_ld" = yes; then
6165   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6166 $as_echo_n "checking for GNU ld... " >&6; }
6167 else
6168   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6169 $as_echo_n "checking for non-GNU ld... " >&6; }
6170 fi
6171 if test "${ac_cv_path_LD+set}" = set; then
6172   $as_echo_n "(cached) " >&6
6173 else
6174   if test -z "$LD"; then
6175   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6176   for ac_dir in $PATH; do
6177     test -z "$ac_dir" && ac_dir=.
6178     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6179       ac_cv_path_LD="$ac_dir/$ac_prog"
6180       # Check to see if the program is GNU ld.  I'd rather use --version,
6181       # but apparently some GNU ld's only accept -v.
6182       # Break only if it was the GNU/non-GNU ld that we prefer.
6183       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6184         test "$with_gnu_ld" != no && break
6185       else
6186         test "$with_gnu_ld" != yes && break
6187       fi
6188     fi
6189   done
6190   IFS="$ac_save_ifs"
6191 else
6192   ac_cv_path_LD="$LD" # Let the user override the test with a path.
6193 fi
6194 fi
6195
6196 LD="$ac_cv_path_LD"
6197 if test -n "$LD"; then
6198   { $as_echo "$as_me:$LINENO: result: $LD" >&5
6199 $as_echo "$LD" >&6; }
6200 else
6201   { $as_echo "$as_me:$LINENO: result: no" >&5
6202 $as_echo "no" >&6; }
6203 fi
6204 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6205 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6206    { (exit 1); exit 1; }; }
6207 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6208 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6209 if test "${ac_cv_prog_gnu_ld+set}" = set; then
6210   $as_echo_n "(cached) " >&6
6211 else
6212   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6213 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6214   ac_cv_prog_gnu_ld=yes
6215 else
6216   ac_cv_prog_gnu_ld=no
6217 fi
6218 fi
6219 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
6220 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6221 with_gnu_ld=$ac_cv_prog_gnu_ld
6222
6223
6224
6225
6226 case $host_os in sysv5*)
6227   { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
6228 $as_echo_n "checking whether ld -R works... " >&6; }
6229 if test "${pgac_cv_prog_ld_R+set}" = set; then
6230   $as_echo_n "(cached) " >&6
6231 else
6232
6233     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
6234     cat >conftest.$ac_ext <<_ACEOF
6235 /* confdefs.h.  */
6236 _ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h.  */
6240
6241 int
6242 main ()
6243 {
6244
6245   ;
6246   return 0;
6247 }
6248 _ACEOF
6249 rm -f conftest.$ac_objext conftest$ac_exeext
6250 if { (ac_try="$ac_link"
6251 case "(($ac_try" in
6252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6253   *) ac_try_echo=$ac_try;;
6254 esac
6255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6256 $as_echo "$ac_try_echo") >&5
6257   (eval "$ac_link") 2>conftest.er1
6258   ac_status=$?
6259   grep -v '^ *+' conftest.er1 >conftest.err
6260   rm -f conftest.er1
6261   cat conftest.err >&5
6262   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263   (exit $ac_status); } && {
6264          test -z "$ac_c_werror_flag" ||
6265          test ! -s conftest.err
6266        } && test -s conftest$ac_exeext && {
6267          test "$cross_compiling" = yes ||
6268          $as_test_x conftest$ac_exeext
6269        }; then
6270   pgac_cv_prog_ld_R=yes
6271 else
6272   $as_echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6274
6275         pgac_cv_prog_ld_R=no
6276 fi
6277
6278 rm -rf conftest.dSYM
6279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6280       conftest$ac_exeext conftest.$ac_ext
6281     LDFLAGS=$pgac_save_LDFLAGS
6282
6283 fi
6284 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
6285 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6286   ld_R_works=$pgac_cv_prog_ld_R
6287
6288 esac
6289 if test -n "$ac_tool_prefix"; then
6290   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6291 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6292 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6293 $as_echo_n "checking for $ac_word... " >&6; }
6294 if test "${ac_cv_prog_RANLIB+set}" = set; then
6295   $as_echo_n "(cached) " >&6
6296 else
6297   if test -n "$RANLIB"; then
6298   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6299 else
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301 for as_dir in $PATH
6302 do
6303   IFS=$as_save_IFS
6304   test -z "$as_dir" && as_dir=.
6305   for ac_exec_ext in '' $ac_executable_extensions; do
6306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6307     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6308     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6309     break 2
6310   fi
6311 done
6312 done
6313 IFS=$as_save_IFS
6314
6315 fi
6316 fi
6317 RANLIB=$ac_cv_prog_RANLIB
6318 if test -n "$RANLIB"; then
6319   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6320 $as_echo "$RANLIB" >&6; }
6321 else
6322   { $as_echo "$as_me:$LINENO: result: no" >&5
6323 $as_echo "no" >&6; }
6324 fi
6325
6326
6327 fi
6328 if test -z "$ac_cv_prog_RANLIB"; then
6329   ac_ct_RANLIB=$RANLIB
6330   # Extract the first word of "ranlib", so it can be a program name with args.
6331 set dummy ranlib; ac_word=$2
6332 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6333 $as_echo_n "checking for $ac_word... " >&6; }
6334 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6335   $as_echo_n "(cached) " >&6
6336 else
6337   if test -n "$ac_ct_RANLIB"; then
6338   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6339 else
6340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341 for as_dir in $PATH
6342 do
6343   IFS=$as_save_IFS
6344   test -z "$as_dir" && as_dir=.
6345   for ac_exec_ext in '' $ac_executable_extensions; do
6346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6347     ac_cv_prog_ac_ct_RANLIB="ranlib"
6348     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6349     break 2
6350   fi
6351 done
6352 done
6353 IFS=$as_save_IFS
6354
6355 fi
6356 fi
6357 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6358 if test -n "$ac_ct_RANLIB"; then
6359   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6360 $as_echo "$ac_ct_RANLIB" >&6; }
6361 else
6362   { $as_echo "$as_me:$LINENO: result: no" >&5
6363 $as_echo "no" >&6; }
6364 fi
6365
6366   if test "x$ac_ct_RANLIB" = x; then
6367     RANLIB=":"
6368   else
6369     case $cross_compiling:$ac_tool_warned in
6370 yes:)
6371 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6373 ac_tool_warned=yes ;;
6374 esac
6375     RANLIB=$ac_ct_RANLIB
6376   fi
6377 else
6378   RANLIB="$ac_cv_prog_RANLIB"
6379 fi
6380
6381
6382   if test -n "$ac_tool_prefix"; then
6383   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6384 set dummy ${ac_tool_prefix}strip; ac_word=$2
6385 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6386 $as_echo_n "checking for $ac_word... " >&6; }
6387 if test "${ac_cv_prog_STRIP+set}" = set; then
6388   $as_echo_n "(cached) " >&6
6389 else
6390   if test -n "$STRIP"; then
6391   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6392 else
6393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394 for as_dir in $PATH
6395 do
6396   IFS=$as_save_IFS
6397   test -z "$as_dir" && as_dir=.
6398   for ac_exec_ext in '' $ac_executable_extensions; do
6399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6400     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6401     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6402     break 2
6403   fi
6404 done
6405 done
6406 IFS=$as_save_IFS
6407
6408 fi
6409 fi
6410 STRIP=$ac_cv_prog_STRIP
6411 if test -n "$STRIP"; then
6412   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6413 $as_echo "$STRIP" >&6; }
6414 else
6415   { $as_echo "$as_me:$LINENO: result: no" >&5
6416 $as_echo "no" >&6; }
6417 fi
6418
6419
6420 fi
6421 if test -z "$ac_cv_prog_STRIP"; then
6422   ac_ct_STRIP=$STRIP
6423   # Extract the first word of "strip", so it can be a program name with args.
6424 set dummy strip; ac_word=$2
6425 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6426 $as_echo_n "checking for $ac_word... " >&6; }
6427 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6428   $as_echo_n "(cached) " >&6
6429 else
6430   if test -n "$ac_ct_STRIP"; then
6431   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6432 else
6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434 for as_dir in $PATH
6435 do
6436   IFS=$as_save_IFS
6437   test -z "$as_dir" && as_dir=.
6438   for ac_exec_ext in '' $ac_executable_extensions; do
6439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6440     ac_cv_prog_ac_ct_STRIP="strip"
6441     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6442     break 2
6443   fi
6444 done
6445 done
6446 IFS=$as_save_IFS
6447
6448 fi
6449 fi
6450 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6451 if test -n "$ac_ct_STRIP"; then
6452   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6453 $as_echo "$ac_ct_STRIP" >&6; }
6454 else
6455   { $as_echo "$as_me:$LINENO: result: no" >&5
6456 $as_echo "no" >&6; }
6457 fi
6458
6459   if test "x$ac_ct_STRIP" = x; then
6460     STRIP=":"
6461   else
6462     case $cross_compiling:$ac_tool_warned in
6463 yes:)
6464 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6466 ac_tool_warned=yes ;;
6467 esac
6468     STRIP=$ac_ct_STRIP
6469   fi
6470 else
6471   STRIP="$ac_cv_prog_STRIP"
6472 fi
6473
6474
6475   { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6476 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6477   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6478     STRIP_STATIC_LIB="$STRIP -x"
6479     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6480     { $as_echo "$as_me:$LINENO: result: yes" >&5
6481 $as_echo "yes" >&6; }
6482   else
6483     STRIP_STATIC_LIB=:
6484     STRIP_SHARED_LIB=:
6485     { $as_echo "$as_me:$LINENO: result: no" >&5
6486 $as_echo "no" >&6; }
6487   fi
6488
6489
6490
6491 if test -n "$ac_tool_prefix"; then
6492   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6493 set dummy ${ac_tool_prefix}ar; ac_word=$2
6494 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6495 $as_echo_n "checking for $ac_word... " >&6; }
6496 if test "${ac_cv_prog_AR+set}" = set; then
6497   $as_echo_n "(cached) " >&6
6498 else
6499   if test -n "$AR"; then
6500   ac_cv_prog_AR="$AR" # Let the user override the test.
6501 else
6502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503 for as_dir in $PATH
6504 do
6505   IFS=$as_save_IFS
6506   test -z "$as_dir" && as_dir=.
6507   for ac_exec_ext in '' $ac_executable_extensions; do
6508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6509     ac_cv_prog_AR="${ac_tool_prefix}ar"
6510     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6511     break 2
6512   fi
6513 done
6514 done
6515 IFS=$as_save_IFS
6516
6517 fi
6518 fi
6519 AR=$ac_cv_prog_AR
6520 if test -n "$AR"; then
6521   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6522 $as_echo "$AR" >&6; }
6523 else
6524   { $as_echo "$as_me:$LINENO: result: no" >&5
6525 $as_echo "no" >&6; }
6526 fi
6527
6528
6529 fi
6530 if test -z "$ac_cv_prog_AR"; then
6531   ac_ct_AR=$AR
6532   # Extract the first word of "ar", so it can be a program name with args.
6533 set dummy ar; ac_word=$2
6534 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6535 $as_echo_n "checking for $ac_word... " >&6; }
6536 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6537   $as_echo_n "(cached) " >&6
6538 else
6539   if test -n "$ac_ct_AR"; then
6540   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6541 else
6542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543 for as_dir in $PATH
6544 do
6545   IFS=$as_save_IFS
6546   test -z "$as_dir" && as_dir=.
6547   for ac_exec_ext in '' $ac_executable_extensions; do
6548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6549     ac_cv_prog_ac_ct_AR="ar"
6550     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6551     break 2
6552   fi
6553 done
6554 done
6555 IFS=$as_save_IFS
6556
6557 fi
6558 fi
6559 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6560 if test -n "$ac_ct_AR"; then
6561   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6562 $as_echo "$ac_ct_AR" >&6; }
6563 else
6564   { $as_echo "$as_me:$LINENO: result: no" >&5
6565 $as_echo "no" >&6; }
6566 fi
6567
6568   if test "x$ac_ct_AR" = x; then
6569     AR="ar"
6570   else
6571     case $cross_compiling:$ac_tool_warned in
6572 yes:)
6573 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6575 ac_tool_warned=yes ;;
6576 esac
6577     AR=$ac_ct_AR
6578   fi
6579 else
6580   AR="$ac_cv_prog_AR"
6581 fi
6582
6583 if test "$PORTNAME" = "win32"; then
6584   if test -n "$ac_tool_prefix"; then
6585   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6586 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6587 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6588 $as_echo_n "checking for $ac_word... " >&6; }
6589 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6590   $as_echo_n "(cached) " >&6
6591 else
6592   if test -n "$DLLTOOL"; then
6593   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6594 else
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596 for as_dir in $PATH
6597 do
6598   IFS=$as_save_IFS
6599   test -z "$as_dir" && as_dir=.
6600   for ac_exec_ext in '' $ac_executable_extensions; do
6601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6602     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6603     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6604     break 2
6605   fi
6606 done
6607 done
6608 IFS=$as_save_IFS
6609
6610 fi
6611 fi
6612 DLLTOOL=$ac_cv_prog_DLLTOOL
6613 if test -n "$DLLTOOL"; then
6614   { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6615 $as_echo "$DLLTOOL" >&6; }
6616 else
6617   { $as_echo "$as_me:$LINENO: result: no" >&5
6618 $as_echo "no" >&6; }
6619 fi
6620
6621
6622 fi
6623 if test -z "$ac_cv_prog_DLLTOOL"; then
6624   ac_ct_DLLTOOL=$DLLTOOL
6625   # Extract the first word of "dlltool", so it can be a program name with args.
6626 set dummy dlltool; ac_word=$2
6627 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6628 $as_echo_n "checking for $ac_word... " >&6; }
6629 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6630   $as_echo_n "(cached) " >&6
6631 else
6632   if test -n "$ac_ct_DLLTOOL"; then
6633   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6634 else
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 for as_dir in $PATH
6637 do
6638   IFS=$as_save_IFS
6639   test -z "$as_dir" && as_dir=.
6640   for ac_exec_ext in '' $ac_executable_extensions; do
6641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6642     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6643     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6644     break 2
6645   fi
6646 done
6647 done
6648 IFS=$as_save_IFS
6649
6650 fi
6651 fi
6652 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6653 if test -n "$ac_ct_DLLTOOL"; then
6654   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6655 $as_echo "$ac_ct_DLLTOOL" >&6; }
6656 else
6657   { $as_echo "$as_me:$LINENO: result: no" >&5
6658 $as_echo "no" >&6; }
6659 fi
6660
6661   if test "x$ac_ct_DLLTOOL" = x; then
6662     DLLTOOL="dlltool"
6663   else
6664     case $cross_compiling:$ac_tool_warned in
6665 yes:)
6666 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6668 ac_tool_warned=yes ;;
6669 esac
6670     DLLTOOL=$ac_ct_DLLTOOL
6671   fi
6672 else
6673   DLLTOOL="$ac_cv_prog_DLLTOOL"
6674 fi
6675
6676   if test -n "$ac_tool_prefix"; then
6677   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6678 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6679 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6680 $as_echo_n "checking for $ac_word... " >&6; }
6681 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6682   $as_echo_n "(cached) " >&6
6683 else
6684   if test -n "$DLLWRAP"; then
6685   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6686 else
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688 for as_dir in $PATH
6689 do
6690   IFS=$as_save_IFS
6691   test -z "$as_dir" && as_dir=.
6692   for ac_exec_ext in '' $ac_executable_extensions; do
6693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6694     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6695     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6696     break 2
6697   fi
6698 done
6699 done
6700 IFS=$as_save_IFS
6701
6702 fi
6703 fi
6704 DLLWRAP=$ac_cv_prog_DLLWRAP
6705 if test -n "$DLLWRAP"; then
6706   { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6707 $as_echo "$DLLWRAP" >&6; }
6708 else
6709   { $as_echo "$as_me:$LINENO: result: no" >&5
6710 $as_echo "no" >&6; }
6711 fi
6712
6713
6714 fi
6715 if test -z "$ac_cv_prog_DLLWRAP"; then
6716   ac_ct_DLLWRAP=$DLLWRAP
6717   # Extract the first word of "dllwrap", so it can be a program name with args.
6718 set dummy dllwrap; ac_word=$2
6719 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6720 $as_echo_n "checking for $ac_word... " >&6; }
6721 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6722   $as_echo_n "(cached) " >&6
6723 else
6724   if test -n "$ac_ct_DLLWRAP"; then
6725   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6726 else
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 for as_dir in $PATH
6729 do
6730   IFS=$as_save_IFS
6731   test -z "$as_dir" && as_dir=.
6732   for ac_exec_ext in '' $ac_executable_extensions; do
6733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6734     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6735     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6736     break 2
6737   fi
6738 done
6739 done
6740 IFS=$as_save_IFS
6741
6742 fi
6743 fi
6744 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6745 if test -n "$ac_ct_DLLWRAP"; then
6746   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6747 $as_echo "$ac_ct_DLLWRAP" >&6; }
6748 else
6749   { $as_echo "$as_me:$LINENO: result: no" >&5
6750 $as_echo "no" >&6; }
6751 fi
6752
6753   if test "x$ac_ct_DLLWRAP" = x; then
6754     DLLWRAP="dllwrap"
6755   else
6756     case $cross_compiling:$ac_tool_warned in
6757 yes:)
6758 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6760 ac_tool_warned=yes ;;
6761 esac
6762     DLLWRAP=$ac_ct_DLLWRAP
6763   fi
6764 else
6765   DLLWRAP="$ac_cv_prog_DLLWRAP"
6766 fi
6767
6768   if test -n "$ac_tool_prefix"; then
6769   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6770 set dummy ${ac_tool_prefix}windres; ac_word=$2
6771 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6772 $as_echo_n "checking for $ac_word... " >&6; }
6773 if test "${ac_cv_prog_WINDRES+set}" = set; then
6774   $as_echo_n "(cached) " >&6
6775 else
6776   if test -n "$WINDRES"; then
6777   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6778 else
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 for as_dir in $PATH
6781 do
6782   IFS=$as_save_IFS
6783   test -z "$as_dir" && as_dir=.
6784   for ac_exec_ext in '' $ac_executable_extensions; do
6785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6786     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6787     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6788     break 2
6789   fi
6790 done
6791 done
6792 IFS=$as_save_IFS
6793
6794 fi
6795 fi
6796 WINDRES=$ac_cv_prog_WINDRES
6797 if test -n "$WINDRES"; then
6798   { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6799 $as_echo "$WINDRES" >&6; }
6800 else
6801   { $as_echo "$as_me:$LINENO: result: no" >&5
6802 $as_echo "no" >&6; }
6803 fi
6804
6805
6806 fi
6807 if test -z "$ac_cv_prog_WINDRES"; then
6808   ac_ct_WINDRES=$WINDRES
6809   # Extract the first word of "windres", so it can be a program name with args.
6810 set dummy windres; ac_word=$2
6811 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6812 $as_echo_n "checking for $ac_word... " >&6; }
6813 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6814   $as_echo_n "(cached) " >&6
6815 else
6816   if test -n "$ac_ct_WINDRES"; then
6817   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6818 else
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 for as_dir in $PATH
6821 do
6822   IFS=$as_save_IFS
6823   test -z "$as_dir" && as_dir=.
6824   for ac_exec_ext in '' $ac_executable_extensions; do
6825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6826     ac_cv_prog_ac_ct_WINDRES="windres"
6827     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6828     break 2
6829   fi
6830 done
6831 done
6832 IFS=$as_save_IFS
6833
6834 fi
6835 fi
6836 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6837 if test -n "$ac_ct_WINDRES"; then
6838   { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6839 $as_echo "$ac_ct_WINDRES" >&6; }
6840 else
6841   { $as_echo "$as_me:$LINENO: result: no" >&5
6842 $as_echo "no" >&6; }
6843 fi
6844
6845   if test "x$ac_ct_WINDRES" = x; then
6846     WINDRES="windres"
6847   else
6848     case $cross_compiling:$ac_tool_warned in
6849 yes:)
6850 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6852 ac_tool_warned=yes ;;
6853 esac
6854     WINDRES=$ac_ct_WINDRES
6855   fi
6856 else
6857   WINDRES="$ac_cv_prog_WINDRES"
6858 fi
6859
6860 fi
6861
6862 # Find a good install program.  We prefer a C program (faster),
6863 # so one script is as good as another.  But avoid the broken or
6864 # incompatible versions:
6865 # SysV /etc/install, /usr/sbin/install
6866 # SunOS /usr/etc/install
6867 # IRIX /sbin/install
6868 # AIX /bin/install
6869 # AmigaOS /C/install, which installs bootblocks on floppy discs
6870 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6871 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6872 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6873 # OS/2's system install, which has a completely different semantic
6874 # ./install, which can be erroneously created by make from ./install.sh.
6875 # Reject install programs that cannot install multiple files.
6876 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6877 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6878 if test -z "$INSTALL"; then
6879 if test "${ac_cv_path_install+set}" = set; then
6880   $as_echo_n "(cached) " >&6
6881 else
6882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883 for as_dir in $PATH
6884 do
6885   IFS=$as_save_IFS
6886   test -z "$as_dir" && as_dir=.
6887   # Account for people who put trailing slashes in PATH elements.
6888 case $as_dir/ in
6889   ./ | .// | /cC/* | \
6890   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6891   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6892   /usr/ucb/* ) ;;
6893   *)
6894     # OSF1 and SCO ODT 3.0 have their own names for install.
6895     # Don't use installbsd from OSF since it installs stuff as root
6896     # by default.
6897     for ac_prog in ginstall scoinst install; do
6898       for ac_exec_ext in '' $ac_executable_extensions; do
6899         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6900           if test $ac_prog = install &&
6901             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6902             # AIX install.  It has an incompatible calling convention.
6903             :
6904           elif test $ac_prog = install &&
6905             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6906             # program-specific install script used by HP pwplus--don't use.
6907             :
6908           else
6909             rm -rf conftest.one conftest.two conftest.dir
6910             echo one > conftest.one
6911             echo two > conftest.two
6912             mkdir conftest.dir
6913             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6914               test -s conftest.one && test -s conftest.two &&
6915               test -s conftest.dir/conftest.one &&
6916               test -s conftest.dir/conftest.two
6917             then
6918               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6919               break 3
6920             fi
6921           fi
6922         fi
6923       done
6924     done
6925     ;;
6926 esac
6927
6928 done
6929 IFS=$as_save_IFS
6930
6931 rm -rf conftest.one conftest.two conftest.dir
6932
6933 fi
6934   if test "${ac_cv_path_install+set}" = set; then
6935     INSTALL=$ac_cv_path_install
6936   else
6937     # As a last resort, use the slow shell script.  Don't cache a
6938     # value for INSTALL within a source directory, because that will
6939     # break other packages using the cache if that directory is
6940     # removed, or if the value is a relative name.
6941     INSTALL=$ac_install_sh
6942   fi
6943 fi
6944 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
6945 $as_echo "$INSTALL" >&6; }
6946
6947 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6948 # It thinks the first close brace ends the variable substitution.
6949 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6950
6951 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6952
6953 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6954
6955 # When Autoconf chooses install-sh as install program it tries to generate
6956 # a relative path to it in each makefile where it subsitutes it. This clashes
6957 # with our Makefile.global concept. This workaround helps.
6958 case $INSTALL in
6959   *install-sh*) install_bin='';;
6960   *) install_bin=$INSTALL;;
6961 esac
6962
6963
6964 # Extract the first word of "tar", so it can be a program name with args.
6965 set dummy tar; ac_word=$2
6966 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6967 $as_echo_n "checking for $ac_word... " >&6; }
6968 if test "${ac_cv_path_TAR+set}" = set; then
6969   $as_echo_n "(cached) " >&6
6970 else
6971   case $TAR in
6972   [\\/]* | ?:[\\/]*)
6973   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6974   ;;
6975   *)
6976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 for as_dir in $PATH
6978 do
6979   IFS=$as_save_IFS
6980   test -z "$as_dir" && as_dir=.
6981   for ac_exec_ext in '' $ac_executable_extensions; do
6982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6983     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6984     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6985     break 2
6986   fi
6987 done
6988 done
6989 IFS=$as_save_IFS
6990
6991   ;;
6992 esac
6993 fi
6994 TAR=$ac_cv_path_TAR
6995 if test -n "$TAR"; then
6996   { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6997 $as_echo "$TAR" >&6; }
6998 else
6999   { $as_echo "$as_me:$LINENO: result: no" >&5
7000 $as_echo "no" >&6; }
7001 fi
7002
7003
7004 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
7005 $as_echo_n "checking whether ln -s works... " >&6; }
7006 LN_S=$as_ln_s
7007 if test "$LN_S" = "ln -s"; then
7008   { $as_echo "$as_me:$LINENO: result: yes" >&5
7009 $as_echo "yes" >&6; }
7010 else
7011   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7012 $as_echo "no, using $LN_S" >&6; }
7013 fi
7014
7015 for ac_prog in gawk mawk nawk awk
7016 do
7017   # Extract the first word of "$ac_prog", so it can be a program name with args.
7018 set dummy $ac_prog; ac_word=$2
7019 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7020 $as_echo_n "checking for $ac_word... " >&6; }
7021 if test "${ac_cv_prog_AWK+set}" = set; then
7022   $as_echo_n "(cached) " >&6
7023 else
7024   if test -n "$AWK"; then
7025   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7026 else
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028 for as_dir in $PATH
7029 do
7030   IFS=$as_save_IFS
7031   test -z "$as_dir" && as_dir=.
7032   for ac_exec_ext in '' $ac_executable_extensions; do
7033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7034     ac_cv_prog_AWK="$ac_prog"
7035     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7036     break 2
7037   fi
7038 done
7039 done
7040 IFS=$as_save_IFS
7041
7042 fi
7043 fi
7044 AWK=$ac_cv_prog_AWK
7045 if test -n "$AWK"; then
7046   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
7047 $as_echo "$AWK" >&6; }
7048 else
7049   { $as_echo "$as_me:$LINENO: result: no" >&5
7050 $as_echo "no" >&6; }
7051 fi
7052
7053
7054   test -n "$AWK" && break
7055 done
7056
7057 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
7058 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7059 if test -z "$MKDIR_P"; then
7060   if test "${ac_cv_path_mkdir+set}" = set; then
7061   $as_echo_n "(cached) " >&6
7062 else
7063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7065 do
7066   IFS=$as_save_IFS
7067   test -z "$as_dir" && as_dir=.
7068   for ac_prog in mkdir gmkdir; do
7069          for ac_exec_ext in '' $ac_executable_extensions; do
7070            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
7071            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7072              'mkdir (GNU coreutils) '* | \
7073              'mkdir (coreutils) '* | \
7074              'mkdir (fileutils) '4.1*)
7075                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7076                break 3;;
7077            esac
7078          done
7079        done
7080 done
7081 IFS=$as_save_IFS
7082
7083 fi
7084
7085   if test "${ac_cv_path_mkdir+set}" = set; then
7086     MKDIR_P="$ac_cv_path_mkdir -p"
7087   else
7088     # As a last resort, use the slow shell script.  Don't cache a
7089     # value for MKDIR_P within a source directory, because that will
7090     # break other packages using the cache if that directory is
7091     # removed, or if the value is a relative name.
7092     test -d ./--version && rmdir ./--version
7093     MKDIR_P="$ac_install_sh -d"
7094   fi
7095 fi
7096 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
7097 $as_echo "$MKDIR_P" >&6; }
7098
7099 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
7100 # a relative path to it in each makefile where it subsitutes it. This clashes
7101 # with our Makefile.global concept. This workaround helps.
7102 case $MKDIR_P in
7103   *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
7104 esac
7105
7106 # Let the user override the search
7107 if test -z "$BISON"; then
7108   for ac_prog in bison
7109 do
7110   # Extract the first word of "$ac_prog", so it can be a program name with args.
7111 set dummy $ac_prog; ac_word=$2
7112 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7113 $as_echo_n "checking for $ac_word... " >&6; }
7114 if test "${ac_cv_path_BISON+set}" = set; then
7115   $as_echo_n "(cached) " >&6
7116 else
7117   case $BISON in
7118   [\\/]* | ?:[\\/]*)
7119   ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
7120   ;;
7121   *)
7122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123 for as_dir in $PATH
7124 do
7125   IFS=$as_save_IFS
7126   test -z "$as_dir" && as_dir=.
7127   for ac_exec_ext in '' $ac_executable_extensions; do
7128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7129     ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
7130     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7131     break 2
7132   fi
7133 done
7134 done
7135 IFS=$as_save_IFS
7136
7137   ;;
7138 esac
7139 fi
7140 BISON=$ac_cv_path_BISON
7141 if test -n "$BISON"; then
7142   { $as_echo "$as_me:$LINENO: result: $BISON" >&5
7143 $as_echo "$BISON" >&6; }
7144 else
7145   { $as_echo "$as_me:$LINENO: result: no" >&5
7146 $as_echo "no" >&6; }
7147 fi
7148
7149
7150   test -n "$BISON" && break
7151 done
7152
7153 fi
7154
7155 if test "$BISON"; then
7156   pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
7157   { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
7158 $as_echo "$as_me: using $pgac_bison_version" >&6;}
7159   if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
7160   then
7161     { $as_echo "$as_me:$LINENO: WARNING:
7162 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7163 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
7164 $as_echo "$as_me: WARNING:
7165 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7166 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
7167     BISON=""
7168   fi
7169 fi
7170
7171 if test -z "$BISON"; then
7172   { $as_echo "$as_me:$LINENO: WARNING:
7173 *** Without Bison you will not be able to build PostgreSQL from Git nor
7174 *** change any of the parser definition files.  You can obtain Bison from
7175 *** a GNU mirror site.  (If you are using the official distribution of
7176 *** PostgreSQL then you do not need to worry about this, because the Bison
7177 *** output is pre-generated.)" >&5
7178 $as_echo "$as_me: WARNING:
7179 *** Without Bison you will not be able to build PostgreSQL from Git nor
7180 *** change any of the parser definition files.  You can obtain Bison from
7181 *** a GNU mirror site.  (If you are using the official distribution of
7182 *** PostgreSQL then you do not need to worry about this, because the Bison
7183 *** output is pre-generated.)" >&2;}
7184 fi
7185 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
7186
7187
7188 { $as_echo "$as_me:$LINENO: checking for flex" >&5
7189 $as_echo_n "checking for flex... " >&6; }
7190 if test "${pgac_cv_path_flex+set}" = set; then
7191   $as_echo_n "(cached) " >&6
7192 else
7193   # Let the user override the test
7194 if test -n "$FLEX"; then
7195   pgac_cv_path_flex=$FLEX
7196 else
7197   pgac_save_IFS=$IFS
7198   IFS=$PATH_SEPARATOR
7199   for pgac_dir in $PATH; do
7200     IFS=$pgac_save_IFS
7201     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
7202       pgac_dir=`pwd`
7203     fi
7204     for pgac_prog in flex lex; do
7205       pgac_candidate="$pgac_dir/$pgac_prog"
7206       if test -f "$pgac_candidate" \
7207         && $pgac_candidate --version </dev/null >/dev/null 2>&1
7208       then
7209         echo '%%'  > conftest.l
7210         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
7211           pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
7212           if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
7213           then
7214             pgac_cv_path_flex=$pgac_candidate
7215             break 2
7216           else
7217             { $as_echo "$as_me:$LINENO: WARNING:
7218 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7219 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
7220 $as_echo "$as_me: WARNING:
7221 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7222 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
7223           fi
7224         fi
7225       fi
7226     done
7227   done
7228   rm -f conftest.l lex.yy.c
7229   : ${pgac_cv_path_flex=no}
7230 fi
7231
7232 fi
7233 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
7234 $as_echo "$pgac_cv_path_flex" >&6; }
7235 if test x"$pgac_cv_path_flex" = x"no"; then
7236   { $as_echo "$as_me:$LINENO: WARNING:
7237 *** Without Flex you will not be able to build PostgreSQL from Git nor
7238 *** change any of the scanner definition files.  You can obtain Flex from
7239 *** a GNU mirror site.  (If you are using the official distribution of
7240 *** PostgreSQL then you do not need to worry about this because the Flex
7241 *** output is pre-generated.)" >&5
7242 $as_echo "$as_me: WARNING:
7243 *** Without Flex you will not be able to build PostgreSQL from Git nor
7244 *** change any of the scanner definition files.  You can obtain Flex from
7245 *** a GNU mirror site.  (If you are using the official distribution of
7246 *** PostgreSQL then you do not need to worry about this because the Flex
7247 *** output is pre-generated.)" >&2;}
7248
7249   FLEX=
7250 else
7251   FLEX=$pgac_cv_path_flex
7252   pgac_flex_version=`$FLEX --version 2>/dev/null`
7253   { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
7254 $as_echo "$as_me: using $pgac_flex_version" >&6;}
7255 fi
7256
7257
7258
7259
7260
7261 # Let the user override the search
7262 if test -z "$PERL"; then
7263   # Extract the first word of "perl", so it can be a program name with args.
7264 set dummy perl; ac_word=$2
7265 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7266 $as_echo_n "checking for $ac_word... " >&6; }
7267 if test "${ac_cv_path_PERL+set}" = set; then
7268   $as_echo_n "(cached) " >&6
7269 else
7270   case $PERL in
7271   [\\/]* | ?:[\\/]*)
7272   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7273   ;;
7274   *)
7275   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 for as_dir in $PATH
7277 do
7278   IFS=$as_save_IFS
7279   test -z "$as_dir" && as_dir=.
7280   for ac_exec_ext in '' $ac_executable_extensions; do
7281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7282     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7283     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7284     break 2
7285   fi
7286 done
7287 done
7288 IFS=$as_save_IFS
7289
7290   ;;
7291 esac
7292 fi
7293 PERL=$ac_cv_path_PERL
7294 if test -n "$PERL"; then
7295   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
7296 $as_echo "$PERL" >&6; }
7297 else
7298   { $as_echo "$as_me:$LINENO: result: no" >&5
7299 $as_echo "no" >&6; }
7300 fi
7301
7302
7303 fi
7304
7305 if test "$PERL"; then
7306   pgac_perl_version=`$PERL -v 2>/dev/null | sed -n 's/This is perl.*v[a-z ]*\([0-9]\.[0-9][0-9.]*\).*$/\1/p'`
7307   { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
7308 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
7309   if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
7310     $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
7311   then
7312     { $as_echo "$as_me:$LINENO: WARNING:
7313 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7314 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
7315 $as_echo "$as_me: WARNING:
7316 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7317 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
7318     PERL=""
7319   fi
7320 fi
7321
7322 if test -z "$PERL"; then
7323   { $as_echo "$as_me:$LINENO: WARNING:
7324 *** Without Perl you will not be able to build PostgreSQL from Git.
7325 *** You can obtain Perl from any CPAN mirror site.
7326 *** (If you are using the official distribution of PostgreSQL then you do not
7327 *** need to worry about this, because the Perl output is pre-generated.)" >&5
7328 $as_echo "$as_me: WARNING:
7329 *** Without Perl you will not be able to build PostgreSQL from Git.
7330 *** You can obtain Perl from any CPAN mirror site.
7331 *** (If you are using the official distribution of PostgreSQL then you do not
7332 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
7333 fi
7334
7335 if test "$with_perl" = yes; then
7336   if test -z "$PERL"; then
7337     { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
7338 $as_echo "$as_me: error: Perl not found" >&2;}
7339    { (exit 1); exit 1; }; }
7340   fi
7341
7342 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
7343 $as_echo_n "checking for Perl archlibexp... " >&6; }
7344 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7345 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
7346 $as_echo "$perl_archlibexp" >&6; }
7347 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
7348 $as_echo_n "checking for Perl privlibexp... " >&6; }
7349 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7350 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
7351 $as_echo "$perl_privlibexp" >&6; }
7352 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
7353 $as_echo_n "checking for Perl useshrplib... " >&6; }
7354 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7355 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
7356 $as_echo "$perl_useshrplib" >&6; }
7357
7358 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
7359 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
7360 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7361 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7362 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7363 if test -z "$perl_embed_ldflags" ; then
7364         { $as_echo "$as_me:$LINENO: result: no" >&5
7365 $as_echo "no" >&6; }
7366         { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
7367 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7368 installed." >&5
7369 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
7370 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7371 installed." >&2;}
7372    { (exit 1); exit 1; }; }
7373 else
7374         { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
7375 $as_echo "$perl_embed_ldflags" >&6; }
7376 fi
7377
7378 fi
7379
7380 if test "$with_python" = yes; then
7381   # Extract the first word of "python", so it can be a program name with args.
7382 set dummy python; ac_word=$2
7383 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7384 $as_echo_n "checking for $ac_word... " >&6; }
7385 if test "${ac_cv_path_PYTHON+set}" = set; then
7386   $as_echo_n "(cached) " >&6
7387 else
7388   case $PYTHON in
7389   [\\/]* | ?:[\\/]*)
7390   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7391   ;;
7392   *)
7393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394 for as_dir in $PATH
7395 do
7396   IFS=$as_save_IFS
7397   test -z "$as_dir" && as_dir=.
7398   for ac_exec_ext in '' $ac_executable_extensions; do
7399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7400     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7401     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7402     break 2
7403   fi
7404 done
7405 done
7406 IFS=$as_save_IFS
7407
7408   ;;
7409 esac
7410 fi
7411 PYTHON=$ac_cv_path_PYTHON
7412 if test -n "$PYTHON"; then
7413   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
7414 $as_echo "$PYTHON" >&6; }
7415 else
7416   { $as_echo "$as_me:$LINENO: result: no" >&5
7417 $as_echo "no" >&6; }
7418 fi
7419
7420
7421 if test x"$PYTHON" = x""; then
7422   { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
7423 $as_echo "$as_me: error: Python not found" >&2;}
7424    { (exit 1); exit 1; }; }
7425 fi
7426
7427
7428 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
7429 $as_echo_n "checking for Python distutils module... " >&6; }
7430 if "${PYTHON}" -c 'import distutils' 2>&5
7431 then
7432     { $as_echo "$as_me:$LINENO: result: yes" >&5
7433 $as_echo "yes" >&6; }
7434 else
7435     { $as_echo "$as_me:$LINENO: result: no" >&5
7436 $as_echo "no" >&6; }
7437     { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7438 $as_echo "$as_me: error: distutils module not found" >&2;}
7439    { (exit 1); exit 1; }; }
7440 fi
7441 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7442 $as_echo_n "checking Python configuration directory... " >&6; }
7443 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7444 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7445 python_configdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
7446 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
7447
7448 # This should be enough of a message.
7449 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7450 $as_echo "$python_configdir" >&6; }
7451
7452
7453 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7454 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7455
7456 python_libdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7457 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7458 python_so=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7459 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7460
7461 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7462 then
7463         # New way: use the official shared library
7464         ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7465         python_libspec="-L${python_libdir} -l${ldlibrary}"
7466 else
7467         # Old way: use libpython from python_configdir
7468         python_libdir="${python_configdir}"
7469         # LDVERSION was introduced in Python 3.2.
7470         python_ldversion=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDVERSION'))))"`
7471         if test x"${python_ldversion}" = x""; then
7472                 python_ldversion=$python_version
7473         fi
7474         python_libspec="-L${python_libdir} -lpython${python_ldversion}"
7475 fi
7476
7477 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7478
7479 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7480 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7481
7482
7483 # threaded python is not supported on OpenBSD
7484 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7485 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7486 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7487 if test "$pythreads" = "1"; then
7488   { $as_echo "$as_me:$LINENO: result: yes" >&5
7489 $as_echo "yes" >&6; }
7490   case $host_os in
7491   openbsd*)
7492     { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7493 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7494    { (exit 1); exit 1; }; }
7495     ;;
7496   esac
7497 else
7498   { $as_echo "$as_me:$LINENO: result: no" >&5
7499 $as_echo "no" >&6; }
7500 fi
7501
7502
7503 fi
7504
7505 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7506   # Extract the first word of "zic", so it can be a program name with args.
7507 set dummy zic; ac_word=$2
7508 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7509 $as_echo_n "checking for $ac_word... " >&6; }
7510 if test "${ac_cv_path_ZIC+set}" = set; then
7511   $as_echo_n "(cached) " >&6
7512 else
7513   case $ZIC in
7514   [\\/]* | ?:[\\/]*)
7515   ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7516   ;;
7517   *)
7518   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 for as_dir in $PATH
7520 do
7521   IFS=$as_save_IFS
7522   test -z "$as_dir" && as_dir=.
7523   for ac_exec_ext in '' $ac_executable_extensions; do
7524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7525     ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7526     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7527     break 2
7528   fi
7529 done
7530 done
7531 IFS=$as_save_IFS
7532
7533   ;;
7534 esac
7535 fi
7536 ZIC=$ac_cv_path_ZIC
7537 if test -n "$ZIC"; then
7538   { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7539 $as_echo "$ZIC" >&6; }
7540 else
7541   { $as_echo "$as_me:$LINENO: result: no" >&5
7542 $as_echo "no" >&6; }
7543 fi
7544
7545
7546   if test -z "$ZIC"; then
7547     { { $as_echo "$as_me:$LINENO: error:
7548 When cross-compiling, either use the option --with-system-tzdata to use
7549 existing time-zone data, or set the environment variable ZIC to a zic
7550 program to use during the build." >&5
7551 $as_echo "$as_me: error:
7552 When cross-compiling, either use the option --with-system-tzdata to use
7553 existing time-zone data, or set the environment variable ZIC to a zic
7554 program to use during the build." >&2;}
7555    { (exit 1); exit 1; }; }
7556   fi
7557 fi
7558
7559
7560 ##
7561 ## Libraries
7562 ##
7563 ## Most libraries are included only if they demonstrably provide a function
7564 ## we need, but libm is an exception: always include it, because there are
7565 ## too many compilers that play cute optimization games that will break
7566 ## probes for standard functions such as pow().
7567 ##
7568
7569
7570 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7571 $as_echo_n "checking for main in -lm... " >&6; }
7572 if test "${ac_cv_lib_m_main+set}" = set; then
7573   $as_echo_n "(cached) " >&6
7574 else
7575   ac_check_lib_save_LIBS=$LIBS
7576 LIBS="-lm  $LIBS"
7577 cat >conftest.$ac_ext <<_ACEOF
7578 /* confdefs.h.  */
7579 _ACEOF
7580 cat confdefs.h >>conftest.$ac_ext
7581 cat >>conftest.$ac_ext <<_ACEOF
7582 /* end confdefs.h.  */
7583
7584
7585 int
7586 main ()
7587 {
7588 return main ();
7589   ;
7590   return 0;
7591 }
7592 _ACEOF
7593 rm -f conftest.$ac_objext conftest$ac_exeext
7594 if { (ac_try="$ac_link"
7595 case "(($ac_try" in
7596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7597   *) ac_try_echo=$ac_try;;
7598 esac
7599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7600 $as_echo "$ac_try_echo") >&5
7601   (eval "$ac_link") 2>conftest.er1
7602   ac_status=$?
7603   grep -v '^ *+' conftest.er1 >conftest.err
7604   rm -f conftest.er1
7605   cat conftest.err >&5
7606   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607   (exit $ac_status); } && {
7608          test -z "$ac_c_werror_flag" ||
7609          test ! -s conftest.err
7610        } && test -s conftest$ac_exeext && {
7611          test "$cross_compiling" = yes ||
7612          $as_test_x conftest$ac_exeext
7613        }; then
7614   ac_cv_lib_m_main=yes
7615 else
7616   $as_echo "$as_me: failed program was:" >&5
7617 sed 's/^/| /' conftest.$ac_ext >&5
7618
7619         ac_cv_lib_m_main=no
7620 fi
7621
7622 rm -rf conftest.dSYM
7623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7624       conftest$ac_exeext conftest.$ac_ext
7625 LIBS=$ac_check_lib_save_LIBS
7626 fi
7627 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7628 $as_echo "$ac_cv_lib_m_main" >&6; }
7629 if test "x$ac_cv_lib_m_main" = x""yes; then
7630   cat >>confdefs.h <<_ACEOF
7631 #define HAVE_LIBM 1
7632 _ACEOF
7633
7634   LIBS="-lm $LIBS"
7635
7636 fi
7637
7638 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7639 $as_echo_n "checking for library containing setproctitle... " >&6; }
7640 if test "${ac_cv_search_setproctitle+set}" = set; then
7641   $as_echo_n "(cached) " >&6
7642 else
7643   ac_func_search_save_LIBS=$LIBS
7644 cat >conftest.$ac_ext <<_ACEOF
7645 /* confdefs.h.  */
7646 _ACEOF
7647 cat confdefs.h >>conftest.$ac_ext
7648 cat >>conftest.$ac_ext <<_ACEOF
7649 /* end confdefs.h.  */
7650
7651 /* Override any GCC internal prototype to avoid an error.
7652    Use char because int might match the return type of a GCC
7653    builtin and then its argument prototype would still apply.  */
7654 #ifdef __cplusplus
7655 extern "C"
7656 #endif
7657 char setproctitle ();
7658 int
7659 main ()
7660 {
7661 return setproctitle ();
7662   ;
7663   return 0;
7664 }
7665 _ACEOF
7666 for ac_lib in '' util; do
7667   if test -z "$ac_lib"; then
7668     ac_res="none required"
7669   else
7670     ac_res=-l$ac_lib
7671     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7672   fi
7673   rm -f conftest.$ac_objext conftest$ac_exeext
7674 if { (ac_try="$ac_link"
7675 case "(($ac_try" in
7676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7677   *) ac_try_echo=$ac_try;;
7678 esac
7679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7680 $as_echo "$ac_try_echo") >&5
7681   (eval "$ac_link") 2>conftest.er1
7682   ac_status=$?
7683   grep -v '^ *+' conftest.er1 >conftest.err
7684   rm -f conftest.er1
7685   cat conftest.err >&5
7686   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687   (exit $ac_status); } && {
7688          test -z "$ac_c_werror_flag" ||
7689          test ! -s conftest.err
7690        } && test -s conftest$ac_exeext && {
7691          test "$cross_compiling" = yes ||
7692          $as_test_x conftest$ac_exeext
7693        }; then
7694   ac_cv_search_setproctitle=$ac_res
7695 else
7696   $as_echo "$as_me: failed program was:" >&5
7697 sed 's/^/| /' conftest.$ac_ext >&5
7698
7699
7700 fi
7701
7702 rm -rf conftest.dSYM
7703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7704       conftest$ac_exeext
7705   if test "${ac_cv_search_setproctitle+set}" = set; then
7706   break
7707 fi
7708 done
7709 if test "${ac_cv_search_setproctitle+set}" = set; then
7710   :
7711 else
7712   ac_cv_search_setproctitle=no
7713 fi
7714 rm conftest.$ac_ext
7715 LIBS=$ac_func_search_save_LIBS
7716 fi
7717 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7718 $as_echo "$ac_cv_search_setproctitle" >&6; }
7719 ac_res=$ac_cv_search_setproctitle
7720 if test "$ac_res" != no; then
7721   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7722
7723 fi
7724
7725 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7726 $as_echo_n "checking for library containing dlopen... " >&6; }
7727 if test "${ac_cv_search_dlopen+set}" = set; then
7728   $as_echo_n "(cached) " >&6
7729 else
7730   ac_func_search_save_LIBS=$LIBS
7731 cat >conftest.$ac_ext <<_ACEOF
7732 /* confdefs.h.  */
7733 _ACEOF
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h.  */
7737
7738 /* Override any GCC internal prototype to avoid an error.
7739    Use char because int might match the return type of a GCC
7740    builtin and then its argument prototype would still apply.  */
7741 #ifdef __cplusplus
7742 extern "C"
7743 #endif
7744 char dlopen ();
7745 int
7746 main ()
7747 {
7748 return dlopen ();
7749   ;
7750   return 0;
7751 }
7752 _ACEOF
7753 for ac_lib in '' dl; do
7754   if test -z "$ac_lib"; then
7755     ac_res="none required"
7756   else
7757     ac_res=-l$ac_lib
7758     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7759   fi
7760   rm -f conftest.$ac_objext conftest$ac_exeext
7761 if { (ac_try="$ac_link"
7762 case "(($ac_try" in
7763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7764   *) ac_try_echo=$ac_try;;
7765 esac
7766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7767 $as_echo "$ac_try_echo") >&5
7768   (eval "$ac_link") 2>conftest.er1
7769   ac_status=$?
7770   grep -v '^ *+' conftest.er1 >conftest.err
7771   rm -f conftest.er1
7772   cat conftest.err >&5
7773   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774   (exit $ac_status); } && {
7775          test -z "$ac_c_werror_flag" ||
7776          test ! -s conftest.err
7777        } && test -s conftest$ac_exeext && {
7778          test "$cross_compiling" = yes ||
7779          $as_test_x conftest$ac_exeext
7780        }; then
7781   ac_cv_search_dlopen=$ac_res
7782 else
7783   $as_echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.$ac_ext >&5
7785
7786
7787 fi
7788
7789 rm -rf conftest.dSYM
7790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7791       conftest$ac_exeext
7792   if test "${ac_cv_search_dlopen+set}" = set; then
7793   break
7794 fi
7795 done
7796 if test "${ac_cv_search_dlopen+set}" = set; then
7797   :
7798 else
7799   ac_cv_search_dlopen=no
7800 fi
7801 rm conftest.$ac_ext
7802 LIBS=$ac_func_search_save_LIBS
7803 fi
7804 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7805 $as_echo "$ac_cv_search_dlopen" >&6; }
7806 ac_res=$ac_cv_search_dlopen
7807 if test "$ac_res" != no; then
7808   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7809
7810 fi
7811
7812 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7813 $as_echo_n "checking for library containing socket... " >&6; }
7814 if test "${ac_cv_search_socket+set}" = set; then
7815   $as_echo_n "(cached) " >&6
7816 else
7817   ac_func_search_save_LIBS=$LIBS
7818 cat >conftest.$ac_ext <<_ACEOF
7819 /* confdefs.h.  */
7820 _ACEOF
7821 cat confdefs.h >>conftest.$ac_ext
7822 cat >>conftest.$ac_ext <<_ACEOF
7823 /* end confdefs.h.  */
7824
7825 /* Override any GCC internal prototype to avoid an error.
7826    Use char because int might match the return type of a GCC
7827    builtin and then its argument prototype would still apply.  */
7828 #ifdef __cplusplus
7829 extern "C"
7830 #endif
7831 char socket ();
7832 int
7833 main ()
7834 {
7835 return socket ();
7836   ;
7837   return 0;
7838 }
7839 _ACEOF
7840 for ac_lib in '' socket wsock32; do
7841   if test -z "$ac_lib"; then
7842     ac_res="none required"
7843   else
7844     ac_res=-l$ac_lib
7845     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7846   fi
7847   rm -f conftest.$ac_objext conftest$ac_exeext
7848 if { (ac_try="$ac_link"
7849 case "(($ac_try" in
7850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7851   *) ac_try_echo=$ac_try;;
7852 esac
7853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7854 $as_echo "$ac_try_echo") >&5
7855   (eval "$ac_link") 2>conftest.er1
7856   ac_status=$?
7857   grep -v '^ *+' conftest.er1 >conftest.err
7858   rm -f conftest.er1
7859   cat conftest.err >&5
7860   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861   (exit $ac_status); } && {
7862          test -z "$ac_c_werror_flag" ||
7863          test ! -s conftest.err
7864        } && test -s conftest$ac_exeext && {
7865          test "$cross_compiling" = yes ||
7866          $as_test_x conftest$ac_exeext
7867        }; then
7868   ac_cv_search_socket=$ac_res
7869 else
7870   $as_echo "$as_me: failed program was:" >&5
7871 sed 's/^/| /' conftest.$ac_ext >&5
7872
7873
7874 fi
7875
7876 rm -rf conftest.dSYM
7877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7878       conftest$ac_exeext
7879   if test "${ac_cv_search_socket+set}" = set; then
7880   break
7881 fi
7882 done
7883 if test "${ac_cv_search_socket+set}" = set; then
7884   :
7885 else
7886   ac_cv_search_socket=no
7887 fi
7888 rm conftest.$ac_ext
7889 LIBS=$ac_func_search_save_LIBS
7890 fi
7891 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7892 $as_echo "$ac_cv_search_socket" >&6; }
7893 ac_res=$ac_cv_search_socket
7894 if test "$ac_res" != no; then
7895   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7896
7897 fi
7898
7899 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7900 $as_echo_n "checking for library containing shl_load... " >&6; }
7901 if test "${ac_cv_search_shl_load+set}" = set; then
7902   $as_echo_n "(cached) " >&6
7903 else
7904   ac_func_search_save_LIBS=$LIBS
7905 cat >conftest.$ac_ext <<_ACEOF
7906 /* confdefs.h.  */
7907 _ACEOF
7908 cat confdefs.h >>conftest.$ac_ext
7909 cat >>conftest.$ac_ext <<_ACEOF
7910 /* end confdefs.h.  */
7911
7912 /* Override any GCC internal prototype to avoid an error.
7913    Use char because int might match the return type of a GCC
7914    builtin and then its argument prototype would still apply.  */
7915 #ifdef __cplusplus
7916 extern "C"
7917 #endif
7918 char shl_load ();
7919 int
7920 main ()
7921 {
7922 return shl_load ();
7923   ;
7924   return 0;
7925 }
7926 _ACEOF
7927 for ac_lib in '' dld; do
7928   if test -z "$ac_lib"; then
7929     ac_res="none required"
7930   else
7931     ac_res=-l$ac_lib
7932     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7933   fi
7934   rm -f conftest.$ac_objext conftest$ac_exeext
7935 if { (ac_try="$ac_link"
7936 case "(($ac_try" in
7937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7938   *) ac_try_echo=$ac_try;;
7939 esac
7940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7941 $as_echo "$ac_try_echo") >&5
7942   (eval "$ac_link") 2>conftest.er1
7943   ac_status=$?
7944   grep -v '^ *+' conftest.er1 >conftest.err
7945   rm -f conftest.er1
7946   cat conftest.err >&5
7947   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948   (exit $ac_status); } && {
7949          test -z "$ac_c_werror_flag" ||
7950          test ! -s conftest.err
7951        } && test -s conftest$ac_exeext && {
7952          test "$cross_compiling" = yes ||
7953          $as_test_x conftest$ac_exeext
7954        }; then
7955   ac_cv_search_shl_load=$ac_res
7956 else
7957   $as_echo "$as_me: failed program was:" >&5
7958 sed 's/^/| /' conftest.$ac_ext >&5
7959
7960
7961 fi
7962
7963 rm -rf conftest.dSYM
7964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7965       conftest$ac_exeext
7966   if test "${ac_cv_search_shl_load+set}" = set; then
7967   break
7968 fi
7969 done
7970 if test "${ac_cv_search_shl_load+set}" = set; then
7971   :
7972 else
7973   ac_cv_search_shl_load=no
7974 fi
7975 rm conftest.$ac_ext
7976 LIBS=$ac_func_search_save_LIBS
7977 fi
7978 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7979 $as_echo "$ac_cv_search_shl_load" >&6; }
7980 ac_res=$ac_cv_search_shl_load
7981 if test "$ac_res" != no; then
7982   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7983
7984 fi
7985
7986 # We only use libld in port/dynloader/aix.c
7987 case $host_os in
7988      aix*)
7989         { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7990 $as_echo_n "checking for library containing ldopen... " >&6; }
7991 if test "${ac_cv_search_ldopen+set}" = set; then
7992   $as_echo_n "(cached) " >&6
7993 else
7994   ac_func_search_save_LIBS=$LIBS
7995 cat >conftest.$ac_ext <<_ACEOF
7996 /* confdefs.h.  */
7997 _ACEOF
7998 cat confdefs.h >>conftest.$ac_ext
7999 cat >>conftest.$ac_ext <<_ACEOF
8000 /* end confdefs.h.  */
8001
8002 /* Override any GCC internal prototype to avoid an error.
8003    Use char because int might match the return type of a GCC
8004    builtin and then its argument prototype would still apply.  */
8005 #ifdef __cplusplus
8006 extern "C"
8007 #endif
8008 char ldopen ();
8009 int
8010 main ()
8011 {
8012 return ldopen ();
8013   ;
8014   return 0;
8015 }
8016 _ACEOF
8017 for ac_lib in '' ld; do
8018   if test -z "$ac_lib"; then
8019     ac_res="none required"
8020   else
8021     ac_res=-l$ac_lib
8022     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8023   fi
8024   rm -f conftest.$ac_objext conftest$ac_exeext
8025 if { (ac_try="$ac_link"
8026 case "(($ac_try" in
8027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8028   *) ac_try_echo=$ac_try;;
8029 esac
8030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8031 $as_echo "$ac_try_echo") >&5
8032   (eval "$ac_link") 2>conftest.er1
8033   ac_status=$?
8034   grep -v '^ *+' conftest.er1 >conftest.err
8035   rm -f conftest.er1
8036   cat conftest.err >&5
8037   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038   (exit $ac_status); } && {
8039          test -z "$ac_c_werror_flag" ||
8040          test ! -s conftest.err
8041        } && test -s conftest$ac_exeext && {
8042          test "$cross_compiling" = yes ||
8043          $as_test_x conftest$ac_exeext
8044        }; then
8045   ac_cv_search_ldopen=$ac_res
8046 else
8047   $as_echo "$as_me: failed program was:" >&5
8048 sed 's/^/| /' conftest.$ac_ext >&5
8049
8050
8051 fi
8052
8053 rm -rf conftest.dSYM
8054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8055       conftest$ac_exeext
8056   if test "${ac_cv_search_ldopen+set}" = set; then
8057   break
8058 fi
8059 done
8060 if test "${ac_cv_search_ldopen+set}" = set; then
8061   :
8062 else
8063   ac_cv_search_ldopen=no
8064 fi
8065 rm conftest.$ac_ext
8066 LIBS=$ac_func_search_save_LIBS
8067 fi
8068 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
8069 $as_echo "$ac_cv_search_ldopen" >&6; }
8070 ac_res=$ac_cv_search_ldopen
8071 if test "$ac_res" != no; then
8072   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8073
8074 fi
8075
8076         ;;
8077 esac
8078 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
8079 $as_echo_n "checking for library containing getopt_long... " >&6; }
8080 if test "${ac_cv_search_getopt_long+set}" = set; then
8081   $as_echo_n "(cached) " >&6
8082 else
8083   ac_func_search_save_LIBS=$LIBS
8084 cat >conftest.$ac_ext <<_ACEOF
8085 /* confdefs.h.  */
8086 _ACEOF
8087 cat confdefs.h >>conftest.$ac_ext
8088 cat >>conftest.$ac_ext <<_ACEOF
8089 /* end confdefs.h.  */
8090
8091 /* Override any GCC internal prototype to avoid an error.
8092    Use char because int might match the return type of a GCC
8093    builtin and then its argument prototype would still apply.  */
8094 #ifdef __cplusplus
8095 extern "C"
8096 #endif
8097 char getopt_long ();
8098 int
8099 main ()
8100 {
8101 return getopt_long ();
8102   ;
8103   return 0;
8104 }
8105 _ACEOF
8106 for ac_lib in '' getopt gnugetopt; do
8107   if test -z "$ac_lib"; then
8108     ac_res="none required"
8109   else
8110     ac_res=-l$ac_lib
8111     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8112   fi
8113   rm -f conftest.$ac_objext conftest$ac_exeext
8114 if { (ac_try="$ac_link"
8115 case "(($ac_try" in
8116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117   *) ac_try_echo=$ac_try;;
8118 esac
8119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8120 $as_echo "$ac_try_echo") >&5
8121   (eval "$ac_link") 2>conftest.er1
8122   ac_status=$?
8123   grep -v '^ *+' conftest.er1 >conftest.err
8124   rm -f conftest.er1
8125   cat conftest.err >&5
8126   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); } && {
8128          test -z "$ac_c_werror_flag" ||
8129          test ! -s conftest.err
8130        } && test -s conftest$ac_exeext && {
8131          test "$cross_compiling" = yes ||
8132          $as_test_x conftest$ac_exeext
8133        }; then
8134   ac_cv_search_getopt_long=$ac_res
8135 else
8136   $as_echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8138
8139
8140 fi
8141
8142 rm -rf conftest.dSYM
8143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8144       conftest$ac_exeext
8145   if test "${ac_cv_search_getopt_long+set}" = set; then
8146   break
8147 fi
8148 done
8149 if test "${ac_cv_search_getopt_long+set}" = set; then
8150   :
8151 else
8152   ac_cv_search_getopt_long=no
8153 fi
8154 rm conftest.$ac_ext
8155 LIBS=$ac_func_search_save_LIBS
8156 fi
8157 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
8158 $as_echo "$ac_cv_search_getopt_long" >&6; }
8159 ac_res=$ac_cv_search_getopt_long
8160 if test "$ac_res" != no; then
8161   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8162
8163 fi
8164
8165 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
8166 $as_echo_n "checking for library containing crypt... " >&6; }
8167 if test "${ac_cv_search_crypt+set}" = set; then
8168   $as_echo_n "(cached) " >&6
8169 else
8170   ac_func_search_save_LIBS=$LIBS
8171 cat >conftest.$ac_ext <<_ACEOF
8172 /* confdefs.h.  */
8173 _ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h.  */
8177
8178 /* Override any GCC internal prototype to avoid an error.
8179    Use char because int might match the return type of a GCC
8180    builtin and then its argument prototype would still apply.  */
8181 #ifdef __cplusplus
8182 extern "C"
8183 #endif
8184 char crypt ();
8185 int
8186 main ()
8187 {
8188 return crypt ();
8189   ;
8190   return 0;
8191 }
8192 _ACEOF
8193 for ac_lib in '' crypt; do
8194   if test -z "$ac_lib"; then
8195     ac_res="none required"
8196   else
8197     ac_res=-l$ac_lib
8198     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8199   fi
8200   rm -f conftest.$ac_objext conftest$ac_exeext
8201 if { (ac_try="$ac_link"
8202 case "(($ac_try" in
8203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8204   *) ac_try_echo=$ac_try;;
8205 esac
8206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8207 $as_echo "$ac_try_echo") >&5
8208   (eval "$ac_link") 2>conftest.er1
8209   ac_status=$?
8210   grep -v '^ *+' conftest.er1 >conftest.err
8211   rm -f conftest.er1
8212   cat conftest.err >&5
8213   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214   (exit $ac_status); } && {
8215          test -z "$ac_c_werror_flag" ||
8216          test ! -s conftest.err
8217        } && test -s conftest$ac_exeext && {
8218          test "$cross_compiling" = yes ||
8219          $as_test_x conftest$ac_exeext
8220        }; then
8221   ac_cv_search_crypt=$ac_res
8222 else
8223   $as_echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8225
8226
8227 fi
8228
8229 rm -rf conftest.dSYM
8230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8231       conftest$ac_exeext
8232   if test "${ac_cv_search_crypt+set}" = set; then
8233   break
8234 fi
8235 done
8236 if test "${ac_cv_search_crypt+set}" = set; then
8237   :
8238 else
8239   ac_cv_search_crypt=no
8240 fi
8241 rm conftest.$ac_ext
8242 LIBS=$ac_func_search_save_LIBS
8243 fi
8244 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
8245 $as_echo "$ac_cv_search_crypt" >&6; }
8246 ac_res=$ac_cv_search_crypt
8247 if test "$ac_res" != no; then
8248   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8249
8250 fi
8251
8252 # Solaris:
8253 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
8254 $as_echo_n "checking for library containing fdatasync... " >&6; }
8255 if test "${ac_cv_search_fdatasync+set}" = set; then
8256   $as_echo_n "(cached) " >&6
8257 else
8258   ac_func_search_save_LIBS=$LIBS
8259 cat >conftest.$ac_ext <<_ACEOF
8260 /* confdefs.h.  */
8261 _ACEOF
8262 cat confdefs.h >>conftest.$ac_ext
8263 cat >>conftest.$ac_ext <<_ACEOF
8264 /* end confdefs.h.  */
8265
8266 /* Override any GCC internal prototype to avoid an error.
8267    Use char because int might match the return type of a GCC
8268    builtin and then its argument prototype would still apply.  */
8269 #ifdef __cplusplus
8270 extern "C"
8271 #endif
8272 char fdatasync ();
8273 int
8274 main ()
8275 {
8276 return fdatasync ();
8277   ;
8278   return 0;
8279 }
8280 _ACEOF
8281 for ac_lib in '' rt posix4; do
8282   if test -z "$ac_lib"; then
8283     ac_res="none required"
8284   else
8285     ac_res=-l$ac_lib
8286     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8287   fi
8288   rm -f conftest.$ac_objext conftest$ac_exeext
8289 if { (ac_try="$ac_link"
8290 case "(($ac_try" in
8291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292   *) ac_try_echo=$ac_try;;
8293 esac
8294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8295 $as_echo "$ac_try_echo") >&5
8296   (eval "$ac_link") 2>conftest.er1
8297   ac_status=$?
8298   grep -v '^ *+' conftest.er1 >conftest.err
8299   rm -f conftest.er1
8300   cat conftest.err >&5
8301   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302   (exit $ac_status); } && {
8303          test -z "$ac_c_werror_flag" ||
8304          test ! -s conftest.err
8305        } && test -s conftest$ac_exeext && {
8306          test "$cross_compiling" = yes ||
8307          $as_test_x conftest$ac_exeext
8308        }; then
8309   ac_cv_search_fdatasync=$ac_res
8310 else
8311   $as_echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8313
8314
8315 fi
8316
8317 rm -rf conftest.dSYM
8318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8319       conftest$ac_exeext
8320   if test "${ac_cv_search_fdatasync+set}" = set; then
8321   break
8322 fi
8323 done
8324 if test "${ac_cv_search_fdatasync+set}" = set; then
8325   :
8326 else
8327   ac_cv_search_fdatasync=no
8328 fi
8329 rm conftest.$ac_ext
8330 LIBS=$ac_func_search_save_LIBS
8331 fi
8332 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
8333 $as_echo "$ac_cv_search_fdatasync" >&6; }
8334 ac_res=$ac_cv_search_fdatasync
8335 if test "$ac_res" != no; then
8336   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8337
8338 fi
8339
8340 # Required for thread_test.c on Solaris 2.5:
8341 # Other ports use it too (HP-UX) so test unconditionally
8342 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
8343 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
8344 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8345   $as_echo_n "(cached) " >&6
8346 else
8347   ac_func_search_save_LIBS=$LIBS
8348 cat >conftest.$ac_ext <<_ACEOF
8349 /* confdefs.h.  */
8350 _ACEOF
8351 cat confdefs.h >>conftest.$ac_ext
8352 cat >>conftest.$ac_ext <<_ACEOF
8353 /* end confdefs.h.  */
8354
8355 /* Override any GCC internal prototype to avoid an error.
8356    Use char because int might match the return type of a GCC
8357    builtin and then its argument prototype would still apply.  */
8358 #ifdef __cplusplus
8359 extern "C"
8360 #endif
8361 char gethostbyname_r ();
8362 int
8363 main ()
8364 {
8365 return gethostbyname_r ();
8366   ;
8367   return 0;
8368 }
8369 _ACEOF
8370 for ac_lib in '' nsl; do
8371   if test -z "$ac_lib"; then
8372     ac_res="none required"
8373   else
8374     ac_res=-l$ac_lib
8375     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8376   fi
8377   rm -f conftest.$ac_objext conftest$ac_exeext
8378 if { (ac_try="$ac_link"
8379 case "(($ac_try" in
8380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8381   *) ac_try_echo=$ac_try;;
8382 esac
8383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8384 $as_echo "$ac_try_echo") >&5
8385   (eval "$ac_link") 2>conftest.er1
8386   ac_status=$?
8387   grep -v '^ *+' conftest.er1 >conftest.err
8388   rm -f conftest.er1
8389   cat conftest.err >&5
8390   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391   (exit $ac_status); } && {
8392          test -z "$ac_c_werror_flag" ||
8393          test ! -s conftest.err
8394        } && test -s conftest$ac_exeext && {
8395          test "$cross_compiling" = yes ||
8396          $as_test_x conftest$ac_exeext
8397        }; then
8398   ac_cv_search_gethostbyname_r=$ac_res
8399 else
8400   $as_echo "$as_me: failed program was:" >&5
8401 sed 's/^/| /' conftest.$ac_ext >&5
8402
8403
8404 fi
8405
8406 rm -rf conftest.dSYM
8407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8408       conftest$ac_exeext
8409   if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8410   break
8411 fi
8412 done
8413 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8414   :
8415 else
8416   ac_cv_search_gethostbyname_r=no
8417 fi
8418 rm conftest.$ac_ext
8419 LIBS=$ac_func_search_save_LIBS
8420 fi
8421 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
8422 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
8423 ac_res=$ac_cv_search_gethostbyname_r
8424 if test "$ac_res" != no; then
8425   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8426
8427 fi
8428
8429 # Cygwin:
8430 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
8431 $as_echo_n "checking for library containing shmget... " >&6; }
8432 if test "${ac_cv_search_shmget+set}" = set; then
8433   $as_echo_n "(cached) " >&6
8434 else
8435   ac_func_search_save_LIBS=$LIBS
8436 cat >conftest.$ac_ext <<_ACEOF
8437 /* confdefs.h.  */
8438 _ACEOF
8439 cat confdefs.h >>conftest.$ac_ext
8440 cat >>conftest.$ac_ext <<_ACEOF
8441 /* end confdefs.h.  */
8442
8443 /* Override any GCC internal prototype to avoid an error.
8444    Use char because int might match the return type of a GCC
8445    builtin and then its argument prototype would still apply.  */
8446 #ifdef __cplusplus
8447 extern "C"
8448 #endif
8449 char shmget ();
8450 int
8451 main ()
8452 {
8453 return shmget ();
8454   ;
8455   return 0;
8456 }
8457 _ACEOF
8458 for ac_lib in '' cygipc; do
8459   if test -z "$ac_lib"; then
8460     ac_res="none required"
8461   else
8462     ac_res=-l$ac_lib
8463     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8464   fi
8465   rm -f conftest.$ac_objext conftest$ac_exeext
8466 if { (ac_try="$ac_link"
8467 case "(($ac_try" in
8468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8469   *) ac_try_echo=$ac_try;;
8470 esac
8471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8472 $as_echo "$ac_try_echo") >&5
8473   (eval "$ac_link") 2>conftest.er1
8474   ac_status=$?
8475   grep -v '^ *+' conftest.er1 >conftest.err
8476   rm -f conftest.er1
8477   cat conftest.err >&5
8478   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479   (exit $ac_status); } && {
8480          test -z "$ac_c_werror_flag" ||
8481          test ! -s conftest.err
8482        } && test -s conftest$ac_exeext && {
8483          test "$cross_compiling" = yes ||
8484          $as_test_x conftest$ac_exeext
8485        }; then
8486   ac_cv_search_shmget=$ac_res
8487 else
8488   $as_echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.$ac_ext >&5
8490
8491
8492 fi
8493
8494 rm -rf conftest.dSYM
8495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8496       conftest$ac_exeext
8497   if test "${ac_cv_search_shmget+set}" = set; then
8498   break
8499 fi
8500 done
8501 if test "${ac_cv_search_shmget+set}" = set; then
8502   :
8503 else
8504   ac_cv_search_shmget=no
8505 fi
8506 rm conftest.$ac_ext
8507 LIBS=$ac_func_search_save_LIBS
8508 fi
8509 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8510 $as_echo "$ac_cv_search_shmget" >&6; }
8511 ac_res=$ac_cv_search_shmget
8512 if test "$ac_res" != no; then
8513   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8514
8515 fi
8516
8517
8518 if test "$with_readline" = yes; then
8519
8520
8521 { $as_echo "$as_me:$LINENO: checking for library containing readline" >&5
8522 $as_echo_n "checking for library containing readline... " >&6; }
8523 if test "${pgac_cv_check_readline+set}" = set; then
8524   $as_echo_n "(cached) " >&6
8525 else
8526   pgac_cv_check_readline=no
8527 pgac_save_LIBS=$LIBS
8528 if test x"$with_libedit_preferred" != x"yes"
8529 then    READLINE_ORDER="-lreadline -ledit"
8530 else    READLINE_ORDER="-ledit -lreadline"
8531 fi
8532 for pgac_rllib in $READLINE_ORDER ; do
8533   for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8534     LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8535     cat >conftest.$ac_ext <<_ACEOF
8536 /* confdefs.h.  */
8537 _ACEOF
8538 cat confdefs.h >>conftest.$ac_ext
8539 cat >>conftest.$ac_ext <<_ACEOF
8540 /* end confdefs.h.  */
8541
8542 /* Override any GCC internal prototype to avoid an error.
8543    Use char because int might match the return type of a GCC
8544    builtin and then its argument prototype would still apply.  */
8545 #ifdef __cplusplus
8546 extern "C"
8547 #endif
8548 char readline ();
8549 int
8550 main ()
8551 {
8552 return readline ();
8553   ;
8554   return 0;
8555 }
8556 _ACEOF
8557 rm -f conftest.$ac_objext conftest$ac_exeext
8558 if { (ac_try="$ac_link"
8559 case "(($ac_try" in
8560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8561   *) ac_try_echo=$ac_try;;
8562 esac
8563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8564 $as_echo "$ac_try_echo") >&5
8565   (eval "$ac_link") 2>conftest.er1
8566   ac_status=$?
8567   grep -v '^ *+' conftest.er1 >conftest.err
8568   rm -f conftest.er1
8569   cat conftest.err >&5
8570   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571   (exit $ac_status); } && {
8572          test -z "$ac_c_werror_flag" ||
8573          test ! -s conftest.err
8574        } && test -s conftest$ac_exeext && {
8575          test "$cross_compiling" = yes ||
8576          $as_test_x conftest$ac_exeext
8577        }; then
8578
8579       # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8580       # recognize dependent libraries; assume curses is needed if we didn't
8581       # find any dependency.
8582       case $host_os in
8583         netbsd* | openbsd* | irix*)
8584           if test x"$pgac_lib" = x"" ; then
8585             pgac_lib=" -lcurses"
8586           fi ;;
8587       esac
8588
8589       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8590       break
8591
8592 else
8593   $as_echo "$as_me: failed program was:" >&5
8594 sed 's/^/| /' conftest.$ac_ext >&5
8595
8596
8597 fi
8598
8599 rm -rf conftest.dSYM
8600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8601       conftest$ac_exeext conftest.$ac_ext
8602   done
8603   if test "$pgac_cv_check_readline" != no ; then
8604     break
8605   fi
8606 done
8607 LIBS=$pgac_save_LIBS
8608
8609 fi
8610 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_readline" >&5
8611 $as_echo "$pgac_cv_check_readline" >&6; }
8612 if test "$pgac_cv_check_readline" != no ; then
8613   LIBS="$pgac_cv_check_readline $LIBS"
8614
8615 cat >>confdefs.h <<\_ACEOF
8616 #define HAVE_LIBREADLINE 1
8617 _ACEOF
8618
8619 fi
8620
8621
8622   if test x"$pgac_cv_check_readline" = x"no"; then
8623     { { $as_echo "$as_me:$LINENO: error: readline library not found
8624 If you have readline already installed, see config.log for details on the
8625 failure.  It is possible the compiler isn't looking in the proper directory.
8626 Use --without-readline to disable readline support." >&5
8627 $as_echo "$as_me: error: readline library not found
8628 If you have readline already installed, see config.log for details on the
8629 failure.  It is possible the compiler isn't looking in the proper directory.
8630 Use --without-readline to disable readline support." >&2;}
8631    { (exit 1); exit 1; }; }
8632   fi
8633 fi
8634
8635 if test "$with_zlib" = yes; then
8636
8637 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8638 $as_echo_n "checking for inflate in -lz... " >&6; }
8639 if test "${ac_cv_lib_z_inflate+set}" = set; then
8640   $as_echo_n "(cached) " >&6
8641 else
8642   ac_check_lib_save_LIBS=$LIBS
8643 LIBS="-lz  $LIBS"
8644 cat >conftest.$ac_ext <<_ACEOF
8645 /* confdefs.h.  */
8646 _ACEOF
8647 cat confdefs.h >>conftest.$ac_ext
8648 cat >>conftest.$ac_ext <<_ACEOF
8649 /* end confdefs.h.  */
8650
8651 /* Override any GCC internal prototype to avoid an error.
8652    Use char because int might match the return type of a GCC
8653    builtin and then its argument prototype would still apply.  */
8654 #ifdef __cplusplus
8655 extern "C"
8656 #endif
8657 char inflate ();
8658 int
8659 main ()
8660 {
8661 return inflate ();
8662   ;
8663   return 0;
8664 }
8665 _ACEOF
8666 rm -f conftest.$ac_objext conftest$ac_exeext
8667 if { (ac_try="$ac_link"
8668 case "(($ac_try" in
8669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8670   *) ac_try_echo=$ac_try;;
8671 esac
8672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8673 $as_echo "$ac_try_echo") >&5
8674   (eval "$ac_link") 2>conftest.er1
8675   ac_status=$?
8676   grep -v '^ *+' conftest.er1 >conftest.err
8677   rm -f conftest.er1
8678   cat conftest.err >&5
8679   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680   (exit $ac_status); } && {
8681          test -z "$ac_c_werror_flag" ||
8682          test ! -s conftest.err
8683        } && test -s conftest$ac_exeext && {
8684          test "$cross_compiling" = yes ||
8685          $as_test_x conftest$ac_exeext
8686        }; then
8687   ac_cv_lib_z_inflate=yes
8688 else
8689   $as_echo "$as_me: failed program was:" >&5
8690 sed 's/^/| /' conftest.$ac_ext >&5
8691
8692         ac_cv_lib_z_inflate=no
8693 fi
8694
8695 rm -rf conftest.dSYM
8696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8697       conftest$ac_exeext conftest.$ac_ext
8698 LIBS=$ac_check_lib_save_LIBS
8699 fi
8700 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8701 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8702 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8703   cat >>confdefs.h <<_ACEOF
8704 #define HAVE_LIBZ 1
8705 _ACEOF
8706
8707   LIBS="-lz $LIBS"
8708
8709 else
8710   { { $as_echo "$as_me:$LINENO: error: zlib library not found
8711 If you have zlib already installed, see config.log for details on the
8712 failure.  It is possible the compiler isn't looking in the proper directory.
8713 Use --without-zlib to disable zlib support." >&5
8714 $as_echo "$as_me: error: zlib library not found
8715 If you have zlib already installed, see config.log for details on the
8716 failure.  It is possible the compiler isn't looking in the proper directory.
8717 Use --without-zlib to disable zlib support." >&2;}
8718    { (exit 1); exit 1; }; }
8719 fi
8720
8721 fi
8722
8723 if test "$enable_spinlocks" = yes; then
8724
8725 cat >>confdefs.h <<\_ACEOF
8726 #define HAVE_SPINLOCKS 1
8727 _ACEOF
8728
8729 else
8730   { $as_echo "$as_me:$LINENO: WARNING:
8731 *** Not using spinlocks will cause poor performance." >&5
8732 $as_echo "$as_me: WARNING:
8733 *** Not using spinlocks will cause poor performance." >&2;}
8734 fi
8735
8736 if test "$with_gssapi" = yes ; then
8737   if test "$PORTNAME" != "win32"; then
8738     { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8739 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8740 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8741   $as_echo_n "(cached) " >&6
8742 else
8743   ac_func_search_save_LIBS=$LIBS
8744 cat >conftest.$ac_ext <<_ACEOF
8745 /* confdefs.h.  */
8746 _ACEOF
8747 cat confdefs.h >>conftest.$ac_ext
8748 cat >>conftest.$ac_ext <<_ACEOF
8749 /* end confdefs.h.  */
8750
8751 /* Override any GCC internal prototype to avoid an error.
8752    Use char because int might match the return type of a GCC
8753    builtin and then its argument prototype would still apply.  */
8754 #ifdef __cplusplus
8755 extern "C"
8756 #endif
8757 char gss_init_sec_context ();
8758 int
8759 main ()
8760 {
8761 return gss_init_sec_context ();
8762   ;
8763   return 0;
8764 }
8765 _ACEOF
8766 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8767   if test -z "$ac_lib"; then
8768     ac_res="none required"
8769   else
8770     ac_res=-l$ac_lib
8771     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8772   fi
8773   rm -f conftest.$ac_objext conftest$ac_exeext
8774 if { (ac_try="$ac_link"
8775 case "(($ac_try" in
8776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8777   *) ac_try_echo=$ac_try;;
8778 esac
8779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8780 $as_echo "$ac_try_echo") >&5
8781   (eval "$ac_link") 2>conftest.er1
8782   ac_status=$?
8783   grep -v '^ *+' conftest.er1 >conftest.err
8784   rm -f conftest.er1
8785   cat conftest.err >&5
8786   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787   (exit $ac_status); } && {
8788          test -z "$ac_c_werror_flag" ||
8789          test ! -s conftest.err
8790        } && test -s conftest$ac_exeext && {
8791          test "$cross_compiling" = yes ||
8792          $as_test_x conftest$ac_exeext
8793        }; then
8794   ac_cv_search_gss_init_sec_context=$ac_res
8795 else
8796   $as_echo "$as_me: failed program was:" >&5
8797 sed 's/^/| /' conftest.$ac_ext >&5
8798
8799
8800 fi
8801
8802 rm -rf conftest.dSYM
8803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8804       conftest$ac_exeext
8805   if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8806   break
8807 fi
8808 done
8809 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8810   :
8811 else
8812   ac_cv_search_gss_init_sec_context=no
8813 fi
8814 rm conftest.$ac_ext
8815 LIBS=$ac_func_search_save_LIBS
8816 fi
8817 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8818 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8819 ac_res=$ac_cv_search_gss_init_sec_context
8820 if test "$ac_res" != no; then
8821   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8822
8823 else
8824   { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8825 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8826    { (exit 1); exit 1; }; }
8827 fi
8828
8829   else
8830     LIBS="$LIBS -lgssapi32"
8831   fi
8832 fi
8833
8834 if test "$with_krb5" = yes ; then
8835   if test "$PORTNAME" != "win32"; then
8836      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8837 $as_echo_n "checking for library containing com_err... " >&6; }
8838 if test "${ac_cv_search_com_err+set}" = set; then
8839   $as_echo_n "(cached) " >&6
8840 else
8841   ac_func_search_save_LIBS=$LIBS
8842 cat >conftest.$ac_ext <<_ACEOF
8843 /* confdefs.h.  */
8844 _ACEOF
8845 cat confdefs.h >>conftest.$ac_ext
8846 cat >>conftest.$ac_ext <<_ACEOF
8847 /* end confdefs.h.  */
8848
8849 /* Override any GCC internal prototype to avoid an error.
8850    Use char because int might match the return type of a GCC
8851    builtin and then its argument prototype would still apply.  */
8852 #ifdef __cplusplus
8853 extern "C"
8854 #endif
8855 char com_err ();
8856 int
8857 main ()
8858 {
8859 return com_err ();
8860   ;
8861   return 0;
8862 }
8863 _ACEOF
8864 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8865   if test -z "$ac_lib"; then
8866     ac_res="none required"
8867   else
8868     ac_res=-l$ac_lib
8869     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8870   fi
8871   rm -f conftest.$ac_objext conftest$ac_exeext
8872 if { (ac_try="$ac_link"
8873 case "(($ac_try" in
8874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8875   *) ac_try_echo=$ac_try;;
8876 esac
8877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8878 $as_echo "$ac_try_echo") >&5
8879   (eval "$ac_link") 2>conftest.er1
8880   ac_status=$?
8881   grep -v '^ *+' conftest.er1 >conftest.err
8882   rm -f conftest.er1
8883   cat conftest.err >&5
8884   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885   (exit $ac_status); } && {
8886          test -z "$ac_c_werror_flag" ||
8887          test ! -s conftest.err
8888        } && test -s conftest$ac_exeext && {
8889          test "$cross_compiling" = yes ||
8890          $as_test_x conftest$ac_exeext
8891        }; then
8892   ac_cv_search_com_err=$ac_res
8893 else
8894   $as_echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8896
8897
8898 fi
8899
8900 rm -rf conftest.dSYM
8901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8902       conftest$ac_exeext
8903   if test "${ac_cv_search_com_err+set}" = set; then
8904   break
8905 fi
8906 done
8907 if test "${ac_cv_search_com_err+set}" = set; then
8908   :
8909 else
8910   ac_cv_search_com_err=no
8911 fi
8912 rm conftest.$ac_ext
8913 LIBS=$ac_func_search_save_LIBS
8914 fi
8915 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8916 $as_echo "$ac_cv_search_com_err" >&6; }
8917 ac_res=$ac_cv_search_com_err
8918 if test "$ac_res" != no; then
8919   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8920
8921 else
8922   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8923 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8924    { (exit 1); exit 1; }; }
8925 fi
8926
8927      { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8928 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8929 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8930   $as_echo_n "(cached) " >&6
8931 else
8932   ac_func_search_save_LIBS=$LIBS
8933 cat >conftest.$ac_ext <<_ACEOF
8934 /* confdefs.h.  */
8935 _ACEOF
8936 cat confdefs.h >>conftest.$ac_ext
8937 cat >>conftest.$ac_ext <<_ACEOF
8938 /* end confdefs.h.  */
8939
8940 /* Override any GCC internal prototype to avoid an error.
8941    Use char because int might match the return type of a GCC
8942    builtin and then its argument prototype would still apply.  */
8943 #ifdef __cplusplus
8944 extern "C"
8945 #endif
8946 char krb5_sendauth ();
8947 int
8948 main ()
8949 {
8950 return krb5_sendauth ();
8951   ;
8952   return 0;
8953 }
8954 _ACEOF
8955 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8956   if test -z "$ac_lib"; then
8957     ac_res="none required"
8958   else
8959     ac_res=-l$ac_lib
8960     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8961   fi
8962   rm -f conftest.$ac_objext conftest$ac_exeext
8963 if { (ac_try="$ac_link"
8964 case "(($ac_try" in
8965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8966   *) ac_try_echo=$ac_try;;
8967 esac
8968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8969 $as_echo "$ac_try_echo") >&5
8970   (eval "$ac_link") 2>conftest.er1
8971   ac_status=$?
8972   grep -v '^ *+' conftest.er1 >conftest.err
8973   rm -f conftest.er1
8974   cat conftest.err >&5
8975   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976   (exit $ac_status); } && {
8977          test -z "$ac_c_werror_flag" ||
8978          test ! -s conftest.err
8979        } && test -s conftest$ac_exeext && {
8980          test "$cross_compiling" = yes ||
8981          $as_test_x conftest$ac_exeext
8982        }; then
8983   ac_cv_search_krb5_sendauth=$ac_res
8984 else
8985   $as_echo "$as_me: failed program was:" >&5
8986 sed 's/^/| /' conftest.$ac_ext >&5
8987
8988
8989 fi
8990
8991 rm -rf conftest.dSYM
8992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8993       conftest$ac_exeext
8994   if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8995   break
8996 fi
8997 done
8998 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8999   :
9000 else
9001   ac_cv_search_krb5_sendauth=no
9002 fi
9003 rm conftest.$ac_ext
9004 LIBS=$ac_func_search_save_LIBS
9005 fi
9006 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
9007 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
9008 ac_res=$ac_cv_search_krb5_sendauth
9009 if test "$ac_res" != no; then
9010   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9011
9012 else
9013   { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
9014 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
9015    { (exit 1); exit 1; }; }
9016 fi
9017
9018   else
9019      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
9020 $as_echo_n "checking for library containing com_err... " >&6; }
9021 if test "${ac_cv_search_com_err+set}" = set; then
9022   $as_echo_n "(cached) " >&6
9023 else
9024   ac_func_search_save_LIBS=$LIBS
9025 cat >conftest.$ac_ext <<_ACEOF
9026 /* confdefs.h.  */
9027 _ACEOF
9028 cat confdefs.h >>conftest.$ac_ext
9029 cat >>conftest.$ac_ext <<_ACEOF
9030 /* end confdefs.h.  */
9031
9032 /* Override any GCC internal prototype to avoid an error.
9033    Use char because int might match the return type of a GCC
9034    builtin and then its argument prototype would still apply.  */
9035 #ifdef __cplusplus
9036 extern "C"
9037 #endif
9038 char com_err ();
9039 int
9040 main ()
9041 {
9042 return com_err ();
9043   ;
9044   return 0;
9045 }
9046 _ACEOF
9047 for ac_lib in '' 'comerr32 -lkrb5_32'; do
9048   if test -z "$ac_lib"; then
9049     ac_res="none required"
9050   else
9051     ac_res=-l$ac_lib
9052     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9053   fi
9054   rm -f conftest.$ac_objext conftest$ac_exeext
9055 if { (ac_try="$ac_link"
9056 case "(($ac_try" in
9057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9058   *) ac_try_echo=$ac_try;;
9059 esac
9060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9061 $as_echo "$ac_try_echo") >&5
9062   (eval "$ac_link") 2>conftest.er1
9063   ac_status=$?
9064   grep -v '^ *+' conftest.er1 >conftest.err
9065   rm -f conftest.er1
9066   cat conftest.err >&5
9067   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068   (exit $ac_status); } && {
9069          test -z "$ac_c_werror_flag" ||
9070          test ! -s conftest.err
9071        } && test -s conftest$ac_exeext && {
9072          test "$cross_compiling" = yes ||
9073          $as_test_x conftest$ac_exeext
9074        }; then
9075   ac_cv_search_com_err=$ac_res
9076 else
9077   $as_echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.$ac_ext >&5
9079
9080
9081 fi
9082
9083 rm -rf conftest.dSYM
9084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9085       conftest$ac_exeext
9086   if test "${ac_cv_search_com_err+set}" = set; then
9087   break
9088 fi
9089 done
9090 if test "${ac_cv_search_com_err+set}" = set; then
9091   :
9092 else
9093   ac_cv_search_com_err=no
9094 fi
9095 rm conftest.$ac_ext
9096 LIBS=$ac_func_search_save_LIBS
9097 fi
9098 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
9099 $as_echo "$ac_cv_search_com_err" >&6; }
9100 ac_res=$ac_cv_search_com_err
9101 if test "$ac_res" != no; then
9102   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9103
9104 else
9105   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
9106 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
9107    { (exit 1); exit 1; }; }
9108 fi
9109
9110   fi
9111 fi
9112
9113 if test "$with_openssl" = yes ; then
9114     if test "$PORTNAME" != "win32"; then
9115
9116 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
9117 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
9118 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
9119   $as_echo_n "(cached) " >&6
9120 else
9121   ac_check_lib_save_LIBS=$LIBS
9122 LIBS="-lcrypto  $LIBS"
9123 cat >conftest.$ac_ext <<_ACEOF
9124 /* confdefs.h.  */
9125 _ACEOF
9126 cat confdefs.h >>conftest.$ac_ext
9127 cat >>conftest.$ac_ext <<_ACEOF
9128 /* end confdefs.h.  */
9129
9130 /* Override any GCC internal prototype to avoid an error.
9131    Use char because int might match the return type of a GCC
9132    builtin and then its argument prototype would still apply.  */
9133 #ifdef __cplusplus
9134 extern "C"
9135 #endif
9136 char CRYPTO_new_ex_data ();
9137 int
9138 main ()
9139 {
9140 return CRYPTO_new_ex_data ();
9141   ;
9142   return 0;
9143 }
9144 _ACEOF
9145 rm -f conftest.$ac_objext conftest$ac_exeext
9146 if { (ac_try="$ac_link"
9147 case "(($ac_try" in
9148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9149   *) ac_try_echo=$ac_try;;
9150 esac
9151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9152 $as_echo "$ac_try_echo") >&5
9153   (eval "$ac_link") 2>conftest.er1
9154   ac_status=$?
9155   grep -v '^ *+' conftest.er1 >conftest.err
9156   rm -f conftest.er1
9157   cat conftest.err >&5
9158   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159   (exit $ac_status); } && {
9160          test -z "$ac_c_werror_flag" ||
9161          test ! -s conftest.err
9162        } && test -s conftest$ac_exeext && {
9163          test "$cross_compiling" = yes ||
9164          $as_test_x conftest$ac_exeext
9165        }; then
9166   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
9167 else
9168   $as_echo "$as_me: failed program was:" >&5
9169 sed 's/^/| /' conftest.$ac_ext >&5
9170
9171         ac_cv_lib_crypto_CRYPTO_new_ex_data=no
9172 fi
9173
9174 rm -rf conftest.dSYM
9175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9176       conftest$ac_exeext conftest.$ac_ext
9177 LIBS=$ac_check_lib_save_LIBS
9178 fi
9179 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
9180 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
9181 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
9182   cat >>confdefs.h <<_ACEOF
9183 #define HAVE_LIBCRYPTO 1
9184 _ACEOF
9185
9186   LIBS="-lcrypto $LIBS"
9187
9188 else
9189   { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
9190 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
9191    { (exit 1); exit 1; }; }
9192 fi
9193
9194
9195 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
9196 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
9197 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
9198   $as_echo_n "(cached) " >&6
9199 else
9200   ac_check_lib_save_LIBS=$LIBS
9201 LIBS="-lssl  $LIBS"
9202 cat >conftest.$ac_ext <<_ACEOF
9203 /* confdefs.h.  */
9204 _ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h.  */
9208
9209 /* Override any GCC internal prototype to avoid an error.
9210    Use char because int might match the return type of a GCC
9211    builtin and then its argument prototype would still apply.  */
9212 #ifdef __cplusplus
9213 extern "C"
9214 #endif
9215 char SSL_library_init ();
9216 int
9217 main ()
9218 {
9219 return SSL_library_init ();
9220   ;
9221   return 0;
9222 }
9223 _ACEOF
9224 rm -f conftest.$ac_objext conftest$ac_exeext
9225 if { (ac_try="$ac_link"
9226 case "(($ac_try" in
9227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9228   *) ac_try_echo=$ac_try;;
9229 esac
9230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9231 $as_echo "$ac_try_echo") >&5
9232   (eval "$ac_link") 2>conftest.er1
9233   ac_status=$?
9234   grep -v '^ *+' conftest.er1 >conftest.err
9235   rm -f conftest.er1
9236   cat conftest.err >&5
9237   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238   (exit $ac_status); } && {
9239          test -z "$ac_c_werror_flag" ||
9240          test ! -s conftest.err
9241        } && test -s conftest$ac_exeext && {
9242          test "$cross_compiling" = yes ||
9243          $as_test_x conftest$ac_exeext
9244        }; then
9245   ac_cv_lib_ssl_SSL_library_init=yes
9246 else
9247   $as_echo "$as_me: failed program was:" >&5
9248 sed 's/^/| /' conftest.$ac_ext >&5
9249
9250         ac_cv_lib_ssl_SSL_library_init=no
9251 fi
9252
9253 rm -rf conftest.dSYM
9254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9255       conftest$ac_exeext conftest.$ac_ext
9256 LIBS=$ac_check_lib_save_LIBS
9257 fi
9258 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
9259 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
9260 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
9261   cat >>confdefs.h <<_ACEOF
9262 #define HAVE_LIBSSL 1
9263 _ACEOF
9264
9265   LIBS="-lssl $LIBS"
9266
9267 else
9268   { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
9269 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
9270    { (exit 1); exit 1; }; }
9271 fi
9272
9273   else
9274      { $as_echo "$as_me:$LINENO: checking for library containing CRYPTO_new_ex_data" >&5
9275 $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
9276 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9277   $as_echo_n "(cached) " >&6
9278 else
9279   ac_func_search_save_LIBS=$LIBS
9280 cat >conftest.$ac_ext <<_ACEOF
9281 /* confdefs.h.  */
9282 _ACEOF
9283 cat confdefs.h >>conftest.$ac_ext
9284 cat >>conftest.$ac_ext <<_ACEOF
9285 /* end confdefs.h.  */
9286
9287 /* Override any GCC internal prototype to avoid an error.
9288    Use char because int might match the return type of a GCC
9289    builtin and then its argument prototype would still apply.  */
9290 #ifdef __cplusplus
9291 extern "C"
9292 #endif
9293 char CRYPTO_new_ex_data ();
9294 int
9295 main ()
9296 {
9297 return CRYPTO_new_ex_data ();
9298   ;
9299   return 0;
9300 }
9301 _ACEOF
9302 for ac_lib in '' eay32 crypto; do
9303   if test -z "$ac_lib"; then
9304     ac_res="none required"
9305   else
9306     ac_res=-l$ac_lib
9307     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9308   fi
9309   rm -f conftest.$ac_objext conftest$ac_exeext
9310 if { (ac_try="$ac_link"
9311 case "(($ac_try" in
9312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9313   *) ac_try_echo=$ac_try;;
9314 esac
9315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9316 $as_echo "$ac_try_echo") >&5
9317   (eval "$ac_link") 2>conftest.er1
9318   ac_status=$?
9319   grep -v '^ *+' conftest.er1 >conftest.err
9320   rm -f conftest.er1
9321   cat conftest.err >&5
9322   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323   (exit $ac_status); } && {
9324          test -z "$ac_c_werror_flag" ||
9325          test ! -s conftest.err
9326        } && test -s conftest$ac_exeext && {
9327          test "$cross_compiling" = yes ||
9328          $as_test_x conftest$ac_exeext
9329        }; then
9330   ac_cv_search_CRYPTO_new_ex_data=$ac_res
9331 else
9332   $as_echo "$as_me: failed program was:" >&5
9333 sed 's/^/| /' conftest.$ac_ext >&5
9334
9335
9336 fi
9337
9338 rm -rf conftest.dSYM
9339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9340       conftest$ac_exeext
9341   if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9342   break
9343 fi
9344 done
9345 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9346   :
9347 else
9348   ac_cv_search_CRYPTO_new_ex_data=no
9349 fi
9350 rm conftest.$ac_ext
9351 LIBS=$ac_func_search_save_LIBS
9352 fi
9353 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
9354 $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
9355 ac_res=$ac_cv_search_CRYPTO_new_ex_data
9356 if test "$ac_res" != no; then
9357   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9358
9359 else
9360   { { $as_echo "$as_me:$LINENO: error: library 'eay32' or 'crypto' is required for OpenSSL" >&5
9361 $as_echo "$as_me: error: library 'eay32' or 'crypto' is required for OpenSSL" >&2;}
9362    { (exit 1); exit 1; }; }
9363 fi
9364
9365      { $as_echo "$as_me:$LINENO: checking for library containing SSL_library_init" >&5
9366 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
9367 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9368   $as_echo_n "(cached) " >&6
9369 else
9370   ac_func_search_save_LIBS=$LIBS
9371 cat >conftest.$ac_ext <<_ACEOF
9372 /* confdefs.h.  */
9373 _ACEOF
9374 cat confdefs.h >>conftest.$ac_ext
9375 cat >>conftest.$ac_ext <<_ACEOF
9376 /* end confdefs.h.  */
9377
9378 /* Override any GCC internal prototype to avoid an error.
9379    Use char because int might match the return type of a GCC
9380    builtin and then its argument prototype would still apply.  */
9381 #ifdef __cplusplus
9382 extern "C"
9383 #endif
9384 char SSL_library_init ();
9385 int
9386 main ()
9387 {
9388 return SSL_library_init ();
9389   ;
9390   return 0;
9391 }
9392 _ACEOF
9393 for ac_lib in '' ssleay32 ssl; do
9394   if test -z "$ac_lib"; then
9395     ac_res="none required"
9396   else
9397     ac_res=-l$ac_lib
9398     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9399   fi
9400   rm -f conftest.$ac_objext conftest$ac_exeext
9401 if { (ac_try="$ac_link"
9402 case "(($ac_try" in
9403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9404   *) ac_try_echo=$ac_try;;
9405 esac
9406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9407 $as_echo "$ac_try_echo") >&5
9408   (eval "$ac_link") 2>conftest.er1
9409   ac_status=$?
9410   grep -v '^ *+' conftest.er1 >conftest.err
9411   rm -f conftest.er1
9412   cat conftest.err >&5
9413   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414   (exit $ac_status); } && {
9415          test -z "$ac_c_werror_flag" ||
9416          test ! -s conftest.err
9417        } && test -s conftest$ac_exeext && {
9418          test "$cross_compiling" = yes ||
9419          $as_test_x conftest$ac_exeext
9420        }; then
9421   ac_cv_search_SSL_library_init=$ac_res
9422 else
9423   $as_echo "$as_me: failed program was:" >&5
9424 sed 's/^/| /' conftest.$ac_ext >&5
9425
9426
9427 fi
9428
9429 rm -rf conftest.dSYM
9430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9431       conftest$ac_exeext
9432   if test "${ac_cv_search_SSL_library_init+set}" = set; then
9433   break
9434 fi
9435 done
9436 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9437   :
9438 else
9439   ac_cv_search_SSL_library_init=no
9440 fi
9441 rm conftest.$ac_ext
9442 LIBS=$ac_func_search_save_LIBS
9443 fi
9444 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_SSL_library_init" >&5
9445 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
9446 ac_res=$ac_cv_search_SSL_library_init
9447 if test "$ac_res" != no; then
9448   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9449
9450 else
9451   { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' or 'ssl' is required for OpenSSL" >&5
9452 $as_echo "$as_me: error: library 'ssleay32' or 'ssl' is required for OpenSSL" >&2;}
9453    { (exit 1); exit 1; }; }
9454 fi
9455
9456   fi
9457 fi
9458
9459 if test "$with_pam" = yes ; then
9460
9461 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9462 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9463 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9464   $as_echo_n "(cached) " >&6
9465 else
9466   ac_check_lib_save_LIBS=$LIBS
9467 LIBS="-lpam  $LIBS"
9468 cat >conftest.$ac_ext <<_ACEOF
9469 /* confdefs.h.  */
9470 _ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h.  */
9474
9475 /* Override any GCC internal prototype to avoid an error.
9476    Use char because int might match the return type of a GCC
9477    builtin and then its argument prototype would still apply.  */
9478 #ifdef __cplusplus
9479 extern "C"
9480 #endif
9481 char pam_start ();
9482 int
9483 main ()
9484 {
9485 return pam_start ();
9486   ;
9487   return 0;
9488 }
9489 _ACEOF
9490 rm -f conftest.$ac_objext conftest$ac_exeext
9491 if { (ac_try="$ac_link"
9492 case "(($ac_try" in
9493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9494   *) ac_try_echo=$ac_try;;
9495 esac
9496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9497 $as_echo "$ac_try_echo") >&5
9498   (eval "$ac_link") 2>conftest.er1
9499   ac_status=$?
9500   grep -v '^ *+' conftest.er1 >conftest.err
9501   rm -f conftest.er1
9502   cat conftest.err >&5
9503   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504   (exit $ac_status); } && {
9505          test -z "$ac_c_werror_flag" ||
9506          test ! -s conftest.err
9507        } && test -s conftest$ac_exeext && {
9508          test "$cross_compiling" = yes ||
9509          $as_test_x conftest$ac_exeext
9510        }; then
9511   ac_cv_lib_pam_pam_start=yes
9512 else
9513   $as_echo "$as_me: failed program was:" >&5
9514 sed 's/^/| /' conftest.$ac_ext >&5
9515
9516         ac_cv_lib_pam_pam_start=no
9517 fi
9518
9519 rm -rf conftest.dSYM
9520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9521       conftest$ac_exeext conftest.$ac_ext
9522 LIBS=$ac_check_lib_save_LIBS
9523 fi
9524 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9525 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9526 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9527   cat >>confdefs.h <<_ACEOF
9528 #define HAVE_LIBPAM 1
9529 _ACEOF
9530
9531   LIBS="-lpam $LIBS"
9532
9533 else
9534   { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9535 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9536    { (exit 1); exit 1; }; }
9537 fi
9538
9539 fi
9540
9541 if test "$with_libxml" = yes ; then
9542
9543 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9544 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9545 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9546   $as_echo_n "(cached) " >&6
9547 else
9548   ac_check_lib_save_LIBS=$LIBS
9549 LIBS="-lxml2  $LIBS"
9550 cat >conftest.$ac_ext <<_ACEOF
9551 /* confdefs.h.  */
9552 _ACEOF
9553 cat confdefs.h >>conftest.$ac_ext
9554 cat >>conftest.$ac_ext <<_ACEOF
9555 /* end confdefs.h.  */
9556
9557 /* Override any GCC internal prototype to avoid an error.
9558    Use char because int might match the return type of a GCC
9559    builtin and then its argument prototype would still apply.  */
9560 #ifdef __cplusplus
9561 extern "C"
9562 #endif
9563 char xmlSaveToBuffer ();
9564 int
9565 main ()
9566 {
9567 return xmlSaveToBuffer ();
9568   ;
9569   return 0;
9570 }
9571 _ACEOF
9572 rm -f conftest.$ac_objext conftest$ac_exeext
9573 if { (ac_try="$ac_link"
9574 case "(($ac_try" in
9575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9576   *) ac_try_echo=$ac_try;;
9577 esac
9578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9579 $as_echo "$ac_try_echo") >&5
9580   (eval "$ac_link") 2>conftest.er1
9581   ac_status=$?
9582   grep -v '^ *+' conftest.er1 >conftest.err
9583   rm -f conftest.er1
9584   cat conftest.err >&5
9585   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586   (exit $ac_status); } && {
9587          test -z "$ac_c_werror_flag" ||
9588          test ! -s conftest.err
9589        } && test -s conftest$ac_exeext && {
9590          test "$cross_compiling" = yes ||
9591          $as_test_x conftest$ac_exeext
9592        }; then
9593   ac_cv_lib_xml2_xmlSaveToBuffer=yes
9594 else
9595   $as_echo "$as_me: failed program was:" >&5
9596 sed 's/^/| /' conftest.$ac_ext >&5
9597
9598         ac_cv_lib_xml2_xmlSaveToBuffer=no
9599 fi
9600
9601 rm -rf conftest.dSYM
9602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9603       conftest$ac_exeext conftest.$ac_ext
9604 LIBS=$ac_check_lib_save_LIBS
9605 fi
9606 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9607 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9608 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9609   cat >>confdefs.h <<_ACEOF
9610 #define HAVE_LIBXML2 1
9611 _ACEOF
9612
9613   LIBS="-lxml2 $LIBS"
9614
9615 else
9616   { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9617 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9618    { (exit 1); exit 1; }; }
9619 fi
9620
9621 fi
9622
9623 if test "$with_libxslt" = yes ; then
9624
9625 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9626 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9627 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9628   $as_echo_n "(cached) " >&6
9629 else
9630   ac_check_lib_save_LIBS=$LIBS
9631 LIBS="-lxslt  $LIBS"
9632 cat >conftest.$ac_ext <<_ACEOF
9633 /* confdefs.h.  */
9634 _ACEOF
9635 cat confdefs.h >>conftest.$ac_ext
9636 cat >>conftest.$ac_ext <<_ACEOF
9637 /* end confdefs.h.  */
9638
9639 /* Override any GCC internal prototype to avoid an error.
9640    Use char because int might match the return type of a GCC
9641    builtin and then its argument prototype would still apply.  */
9642 #ifdef __cplusplus
9643 extern "C"
9644 #endif
9645 char xsltCleanupGlobals ();
9646 int
9647 main ()
9648 {
9649 return xsltCleanupGlobals ();
9650   ;
9651   return 0;
9652 }
9653 _ACEOF
9654 rm -f conftest.$ac_objext conftest$ac_exeext
9655 if { (ac_try="$ac_link"
9656 case "(($ac_try" in
9657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9658   *) ac_try_echo=$ac_try;;
9659 esac
9660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9661 $as_echo "$ac_try_echo") >&5
9662   (eval "$ac_link") 2>conftest.er1
9663   ac_status=$?
9664   grep -v '^ *+' conftest.er1 >conftest.err
9665   rm -f conftest.er1
9666   cat conftest.err >&5
9667   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668   (exit $ac_status); } && {
9669          test -z "$ac_c_werror_flag" ||
9670          test ! -s conftest.err
9671        } && test -s conftest$ac_exeext && {
9672          test "$cross_compiling" = yes ||
9673          $as_test_x conftest$ac_exeext
9674        }; then
9675   ac_cv_lib_xslt_xsltCleanupGlobals=yes
9676 else
9677   $as_echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9679
9680         ac_cv_lib_xslt_xsltCleanupGlobals=no
9681 fi
9682
9683 rm -rf conftest.dSYM
9684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9685       conftest$ac_exeext conftest.$ac_ext
9686 LIBS=$ac_check_lib_save_LIBS
9687 fi
9688 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9689 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9690 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9691   cat >>confdefs.h <<_ACEOF
9692 #define HAVE_LIBXSLT 1
9693 _ACEOF
9694
9695   LIBS="-lxslt $LIBS"
9696
9697 else
9698   { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9699 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9700    { (exit 1); exit 1; }; }
9701 fi
9702
9703 fi
9704
9705 # for contrib/sepgsql
9706 if test "$with_selinux" = yes; then
9707
9708 { $as_echo "$as_me:$LINENO: checking for selinux_status_open in -lselinux" >&5
9709 $as_echo_n "checking for selinux_status_open in -lselinux... " >&6; }
9710 if test "${ac_cv_lib_selinux_selinux_status_open+set}" = set; then
9711   $as_echo_n "(cached) " >&6
9712 else
9713   ac_check_lib_save_LIBS=$LIBS
9714 LIBS="-lselinux  $LIBS"
9715 cat >conftest.$ac_ext <<_ACEOF
9716 /* confdefs.h.  */
9717 _ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h.  */
9721
9722 /* Override any GCC internal prototype to avoid an error.
9723    Use char because int might match the return type of a GCC
9724    builtin and then its argument prototype would still apply.  */
9725 #ifdef __cplusplus
9726 extern "C"
9727 #endif
9728 char selinux_status_open ();
9729 int
9730 main ()
9731 {
9732 return selinux_status_open ();
9733   ;
9734   return 0;
9735 }
9736 _ACEOF
9737 rm -f conftest.$ac_objext conftest$ac_exeext
9738 if { (ac_try="$ac_link"
9739 case "(($ac_try" in
9740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9741   *) ac_try_echo=$ac_try;;
9742 esac
9743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9744 $as_echo "$ac_try_echo") >&5
9745   (eval "$ac_link") 2>conftest.er1
9746   ac_status=$?
9747   grep -v '^ *+' conftest.er1 >conftest.err
9748   rm -f conftest.er1
9749   cat conftest.err >&5
9750   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751   (exit $ac_status); } && {
9752          test -z "$ac_c_werror_flag" ||
9753          test ! -s conftest.err
9754        } && test -s conftest$ac_exeext && {
9755          test "$cross_compiling" = yes ||
9756          $as_test_x conftest$ac_exeext
9757        }; then
9758   ac_cv_lib_selinux_selinux_status_open=yes
9759 else
9760   $as_echo "$as_me: failed program was:" >&5
9761 sed 's/^/| /' conftest.$ac_ext >&5
9762
9763         ac_cv_lib_selinux_selinux_status_open=no
9764 fi
9765
9766 rm -rf conftest.dSYM
9767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9768       conftest$ac_exeext conftest.$ac_ext
9769 LIBS=$ac_check_lib_save_LIBS
9770 fi
9771 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_selinux_status_open" >&5
9772 $as_echo "$ac_cv_lib_selinux_selinux_status_open" >&6; }
9773 if test "x$ac_cv_lib_selinux_selinux_status_open" = x""yes; then
9774   cat >>confdefs.h <<_ACEOF
9775 #define HAVE_LIBSELINUX 1
9776 _ACEOF
9777
9778   LIBS="-lselinux $LIBS"
9779
9780 else
9781   { { $as_echo "$as_me:$LINENO: error: library 'libselinux', version 2.0.99 or newer, is required for SELinux support" >&5
9782 $as_echo "$as_me: error: library 'libselinux', version 2.0.99 or newer, is required for SELinux support" >&2;}
9783    { (exit 1); exit 1; }; }
9784 fi
9785
9786 fi
9787
9788 # for contrib/uuid-ossp
9789 if test "$with_ossp_uuid" = yes ; then
9790   { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9791 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9792 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9793   $as_echo_n "(cached) " >&6
9794 else
9795   ac_check_lib_save_LIBS=$LIBS
9796 LIBS="-lossp-uuid  $LIBS"
9797 cat >conftest.$ac_ext <<_ACEOF
9798 /* confdefs.h.  */
9799 _ACEOF
9800 cat confdefs.h >>conftest.$ac_ext
9801 cat >>conftest.$ac_ext <<_ACEOF
9802 /* end confdefs.h.  */
9803
9804 /* Override any GCC internal prototype to avoid an error.
9805    Use char because int might match the return type of a GCC
9806    builtin and then its argument prototype would still apply.  */
9807 #ifdef __cplusplus
9808 extern "C"
9809 #endif
9810 char uuid_export ();
9811 int
9812 main ()
9813 {
9814 return uuid_export ();
9815   ;
9816   return 0;
9817 }
9818 _ACEOF
9819 rm -f conftest.$ac_objext conftest$ac_exeext
9820 if { (ac_try="$ac_link"
9821 case "(($ac_try" in
9822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9823   *) ac_try_echo=$ac_try;;
9824 esac
9825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9826 $as_echo "$ac_try_echo") >&5
9827   (eval "$ac_link") 2>conftest.er1
9828   ac_status=$?
9829   grep -v '^ *+' conftest.er1 >conftest.err
9830   rm -f conftest.er1
9831   cat conftest.err >&5
9832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833   (exit $ac_status); } && {
9834          test -z "$ac_c_werror_flag" ||
9835          test ! -s conftest.err
9836        } && test -s conftest$ac_exeext && {
9837          test "$cross_compiling" = yes ||
9838          $as_test_x conftest$ac_exeext
9839        }; then
9840   ac_cv_lib_ossp_uuid_uuid_export=yes
9841 else
9842   $as_echo "$as_me: failed program was:" >&5
9843 sed 's/^/| /' conftest.$ac_ext >&5
9844
9845         ac_cv_lib_ossp_uuid_uuid_export=no
9846 fi
9847
9848 rm -rf conftest.dSYM
9849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9850       conftest$ac_exeext conftest.$ac_ext
9851 LIBS=$ac_check_lib_save_LIBS
9852 fi
9853 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9854 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9855 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9856   OSSP_UUID_LIBS="-lossp-uuid"
9857 else
9858   { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9859 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9860 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9861   $as_echo_n "(cached) " >&6
9862 else
9863   ac_check_lib_save_LIBS=$LIBS
9864 LIBS="-luuid  $LIBS"
9865 cat >conftest.$ac_ext <<_ACEOF
9866 /* confdefs.h.  */
9867 _ACEOF
9868 cat confdefs.h >>conftest.$ac_ext
9869 cat >>conftest.$ac_ext <<_ACEOF
9870 /* end confdefs.h.  */
9871
9872 /* Override any GCC internal prototype to avoid an error.
9873    Use char because int might match the return type of a GCC
9874    builtin and then its argument prototype would still apply.  */
9875 #ifdef __cplusplus
9876 extern "C"
9877 #endif
9878 char uuid_export ();
9879 int
9880 main ()
9881 {
9882 return uuid_export ();
9883   ;
9884   return 0;
9885 }
9886 _ACEOF
9887 rm -f conftest.$ac_objext conftest$ac_exeext
9888 if { (ac_try="$ac_link"
9889 case "(($ac_try" in
9890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891   *) ac_try_echo=$ac_try;;
9892 esac
9893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9894 $as_echo "$ac_try_echo") >&5
9895   (eval "$ac_link") 2>conftest.er1
9896   ac_status=$?
9897   grep -v '^ *+' conftest.er1 >conftest.err
9898   rm -f conftest.er1
9899   cat conftest.err >&5
9900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901   (exit $ac_status); } && {
9902          test -z "$ac_c_werror_flag" ||
9903          test ! -s conftest.err
9904        } && test -s conftest$ac_exeext && {
9905          test "$cross_compiling" = yes ||
9906          $as_test_x conftest$ac_exeext
9907        }; then
9908   ac_cv_lib_uuid_uuid_export=yes
9909 else
9910   $as_echo "$as_me: failed program was:" >&5
9911 sed 's/^/| /' conftest.$ac_ext >&5
9912
9913         ac_cv_lib_uuid_uuid_export=no
9914 fi
9915
9916 rm -rf conftest.dSYM
9917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9918       conftest$ac_exeext conftest.$ac_ext
9919 LIBS=$ac_check_lib_save_LIBS
9920 fi
9921 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9922 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9923 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9924   OSSP_UUID_LIBS="-luuid"
9925 else
9926   { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9927 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9928    { (exit 1); exit 1; }; }
9929 fi
9930
9931 fi
9932
9933 fi
9934
9935
9936
9937 ##
9938 ## Header files
9939 ##
9940
9941 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9942 $as_echo_n "checking for ANSI C header files... " >&6; }
9943 if test "${ac_cv_header_stdc+set}" = set; then
9944   $as_echo_n "(cached) " >&6
9945 else
9946   cat >conftest.$ac_ext <<_ACEOF
9947 /* confdefs.h.  */
9948 _ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h.  */
9952 #include <stdlib.h>
9953 #include <stdarg.h>
9954 #include <string.h>
9955 #include <float.h>
9956
9957 int
9958 main ()
9959 {
9960
9961   ;
9962   return 0;
9963 }
9964 _ACEOF
9965 rm -f conftest.$ac_objext
9966 if { (ac_try="$ac_compile"
9967 case "(($ac_try" in
9968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9969   *) ac_try_echo=$ac_try;;
9970 esac
9971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9972 $as_echo "$ac_try_echo") >&5
9973   (eval "$ac_compile") 2>conftest.er1
9974   ac_status=$?
9975   grep -v '^ *+' conftest.er1 >conftest.err
9976   rm -f conftest.er1
9977   cat conftest.err >&5
9978   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979   (exit $ac_status); } && {
9980          test -z "$ac_c_werror_flag" ||
9981          test ! -s conftest.err
9982        } && test -s conftest.$ac_objext; then
9983   ac_cv_header_stdc=yes
9984 else
9985   $as_echo "$as_me: failed program was:" >&5
9986 sed 's/^/| /' conftest.$ac_ext >&5
9987
9988         ac_cv_header_stdc=no
9989 fi
9990
9991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9992
9993 if test $ac_cv_header_stdc = yes; then
9994   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9995   cat >conftest.$ac_ext <<_ACEOF
9996 /* confdefs.h.  */
9997 _ACEOF
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h.  */
10001 #include <string.h>
10002
10003 _ACEOF
10004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10005   $EGREP "memchr" >/dev/null 2>&1; then
10006   :
10007 else
10008   ac_cv_header_stdc=no
10009 fi
10010 rm -f conftest*
10011
10012 fi
10013
10014 if test $ac_cv_header_stdc = yes; then
10015   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10016   cat >conftest.$ac_ext <<_ACEOF
10017 /* confdefs.h.  */
10018 _ACEOF
10019 cat confdefs.h >>conftest.$ac_ext
10020 cat >>conftest.$ac_ext <<_ACEOF
10021 /* end confdefs.h.  */
10022 #include <stdlib.h>
10023
10024 _ACEOF
10025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10026   $EGREP "free" >/dev/null 2>&1; then
10027   :
10028 else
10029   ac_cv_header_stdc=no
10030 fi
10031 rm -f conftest*
10032
10033 fi
10034
10035 if test $ac_cv_header_stdc = yes; then
10036   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10037   if test "$cross_compiling" = yes; then
10038   :
10039 else
10040   cat >conftest.$ac_ext <<_ACEOF
10041 /* confdefs.h.  */
10042 _ACEOF
10043 cat confdefs.h >>conftest.$ac_ext
10044 cat >>conftest.$ac_ext <<_ACEOF
10045 /* end confdefs.h.  */
10046 #include <ctype.h>
10047 #include <stdlib.h>
10048 #if ((' ' & 0x0FF) == 0x020)
10049 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10050 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10051 #else
10052 # define ISLOWER(c) \
10053                    (('a' <= (c) && (c) <= 'i') \
10054                      || ('j' <= (c) && (c) <= 'r') \
10055                      || ('s' <= (c) && (c) <= 'z'))
10056 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10057 #endif
10058
10059 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10060 int
10061 main ()
10062 {
10063   int i;
10064   for (i = 0; i < 256; i++)
10065     if (XOR (islower (i), ISLOWER (i))
10066         || toupper (i) != TOUPPER (i))
10067       return 2;
10068   return 0;
10069 }
10070 _ACEOF
10071 rm -f conftest$ac_exeext
10072 if { (ac_try="$ac_link"
10073 case "(($ac_try" in
10074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10075   *) ac_try_echo=$ac_try;;
10076 esac
10077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10078 $as_echo "$ac_try_echo") >&5
10079   (eval "$ac_link") 2>&5
10080   ac_status=$?
10081   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10083   { (case "(($ac_try" in
10084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10085   *) ac_try_echo=$ac_try;;
10086 esac
10087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10088 $as_echo "$ac_try_echo") >&5
10089   (eval "$ac_try") 2>&5
10090   ac_status=$?
10091   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092   (exit $ac_status); }; }; then
10093   :
10094 else
10095   $as_echo "$as_me: program exited with status $ac_status" >&5
10096 $as_echo "$as_me: failed program was:" >&5
10097 sed 's/^/| /' conftest.$ac_ext >&5
10098
10099 ( exit $ac_status )
10100 ac_cv_header_stdc=no
10101 fi
10102 rm -rf conftest.dSYM
10103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10104 fi
10105
10106
10107 fi
10108 fi
10109 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10110 $as_echo "$ac_cv_header_stdc" >&6; }
10111 if test $ac_cv_header_stdc = yes; then
10112
10113 cat >>confdefs.h <<\_ACEOF
10114 #define STDC_HEADERS 1
10115 _ACEOF
10116
10117 fi
10118
10119 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10130                   inttypes.h stdint.h unistd.h
10131 do
10132 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10133 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10134 $as_echo_n "checking for $ac_header... " >&6; }
10135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10136   $as_echo_n "(cached) " >&6
10137 else
10138   cat >conftest.$ac_ext <<_ACEOF
10139 /* confdefs.h.  */
10140 _ACEOF
10141 cat confdefs.h >>conftest.$ac_ext
10142 cat >>conftest.$ac_ext <<_ACEOF
10143 /* end confdefs.h.  */
10144 $ac_includes_default
10145
10146 #include <$ac_header>
10147 _ACEOF
10148 rm -f conftest.$ac_objext
10149 if { (ac_try="$ac_compile"
10150 case "(($ac_try" in
10151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10152   *) ac_try_echo=$ac_try;;
10153 esac
10154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10155 $as_echo "$ac_try_echo") >&5
10156   (eval "$ac_compile") 2>conftest.er1
10157   ac_status=$?
10158   grep -v '^ *+' conftest.er1 >conftest.err
10159   rm -f conftest.er1
10160   cat conftest.err >&5
10161   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162   (exit $ac_status); } && {
10163          test -z "$ac_c_werror_flag" ||
10164          test ! -s conftest.err
10165        } && test -s conftest.$ac_objext; then
10166   eval "$as_ac_Header=yes"
10167 else
10168   $as_echo "$as_me: failed program was:" >&5
10169 sed 's/^/| /' conftest.$ac_ext >&5
10170
10171         eval "$as_ac_Header=no"
10172 fi
10173
10174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10175 fi
10176 ac_res=`eval 'as_val=${'$as_ac_Header'}
10177                  $as_echo "$as_val"'`
10178                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10179 $as_echo "$ac_res" >&6; }
10180 as_val=`eval 'as_val=${'$as_ac_Header'}
10181                  $as_echo "$as_val"'`
10182    if test "x$as_val" = x""yes; then
10183   cat >>confdefs.h <<_ACEOF
10184 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10185 _ACEOF
10186
10187 fi
10188
10189 done
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/ucred.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h
10221 do
10222 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10224   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10225 $as_echo_n "checking for $ac_header... " >&6; }
10226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10227   $as_echo_n "(cached) " >&6
10228 fi
10229 ac_res=`eval 'as_val=${'$as_ac_Header'}
10230                  $as_echo "$as_val"'`
10231                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10232 $as_echo "$ac_res" >&6; }
10233 else
10234   # Is the header compilable?
10235 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10236 $as_echo_n "checking $ac_header usability... " >&6; }
10237 cat >conftest.$ac_ext <<_ACEOF
10238 /* confdefs.h.  */
10239 _ACEOF
10240 cat confdefs.h >>conftest.$ac_ext
10241 cat >>conftest.$ac_ext <<_ACEOF
10242 /* end confdefs.h.  */
10243 $ac_includes_default
10244 #include <$ac_header>
10245 _ACEOF
10246 rm -f conftest.$ac_objext
10247 if { (ac_try="$ac_compile"
10248 case "(($ac_try" in
10249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10250   *) ac_try_echo=$ac_try;;
10251 esac
10252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10253 $as_echo "$ac_try_echo") >&5
10254   (eval "$ac_compile") 2>conftest.er1
10255   ac_status=$?
10256   grep -v '^ *+' conftest.er1 >conftest.err
10257   rm -f conftest.er1
10258   cat conftest.err >&5
10259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260   (exit $ac_status); } && {
10261          test -z "$ac_c_werror_flag" ||
10262          test ! -s conftest.err
10263        } && test -s conftest.$ac_objext; then
10264   ac_header_compiler=yes
10265 else
10266   $as_echo "$as_me: failed program was:" >&5
10267 sed 's/^/| /' conftest.$ac_ext >&5
10268
10269         ac_header_compiler=no
10270 fi
10271
10272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10273 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10274 $as_echo "$ac_header_compiler" >&6; }
10275
10276 # Is the header present?
10277 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10278 $as_echo_n "checking $ac_header presence... " >&6; }
10279 cat >conftest.$ac_ext <<_ACEOF
10280 /* confdefs.h.  */
10281 _ACEOF
10282 cat confdefs.h >>conftest.$ac_ext
10283 cat >>conftest.$ac_ext <<_ACEOF
10284 /* end confdefs.h.  */
10285 #include <$ac_header>
10286 _ACEOF
10287 if { (ac_try="$ac_cpp conftest.$ac_ext"
10288 case "(($ac_try" in
10289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10290   *) ac_try_echo=$ac_try;;
10291 esac
10292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10293 $as_echo "$ac_try_echo") >&5
10294   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10295   ac_status=$?
10296   grep -v '^ *+' conftest.er1 >conftest.err
10297   rm -f conftest.er1
10298   cat conftest.err >&5
10299   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300   (exit $ac_status); } >/dev/null && {
10301          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10302          test ! -s conftest.err
10303        }; then
10304   ac_header_preproc=yes
10305 else
10306   $as_echo "$as_me: failed program was:" >&5
10307 sed 's/^/| /' conftest.$ac_ext >&5
10308
10309   ac_header_preproc=no
10310 fi
10311
10312 rm -f conftest.err conftest.$ac_ext
10313 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10314 $as_echo "$ac_header_preproc" >&6; }
10315
10316 # So?  What about this header?
10317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10318   yes:no: )
10319     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10320 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10321     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10322 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10323     ac_header_preproc=yes
10324     ;;
10325   no:yes:* )
10326     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10327 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10328     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10329 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10330     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10331 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10332     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10333 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10334     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10335 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10336     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10337 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10338     ( cat <<\_ASBOX
10339 ## ---------------------------------------- ##
10340 ## Report this to pgsql-bugs@postgresql.org ##
10341 ## ---------------------------------------- ##
10342 _ASBOX
10343      ) | sed "s/^/$as_me: WARNING:     /" >&2
10344     ;;
10345 esac
10346 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10347 $as_echo_n "checking for $ac_header... " >&6; }
10348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10349   $as_echo_n "(cached) " >&6
10350 else
10351   eval "$as_ac_Header=\$ac_header_preproc"
10352 fi
10353 ac_res=`eval 'as_val=${'$as_ac_Header'}
10354                  $as_echo "$as_val"'`
10355                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10356 $as_echo "$ac_res" >&6; }
10357
10358 fi
10359 as_val=`eval 'as_val=${'$as_ac_Header'}
10360                  $as_echo "$as_val"'`
10361    if test "x$as_val" = x""yes; then
10362   cat >>confdefs.h <<_ACEOF
10363 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10364 _ACEOF
10365
10366 fi
10367
10368 done
10369
10370
10371 # On BSD, cpp test for net/if.h will fail unless sys/socket.h
10372 # is included first.
10373
10374 for ac_header in net/if.h
10375 do
10376 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10377 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10378 $as_echo_n "checking for $ac_header... " >&6; }
10379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10380   $as_echo_n "(cached) " >&6
10381 else
10382   cat >conftest.$ac_ext <<_ACEOF
10383 /* confdefs.h.  */
10384 _ACEOF
10385 cat confdefs.h >>conftest.$ac_ext
10386 cat >>conftest.$ac_ext <<_ACEOF
10387 /* end confdefs.h.  */
10388 $ac_includes_default
10389 #ifdef HAVE_SYS_SOCKET_H
10390 #include <sys/socket.h>
10391 #endif
10392
10393
10394 #include <$ac_header>
10395 _ACEOF
10396 rm -f conftest.$ac_objext
10397 if { (ac_try="$ac_compile"
10398 case "(($ac_try" in
10399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10400   *) ac_try_echo=$ac_try;;
10401 esac
10402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10403 $as_echo "$ac_try_echo") >&5
10404   (eval "$ac_compile") 2>conftest.er1
10405   ac_status=$?
10406   grep -v '^ *+' conftest.er1 >conftest.err
10407   rm -f conftest.er1
10408   cat conftest.err >&5
10409   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410   (exit $ac_status); } && {
10411          test -z "$ac_c_werror_flag" ||
10412          test ! -s conftest.err
10413        } && test -s conftest.$ac_objext; then
10414   eval "$as_ac_Header=yes"
10415 else
10416   $as_echo "$as_me: failed program was:" >&5
10417 sed 's/^/| /' conftest.$ac_ext >&5
10418
10419         eval "$as_ac_Header=no"
10420 fi
10421
10422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10423 fi
10424 ac_res=`eval 'as_val=${'$as_ac_Header'}
10425                  $as_echo "$as_val"'`
10426                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10427 $as_echo "$ac_res" >&6; }
10428 as_val=`eval 'as_val=${'$as_ac_Header'}
10429                  $as_echo "$as_val"'`
10430    if test "x$as_val" = x""yes; then
10431   cat >>confdefs.h <<_ACEOF
10432 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10433 _ACEOF
10434
10435 fi
10436
10437 done
10438
10439
10440 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
10441 # netinet/in.h is included first.
10442
10443 for ac_header in netinet/in.h
10444 do
10445 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10447   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10448 $as_echo_n "checking for $ac_header... " >&6; }
10449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10450   $as_echo_n "(cached) " >&6
10451 fi
10452 ac_res=`eval 'as_val=${'$as_ac_Header'}
10453                  $as_echo "$as_val"'`
10454                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10455 $as_echo "$ac_res" >&6; }
10456 else
10457   # Is the header compilable?
10458 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10459 $as_echo_n "checking $ac_header usability... " >&6; }
10460 cat >conftest.$ac_ext <<_ACEOF
10461 /* confdefs.h.  */
10462 _ACEOF
10463 cat confdefs.h >>conftest.$ac_ext
10464 cat >>conftest.$ac_ext <<_ACEOF
10465 /* end confdefs.h.  */
10466 $ac_includes_default
10467 #include <$ac_header>
10468 _ACEOF
10469 rm -f conftest.$ac_objext
10470 if { (ac_try="$ac_compile"
10471 case "(($ac_try" in
10472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10473   *) ac_try_echo=$ac_try;;
10474 esac
10475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10476 $as_echo "$ac_try_echo") >&5
10477   (eval "$ac_compile") 2>conftest.er1
10478   ac_status=$?
10479   grep -v '^ *+' conftest.er1 >conftest.err
10480   rm -f conftest.er1
10481   cat conftest.err >&5
10482   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483   (exit $ac_status); } && {
10484          test -z "$ac_c_werror_flag" ||
10485          test ! -s conftest.err
10486        } && test -s conftest.$ac_objext; then
10487   ac_header_compiler=yes
10488 else
10489   $as_echo "$as_me: failed program was:" >&5
10490 sed 's/^/| /' conftest.$ac_ext >&5
10491
10492         ac_header_compiler=no
10493 fi
10494
10495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10496 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10497 $as_echo "$ac_header_compiler" >&6; }
10498
10499 # Is the header present?
10500 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10501 $as_echo_n "checking $ac_header presence... " >&6; }
10502 cat >conftest.$ac_ext <<_ACEOF
10503 /* confdefs.h.  */
10504 _ACEOF
10505 cat confdefs.h >>conftest.$ac_ext
10506 cat >>conftest.$ac_ext <<_ACEOF
10507 /* end confdefs.h.  */
10508 #include <$ac_header>
10509 _ACEOF
10510 if { (ac_try="$ac_cpp conftest.$ac_ext"
10511 case "(($ac_try" in
10512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10513   *) ac_try_echo=$ac_try;;
10514 esac
10515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10516 $as_echo "$ac_try_echo") >&5
10517   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10518   ac_status=$?
10519   grep -v '^ *+' conftest.er1 >conftest.err
10520   rm -f conftest.er1
10521   cat conftest.err >&5
10522   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523   (exit $ac_status); } >/dev/null && {
10524          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10525          test ! -s conftest.err
10526        }; then
10527   ac_header_preproc=yes
10528 else
10529   $as_echo "$as_me: failed program was:" >&5
10530 sed 's/^/| /' conftest.$ac_ext >&5
10531
10532   ac_header_preproc=no
10533 fi
10534
10535 rm -f conftest.err conftest.$ac_ext
10536 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10537 $as_echo "$ac_header_preproc" >&6; }
10538
10539 # So?  What about this header?
10540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10541   yes:no: )
10542     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10543 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10544     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10545 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10546     ac_header_preproc=yes
10547     ;;
10548   no:yes:* )
10549     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10550 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10551     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10552 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10553     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10554 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10555     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10556 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10557     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10558 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10559     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10560 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10561     ( cat <<\_ASBOX
10562 ## ---------------------------------------- ##
10563 ## Report this to pgsql-bugs@postgresql.org ##
10564 ## ---------------------------------------- ##
10565 _ASBOX
10566      ) | sed "s/^/$as_me: WARNING:     /" >&2
10567     ;;
10568 esac
10569 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10570 $as_echo_n "checking for $ac_header... " >&6; }
10571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10572   $as_echo_n "(cached) " >&6
10573 else
10574   eval "$as_ac_Header=\$ac_header_preproc"
10575 fi
10576 ac_res=`eval 'as_val=${'$as_ac_Header'}
10577                  $as_echo "$as_val"'`
10578                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10579 $as_echo "$ac_res" >&6; }
10580
10581 fi
10582 as_val=`eval 'as_val=${'$as_ac_Header'}
10583                  $as_echo "$as_val"'`
10584    if test "x$as_val" = x""yes; then
10585   cat >>confdefs.h <<_ACEOF
10586 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10587 _ACEOF
10588
10589 fi
10590
10591 done
10592
10593
10594 for ac_header in netinet/tcp.h
10595 do
10596 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10597 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10598 $as_echo_n "checking for $ac_header... " >&6; }
10599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10600   $as_echo_n "(cached) " >&6
10601 else
10602   cat >conftest.$ac_ext <<_ACEOF
10603 /* confdefs.h.  */
10604 _ACEOF
10605 cat confdefs.h >>conftest.$ac_ext
10606 cat >>conftest.$ac_ext <<_ACEOF
10607 /* end confdefs.h.  */
10608 $ac_includes_default
10609 #ifdef HAVE_NETINET_IN_H
10610 #include <netinet/in.h>
10611 #endif
10612
10613
10614 #include <$ac_header>
10615 _ACEOF
10616 rm -f conftest.$ac_objext
10617 if { (ac_try="$ac_compile"
10618 case "(($ac_try" in
10619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10620   *) ac_try_echo=$ac_try;;
10621 esac
10622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10623 $as_echo "$ac_try_echo") >&5
10624   (eval "$ac_compile") 2>conftest.er1
10625   ac_status=$?
10626   grep -v '^ *+' conftest.er1 >conftest.err
10627   rm -f conftest.er1
10628   cat conftest.err >&5
10629   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630   (exit $ac_status); } && {
10631          test -z "$ac_c_werror_flag" ||
10632          test ! -s conftest.err
10633        } && test -s conftest.$ac_objext; then
10634   eval "$as_ac_Header=yes"
10635 else
10636   $as_echo "$as_me: failed program was:" >&5
10637 sed 's/^/| /' conftest.$ac_ext >&5
10638
10639         eval "$as_ac_Header=no"
10640 fi
10641
10642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10643 fi
10644 ac_res=`eval 'as_val=${'$as_ac_Header'}
10645                  $as_echo "$as_val"'`
10646                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10647 $as_echo "$ac_res" >&6; }
10648 as_val=`eval 'as_val=${'$as_ac_Header'}
10649                  $as_echo "$as_val"'`
10650    if test "x$as_val" = x""yes; then
10651   cat >>confdefs.h <<_ACEOF
10652 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10653 _ACEOF
10654
10655 fi
10656
10657 done
10658
10659
10660 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10661
10662 for ac_header in readline/readline.h
10663 do
10664 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10666   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10667 $as_echo_n "checking for $ac_header... " >&6; }
10668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10669   $as_echo_n "(cached) " >&6
10670 fi
10671 ac_res=`eval 'as_val=${'$as_ac_Header'}
10672                  $as_echo "$as_val"'`
10673                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10674 $as_echo "$ac_res" >&6; }
10675 else
10676   # Is the header compilable?
10677 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10678 $as_echo_n "checking $ac_header usability... " >&6; }
10679 cat >conftest.$ac_ext <<_ACEOF
10680 /* confdefs.h.  */
10681 _ACEOF
10682 cat confdefs.h >>conftest.$ac_ext
10683 cat >>conftest.$ac_ext <<_ACEOF
10684 /* end confdefs.h.  */
10685 $ac_includes_default
10686 #include <$ac_header>
10687 _ACEOF
10688 rm -f conftest.$ac_objext
10689 if { (ac_try="$ac_compile"
10690 case "(($ac_try" in
10691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10692   *) ac_try_echo=$ac_try;;
10693 esac
10694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10695 $as_echo "$ac_try_echo") >&5
10696   (eval "$ac_compile") 2>conftest.er1
10697   ac_status=$?
10698   grep -v '^ *+' conftest.er1 >conftest.err
10699   rm -f conftest.er1
10700   cat conftest.err >&5
10701   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702   (exit $ac_status); } && {
10703          test -z "$ac_c_werror_flag" ||
10704          test ! -s conftest.err
10705        } && test -s conftest.$ac_objext; then
10706   ac_header_compiler=yes
10707 else
10708   $as_echo "$as_me: failed program was:" >&5
10709 sed 's/^/| /' conftest.$ac_ext >&5
10710
10711         ac_header_compiler=no
10712 fi
10713
10714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10715 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10716 $as_echo "$ac_header_compiler" >&6; }
10717
10718 # Is the header present?
10719 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10720 $as_echo_n "checking $ac_header presence... " >&6; }
10721 cat >conftest.$ac_ext <<_ACEOF
10722 /* confdefs.h.  */
10723 _ACEOF
10724 cat confdefs.h >>conftest.$ac_ext
10725 cat >>conftest.$ac_ext <<_ACEOF
10726 /* end confdefs.h.  */
10727 #include <$ac_header>
10728 _ACEOF
10729 if { (ac_try="$ac_cpp conftest.$ac_ext"
10730 case "(($ac_try" in
10731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732   *) ac_try_echo=$ac_try;;
10733 esac
10734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10735 $as_echo "$ac_try_echo") >&5
10736   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10737   ac_status=$?
10738   grep -v '^ *+' conftest.er1 >conftest.err
10739   rm -f conftest.er1
10740   cat conftest.err >&5
10741   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742   (exit $ac_status); } >/dev/null && {
10743          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10744          test ! -s conftest.err
10745        }; then
10746   ac_header_preproc=yes
10747 else
10748   $as_echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10750
10751   ac_header_preproc=no
10752 fi
10753
10754 rm -f conftest.err conftest.$ac_ext
10755 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10756 $as_echo "$ac_header_preproc" >&6; }
10757
10758 # So?  What about this header?
10759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10760   yes:no: )
10761     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10762 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10763     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10764 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10765     ac_header_preproc=yes
10766     ;;
10767   no:yes:* )
10768     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10769 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10770     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10771 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10772     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10773 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10774     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10775 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10776     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10777 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10778     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10779 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10780     ( cat <<\_ASBOX
10781 ## ---------------------------------------- ##
10782 ## Report this to pgsql-bugs@postgresql.org ##
10783 ## ---------------------------------------- ##
10784 _ASBOX
10785      ) | sed "s/^/$as_me: WARNING:     /" >&2
10786     ;;
10787 esac
10788 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10789 $as_echo_n "checking for $ac_header... " >&6; }
10790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10791   $as_echo_n "(cached) " >&6
10792 else
10793   eval "$as_ac_Header=\$ac_header_preproc"
10794 fi
10795 ac_res=`eval 'as_val=${'$as_ac_Header'}
10796                  $as_echo "$as_val"'`
10797                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10798 $as_echo "$ac_res" >&6; }
10799
10800 fi
10801 as_val=`eval 'as_val=${'$as_ac_Header'}
10802                  $as_echo "$as_val"'`
10803    if test "x$as_val" = x""yes; then
10804   cat >>confdefs.h <<_ACEOF
10805 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10806 _ACEOF
10807
10808 else
10809
10810 for ac_header in readline.h
10811 do
10812 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10814   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10815 $as_echo_n "checking for $ac_header... " >&6; }
10816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10817   $as_echo_n "(cached) " >&6
10818 fi
10819 ac_res=`eval 'as_val=${'$as_ac_Header'}
10820                  $as_echo "$as_val"'`
10821                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10822 $as_echo "$ac_res" >&6; }
10823 else
10824   # Is the header compilable?
10825 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10826 $as_echo_n "checking $ac_header usability... " >&6; }
10827 cat >conftest.$ac_ext <<_ACEOF
10828 /* confdefs.h.  */
10829 _ACEOF
10830 cat confdefs.h >>conftest.$ac_ext
10831 cat >>conftest.$ac_ext <<_ACEOF
10832 /* end confdefs.h.  */
10833 $ac_includes_default
10834 #include <$ac_header>
10835 _ACEOF
10836 rm -f conftest.$ac_objext
10837 if { (ac_try="$ac_compile"
10838 case "(($ac_try" in
10839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840   *) ac_try_echo=$ac_try;;
10841 esac
10842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10843 $as_echo "$ac_try_echo") >&5
10844   (eval "$ac_compile") 2>conftest.er1
10845   ac_status=$?
10846   grep -v '^ *+' conftest.er1 >conftest.err
10847   rm -f conftest.er1
10848   cat conftest.err >&5
10849   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850   (exit $ac_status); } && {
10851          test -z "$ac_c_werror_flag" ||
10852          test ! -s conftest.err
10853        } && test -s conftest.$ac_objext; then
10854   ac_header_compiler=yes
10855 else
10856   $as_echo "$as_me: failed program was:" >&5
10857 sed 's/^/| /' conftest.$ac_ext >&5
10858
10859         ac_header_compiler=no
10860 fi
10861
10862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10863 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10864 $as_echo "$ac_header_compiler" >&6; }
10865
10866 # Is the header present?
10867 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10868 $as_echo_n "checking $ac_header presence... " >&6; }
10869 cat >conftest.$ac_ext <<_ACEOF
10870 /* confdefs.h.  */
10871 _ACEOF
10872 cat confdefs.h >>conftest.$ac_ext
10873 cat >>conftest.$ac_ext <<_ACEOF
10874 /* end confdefs.h.  */
10875 #include <$ac_header>
10876 _ACEOF
10877 if { (ac_try="$ac_cpp conftest.$ac_ext"
10878 case "(($ac_try" in
10879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880   *) ac_try_echo=$ac_try;;
10881 esac
10882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10883 $as_echo "$ac_try_echo") >&5
10884   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10885   ac_status=$?
10886   grep -v '^ *+' conftest.er1 >conftest.err
10887   rm -f conftest.er1
10888   cat conftest.err >&5
10889   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890   (exit $ac_status); } >/dev/null && {
10891          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10892          test ! -s conftest.err
10893        }; then
10894   ac_header_preproc=yes
10895 else
10896   $as_echo "$as_me: failed program was:" >&5
10897 sed 's/^/| /' conftest.$ac_ext >&5
10898
10899   ac_header_preproc=no
10900 fi
10901
10902 rm -f conftest.err conftest.$ac_ext
10903 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10904 $as_echo "$ac_header_preproc" >&6; }
10905
10906 # So?  What about this header?
10907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10908   yes:no: )
10909     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10910 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10911     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10912 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10913     ac_header_preproc=yes
10914     ;;
10915   no:yes:* )
10916     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10917 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10918     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10919 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10920     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10921 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10922     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10923 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10924     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10925 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10926     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10927 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10928     ( cat <<\_ASBOX
10929 ## ---------------------------------------- ##
10930 ## Report this to pgsql-bugs@postgresql.org ##
10931 ## ---------------------------------------- ##
10932 _ASBOX
10933      ) | sed "s/^/$as_me: WARNING:     /" >&2
10934     ;;
10935 esac
10936 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10937 $as_echo_n "checking for $ac_header... " >&6; }
10938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10939   $as_echo_n "(cached) " >&6
10940 else
10941   eval "$as_ac_Header=\$ac_header_preproc"
10942 fi
10943 ac_res=`eval 'as_val=${'$as_ac_Header'}
10944                  $as_echo "$as_val"'`
10945                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10946 $as_echo "$ac_res" >&6; }
10947
10948 fi
10949 as_val=`eval 'as_val=${'$as_ac_Header'}
10950                  $as_echo "$as_val"'`
10951    if test "x$as_val" = x""yes; then
10952   cat >>confdefs.h <<_ACEOF
10953 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10954 _ACEOF
10955
10956 else
10957   { { $as_echo "$as_me:$LINENO: error: readline header not found
10958 If you have readline already installed, see config.log for details on the
10959 failure.  It is possible the compiler isn't looking in the proper directory.
10960 Use --without-readline to disable readline support." >&5
10961 $as_echo "$as_me: error: readline header not found
10962 If you have readline already installed, see config.log for details on the
10963 failure.  It is possible the compiler isn't looking in the proper directory.
10964 Use --without-readline to disable readline support." >&2;}
10965    { (exit 1); exit 1; }; }
10966 fi
10967
10968 done
10969
10970 fi
10971
10972 done
10973
10974
10975 for ac_header in readline/history.h
10976 do
10977 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10979   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10980 $as_echo_n "checking for $ac_header... " >&6; }
10981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10982   $as_echo_n "(cached) " >&6
10983 fi
10984 ac_res=`eval 'as_val=${'$as_ac_Header'}
10985                  $as_echo "$as_val"'`
10986                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10987 $as_echo "$ac_res" >&6; }
10988 else
10989   # Is the header compilable?
10990 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10991 $as_echo_n "checking $ac_header usability... " >&6; }
10992 cat >conftest.$ac_ext <<_ACEOF
10993 /* confdefs.h.  */
10994 _ACEOF
10995 cat confdefs.h >>conftest.$ac_ext
10996 cat >>conftest.$ac_ext <<_ACEOF
10997 /* end confdefs.h.  */
10998 $ac_includes_default
10999 #include <$ac_header>
11000 _ACEOF
11001 rm -f conftest.$ac_objext
11002 if { (ac_try="$ac_compile"
11003 case "(($ac_try" in
11004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11005   *) ac_try_echo=$ac_try;;
11006 esac
11007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11008 $as_echo "$ac_try_echo") >&5
11009   (eval "$ac_compile") 2>conftest.er1
11010   ac_status=$?
11011   grep -v '^ *+' conftest.er1 >conftest.err
11012   rm -f conftest.er1
11013   cat conftest.err >&5
11014   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015   (exit $ac_status); } && {
11016          test -z "$ac_c_werror_flag" ||
11017          test ! -s conftest.err
11018        } && test -s conftest.$ac_objext; then
11019   ac_header_compiler=yes
11020 else
11021   $as_echo "$as_me: failed program was:" >&5
11022 sed 's/^/| /' conftest.$ac_ext >&5
11023
11024         ac_header_compiler=no
11025 fi
11026
11027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11028 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11029 $as_echo "$ac_header_compiler" >&6; }
11030
11031 # Is the header present?
11032 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11033 $as_echo_n "checking $ac_header presence... " >&6; }
11034 cat >conftest.$ac_ext <<_ACEOF
11035 /* confdefs.h.  */
11036 _ACEOF
11037 cat confdefs.h >>conftest.$ac_ext
11038 cat >>conftest.$ac_ext <<_ACEOF
11039 /* end confdefs.h.  */
11040 #include <$ac_header>
11041 _ACEOF
11042 if { (ac_try="$ac_cpp conftest.$ac_ext"
11043 case "(($ac_try" in
11044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11045   *) ac_try_echo=$ac_try;;
11046 esac
11047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11048 $as_echo "$ac_try_echo") >&5
11049   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11050   ac_status=$?
11051   grep -v '^ *+' conftest.er1 >conftest.err
11052   rm -f conftest.er1
11053   cat conftest.err >&5
11054   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055   (exit $ac_status); } >/dev/null && {
11056          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11057          test ! -s conftest.err
11058        }; then
11059   ac_header_preproc=yes
11060 else
11061   $as_echo "$as_me: failed program was:" >&5
11062 sed 's/^/| /' conftest.$ac_ext >&5
11063
11064   ac_header_preproc=no
11065 fi
11066
11067 rm -f conftest.err conftest.$ac_ext
11068 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11069 $as_echo "$ac_header_preproc" >&6; }
11070
11071 # So?  What about this header?
11072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11073   yes:no: )
11074     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11075 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11076     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11077 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11078     ac_header_preproc=yes
11079     ;;
11080   no:yes:* )
11081     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11082 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11083     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11084 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11085     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11086 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11087     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11088 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11089     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11090 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11091     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11092 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11093     ( cat <<\_ASBOX
11094 ## ---------------------------------------- ##
11095 ## Report this to pgsql-bugs@postgresql.org ##
11096 ## ---------------------------------------- ##
11097 _ASBOX
11098      ) | sed "s/^/$as_me: WARNING:     /" >&2
11099     ;;
11100 esac
11101 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11102 $as_echo_n "checking for $ac_header... " >&6; }
11103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11104   $as_echo_n "(cached) " >&6
11105 else
11106   eval "$as_ac_Header=\$ac_header_preproc"
11107 fi
11108 ac_res=`eval 'as_val=${'$as_ac_Header'}
11109                  $as_echo "$as_val"'`
11110                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11111 $as_echo "$ac_res" >&6; }
11112
11113 fi
11114 as_val=`eval 'as_val=${'$as_ac_Header'}
11115                  $as_echo "$as_val"'`
11116    if test "x$as_val" = x""yes; then
11117   cat >>confdefs.h <<_ACEOF
11118 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11119 _ACEOF
11120
11121 else
11122
11123 for ac_header in history.h
11124 do
11125 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11127   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11128 $as_echo_n "checking for $ac_header... " >&6; }
11129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11130   $as_echo_n "(cached) " >&6
11131 fi
11132 ac_res=`eval 'as_val=${'$as_ac_Header'}
11133                  $as_echo "$as_val"'`
11134                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11135 $as_echo "$ac_res" >&6; }
11136 else
11137   # Is the header compilable?
11138 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11139 $as_echo_n "checking $ac_header usability... " >&6; }
11140 cat >conftest.$ac_ext <<_ACEOF
11141 /* confdefs.h.  */
11142 _ACEOF
11143 cat confdefs.h >>conftest.$ac_ext
11144 cat >>conftest.$ac_ext <<_ACEOF
11145 /* end confdefs.h.  */
11146 $ac_includes_default
11147 #include <$ac_header>
11148 _ACEOF
11149 rm -f conftest.$ac_objext
11150 if { (ac_try="$ac_compile"
11151 case "(($ac_try" in
11152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11153   *) ac_try_echo=$ac_try;;
11154 esac
11155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11156 $as_echo "$ac_try_echo") >&5
11157   (eval "$ac_compile") 2>conftest.er1
11158   ac_status=$?
11159   grep -v '^ *+' conftest.er1 >conftest.err
11160   rm -f conftest.er1
11161   cat conftest.err >&5
11162   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163   (exit $ac_status); } && {
11164          test -z "$ac_c_werror_flag" ||
11165          test ! -s conftest.err
11166        } && test -s conftest.$ac_objext; then
11167   ac_header_compiler=yes
11168 else
11169   $as_echo "$as_me: failed program was:" >&5
11170 sed 's/^/| /' conftest.$ac_ext >&5
11171
11172         ac_header_compiler=no
11173 fi
11174
11175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11176 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11177 $as_echo "$ac_header_compiler" >&6; }
11178
11179 # Is the header present?
11180 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11181 $as_echo_n "checking $ac_header presence... " >&6; }
11182 cat >conftest.$ac_ext <<_ACEOF
11183 /* confdefs.h.  */
11184 _ACEOF
11185 cat confdefs.h >>conftest.$ac_ext
11186 cat >>conftest.$ac_ext <<_ACEOF
11187 /* end confdefs.h.  */
11188 #include <$ac_header>
11189 _ACEOF
11190 if { (ac_try="$ac_cpp conftest.$ac_ext"
11191 case "(($ac_try" in
11192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11193   *) ac_try_echo=$ac_try;;
11194 esac
11195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11196 $as_echo "$ac_try_echo") >&5
11197   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11198   ac_status=$?
11199   grep -v '^ *+' conftest.er1 >conftest.err
11200   rm -f conftest.er1
11201   cat conftest.err >&5
11202   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203   (exit $ac_status); } >/dev/null && {
11204          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11205          test ! -s conftest.err
11206        }; then
11207   ac_header_preproc=yes
11208 else
11209   $as_echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.$ac_ext >&5
11211
11212   ac_header_preproc=no
11213 fi
11214
11215 rm -f conftest.err conftest.$ac_ext
11216 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11217 $as_echo "$ac_header_preproc" >&6; }
11218
11219 # So?  What about this header?
11220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11221   yes:no: )
11222     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11223 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11224     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11225 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11226     ac_header_preproc=yes
11227     ;;
11228   no:yes:* )
11229     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11230 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11231     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11232 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11233     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11234 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11235     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11236 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11237     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11238 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11239     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11240 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11241     ( cat <<\_ASBOX
11242 ## ---------------------------------------- ##
11243 ## Report this to pgsql-bugs@postgresql.org ##
11244 ## ---------------------------------------- ##
11245 _ASBOX
11246      ) | sed "s/^/$as_me: WARNING:     /" >&2
11247     ;;
11248 esac
11249 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11250 $as_echo_n "checking for $ac_header... " >&6; }
11251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11252   $as_echo_n "(cached) " >&6
11253 else
11254   eval "$as_ac_Header=\$ac_header_preproc"
11255 fi
11256 ac_res=`eval 'as_val=${'$as_ac_Header'}
11257                  $as_echo "$as_val"'`
11258                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11259 $as_echo "$ac_res" >&6; }
11260
11261 fi
11262 as_val=`eval 'as_val=${'$as_ac_Header'}
11263                  $as_echo "$as_val"'`
11264    if test "x$as_val" = x""yes; then
11265   cat >>confdefs.h <<_ACEOF
11266 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11267 _ACEOF
11268
11269 else
11270   { { $as_echo "$as_me:$LINENO: error: history header not found
11271 If you have readline already installed, see config.log for details on the
11272 failure.  It is possible the compiler isn't looking in the proper directory.
11273 Use --without-readline to disable readline support." >&5
11274 $as_echo "$as_me: error: history header not found
11275 If you have readline already installed, see config.log for details on the
11276 failure.  It is possible the compiler isn't looking in the proper directory.
11277 Use --without-readline to disable readline support." >&2;}
11278    { (exit 1); exit 1; }; }
11279 fi
11280
11281 done
11282
11283 fi
11284
11285 done
11286
11287 fi
11288
11289 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
11290 # Some installations of libedit usurp /usr/include/readline/, which seems
11291 # bad practice, since in combined installations readline will have its headers
11292 # there.  We might have to resort to AC_EGREP checks to make sure we found
11293 # the proper header...
11294
11295 for ac_header in editline/readline.h
11296 do
11297 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11299   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11300 $as_echo_n "checking for $ac_header... " >&6; }
11301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11302   $as_echo_n "(cached) " >&6
11303 fi
11304 ac_res=`eval 'as_val=${'$as_ac_Header'}
11305                  $as_echo "$as_val"'`
11306                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11307 $as_echo "$ac_res" >&6; }
11308 else
11309   # Is the header compilable?
11310 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11311 $as_echo_n "checking $ac_header usability... " >&6; }
11312 cat >conftest.$ac_ext <<_ACEOF
11313 /* confdefs.h.  */
11314 _ACEOF
11315 cat confdefs.h >>conftest.$ac_ext
11316 cat >>conftest.$ac_ext <<_ACEOF
11317 /* end confdefs.h.  */
11318 $ac_includes_default
11319 #include <$ac_header>
11320 _ACEOF
11321 rm -f conftest.$ac_objext
11322 if { (ac_try="$ac_compile"
11323 case "(($ac_try" in
11324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11325   *) ac_try_echo=$ac_try;;
11326 esac
11327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11328 $as_echo "$ac_try_echo") >&5
11329   (eval "$ac_compile") 2>conftest.er1
11330   ac_status=$?
11331   grep -v '^ *+' conftest.er1 >conftest.err
11332   rm -f conftest.er1
11333   cat conftest.err >&5
11334   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335   (exit $ac_status); } && {
11336          test -z "$ac_c_werror_flag" ||
11337          test ! -s conftest.err
11338        } && test -s conftest.$ac_objext; then
11339   ac_header_compiler=yes
11340 else
11341   $as_echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11343
11344         ac_header_compiler=no
11345 fi
11346
11347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11348 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11349 $as_echo "$ac_header_compiler" >&6; }
11350
11351 # Is the header present?
11352 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11353 $as_echo_n "checking $ac_header presence... " >&6; }
11354 cat >conftest.$ac_ext <<_ACEOF
11355 /* confdefs.h.  */
11356 _ACEOF
11357 cat confdefs.h >>conftest.$ac_ext
11358 cat >>conftest.$ac_ext <<_ACEOF
11359 /* end confdefs.h.  */
11360 #include <$ac_header>
11361 _ACEOF
11362 if { (ac_try="$ac_cpp conftest.$ac_ext"
11363 case "(($ac_try" in
11364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11365   *) ac_try_echo=$ac_try;;
11366 esac
11367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11368 $as_echo "$ac_try_echo") >&5
11369   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11370   ac_status=$?
11371   grep -v '^ *+' conftest.er1 >conftest.err
11372   rm -f conftest.er1
11373   cat conftest.err >&5
11374   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375   (exit $ac_status); } >/dev/null && {
11376          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11377          test ! -s conftest.err
11378        }; then
11379   ac_header_preproc=yes
11380 else
11381   $as_echo "$as_me: failed program was:" >&5
11382 sed 's/^/| /' conftest.$ac_ext >&5
11383
11384   ac_header_preproc=no
11385 fi
11386
11387 rm -f conftest.err conftest.$ac_ext
11388 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11389 $as_echo "$ac_header_preproc" >&6; }
11390
11391 # So?  What about this header?
11392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11393   yes:no: )
11394     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11395 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11396     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11397 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11398     ac_header_preproc=yes
11399     ;;
11400   no:yes:* )
11401     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11402 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11403     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11404 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11405     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11406 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11407     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11408 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11409     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11410 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11411     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11412 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11413     ( cat <<\_ASBOX
11414 ## ---------------------------------------- ##
11415 ## Report this to pgsql-bugs@postgresql.org ##
11416 ## ---------------------------------------- ##
11417 _ASBOX
11418      ) | sed "s/^/$as_me: WARNING:     /" >&2
11419     ;;
11420 esac
11421 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11422 $as_echo_n "checking for $ac_header... " >&6; }
11423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11424   $as_echo_n "(cached) " >&6
11425 else
11426   eval "$as_ac_Header=\$ac_header_preproc"
11427 fi
11428 ac_res=`eval 'as_val=${'$as_ac_Header'}
11429                  $as_echo "$as_val"'`
11430                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11431 $as_echo "$ac_res" >&6; }
11432
11433 fi
11434 as_val=`eval 'as_val=${'$as_ac_Header'}
11435                  $as_echo "$as_val"'`
11436    if test "x$as_val" = x""yes; then
11437   cat >>confdefs.h <<_ACEOF
11438 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11439 _ACEOF
11440
11441 else
11442
11443 for ac_header in readline.h
11444 do
11445 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11447   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11448 $as_echo_n "checking for $ac_header... " >&6; }
11449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11450   $as_echo_n "(cached) " >&6
11451 fi
11452 ac_res=`eval 'as_val=${'$as_ac_Header'}
11453                  $as_echo "$as_val"'`
11454                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11455 $as_echo "$ac_res" >&6; }
11456 else
11457   # Is the header compilable?
11458 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11459 $as_echo_n "checking $ac_header usability... " >&6; }
11460 cat >conftest.$ac_ext <<_ACEOF
11461 /* confdefs.h.  */
11462 _ACEOF
11463 cat confdefs.h >>conftest.$ac_ext
11464 cat >>conftest.$ac_ext <<_ACEOF
11465 /* end confdefs.h.  */
11466 $ac_includes_default
11467 #include <$ac_header>
11468 _ACEOF
11469 rm -f conftest.$ac_objext
11470 if { (ac_try="$ac_compile"
11471 case "(($ac_try" in
11472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11473   *) ac_try_echo=$ac_try;;
11474 esac
11475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11476 $as_echo "$ac_try_echo") >&5
11477   (eval "$ac_compile") 2>conftest.er1
11478   ac_status=$?
11479   grep -v '^ *+' conftest.er1 >conftest.err
11480   rm -f conftest.er1
11481   cat conftest.err >&5
11482   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483   (exit $ac_status); } && {
11484          test -z "$ac_c_werror_flag" ||
11485          test ! -s conftest.err
11486        } && test -s conftest.$ac_objext; then
11487   ac_header_compiler=yes
11488 else
11489   $as_echo "$as_me: failed program was:" >&5
11490 sed 's/^/| /' conftest.$ac_ext >&5
11491
11492         ac_header_compiler=no
11493 fi
11494
11495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11496 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11497 $as_echo "$ac_header_compiler" >&6; }
11498
11499 # Is the header present?
11500 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11501 $as_echo_n "checking $ac_header presence... " >&6; }
11502 cat >conftest.$ac_ext <<_ACEOF
11503 /* confdefs.h.  */
11504 _ACEOF
11505 cat confdefs.h >>conftest.$ac_ext
11506 cat >>conftest.$ac_ext <<_ACEOF
11507 /* end confdefs.h.  */
11508 #include <$ac_header>
11509 _ACEOF
11510 if { (ac_try="$ac_cpp conftest.$ac_ext"
11511 case "(($ac_try" in
11512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11513   *) ac_try_echo=$ac_try;;
11514 esac
11515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11516 $as_echo "$ac_try_echo") >&5
11517   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11518   ac_status=$?
11519   grep -v '^ *+' conftest.er1 >conftest.err
11520   rm -f conftest.er1
11521   cat conftest.err >&5
11522   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523   (exit $ac_status); } >/dev/null && {
11524          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11525          test ! -s conftest.err
11526        }; then
11527   ac_header_preproc=yes
11528 else
11529   $as_echo "$as_me: failed program was:" >&5
11530 sed 's/^/| /' conftest.$ac_ext >&5
11531
11532   ac_header_preproc=no
11533 fi
11534
11535 rm -f conftest.err conftest.$ac_ext
11536 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11537 $as_echo "$ac_header_preproc" >&6; }
11538
11539 # So?  What about this header?
11540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11541   yes:no: )
11542     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11543 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11544     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11545 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11546     ac_header_preproc=yes
11547     ;;
11548   no:yes:* )
11549     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11550 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11551     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11552 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11553     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11554 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11555     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11556 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11557     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11558 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11559     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11560 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11561     ( cat <<\_ASBOX
11562 ## ---------------------------------------- ##
11563 ## Report this to pgsql-bugs@postgresql.org ##
11564 ## ---------------------------------------- ##
11565 _ASBOX
11566      ) | sed "s/^/$as_me: WARNING:     /" >&2
11567     ;;
11568 esac
11569 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11570 $as_echo_n "checking for $ac_header... " >&6; }
11571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11572   $as_echo_n "(cached) " >&6
11573 else
11574   eval "$as_ac_Header=\$ac_header_preproc"
11575 fi
11576 ac_res=`eval 'as_val=${'$as_ac_Header'}
11577                  $as_echo "$as_val"'`
11578                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11579 $as_echo "$ac_res" >&6; }
11580
11581 fi
11582 as_val=`eval 'as_val=${'$as_ac_Header'}
11583                  $as_echo "$as_val"'`
11584    if test "x$as_val" = x""yes; then
11585   cat >>confdefs.h <<_ACEOF
11586 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11587 _ACEOF
11588
11589 else
11590
11591 for ac_header in readline/readline.h
11592 do
11593 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11595   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11596 $as_echo_n "checking for $ac_header... " >&6; }
11597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11598   $as_echo_n "(cached) " >&6
11599 fi
11600 ac_res=`eval 'as_val=${'$as_ac_Header'}
11601                  $as_echo "$as_val"'`
11602                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11603 $as_echo "$ac_res" >&6; }
11604 else
11605   # Is the header compilable?
11606 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11607 $as_echo_n "checking $ac_header usability... " >&6; }
11608 cat >conftest.$ac_ext <<_ACEOF
11609 /* confdefs.h.  */
11610 _ACEOF
11611 cat confdefs.h >>conftest.$ac_ext
11612 cat >>conftest.$ac_ext <<_ACEOF
11613 /* end confdefs.h.  */
11614 $ac_includes_default
11615 #include <$ac_header>
11616 _ACEOF
11617 rm -f conftest.$ac_objext
11618 if { (ac_try="$ac_compile"
11619 case "(($ac_try" in
11620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11621   *) ac_try_echo=$ac_try;;
11622 esac
11623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11624 $as_echo "$ac_try_echo") >&5
11625   (eval "$ac_compile") 2>conftest.er1
11626   ac_status=$?
11627   grep -v '^ *+' conftest.er1 >conftest.err
11628   rm -f conftest.er1
11629   cat conftest.err >&5
11630   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631   (exit $ac_status); } && {
11632          test -z "$ac_c_werror_flag" ||
11633          test ! -s conftest.err
11634        } && test -s conftest.$ac_objext; then
11635   ac_header_compiler=yes
11636 else
11637   $as_echo "$as_me: failed program was:" >&5
11638 sed 's/^/| /' conftest.$ac_ext >&5
11639
11640         ac_header_compiler=no
11641 fi
11642
11643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11644 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11645 $as_echo "$ac_header_compiler" >&6; }
11646
11647 # Is the header present?
11648 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11649 $as_echo_n "checking $ac_header presence... " >&6; }
11650 cat >conftest.$ac_ext <<_ACEOF
11651 /* confdefs.h.  */
11652 _ACEOF
11653 cat confdefs.h >>conftest.$ac_ext
11654 cat >>conftest.$ac_ext <<_ACEOF
11655 /* end confdefs.h.  */
11656 #include <$ac_header>
11657 _ACEOF
11658 if { (ac_try="$ac_cpp conftest.$ac_ext"
11659 case "(($ac_try" in
11660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11661   *) ac_try_echo=$ac_try;;
11662 esac
11663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11664 $as_echo "$ac_try_echo") >&5
11665   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11666   ac_status=$?
11667   grep -v '^ *+' conftest.er1 >conftest.err
11668   rm -f conftest.er1
11669   cat conftest.err >&5
11670   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671   (exit $ac_status); } >/dev/null && {
11672          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11673          test ! -s conftest.err
11674        }; then
11675   ac_header_preproc=yes
11676 else
11677   $as_echo "$as_me: failed program was:" >&5
11678 sed 's/^/| /' conftest.$ac_ext >&5
11679
11680   ac_header_preproc=no
11681 fi
11682
11683 rm -f conftest.err conftest.$ac_ext
11684 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11685 $as_echo "$ac_header_preproc" >&6; }
11686
11687 # So?  What about this header?
11688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11689   yes:no: )
11690     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11691 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11692     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11693 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11694     ac_header_preproc=yes
11695     ;;
11696   no:yes:* )
11697     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11698 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11699     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11700 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11701     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11702 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11703     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11704 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11705     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11706 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11707     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11708 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11709     ( cat <<\_ASBOX
11710 ## ---------------------------------------- ##
11711 ## Report this to pgsql-bugs@postgresql.org ##
11712 ## ---------------------------------------- ##
11713 _ASBOX
11714      ) | sed "s/^/$as_me: WARNING:     /" >&2
11715     ;;
11716 esac
11717 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11718 $as_echo_n "checking for $ac_header... " >&6; }
11719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11720   $as_echo_n "(cached) " >&6
11721 else
11722   eval "$as_ac_Header=\$ac_header_preproc"
11723 fi
11724 ac_res=`eval 'as_val=${'$as_ac_Header'}
11725                  $as_echo "$as_val"'`
11726                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11727 $as_echo "$ac_res" >&6; }
11728
11729 fi
11730 as_val=`eval 'as_val=${'$as_ac_Header'}
11731                  $as_echo "$as_val"'`
11732    if test "x$as_val" = x""yes; then
11733   cat >>confdefs.h <<_ACEOF
11734 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11735 _ACEOF
11736
11737 else
11738   { { $as_echo "$as_me:$LINENO: error: readline header not found
11739 If you have libedit already installed, see config.log for details on the
11740 failure.  It is possible the compiler isn't looking in the proper directory.
11741 Use --without-readline to disable libedit support." >&5
11742 $as_echo "$as_me: error: readline header not found
11743 If you have libedit already installed, see config.log for details on the
11744 failure.  It is possible the compiler isn't looking in the proper directory.
11745 Use --without-readline to disable libedit support." >&2;}
11746    { (exit 1); exit 1; }; }
11747 fi
11748
11749 done
11750
11751 fi
11752
11753 done
11754
11755 fi
11756
11757 done
11758
11759 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11760 # not be there at all.  Hence, don't complain if not found.  We must check
11761 # though, since in yet other versions it is an independent header.
11762
11763 for ac_header in editline/history.h
11764 do
11765 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11767   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11768 $as_echo_n "checking for $ac_header... " >&6; }
11769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11770   $as_echo_n "(cached) " >&6
11771 fi
11772 ac_res=`eval 'as_val=${'$as_ac_Header'}
11773                  $as_echo "$as_val"'`
11774                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11775 $as_echo "$ac_res" >&6; }
11776 else
11777   # Is the header compilable?
11778 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11779 $as_echo_n "checking $ac_header usability... " >&6; }
11780 cat >conftest.$ac_ext <<_ACEOF
11781 /* confdefs.h.  */
11782 _ACEOF
11783 cat confdefs.h >>conftest.$ac_ext
11784 cat >>conftest.$ac_ext <<_ACEOF
11785 /* end confdefs.h.  */
11786 $ac_includes_default
11787 #include <$ac_header>
11788 _ACEOF
11789 rm -f conftest.$ac_objext
11790 if { (ac_try="$ac_compile"
11791 case "(($ac_try" in
11792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11793   *) ac_try_echo=$ac_try;;
11794 esac
11795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11796 $as_echo "$ac_try_echo") >&5
11797   (eval "$ac_compile") 2>conftest.er1
11798   ac_status=$?
11799   grep -v '^ *+' conftest.er1 >conftest.err
11800   rm -f conftest.er1
11801   cat conftest.err >&5
11802   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803   (exit $ac_status); } && {
11804          test -z "$ac_c_werror_flag" ||
11805          test ! -s conftest.err
11806        } && test -s conftest.$ac_objext; then
11807   ac_header_compiler=yes
11808 else
11809   $as_echo "$as_me: failed program was:" >&5
11810 sed 's/^/| /' conftest.$ac_ext >&5
11811
11812         ac_header_compiler=no
11813 fi
11814
11815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11816 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11817 $as_echo "$ac_header_compiler" >&6; }
11818
11819 # Is the header present?
11820 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11821 $as_echo_n "checking $ac_header presence... " >&6; }
11822 cat >conftest.$ac_ext <<_ACEOF
11823 /* confdefs.h.  */
11824 _ACEOF
11825 cat confdefs.h >>conftest.$ac_ext
11826 cat >>conftest.$ac_ext <<_ACEOF
11827 /* end confdefs.h.  */
11828 #include <$ac_header>
11829 _ACEOF
11830 if { (ac_try="$ac_cpp conftest.$ac_ext"
11831 case "(($ac_try" in
11832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11833   *) ac_try_echo=$ac_try;;
11834 esac
11835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11836 $as_echo "$ac_try_echo") >&5
11837   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11838   ac_status=$?
11839   grep -v '^ *+' conftest.er1 >conftest.err
11840   rm -f conftest.er1
11841   cat conftest.err >&5
11842   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843   (exit $ac_status); } >/dev/null && {
11844          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11845          test ! -s conftest.err
11846        }; then
11847   ac_header_preproc=yes
11848 else
11849   $as_echo "$as_me: failed program was:" >&5
11850 sed 's/^/| /' conftest.$ac_ext >&5
11851
11852   ac_header_preproc=no
11853 fi
11854
11855 rm -f conftest.err conftest.$ac_ext
11856 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11857 $as_echo "$ac_header_preproc" >&6; }
11858
11859 # So?  What about this header?
11860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11861   yes:no: )
11862     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11863 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11864     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11865 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11866     ac_header_preproc=yes
11867     ;;
11868   no:yes:* )
11869     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11870 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11871     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11872 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11873     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11874 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11875     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11876 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11877     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11878 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11879     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11880 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11881     ( cat <<\_ASBOX
11882 ## ---------------------------------------- ##
11883 ## Report this to pgsql-bugs@postgresql.org ##
11884 ## ---------------------------------------- ##
11885 _ASBOX
11886      ) | sed "s/^/$as_me: WARNING:     /" >&2
11887     ;;
11888 esac
11889 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11890 $as_echo_n "checking for $ac_header... " >&6; }
11891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11892   $as_echo_n "(cached) " >&6
11893 else
11894   eval "$as_ac_Header=\$ac_header_preproc"
11895 fi
11896 ac_res=`eval 'as_val=${'$as_ac_Header'}
11897                  $as_echo "$as_val"'`
11898                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11899 $as_echo "$ac_res" >&6; }
11900
11901 fi
11902 as_val=`eval 'as_val=${'$as_ac_Header'}
11903                  $as_echo "$as_val"'`
11904    if test "x$as_val" = x""yes; then
11905   cat >>confdefs.h <<_ACEOF
11906 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11907 _ACEOF
11908
11909 else
11910
11911 for ac_header in history.h
11912 do
11913 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11915   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11916 $as_echo_n "checking for $ac_header... " >&6; }
11917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11918   $as_echo_n "(cached) " >&6
11919 fi
11920 ac_res=`eval 'as_val=${'$as_ac_Header'}
11921                  $as_echo "$as_val"'`
11922                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11923 $as_echo "$ac_res" >&6; }
11924 else
11925   # Is the header compilable?
11926 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11927 $as_echo_n "checking $ac_header usability... " >&6; }
11928 cat >conftest.$ac_ext <<_ACEOF
11929 /* confdefs.h.  */
11930 _ACEOF
11931 cat confdefs.h >>conftest.$ac_ext
11932 cat >>conftest.$ac_ext <<_ACEOF
11933 /* end confdefs.h.  */
11934 $ac_includes_default
11935 #include <$ac_header>
11936 _ACEOF
11937 rm -f conftest.$ac_objext
11938 if { (ac_try="$ac_compile"
11939 case "(($ac_try" in
11940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11941   *) ac_try_echo=$ac_try;;
11942 esac
11943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11944 $as_echo "$ac_try_echo") >&5
11945   (eval "$ac_compile") 2>conftest.er1
11946   ac_status=$?
11947   grep -v '^ *+' conftest.er1 >conftest.err
11948   rm -f conftest.er1
11949   cat conftest.err >&5
11950   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951   (exit $ac_status); } && {
11952          test -z "$ac_c_werror_flag" ||
11953          test ! -s conftest.err
11954        } && test -s conftest.$ac_objext; then
11955   ac_header_compiler=yes
11956 else
11957   $as_echo "$as_me: failed program was:" >&5
11958 sed 's/^/| /' conftest.$ac_ext >&5
11959
11960         ac_header_compiler=no
11961 fi
11962
11963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11964 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11965 $as_echo "$ac_header_compiler" >&6; }
11966
11967 # Is the header present?
11968 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11969 $as_echo_n "checking $ac_header presence... " >&6; }
11970 cat >conftest.$ac_ext <<_ACEOF
11971 /* confdefs.h.  */
11972 _ACEOF
11973 cat confdefs.h >>conftest.$ac_ext
11974 cat >>conftest.$ac_ext <<_ACEOF
11975 /* end confdefs.h.  */
11976 #include <$ac_header>
11977 _ACEOF
11978 if { (ac_try="$ac_cpp conftest.$ac_ext"
11979 case "(($ac_try" in
11980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11981   *) ac_try_echo=$ac_try;;
11982 esac
11983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11984 $as_echo "$ac_try_echo") >&5
11985   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11986   ac_status=$?
11987   grep -v '^ *+' conftest.er1 >conftest.err
11988   rm -f conftest.er1
11989   cat conftest.err >&5
11990   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991   (exit $ac_status); } >/dev/null && {
11992          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11993          test ! -s conftest.err
11994        }; then
11995   ac_header_preproc=yes
11996 else
11997   $as_echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.$ac_ext >&5
11999
12000   ac_header_preproc=no
12001 fi
12002
12003 rm -f conftest.err conftest.$ac_ext
12004 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12005 $as_echo "$ac_header_preproc" >&6; }
12006
12007 # So?  What about this header?
12008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12009   yes:no: )
12010     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12011 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12012     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12013 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12014     ac_header_preproc=yes
12015     ;;
12016   no:yes:* )
12017     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12018 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12019     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12020 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12021     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12022 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12023     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12024 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12025     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12026 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12027     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12028 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12029     ( cat <<\_ASBOX
12030 ## ---------------------------------------- ##
12031 ## Report this to pgsql-bugs@postgresql.org ##
12032 ## ---------------------------------------- ##
12033 _ASBOX
12034      ) | sed "s/^/$as_me: WARNING:     /" >&2
12035     ;;
12036 esac
12037 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12038 $as_echo_n "checking for $ac_header... " >&6; }
12039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12040   $as_echo_n "(cached) " >&6
12041 else
12042   eval "$as_ac_Header=\$ac_header_preproc"
12043 fi
12044 ac_res=`eval 'as_val=${'$as_ac_Header'}
12045                  $as_echo "$as_val"'`
12046                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12047 $as_echo "$ac_res" >&6; }
12048
12049 fi
12050 as_val=`eval 'as_val=${'$as_ac_Header'}
12051                  $as_echo "$as_val"'`
12052    if test "x$as_val" = x""yes; then
12053   cat >>confdefs.h <<_ACEOF
12054 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12055 _ACEOF
12056
12057 else
12058
12059 for ac_header in readline/history.h
12060 do
12061 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12063   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12064 $as_echo_n "checking for $ac_header... " >&6; }
12065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12066   $as_echo_n "(cached) " >&6
12067 fi
12068 ac_res=`eval 'as_val=${'$as_ac_Header'}
12069                  $as_echo "$as_val"'`
12070                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12071 $as_echo "$ac_res" >&6; }
12072 else
12073   # Is the header compilable?
12074 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12075 $as_echo_n "checking $ac_header usability... " >&6; }
12076 cat >conftest.$ac_ext <<_ACEOF
12077 /* confdefs.h.  */
12078 _ACEOF
12079 cat confdefs.h >>conftest.$ac_ext
12080 cat >>conftest.$ac_ext <<_ACEOF
12081 /* end confdefs.h.  */
12082 $ac_includes_default
12083 #include <$ac_header>
12084 _ACEOF
12085 rm -f conftest.$ac_objext
12086 if { (ac_try="$ac_compile"
12087 case "(($ac_try" in
12088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12089   *) ac_try_echo=$ac_try;;
12090 esac
12091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12092 $as_echo "$ac_try_echo") >&5
12093   (eval "$ac_compile") 2>conftest.er1
12094   ac_status=$?
12095   grep -v '^ *+' conftest.er1 >conftest.err
12096   rm -f conftest.er1
12097   cat conftest.err >&5
12098   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099   (exit $ac_status); } && {
12100          test -z "$ac_c_werror_flag" ||
12101          test ! -s conftest.err
12102        } && test -s conftest.$ac_objext; then
12103   ac_header_compiler=yes
12104 else
12105   $as_echo "$as_me: failed program was:" >&5
12106 sed 's/^/| /' conftest.$ac_ext >&5
12107
12108         ac_header_compiler=no
12109 fi
12110
12111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12112 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12113 $as_echo "$ac_header_compiler" >&6; }
12114
12115 # Is the header present?
12116 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12117 $as_echo_n "checking $ac_header presence... " >&6; }
12118 cat >conftest.$ac_ext <<_ACEOF
12119 /* confdefs.h.  */
12120 _ACEOF
12121 cat confdefs.h >>conftest.$ac_ext
12122 cat >>conftest.$ac_ext <<_ACEOF
12123 /* end confdefs.h.  */
12124 #include <$ac_header>
12125 _ACEOF
12126 if { (ac_try="$ac_cpp conftest.$ac_ext"
12127 case "(($ac_try" in
12128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129   *) ac_try_echo=$ac_try;;
12130 esac
12131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12132 $as_echo "$ac_try_echo") >&5
12133   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12134   ac_status=$?
12135   grep -v '^ *+' conftest.er1 >conftest.err
12136   rm -f conftest.er1
12137   cat conftest.err >&5
12138   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139   (exit $ac_status); } >/dev/null && {
12140          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12141          test ! -s conftest.err
12142        }; then
12143   ac_header_preproc=yes
12144 else
12145   $as_echo "$as_me: failed program was:" >&5
12146 sed 's/^/| /' conftest.$ac_ext >&5
12147
12148   ac_header_preproc=no
12149 fi
12150
12151 rm -f conftest.err conftest.$ac_ext
12152 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12153 $as_echo "$ac_header_preproc" >&6; }
12154
12155 # So?  What about this header?
12156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12157   yes:no: )
12158     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12159 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12160     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12161 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12162     ac_header_preproc=yes
12163     ;;
12164   no:yes:* )
12165     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12166 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12167     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12168 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12169     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12170 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12171     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12172 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12173     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12174 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12175     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12176 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12177     ( cat <<\_ASBOX
12178 ## ---------------------------------------- ##
12179 ## Report this to pgsql-bugs@postgresql.org ##
12180 ## ---------------------------------------- ##
12181 _ASBOX
12182      ) | sed "s/^/$as_me: WARNING:     /" >&2
12183     ;;
12184 esac
12185 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12186 $as_echo_n "checking for $ac_header... " >&6; }
12187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12188   $as_echo_n "(cached) " >&6
12189 else
12190   eval "$as_ac_Header=\$ac_header_preproc"
12191 fi
12192 ac_res=`eval 'as_val=${'$as_ac_Header'}
12193                  $as_echo "$as_val"'`
12194                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12195 $as_echo "$ac_res" >&6; }
12196
12197 fi
12198 as_val=`eval 'as_val=${'$as_ac_Header'}
12199                  $as_echo "$as_val"'`
12200    if test "x$as_val" = x""yes; then
12201   cat >>confdefs.h <<_ACEOF
12202 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12203 _ACEOF
12204
12205 fi
12206
12207 done
12208
12209 fi
12210
12211 done
12212
12213 fi
12214
12215 done
12216
12217 fi
12218
12219 if test "$with_zlib" = yes; then
12220   if test "${ac_cv_header_zlib_h+set}" = set; then
12221   { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12222 $as_echo_n "checking for zlib.h... " >&6; }
12223 if test "${ac_cv_header_zlib_h+set}" = set; then
12224   $as_echo_n "(cached) " >&6
12225 fi
12226 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12227 $as_echo "$ac_cv_header_zlib_h" >&6; }
12228 else
12229   # Is the header compilable?
12230 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
12231 $as_echo_n "checking zlib.h usability... " >&6; }
12232 cat >conftest.$ac_ext <<_ACEOF
12233 /* confdefs.h.  */
12234 _ACEOF
12235 cat confdefs.h >>conftest.$ac_ext
12236 cat >>conftest.$ac_ext <<_ACEOF
12237 /* end confdefs.h.  */
12238 $ac_includes_default
12239 #include <zlib.h>
12240 _ACEOF
12241 rm -f conftest.$ac_objext
12242 if { (ac_try="$ac_compile"
12243 case "(($ac_try" in
12244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12245   *) ac_try_echo=$ac_try;;
12246 esac
12247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12248 $as_echo "$ac_try_echo") >&5
12249   (eval "$ac_compile") 2>conftest.er1
12250   ac_status=$?
12251   grep -v '^ *+' conftest.er1 >conftest.err
12252   rm -f conftest.er1
12253   cat conftest.err >&5
12254   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255   (exit $ac_status); } && {
12256          test -z "$ac_c_werror_flag" ||
12257          test ! -s conftest.err
12258        } && test -s conftest.$ac_objext; then
12259   ac_header_compiler=yes
12260 else
12261   $as_echo "$as_me: failed program was:" >&5
12262 sed 's/^/| /' conftest.$ac_ext >&5
12263
12264         ac_header_compiler=no
12265 fi
12266
12267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12268 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12269 $as_echo "$ac_header_compiler" >&6; }
12270
12271 # Is the header present?
12272 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
12273 $as_echo_n "checking zlib.h presence... " >&6; }
12274 cat >conftest.$ac_ext <<_ACEOF
12275 /* confdefs.h.  */
12276 _ACEOF
12277 cat confdefs.h >>conftest.$ac_ext
12278 cat >>conftest.$ac_ext <<_ACEOF
12279 /* end confdefs.h.  */
12280 #include <zlib.h>
12281 _ACEOF
12282 if { (ac_try="$ac_cpp conftest.$ac_ext"
12283 case "(($ac_try" in
12284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12285   *) ac_try_echo=$ac_try;;
12286 esac
12287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12288 $as_echo "$ac_try_echo") >&5
12289   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12290   ac_status=$?
12291   grep -v '^ *+' conftest.er1 >conftest.err
12292   rm -f conftest.er1
12293   cat conftest.err >&5
12294   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295   (exit $ac_status); } >/dev/null && {
12296          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12297          test ! -s conftest.err
12298        }; then
12299   ac_header_preproc=yes
12300 else
12301   $as_echo "$as_me: failed program was:" >&5
12302 sed 's/^/| /' conftest.$ac_ext >&5
12303
12304   ac_header_preproc=no
12305 fi
12306
12307 rm -f conftest.err conftest.$ac_ext
12308 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12309 $as_echo "$ac_header_preproc" >&6; }
12310
12311 # So?  What about this header?
12312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12313   yes:no: )
12314     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12315 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12316     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
12317 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
12318     ac_header_preproc=yes
12319     ;;
12320   no:yes:* )
12321     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
12322 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
12323     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
12324 $as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
12325     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
12326 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
12327     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
12328 $as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12329     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
12330 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
12331     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
12332 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
12333     ( cat <<\_ASBOX
12334 ## ---------------------------------------- ##
12335 ## Report this to pgsql-bugs@postgresql.org ##
12336 ## ---------------------------------------- ##
12337 _ASBOX
12338      ) | sed "s/^/$as_me: WARNING:     /" >&2
12339     ;;
12340 esac
12341 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12342 $as_echo_n "checking for zlib.h... " >&6; }
12343 if test "${ac_cv_header_zlib_h+set}" = set; then
12344   $as_echo_n "(cached) " >&6
12345 else
12346   ac_cv_header_zlib_h=$ac_header_preproc
12347 fi
12348 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12349 $as_echo "$ac_cv_header_zlib_h" >&6; }
12350
12351 fi
12352 if test "x$ac_cv_header_zlib_h" = x""yes; then
12353   :
12354 else
12355   { { $as_echo "$as_me:$LINENO: error: zlib header not found
12356 If you have zlib already installed, see config.log for details on the
12357 failure.  It is possible the compiler isn't looking in the proper directory.
12358 Use --without-zlib to disable zlib support." >&5
12359 $as_echo "$as_me: error: zlib header not found
12360 If you have zlib already installed, see config.log for details on the
12361 failure.  It is possible the compiler isn't looking in the proper directory.
12362 Use --without-zlib to disable zlib support." >&2;}
12363    { (exit 1); exit 1; }; }
12364 fi
12365
12366
12367 fi
12368
12369 if test "$with_gssapi" = yes ; then
12370
12371 for ac_header in gssapi/gssapi.h
12372 do
12373 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12375   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12376 $as_echo_n "checking for $ac_header... " >&6; }
12377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12378   $as_echo_n "(cached) " >&6
12379 fi
12380 ac_res=`eval 'as_val=${'$as_ac_Header'}
12381                  $as_echo "$as_val"'`
12382                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12383 $as_echo "$ac_res" >&6; }
12384 else
12385   # Is the header compilable?
12386 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12387 $as_echo_n "checking $ac_header usability... " >&6; }
12388 cat >conftest.$ac_ext <<_ACEOF
12389 /* confdefs.h.  */
12390 _ACEOF
12391 cat confdefs.h >>conftest.$ac_ext
12392 cat >>conftest.$ac_ext <<_ACEOF
12393 /* end confdefs.h.  */
12394 $ac_includes_default
12395 #include <$ac_header>
12396 _ACEOF
12397 rm -f conftest.$ac_objext
12398 if { (ac_try="$ac_compile"
12399 case "(($ac_try" in
12400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12401   *) ac_try_echo=$ac_try;;
12402 esac
12403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12404 $as_echo "$ac_try_echo") >&5
12405   (eval "$ac_compile") 2>conftest.er1
12406   ac_status=$?
12407   grep -v '^ *+' conftest.er1 >conftest.err
12408   rm -f conftest.er1
12409   cat conftest.err >&5
12410   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411   (exit $ac_status); } && {
12412          test -z "$ac_c_werror_flag" ||
12413          test ! -s conftest.err
12414        } && test -s conftest.$ac_objext; then
12415   ac_header_compiler=yes
12416 else
12417   $as_echo "$as_me: failed program was:" >&5
12418 sed 's/^/| /' conftest.$ac_ext >&5
12419
12420         ac_header_compiler=no
12421 fi
12422
12423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12424 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12425 $as_echo "$ac_header_compiler" >&6; }
12426
12427 # Is the header present?
12428 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12429 $as_echo_n "checking $ac_header presence... " >&6; }
12430 cat >conftest.$ac_ext <<_ACEOF
12431 /* confdefs.h.  */
12432 _ACEOF
12433 cat confdefs.h >>conftest.$ac_ext
12434 cat >>conftest.$ac_ext <<_ACEOF
12435 /* end confdefs.h.  */
12436 #include <$ac_header>
12437 _ACEOF
12438 if { (ac_try="$ac_cpp conftest.$ac_ext"
12439 case "(($ac_try" in
12440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12441   *) ac_try_echo=$ac_try;;
12442 esac
12443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12444 $as_echo "$ac_try_echo") >&5
12445   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12446   ac_status=$?
12447   grep -v '^ *+' conftest.er1 >conftest.err
12448   rm -f conftest.er1
12449   cat conftest.err >&5
12450   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451   (exit $ac_status); } >/dev/null && {
12452          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12453          test ! -s conftest.err
12454        }; then
12455   ac_header_preproc=yes
12456 else
12457   $as_echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12459
12460   ac_header_preproc=no
12461 fi
12462
12463 rm -f conftest.err conftest.$ac_ext
12464 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12465 $as_echo "$ac_header_preproc" >&6; }
12466
12467 # So?  What about this header?
12468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12469   yes:no: )
12470     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12471 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12472     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12473 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12474     ac_header_preproc=yes
12475     ;;
12476   no:yes:* )
12477     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12478 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12479     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12480 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12481     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12482 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12483     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12484 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12485     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12486 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12487     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12488 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12489     ( cat <<\_ASBOX
12490 ## ---------------------------------------- ##
12491 ## Report this to pgsql-bugs@postgresql.org ##
12492 ## ---------------------------------------- ##
12493 _ASBOX
12494      ) | sed "s/^/$as_me: WARNING:     /" >&2
12495     ;;
12496 esac
12497 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12498 $as_echo_n "checking for $ac_header... " >&6; }
12499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12500   $as_echo_n "(cached) " >&6
12501 else
12502   eval "$as_ac_Header=\$ac_header_preproc"
12503 fi
12504 ac_res=`eval 'as_val=${'$as_ac_Header'}
12505                  $as_echo "$as_val"'`
12506                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12507 $as_echo "$ac_res" >&6; }
12508
12509 fi
12510 as_val=`eval 'as_val=${'$as_ac_Header'}
12511                  $as_echo "$as_val"'`
12512    if test "x$as_val" = x""yes; then
12513   cat >>confdefs.h <<_ACEOF
12514 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12515 _ACEOF
12516
12517 else
12518
12519 for ac_header in gssapi.h
12520 do
12521 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12523   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12524 $as_echo_n "checking for $ac_header... " >&6; }
12525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12526   $as_echo_n "(cached) " >&6
12527 fi
12528 ac_res=`eval 'as_val=${'$as_ac_Header'}
12529                  $as_echo "$as_val"'`
12530                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12531 $as_echo "$ac_res" >&6; }
12532 else
12533   # Is the header compilable?
12534 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12535 $as_echo_n "checking $ac_header usability... " >&6; }
12536 cat >conftest.$ac_ext <<_ACEOF
12537 /* confdefs.h.  */
12538 _ACEOF
12539 cat confdefs.h >>conftest.$ac_ext
12540 cat >>conftest.$ac_ext <<_ACEOF
12541 /* end confdefs.h.  */
12542 $ac_includes_default
12543 #include <$ac_header>
12544 _ACEOF
12545 rm -f conftest.$ac_objext
12546 if { (ac_try="$ac_compile"
12547 case "(($ac_try" in
12548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549   *) ac_try_echo=$ac_try;;
12550 esac
12551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12552 $as_echo "$ac_try_echo") >&5
12553   (eval "$ac_compile") 2>conftest.er1
12554   ac_status=$?
12555   grep -v '^ *+' conftest.er1 >conftest.err
12556   rm -f conftest.er1
12557   cat conftest.err >&5
12558   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559   (exit $ac_status); } && {
12560          test -z "$ac_c_werror_flag" ||
12561          test ! -s conftest.err
12562        } && test -s conftest.$ac_objext; then
12563   ac_header_compiler=yes
12564 else
12565   $as_echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12567
12568         ac_header_compiler=no
12569 fi
12570
12571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12572 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12573 $as_echo "$ac_header_compiler" >&6; }
12574
12575 # Is the header present?
12576 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12577 $as_echo_n "checking $ac_header presence... " >&6; }
12578 cat >conftest.$ac_ext <<_ACEOF
12579 /* confdefs.h.  */
12580 _ACEOF
12581 cat confdefs.h >>conftest.$ac_ext
12582 cat >>conftest.$ac_ext <<_ACEOF
12583 /* end confdefs.h.  */
12584 #include <$ac_header>
12585 _ACEOF
12586 if { (ac_try="$ac_cpp conftest.$ac_ext"
12587 case "(($ac_try" in
12588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589   *) ac_try_echo=$ac_try;;
12590 esac
12591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12592 $as_echo "$ac_try_echo") >&5
12593   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12594   ac_status=$?
12595   grep -v '^ *+' conftest.er1 >conftest.err
12596   rm -f conftest.er1
12597   cat conftest.err >&5
12598   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599   (exit $ac_status); } >/dev/null && {
12600          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12601          test ! -s conftest.err
12602        }; then
12603   ac_header_preproc=yes
12604 else
12605   $as_echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12607
12608   ac_header_preproc=no
12609 fi
12610
12611 rm -f conftest.err conftest.$ac_ext
12612 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12613 $as_echo "$ac_header_preproc" >&6; }
12614
12615 # So?  What about this header?
12616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12617   yes:no: )
12618     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12619 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12620     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12621 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12622     ac_header_preproc=yes
12623     ;;
12624   no:yes:* )
12625     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12626 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12627     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12628 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12629     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12630 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12631     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12632 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12633     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12634 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12635     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12636 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12637     ( cat <<\_ASBOX
12638 ## ---------------------------------------- ##
12639 ## Report this to pgsql-bugs@postgresql.org ##
12640 ## ---------------------------------------- ##
12641 _ASBOX
12642      ) | sed "s/^/$as_me: WARNING:     /" >&2
12643     ;;
12644 esac
12645 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12646 $as_echo_n "checking for $ac_header... " >&6; }
12647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12648   $as_echo_n "(cached) " >&6
12649 else
12650   eval "$as_ac_Header=\$ac_header_preproc"
12651 fi
12652 ac_res=`eval 'as_val=${'$as_ac_Header'}
12653                  $as_echo "$as_val"'`
12654                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12655 $as_echo "$ac_res" >&6; }
12656
12657 fi
12658 as_val=`eval 'as_val=${'$as_ac_Header'}
12659                  $as_echo "$as_val"'`
12660    if test "x$as_val" = x""yes; then
12661   cat >>confdefs.h <<_ACEOF
12662 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12663 _ACEOF
12664
12665 else
12666   { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12667 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12668    { (exit 1); exit 1; }; }
12669 fi
12670
12671 done
12672
12673 fi
12674
12675 done
12676
12677 fi
12678
12679 if test "$with_krb5" = yes ; then
12680   if test "${ac_cv_header_krb5_h+set}" = set; then
12681   { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12682 $as_echo_n "checking for krb5.h... " >&6; }
12683 if test "${ac_cv_header_krb5_h+set}" = set; then
12684   $as_echo_n "(cached) " >&6
12685 fi
12686 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12687 $as_echo "$ac_cv_header_krb5_h" >&6; }
12688 else
12689   # Is the header compilable?
12690 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12691 $as_echo_n "checking krb5.h usability... " >&6; }
12692 cat >conftest.$ac_ext <<_ACEOF
12693 /* confdefs.h.  */
12694 _ACEOF
12695 cat confdefs.h >>conftest.$ac_ext
12696 cat >>conftest.$ac_ext <<_ACEOF
12697 /* end confdefs.h.  */
12698 $ac_includes_default
12699 #include <krb5.h>
12700 _ACEOF
12701 rm -f conftest.$ac_objext
12702 if { (ac_try="$ac_compile"
12703 case "(($ac_try" in
12704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12705   *) ac_try_echo=$ac_try;;
12706 esac
12707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12708 $as_echo "$ac_try_echo") >&5
12709   (eval "$ac_compile") 2>conftest.er1
12710   ac_status=$?
12711   grep -v '^ *+' conftest.er1 >conftest.err
12712   rm -f conftest.er1
12713   cat conftest.err >&5
12714   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715   (exit $ac_status); } && {
12716          test -z "$ac_c_werror_flag" ||
12717          test ! -s conftest.err
12718        } && test -s conftest.$ac_objext; then
12719   ac_header_compiler=yes
12720 else
12721   $as_echo "$as_me: failed program was:" >&5
12722 sed 's/^/| /' conftest.$ac_ext >&5
12723
12724         ac_header_compiler=no
12725 fi
12726
12727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12728 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12729 $as_echo "$ac_header_compiler" >&6; }
12730
12731 # Is the header present?
12732 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12733 $as_echo_n "checking krb5.h presence... " >&6; }
12734 cat >conftest.$ac_ext <<_ACEOF
12735 /* confdefs.h.  */
12736 _ACEOF
12737 cat confdefs.h >>conftest.$ac_ext
12738 cat >>conftest.$ac_ext <<_ACEOF
12739 /* end confdefs.h.  */
12740 #include <krb5.h>
12741 _ACEOF
12742 if { (ac_try="$ac_cpp conftest.$ac_ext"
12743 case "(($ac_try" in
12744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12745   *) ac_try_echo=$ac_try;;
12746 esac
12747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12748 $as_echo "$ac_try_echo") >&5
12749   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12750   ac_status=$?
12751   grep -v '^ *+' conftest.er1 >conftest.err
12752   rm -f conftest.er1
12753   cat conftest.err >&5
12754   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755   (exit $ac_status); } >/dev/null && {
12756          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12757          test ! -s conftest.err
12758        }; then
12759   ac_header_preproc=yes
12760 else
12761   $as_echo "$as_me: failed program was:" >&5
12762 sed 's/^/| /' conftest.$ac_ext >&5
12763
12764   ac_header_preproc=no
12765 fi
12766
12767 rm -f conftest.err conftest.$ac_ext
12768 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12769 $as_echo "$ac_header_preproc" >&6; }
12770
12771 # So?  What about this header?
12772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12773   yes:no: )
12774     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12775 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12776     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12777 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12778     ac_header_preproc=yes
12779     ;;
12780   no:yes:* )
12781     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12782 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12783     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     check for missing prerequisite headers?" >&5
12784 $as_echo "$as_me: WARNING: krb5.h:     check for missing prerequisite headers?" >&2;}
12785     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12786 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12787     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&5
12788 $as_echo "$as_me: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12789     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12790 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12791     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12792 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12793     ( cat <<\_ASBOX
12794 ## ---------------------------------------- ##
12795 ## Report this to pgsql-bugs@postgresql.org ##
12796 ## ---------------------------------------- ##
12797 _ASBOX
12798      ) | sed "s/^/$as_me: WARNING:     /" >&2
12799     ;;
12800 esac
12801 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12802 $as_echo_n "checking for krb5.h... " >&6; }
12803 if test "${ac_cv_header_krb5_h+set}" = set; then
12804   $as_echo_n "(cached) " >&6
12805 else
12806   ac_cv_header_krb5_h=$ac_header_preproc
12807 fi
12808 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12809 $as_echo "$ac_cv_header_krb5_h" >&6; }
12810
12811 fi
12812 if test "x$ac_cv_header_krb5_h" = x""yes; then
12813   :
12814 else
12815   { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12816 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12817    { (exit 1); exit 1; }; }
12818 fi
12819
12820
12821 fi
12822
12823 if test "$with_openssl" = yes ; then
12824   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12825   { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12826 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12827 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12828   $as_echo_n "(cached) " >&6
12829 fi
12830 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12831 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12832 else
12833   # Is the header compilable?
12834 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12835 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12836 cat >conftest.$ac_ext <<_ACEOF
12837 /* confdefs.h.  */
12838 _ACEOF
12839 cat confdefs.h >>conftest.$ac_ext
12840 cat >>conftest.$ac_ext <<_ACEOF
12841 /* end confdefs.h.  */
12842 $ac_includes_default
12843 #include <openssl/ssl.h>
12844 _ACEOF
12845 rm -f conftest.$ac_objext
12846 if { (ac_try="$ac_compile"
12847 case "(($ac_try" in
12848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12849   *) ac_try_echo=$ac_try;;
12850 esac
12851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12852 $as_echo "$ac_try_echo") >&5
12853   (eval "$ac_compile") 2>conftest.er1
12854   ac_status=$?
12855   grep -v '^ *+' conftest.er1 >conftest.err
12856   rm -f conftest.er1
12857   cat conftest.err >&5
12858   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859   (exit $ac_status); } && {
12860          test -z "$ac_c_werror_flag" ||
12861          test ! -s conftest.err
12862        } && test -s conftest.$ac_objext; then
12863   ac_header_compiler=yes
12864 else
12865   $as_echo "$as_me: failed program was:" >&5
12866 sed 's/^/| /' conftest.$ac_ext >&5
12867
12868         ac_header_compiler=no
12869 fi
12870
12871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12872 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12873 $as_echo "$ac_header_compiler" >&6; }
12874
12875 # Is the header present?
12876 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12877 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12878 cat >conftest.$ac_ext <<_ACEOF
12879 /* confdefs.h.  */
12880 _ACEOF
12881 cat confdefs.h >>conftest.$ac_ext
12882 cat >>conftest.$ac_ext <<_ACEOF
12883 /* end confdefs.h.  */
12884 #include <openssl/ssl.h>
12885 _ACEOF
12886 if { (ac_try="$ac_cpp conftest.$ac_ext"
12887 case "(($ac_try" in
12888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12889   *) ac_try_echo=$ac_try;;
12890 esac
12891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12892 $as_echo "$ac_try_echo") >&5
12893   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12894   ac_status=$?
12895   grep -v '^ *+' conftest.er1 >conftest.err
12896   rm -f conftest.er1
12897   cat conftest.err >&5
12898   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899   (exit $ac_status); } >/dev/null && {
12900          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12901          test ! -s conftest.err
12902        }; then
12903   ac_header_preproc=yes
12904 else
12905   $as_echo "$as_me: failed program was:" >&5
12906 sed 's/^/| /' conftest.$ac_ext >&5
12907
12908   ac_header_preproc=no
12909 fi
12910
12911 rm -f conftest.err conftest.$ac_ext
12912 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12913 $as_echo "$ac_header_preproc" >&6; }
12914
12915 # So?  What about this header?
12916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12917   yes:no: )
12918     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12919 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12920     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12921 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12922     ac_header_preproc=yes
12923     ;;
12924   no:yes:* )
12925     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12926 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12927     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&5
12928 $as_echo "$as_me: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&2;}
12929     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12930 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12931     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&5
12932 $as_echo "$as_me: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12933     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12934 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12935     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12936 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12937     ( cat <<\_ASBOX
12938 ## ---------------------------------------- ##
12939 ## Report this to pgsql-bugs@postgresql.org ##
12940 ## ---------------------------------------- ##
12941 _ASBOX
12942      ) | sed "s/^/$as_me: WARNING:     /" >&2
12943     ;;
12944 esac
12945 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12946 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12947 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12948   $as_echo_n "(cached) " >&6
12949 else
12950   ac_cv_header_openssl_ssl_h=$ac_header_preproc
12951 fi
12952 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12953 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12954
12955 fi
12956 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
12957   :
12958 else
12959   { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12960 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12961    { (exit 1); exit 1; }; }
12962 fi
12963
12964
12965   if test "${ac_cv_header_openssl_err_h+set}" = set; then
12966   { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12967 $as_echo_n "checking for openssl/err.h... " >&6; }
12968 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12969   $as_echo_n "(cached) " >&6
12970 fi
12971 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12972 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12973 else
12974   # Is the header compilable?
12975 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12976 $as_echo_n "checking openssl/err.h usability... " >&6; }
12977 cat >conftest.$ac_ext <<_ACEOF
12978 /* confdefs.h.  */
12979 _ACEOF
12980 cat confdefs.h >>conftest.$ac_ext
12981 cat >>conftest.$ac_ext <<_ACEOF
12982 /* end confdefs.h.  */
12983 $ac_includes_default
12984 #include <openssl/err.h>
12985 _ACEOF
12986 rm -f conftest.$ac_objext
12987 if { (ac_try="$ac_compile"
12988 case "(($ac_try" in
12989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12990   *) ac_try_echo=$ac_try;;
12991 esac
12992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12993 $as_echo "$ac_try_echo") >&5
12994   (eval "$ac_compile") 2>conftest.er1
12995   ac_status=$?
12996   grep -v '^ *+' conftest.er1 >conftest.err
12997   rm -f conftest.er1
12998   cat conftest.err >&5
12999   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000   (exit $ac_status); } && {
13001          test -z "$ac_c_werror_flag" ||
13002          test ! -s conftest.err
13003        } && test -s conftest.$ac_objext; then
13004   ac_header_compiler=yes
13005 else
13006   $as_echo "$as_me: failed program was:" >&5
13007 sed 's/^/| /' conftest.$ac_ext >&5
13008
13009         ac_header_compiler=no
13010 fi
13011
13012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13013 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13014 $as_echo "$ac_header_compiler" >&6; }
13015
13016 # Is the header present?
13017 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
13018 $as_echo_n "checking openssl/err.h presence... " >&6; }
13019 cat >conftest.$ac_ext <<_ACEOF
13020 /* confdefs.h.  */
13021 _ACEOF
13022 cat confdefs.h >>conftest.$ac_ext
13023 cat >>conftest.$ac_ext <<_ACEOF
13024 /* end confdefs.h.  */
13025 #include <openssl/err.h>
13026 _ACEOF
13027 if { (ac_try="$ac_cpp conftest.$ac_ext"
13028 case "(($ac_try" in
13029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13030   *) ac_try_echo=$ac_try;;
13031 esac
13032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13033 $as_echo "$ac_try_echo") >&5
13034   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13035   ac_status=$?
13036   grep -v '^ *+' conftest.er1 >conftest.err
13037   rm -f conftest.er1
13038   cat conftest.err >&5
13039   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040   (exit $ac_status); } >/dev/null && {
13041          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13042          test ! -s conftest.err
13043        }; then
13044   ac_header_preproc=yes
13045 else
13046   $as_echo "$as_me: failed program was:" >&5
13047 sed 's/^/| /' conftest.$ac_ext >&5
13048
13049   ac_header_preproc=no
13050 fi
13051
13052 rm -f conftest.err conftest.$ac_ext
13053 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13054 $as_echo "$ac_header_preproc" >&6; }
13055
13056 # So?  What about this header?
13057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13058   yes:no: )
13059     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
13060 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13061     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
13062 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
13063     ac_header_preproc=yes
13064     ;;
13065   no:yes:* )
13066     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
13067 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
13068     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&5
13069 $as_echo "$as_me: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&2;}
13070     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
13071 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
13072     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&5
13073 $as_echo "$as_me: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13074     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
13075 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
13076     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
13077 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
13078     ( cat <<\_ASBOX
13079 ## ---------------------------------------- ##
13080 ## Report this to pgsql-bugs@postgresql.org ##
13081 ## ---------------------------------------- ##
13082 _ASBOX
13083      ) | sed "s/^/$as_me: WARNING:     /" >&2
13084     ;;
13085 esac
13086 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
13087 $as_echo_n "checking for openssl/err.h... " >&6; }
13088 if test "${ac_cv_header_openssl_err_h+set}" = set; then
13089   $as_echo_n "(cached) " >&6
13090 else
13091   ac_cv_header_openssl_err_h=$ac_header_preproc
13092 fi
13093 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
13094 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
13095
13096 fi
13097 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
13098   :
13099 else
13100   { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
13101 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
13102    { (exit 1); exit 1; }; }
13103 fi
13104
13105
13106 fi
13107
13108 if test "$with_pam" = yes ; then
13109
13110 for ac_header in security/pam_appl.h
13111 do
13112 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13114   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13115 $as_echo_n "checking for $ac_header... " >&6; }
13116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13117   $as_echo_n "(cached) " >&6
13118 fi
13119 ac_res=`eval 'as_val=${'$as_ac_Header'}
13120                  $as_echo "$as_val"'`
13121                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13122 $as_echo "$ac_res" >&6; }
13123 else
13124   # Is the header compilable?
13125 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13126 $as_echo_n "checking $ac_header usability... " >&6; }
13127 cat >conftest.$ac_ext <<_ACEOF
13128 /* confdefs.h.  */
13129 _ACEOF
13130 cat confdefs.h >>conftest.$ac_ext
13131 cat >>conftest.$ac_ext <<_ACEOF
13132 /* end confdefs.h.  */
13133 $ac_includes_default
13134 #include <$ac_header>
13135 _ACEOF
13136 rm -f conftest.$ac_objext
13137 if { (ac_try="$ac_compile"
13138 case "(($ac_try" in
13139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13140   *) ac_try_echo=$ac_try;;
13141 esac
13142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13143 $as_echo "$ac_try_echo") >&5
13144   (eval "$ac_compile") 2>conftest.er1
13145   ac_status=$?
13146   grep -v '^ *+' conftest.er1 >conftest.err
13147   rm -f conftest.er1
13148   cat conftest.err >&5
13149   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150   (exit $ac_status); } && {
13151          test -z "$ac_c_werror_flag" ||
13152          test ! -s conftest.err
13153        } && test -s conftest.$ac_objext; then
13154   ac_header_compiler=yes
13155 else
13156   $as_echo "$as_me: failed program was:" >&5
13157 sed 's/^/| /' conftest.$ac_ext >&5
13158
13159         ac_header_compiler=no
13160 fi
13161
13162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13163 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13164 $as_echo "$ac_header_compiler" >&6; }
13165
13166 # Is the header present?
13167 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13168 $as_echo_n "checking $ac_header presence... " >&6; }
13169 cat >conftest.$ac_ext <<_ACEOF
13170 /* confdefs.h.  */
13171 _ACEOF
13172 cat confdefs.h >>conftest.$ac_ext
13173 cat >>conftest.$ac_ext <<_ACEOF
13174 /* end confdefs.h.  */
13175 #include <$ac_header>
13176 _ACEOF
13177 if { (ac_try="$ac_cpp conftest.$ac_ext"
13178 case "(($ac_try" in
13179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13180   *) ac_try_echo=$ac_try;;
13181 esac
13182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13183 $as_echo "$ac_try_echo") >&5
13184   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13185   ac_status=$?
13186   grep -v '^ *+' conftest.er1 >conftest.err
13187   rm -f conftest.er1
13188   cat conftest.err >&5
13189   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190   (exit $ac_status); } >/dev/null && {
13191          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13192          test ! -s conftest.err
13193        }; then
13194   ac_header_preproc=yes
13195 else
13196   $as_echo "$as_me: failed program was:" >&5
13197 sed 's/^/| /' conftest.$ac_ext >&5
13198
13199   ac_header_preproc=no
13200 fi
13201
13202 rm -f conftest.err conftest.$ac_ext
13203 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13204 $as_echo "$ac_header_preproc" >&6; }
13205
13206 # So?  What about this header?
13207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13208   yes:no: )
13209     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13210 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13211     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13212 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13213     ac_header_preproc=yes
13214     ;;
13215   no:yes:* )
13216     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13217 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13218     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13219 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13220     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13221 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13222     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13223 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13224     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13225 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13226     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13227 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13228     ( cat <<\_ASBOX
13229 ## ---------------------------------------- ##
13230 ## Report this to pgsql-bugs@postgresql.org ##
13231 ## ---------------------------------------- ##
13232 _ASBOX
13233      ) | sed "s/^/$as_me: WARNING:     /" >&2
13234     ;;
13235 esac
13236 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13237 $as_echo_n "checking for $ac_header... " >&6; }
13238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13239   $as_echo_n "(cached) " >&6
13240 else
13241   eval "$as_ac_Header=\$ac_header_preproc"
13242 fi
13243 ac_res=`eval 'as_val=${'$as_ac_Header'}
13244                  $as_echo "$as_val"'`
13245                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13246 $as_echo "$ac_res" >&6; }
13247
13248 fi
13249 as_val=`eval 'as_val=${'$as_ac_Header'}
13250                  $as_echo "$as_val"'`
13251    if test "x$as_val" = x""yes; then
13252   cat >>confdefs.h <<_ACEOF
13253 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13254 _ACEOF
13255
13256 else
13257
13258 for ac_header in pam/pam_appl.h
13259 do
13260 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13262   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13263 $as_echo_n "checking for $ac_header... " >&6; }
13264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13265   $as_echo_n "(cached) " >&6
13266 fi
13267 ac_res=`eval 'as_val=${'$as_ac_Header'}
13268                  $as_echo "$as_val"'`
13269                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13270 $as_echo "$ac_res" >&6; }
13271 else
13272   # Is the header compilable?
13273 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13274 $as_echo_n "checking $ac_header usability... " >&6; }
13275 cat >conftest.$ac_ext <<_ACEOF
13276 /* confdefs.h.  */
13277 _ACEOF
13278 cat confdefs.h >>conftest.$ac_ext
13279 cat >>conftest.$ac_ext <<_ACEOF
13280 /* end confdefs.h.  */
13281 $ac_includes_default
13282 #include <$ac_header>
13283 _ACEOF
13284 rm -f conftest.$ac_objext
13285 if { (ac_try="$ac_compile"
13286 case "(($ac_try" in
13287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13288   *) ac_try_echo=$ac_try;;
13289 esac
13290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13291 $as_echo "$ac_try_echo") >&5
13292   (eval "$ac_compile") 2>conftest.er1
13293   ac_status=$?
13294   grep -v '^ *+' conftest.er1 >conftest.err
13295   rm -f conftest.er1
13296   cat conftest.err >&5
13297   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298   (exit $ac_status); } && {
13299          test -z "$ac_c_werror_flag" ||
13300          test ! -s conftest.err
13301        } && test -s conftest.$ac_objext; then
13302   ac_header_compiler=yes
13303 else
13304   $as_echo "$as_me: failed program was:" >&5
13305 sed 's/^/| /' conftest.$ac_ext >&5
13306
13307         ac_header_compiler=no
13308 fi
13309
13310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13311 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13312 $as_echo "$ac_header_compiler" >&6; }
13313
13314 # Is the header present?
13315 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13316 $as_echo_n "checking $ac_header presence... " >&6; }
13317 cat >conftest.$ac_ext <<_ACEOF
13318 /* confdefs.h.  */
13319 _ACEOF
13320 cat confdefs.h >>conftest.$ac_ext
13321 cat >>conftest.$ac_ext <<_ACEOF
13322 /* end confdefs.h.  */
13323 #include <$ac_header>
13324 _ACEOF
13325 if { (ac_try="$ac_cpp conftest.$ac_ext"
13326 case "(($ac_try" in
13327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13328   *) ac_try_echo=$ac_try;;
13329 esac
13330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13331 $as_echo "$ac_try_echo") >&5
13332   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13333   ac_status=$?
13334   grep -v '^ *+' conftest.er1 >conftest.err
13335   rm -f conftest.er1
13336   cat conftest.err >&5
13337   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338   (exit $ac_status); } >/dev/null && {
13339          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13340          test ! -s conftest.err
13341        }; then
13342   ac_header_preproc=yes
13343 else
13344   $as_echo "$as_me: failed program was:" >&5
13345 sed 's/^/| /' conftest.$ac_ext >&5
13346
13347   ac_header_preproc=no
13348 fi
13349
13350 rm -f conftest.err conftest.$ac_ext
13351 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13352 $as_echo "$ac_header_preproc" >&6; }
13353
13354 # So?  What about this header?
13355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13356   yes:no: )
13357     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13358 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13359     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13360 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13361     ac_header_preproc=yes
13362     ;;
13363   no:yes:* )
13364     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13365 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13366     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13367 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13368     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13369 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13370     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13371 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13372     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13373 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13374     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13375 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13376     ( cat <<\_ASBOX
13377 ## ---------------------------------------- ##
13378 ## Report this to pgsql-bugs@postgresql.org ##
13379 ## ---------------------------------------- ##
13380 _ASBOX
13381      ) | sed "s/^/$as_me: WARNING:     /" >&2
13382     ;;
13383 esac
13384 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13385 $as_echo_n "checking for $ac_header... " >&6; }
13386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13387   $as_echo_n "(cached) " >&6
13388 else
13389   eval "$as_ac_Header=\$ac_header_preproc"
13390 fi
13391 ac_res=`eval 'as_val=${'$as_ac_Header'}
13392                  $as_echo "$as_val"'`
13393                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13394 $as_echo "$ac_res" >&6; }
13395
13396 fi
13397 as_val=`eval 'as_val=${'$as_ac_Header'}
13398                  $as_echo "$as_val"'`
13399    if test "x$as_val" = x""yes; then
13400   cat >>confdefs.h <<_ACEOF
13401 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13402 _ACEOF
13403
13404 else
13405   { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
13406 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
13407    { (exit 1); exit 1; }; }
13408 fi
13409
13410 done
13411
13412 fi
13413
13414 done
13415
13416 fi
13417
13418 if test "$with_libxml" = yes ; then
13419   if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13420   { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13421 $as_echo_n "checking for libxml/parser.h... " >&6; }
13422 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13423   $as_echo_n "(cached) " >&6
13424 fi
13425 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13426 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13427 else
13428   # Is the header compilable?
13429 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
13430 $as_echo_n "checking libxml/parser.h usability... " >&6; }
13431 cat >conftest.$ac_ext <<_ACEOF
13432 /* confdefs.h.  */
13433 _ACEOF
13434 cat confdefs.h >>conftest.$ac_ext
13435 cat >>conftest.$ac_ext <<_ACEOF
13436 /* end confdefs.h.  */
13437 $ac_includes_default
13438 #include <libxml/parser.h>
13439 _ACEOF
13440 rm -f conftest.$ac_objext
13441 if { (ac_try="$ac_compile"
13442 case "(($ac_try" in
13443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13444   *) ac_try_echo=$ac_try;;
13445 esac
13446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13447 $as_echo "$ac_try_echo") >&5
13448   (eval "$ac_compile") 2>conftest.er1
13449   ac_status=$?
13450   grep -v '^ *+' conftest.er1 >conftest.err
13451   rm -f conftest.er1
13452   cat conftest.err >&5
13453   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454   (exit $ac_status); } && {
13455          test -z "$ac_c_werror_flag" ||
13456          test ! -s conftest.err
13457        } && test -s conftest.$ac_objext; then
13458   ac_header_compiler=yes
13459 else
13460   $as_echo "$as_me: failed program was:" >&5
13461 sed 's/^/| /' conftest.$ac_ext >&5
13462
13463         ac_header_compiler=no
13464 fi
13465
13466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13467 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13468 $as_echo "$ac_header_compiler" >&6; }
13469
13470 # Is the header present?
13471 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13472 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13473 cat >conftest.$ac_ext <<_ACEOF
13474 /* confdefs.h.  */
13475 _ACEOF
13476 cat confdefs.h >>conftest.$ac_ext
13477 cat >>conftest.$ac_ext <<_ACEOF
13478 /* end confdefs.h.  */
13479 #include <libxml/parser.h>
13480 _ACEOF
13481 if { (ac_try="$ac_cpp conftest.$ac_ext"
13482 case "(($ac_try" in
13483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13484   *) ac_try_echo=$ac_try;;
13485 esac
13486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13487 $as_echo "$ac_try_echo") >&5
13488   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13489   ac_status=$?
13490   grep -v '^ *+' conftest.er1 >conftest.err
13491   rm -f conftest.er1
13492   cat conftest.err >&5
13493   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494   (exit $ac_status); } >/dev/null && {
13495          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13496          test ! -s conftest.err
13497        }; then
13498   ac_header_preproc=yes
13499 else
13500   $as_echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.$ac_ext >&5
13502
13503   ac_header_preproc=no
13504 fi
13505
13506 rm -f conftest.err conftest.$ac_ext
13507 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13508 $as_echo "$ac_header_preproc" >&6; }
13509
13510 # So?  What about this header?
13511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13512   yes:no: )
13513     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13514 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13515     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13516 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13517     ac_header_preproc=yes
13518     ;;
13519   no:yes:* )
13520     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13521 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13522     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
13523 $as_echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
13524     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13525 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13526     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
13527 $as_echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13528     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13529 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13530     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13531 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13532     ( cat <<\_ASBOX
13533 ## ---------------------------------------- ##
13534 ## Report this to pgsql-bugs@postgresql.org ##
13535 ## ---------------------------------------- ##
13536 _ASBOX
13537      ) | sed "s/^/$as_me: WARNING:     /" >&2
13538     ;;
13539 esac
13540 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13541 $as_echo_n "checking for libxml/parser.h... " >&6; }
13542 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13543   $as_echo_n "(cached) " >&6
13544 else
13545   ac_cv_header_libxml_parser_h=$ac_header_preproc
13546 fi
13547 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13548 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13549
13550 fi
13551 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13552   :
13553 else
13554   { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13555 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13556    { (exit 1); exit 1; }; }
13557 fi
13558
13559
13560 fi
13561
13562 if test "$with_libxslt" = yes ; then
13563   if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13564   { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13565 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13566 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13567   $as_echo_n "(cached) " >&6
13568 fi
13569 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13570 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13571 else
13572   # Is the header compilable?
13573 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13574 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13575 cat >conftest.$ac_ext <<_ACEOF
13576 /* confdefs.h.  */
13577 _ACEOF
13578 cat confdefs.h >>conftest.$ac_ext
13579 cat >>conftest.$ac_ext <<_ACEOF
13580 /* end confdefs.h.  */
13581 $ac_includes_default
13582 #include <libxslt/xslt.h>
13583 _ACEOF
13584 rm -f conftest.$ac_objext
13585 if { (ac_try="$ac_compile"
13586 case "(($ac_try" in
13587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13588   *) ac_try_echo=$ac_try;;
13589 esac
13590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13591 $as_echo "$ac_try_echo") >&5
13592   (eval "$ac_compile") 2>conftest.er1
13593   ac_status=$?
13594   grep -v '^ *+' conftest.er1 >conftest.err
13595   rm -f conftest.er1
13596   cat conftest.err >&5
13597   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598   (exit $ac_status); } && {
13599          test -z "$ac_c_werror_flag" ||
13600          test ! -s conftest.err
13601        } && test -s conftest.$ac_objext; then
13602   ac_header_compiler=yes
13603 else
13604   $as_echo "$as_me: failed program was:" >&5
13605 sed 's/^/| /' conftest.$ac_ext >&5
13606
13607         ac_header_compiler=no
13608 fi
13609
13610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13611 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13612 $as_echo "$ac_header_compiler" >&6; }
13613
13614 # Is the header present?
13615 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13616 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13617 cat >conftest.$ac_ext <<_ACEOF
13618 /* confdefs.h.  */
13619 _ACEOF
13620 cat confdefs.h >>conftest.$ac_ext
13621 cat >>conftest.$ac_ext <<_ACEOF
13622 /* end confdefs.h.  */
13623 #include <libxslt/xslt.h>
13624 _ACEOF
13625 if { (ac_try="$ac_cpp conftest.$ac_ext"
13626 case "(($ac_try" in
13627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13628   *) ac_try_echo=$ac_try;;
13629 esac
13630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13631 $as_echo "$ac_try_echo") >&5
13632   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13633   ac_status=$?
13634   grep -v '^ *+' conftest.er1 >conftest.err
13635   rm -f conftest.er1
13636   cat conftest.err >&5
13637   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638   (exit $ac_status); } >/dev/null && {
13639          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13640          test ! -s conftest.err
13641        }; then
13642   ac_header_preproc=yes
13643 else
13644   $as_echo "$as_me: failed program was:" >&5
13645 sed 's/^/| /' conftest.$ac_ext >&5
13646
13647   ac_header_preproc=no
13648 fi
13649
13650 rm -f conftest.err conftest.$ac_ext
13651 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13652 $as_echo "$ac_header_preproc" >&6; }
13653
13654 # So?  What about this header?
13655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13656   yes:no: )
13657     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13658 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13659     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13660 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13661     ac_header_preproc=yes
13662     ;;
13663   no:yes:* )
13664     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13665 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13666     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&5
13667 $as_echo "$as_me: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&2;}
13668     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13669 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13670     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&5
13671 $as_echo "$as_me: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13672     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13673 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13674     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13675 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13676     ( cat <<\_ASBOX
13677 ## ---------------------------------------- ##
13678 ## Report this to pgsql-bugs@postgresql.org ##
13679 ## ---------------------------------------- ##
13680 _ASBOX
13681      ) | sed "s/^/$as_me: WARNING:     /" >&2
13682     ;;
13683 esac
13684 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13685 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13686 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13687   $as_echo_n "(cached) " >&6
13688 else
13689   ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13690 fi
13691 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13692 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13693
13694 fi
13695 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13696   :
13697 else
13698   { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13699 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13700    { (exit 1); exit 1; }; }
13701 fi
13702
13703
13704 fi
13705
13706 if test "$with_ldap" = yes ; then
13707   if test "$PORTNAME" != "win32"; then
13708
13709 for ac_header in ldap.h
13710 do
13711 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13713   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13714 $as_echo_n "checking for $ac_header... " >&6; }
13715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13716   $as_echo_n "(cached) " >&6
13717 fi
13718 ac_res=`eval 'as_val=${'$as_ac_Header'}
13719                  $as_echo "$as_val"'`
13720                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13721 $as_echo "$ac_res" >&6; }
13722 else
13723   # Is the header compilable?
13724 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13725 $as_echo_n "checking $ac_header usability... " >&6; }
13726 cat >conftest.$ac_ext <<_ACEOF
13727 /* confdefs.h.  */
13728 _ACEOF
13729 cat confdefs.h >>conftest.$ac_ext
13730 cat >>conftest.$ac_ext <<_ACEOF
13731 /* end confdefs.h.  */
13732 $ac_includes_default
13733 #include <$ac_header>
13734 _ACEOF
13735 rm -f conftest.$ac_objext
13736 if { (ac_try="$ac_compile"
13737 case "(($ac_try" in
13738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13739   *) ac_try_echo=$ac_try;;
13740 esac
13741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13742 $as_echo "$ac_try_echo") >&5
13743   (eval "$ac_compile") 2>conftest.er1
13744   ac_status=$?
13745   grep -v '^ *+' conftest.er1 >conftest.err
13746   rm -f conftest.er1
13747   cat conftest.err >&5
13748   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749   (exit $ac_status); } && {
13750          test -z "$ac_c_werror_flag" ||
13751          test ! -s conftest.err
13752        } && test -s conftest.$ac_objext; then
13753   ac_header_compiler=yes
13754 else
13755   $as_echo "$as_me: failed program was:" >&5
13756 sed 's/^/| /' conftest.$ac_ext >&5
13757
13758         ac_header_compiler=no
13759 fi
13760
13761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13762 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13763 $as_echo "$ac_header_compiler" >&6; }
13764
13765 # Is the header present?
13766 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13767 $as_echo_n "checking $ac_header presence... " >&6; }
13768 cat >conftest.$ac_ext <<_ACEOF
13769 /* confdefs.h.  */
13770 _ACEOF
13771 cat confdefs.h >>conftest.$ac_ext
13772 cat >>conftest.$ac_ext <<_ACEOF
13773 /* end confdefs.h.  */
13774 #include <$ac_header>
13775 _ACEOF
13776 if { (ac_try="$ac_cpp conftest.$ac_ext"
13777 case "(($ac_try" in
13778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13779   *) ac_try_echo=$ac_try;;
13780 esac
13781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13782 $as_echo "$ac_try_echo") >&5
13783   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13784   ac_status=$?
13785   grep -v '^ *+' conftest.er1 >conftest.err
13786   rm -f conftest.er1
13787   cat conftest.err >&5
13788   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789   (exit $ac_status); } >/dev/null && {
13790          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13791          test ! -s conftest.err
13792        }; then
13793   ac_header_preproc=yes
13794 else
13795   $as_echo "$as_me: failed program was:" >&5
13796 sed 's/^/| /' conftest.$ac_ext >&5
13797
13798   ac_header_preproc=no
13799 fi
13800
13801 rm -f conftest.err conftest.$ac_ext
13802 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13803 $as_echo "$ac_header_preproc" >&6; }
13804
13805 # So?  What about this header?
13806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13807   yes:no: )
13808     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13809 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13810     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13811 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13812     ac_header_preproc=yes
13813     ;;
13814   no:yes:* )
13815     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13816 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13817     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13818 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13819     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13820 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13821     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13822 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13823     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13824 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13825     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13826 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13827     ( cat <<\_ASBOX
13828 ## ---------------------------------------- ##
13829 ## Report this to pgsql-bugs@postgresql.org ##
13830 ## ---------------------------------------- ##
13831 _ASBOX
13832      ) | sed "s/^/$as_me: WARNING:     /" >&2
13833     ;;
13834 esac
13835 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13836 $as_echo_n "checking for $ac_header... " >&6; }
13837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13838   $as_echo_n "(cached) " >&6
13839 else
13840   eval "$as_ac_Header=\$ac_header_preproc"
13841 fi
13842 ac_res=`eval 'as_val=${'$as_ac_Header'}
13843                  $as_echo "$as_val"'`
13844                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13845 $as_echo "$ac_res" >&6; }
13846
13847 fi
13848 as_val=`eval 'as_val=${'$as_ac_Header'}
13849                  $as_echo "$as_val"'`
13850    if test "x$as_val" = x""yes; then
13851   cat >>confdefs.h <<_ACEOF
13852 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13853 _ACEOF
13854
13855 else
13856   { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13857 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13858    { (exit 1); exit 1; }; }
13859 fi
13860
13861 done
13862
13863   else
13864
13865 for ac_header in winldap.h
13866 do
13867 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13868 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13869 $as_echo_n "checking for $ac_header... " >&6; }
13870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13871   $as_echo_n "(cached) " >&6
13872 else
13873   cat >conftest.$ac_ext <<_ACEOF
13874 /* confdefs.h.  */
13875 _ACEOF
13876 cat confdefs.h >>conftest.$ac_ext
13877 cat >>conftest.$ac_ext <<_ACEOF
13878 /* end confdefs.h.  */
13879 $ac_includes_default
13880 #include <windows.h>
13881
13882
13883 #include <$ac_header>
13884 _ACEOF
13885 rm -f conftest.$ac_objext
13886 if { (ac_try="$ac_compile"
13887 case "(($ac_try" in
13888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13889   *) ac_try_echo=$ac_try;;
13890 esac
13891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13892 $as_echo "$ac_try_echo") >&5
13893   (eval "$ac_compile") 2>conftest.er1
13894   ac_status=$?
13895   grep -v '^ *+' conftest.er1 >conftest.err
13896   rm -f conftest.er1
13897   cat conftest.err >&5
13898   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899   (exit $ac_status); } && {
13900          test -z "$ac_c_werror_flag" ||
13901          test ! -s conftest.err
13902        } && test -s conftest.$ac_objext; then
13903   eval "$as_ac_Header=yes"
13904 else
13905   $as_echo "$as_me: failed program was:" >&5
13906 sed 's/^/| /' conftest.$ac_ext >&5
13907
13908         eval "$as_ac_Header=no"
13909 fi
13910
13911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13912 fi
13913 ac_res=`eval 'as_val=${'$as_ac_Header'}
13914                  $as_echo "$as_val"'`
13915                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13916 $as_echo "$ac_res" >&6; }
13917 as_val=`eval 'as_val=${'$as_ac_Header'}
13918                  $as_echo "$as_val"'`
13919    if test "x$as_val" = x""yes; then
13920   cat >>confdefs.h <<_ACEOF
13921 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13922 _ACEOF
13923
13924 else
13925   { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13926 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13927    { (exit 1); exit 1; }; }
13928 fi
13929
13930 done
13931
13932   fi
13933 fi
13934
13935 if test "$with_bonjour" = yes ; then
13936   if test "${ac_cv_header_dns_sd_h+set}" = set; then
13937   { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13938 $as_echo_n "checking for dns_sd.h... " >&6; }
13939 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13940   $as_echo_n "(cached) " >&6
13941 fi
13942 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13943 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13944 else
13945   # Is the header compilable?
13946 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
13947 $as_echo_n "checking dns_sd.h usability... " >&6; }
13948 cat >conftest.$ac_ext <<_ACEOF
13949 /* confdefs.h.  */
13950 _ACEOF
13951 cat confdefs.h >>conftest.$ac_ext
13952 cat >>conftest.$ac_ext <<_ACEOF
13953 /* end confdefs.h.  */
13954 $ac_includes_default
13955 #include <dns_sd.h>
13956 _ACEOF
13957 rm -f conftest.$ac_objext
13958 if { (ac_try="$ac_compile"
13959 case "(($ac_try" in
13960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961   *) ac_try_echo=$ac_try;;
13962 esac
13963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13964 $as_echo "$ac_try_echo") >&5
13965   (eval "$ac_compile") 2>conftest.er1
13966   ac_status=$?
13967   grep -v '^ *+' conftest.er1 >conftest.err
13968   rm -f conftest.er1
13969   cat conftest.err >&5
13970   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971   (exit $ac_status); } && {
13972          test -z "$ac_c_werror_flag" ||
13973          test ! -s conftest.err
13974        } && test -s conftest.$ac_objext; then
13975   ac_header_compiler=yes
13976 else
13977   $as_echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.$ac_ext >&5
13979
13980         ac_header_compiler=no
13981 fi
13982
13983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13984 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13985 $as_echo "$ac_header_compiler" >&6; }
13986
13987 # Is the header present?
13988 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
13989 $as_echo_n "checking dns_sd.h presence... " >&6; }
13990 cat >conftest.$ac_ext <<_ACEOF
13991 /* confdefs.h.  */
13992 _ACEOF
13993 cat confdefs.h >>conftest.$ac_ext
13994 cat >>conftest.$ac_ext <<_ACEOF
13995 /* end confdefs.h.  */
13996 #include <dns_sd.h>
13997 _ACEOF
13998 if { (ac_try="$ac_cpp conftest.$ac_ext"
13999 case "(($ac_try" in
14000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14001   *) ac_try_echo=$ac_try;;
14002 esac
14003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14004 $as_echo "$ac_try_echo") >&5
14005   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14006   ac_status=$?
14007   grep -v '^ *+' conftest.er1 >conftest.err
14008   rm -f conftest.er1
14009   cat conftest.err >&5
14010   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011   (exit $ac_status); } >/dev/null && {
14012          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14013          test ! -s conftest.err
14014        }; then
14015   ac_header_preproc=yes
14016 else
14017   $as_echo "$as_me: failed program was:" >&5
14018 sed 's/^/| /' conftest.$ac_ext >&5
14019
14020   ac_header_preproc=no
14021 fi
14022
14023 rm -f conftest.err conftest.$ac_ext
14024 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14025 $as_echo "$ac_header_preproc" >&6; }
14026
14027 # So?  What about this header?
14028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14029   yes:no: )
14030     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
14031 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14032     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
14033 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
14034     ac_header_preproc=yes
14035     ;;
14036   no:yes:* )
14037     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
14038 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
14039     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&5
14040 $as_echo "$as_me: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&2;}
14041     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
14042 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
14043     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&5
14044 $as_echo "$as_me: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14045     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
14046 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
14047     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
14048 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
14049     ( cat <<\_ASBOX
14050 ## ---------------------------------------- ##
14051 ## Report this to pgsql-bugs@postgresql.org ##
14052 ## ---------------------------------------- ##
14053 _ASBOX
14054      ) | sed "s/^/$as_me: WARNING:     /" >&2
14055     ;;
14056 esac
14057 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
14058 $as_echo_n "checking for dns_sd.h... " >&6; }
14059 if test "${ac_cv_header_dns_sd_h+set}" = set; then
14060   $as_echo_n "(cached) " >&6
14061 else
14062   ac_cv_header_dns_sd_h=$ac_header_preproc
14063 fi
14064 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
14065 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
14066
14067 fi
14068 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
14069   :
14070 else
14071   { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
14072 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
14073    { (exit 1); exit 1; }; }
14074 fi
14075
14076
14077 fi
14078
14079 # for contrib/uuid-ossp
14080 if test "$with_ossp_uuid" = yes ; then
14081
14082 for ac_header in ossp/uuid.h
14083 do
14084 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14086   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14087 $as_echo_n "checking for $ac_header... " >&6; }
14088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14089   $as_echo_n "(cached) " >&6
14090 fi
14091 ac_res=`eval 'as_val=${'$as_ac_Header'}
14092                  $as_echo "$as_val"'`
14093                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14094 $as_echo "$ac_res" >&6; }
14095 else
14096   # Is the header compilable?
14097 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14098 $as_echo_n "checking $ac_header usability... " >&6; }
14099 cat >conftest.$ac_ext <<_ACEOF
14100 /* confdefs.h.  */
14101 _ACEOF
14102 cat confdefs.h >>conftest.$ac_ext
14103 cat >>conftest.$ac_ext <<_ACEOF
14104 /* end confdefs.h.  */
14105 $ac_includes_default
14106 #include <$ac_header>
14107 _ACEOF
14108 rm -f conftest.$ac_objext
14109 if { (ac_try="$ac_compile"
14110 case "(($ac_try" in
14111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14112   *) ac_try_echo=$ac_try;;
14113 esac
14114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14115 $as_echo "$ac_try_echo") >&5
14116   (eval "$ac_compile") 2>conftest.er1
14117   ac_status=$?
14118   grep -v '^ *+' conftest.er1 >conftest.err
14119   rm -f conftest.er1
14120   cat conftest.err >&5
14121   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122   (exit $ac_status); } && {
14123          test -z "$ac_c_werror_flag" ||
14124          test ! -s conftest.err
14125        } && test -s conftest.$ac_objext; then
14126   ac_header_compiler=yes
14127 else
14128   $as_echo "$as_me: failed program was:" >&5
14129 sed 's/^/| /' conftest.$ac_ext >&5
14130
14131         ac_header_compiler=no
14132 fi
14133
14134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14135 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14136 $as_echo "$ac_header_compiler" >&6; }
14137
14138 # Is the header present?
14139 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14140 $as_echo_n "checking $ac_header presence... " >&6; }
14141 cat >conftest.$ac_ext <<_ACEOF
14142 /* confdefs.h.  */
14143 _ACEOF
14144 cat confdefs.h >>conftest.$ac_ext
14145 cat >>conftest.$ac_ext <<_ACEOF
14146 /* end confdefs.h.  */
14147 #include <$ac_header>
14148 _ACEOF
14149 if { (ac_try="$ac_cpp conftest.$ac_ext"
14150 case "(($ac_try" in
14151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14152   *) ac_try_echo=$ac_try;;
14153 esac
14154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14155 $as_echo "$ac_try_echo") >&5
14156   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14157   ac_status=$?
14158   grep -v '^ *+' conftest.er1 >conftest.err
14159   rm -f conftest.er1
14160   cat conftest.err >&5
14161   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162   (exit $ac_status); } >/dev/null && {
14163          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14164          test ! -s conftest.err
14165        }; then
14166   ac_header_preproc=yes
14167 else
14168   $as_echo "$as_me: failed program was:" >&5
14169 sed 's/^/| /' conftest.$ac_ext >&5
14170
14171   ac_header_preproc=no
14172 fi
14173
14174 rm -f conftest.err conftest.$ac_ext
14175 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14176 $as_echo "$ac_header_preproc" >&6; }
14177
14178 # So?  What about this header?
14179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14180   yes:no: )
14181     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14182 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14183     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14184 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14185     ac_header_preproc=yes
14186     ;;
14187   no:yes:* )
14188     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14189 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14190     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14191 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14192     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14193 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14194     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14195 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14196     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14197 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14198     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14199 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14200     ( cat <<\_ASBOX
14201 ## ---------------------------------------- ##
14202 ## Report this to pgsql-bugs@postgresql.org ##
14203 ## ---------------------------------------- ##
14204 _ASBOX
14205      ) | sed "s/^/$as_me: WARNING:     /" >&2
14206     ;;
14207 esac
14208 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14209 $as_echo_n "checking for $ac_header... " >&6; }
14210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14211   $as_echo_n "(cached) " >&6
14212 else
14213   eval "$as_ac_Header=\$ac_header_preproc"
14214 fi
14215 ac_res=`eval 'as_val=${'$as_ac_Header'}
14216                  $as_echo "$as_val"'`
14217                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14218 $as_echo "$ac_res" >&6; }
14219
14220 fi
14221 as_val=`eval 'as_val=${'$as_ac_Header'}
14222                  $as_echo "$as_val"'`
14223    if test "x$as_val" = x""yes; then
14224   cat >>confdefs.h <<_ACEOF
14225 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14226 _ACEOF
14227
14228 else
14229
14230
14231 for ac_header in uuid.h
14232 do
14233 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14235   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14236 $as_echo_n "checking for $ac_header... " >&6; }
14237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14238   $as_echo_n "(cached) " >&6
14239 fi
14240 ac_res=`eval 'as_val=${'$as_ac_Header'}
14241                  $as_echo "$as_val"'`
14242                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14243 $as_echo "$ac_res" >&6; }
14244 else
14245   # Is the header compilable?
14246 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14247 $as_echo_n "checking $ac_header usability... " >&6; }
14248 cat >conftest.$ac_ext <<_ACEOF
14249 /* confdefs.h.  */
14250 _ACEOF
14251 cat confdefs.h >>conftest.$ac_ext
14252 cat >>conftest.$ac_ext <<_ACEOF
14253 /* end confdefs.h.  */
14254 $ac_includes_default
14255 #include <$ac_header>
14256 _ACEOF
14257 rm -f conftest.$ac_objext
14258 if { (ac_try="$ac_compile"
14259 case "(($ac_try" in
14260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14261   *) ac_try_echo=$ac_try;;
14262 esac
14263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14264 $as_echo "$ac_try_echo") >&5
14265   (eval "$ac_compile") 2>conftest.er1
14266   ac_status=$?
14267   grep -v '^ *+' conftest.er1 >conftest.err
14268   rm -f conftest.er1
14269   cat conftest.err >&5
14270   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271   (exit $ac_status); } && {
14272          test -z "$ac_c_werror_flag" ||
14273          test ! -s conftest.err
14274        } && test -s conftest.$ac_objext; then
14275   ac_header_compiler=yes
14276 else
14277   $as_echo "$as_me: failed program was:" >&5
14278 sed 's/^/| /' conftest.$ac_ext >&5
14279
14280         ac_header_compiler=no
14281 fi
14282
14283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14284 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14285 $as_echo "$ac_header_compiler" >&6; }
14286
14287 # Is the header present?
14288 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14289 $as_echo_n "checking $ac_header presence... " >&6; }
14290 cat >conftest.$ac_ext <<_ACEOF
14291 /* confdefs.h.  */
14292 _ACEOF
14293 cat confdefs.h >>conftest.$ac_ext
14294 cat >>conftest.$ac_ext <<_ACEOF
14295 /* end confdefs.h.  */
14296 #include <$ac_header>
14297 _ACEOF
14298 if { (ac_try="$ac_cpp conftest.$ac_ext"
14299 case "(($ac_try" in
14300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14301   *) ac_try_echo=$ac_try;;
14302 esac
14303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14304 $as_echo "$ac_try_echo") >&5
14305   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14306   ac_status=$?
14307   grep -v '^ *+' conftest.er1 >conftest.err
14308   rm -f conftest.er1
14309   cat conftest.err >&5
14310   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311   (exit $ac_status); } >/dev/null && {
14312          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14313          test ! -s conftest.err
14314        }; then
14315   ac_header_preproc=yes
14316 else
14317   $as_echo "$as_me: failed program was:" >&5
14318 sed 's/^/| /' conftest.$ac_ext >&5
14319
14320   ac_header_preproc=no
14321 fi
14322
14323 rm -f conftest.err conftest.$ac_ext
14324 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14325 $as_echo "$ac_header_preproc" >&6; }
14326
14327 # So?  What about this header?
14328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14329   yes:no: )
14330     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14331 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14332     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14333 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14334     ac_header_preproc=yes
14335     ;;
14336   no:yes:* )
14337     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14338 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14339     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14340 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14341     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14342 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14343     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14344 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14345     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14346 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14347     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14348 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14349     ( cat <<\_ASBOX
14350 ## ---------------------------------------- ##
14351 ## Report this to pgsql-bugs@postgresql.org ##
14352 ## ---------------------------------------- ##
14353 _ASBOX
14354      ) | sed "s/^/$as_me: WARNING:     /" >&2
14355     ;;
14356 esac
14357 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14358 $as_echo_n "checking for $ac_header... " >&6; }
14359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14360   $as_echo_n "(cached) " >&6
14361 else
14362   eval "$as_ac_Header=\$ac_header_preproc"
14363 fi
14364 ac_res=`eval 'as_val=${'$as_ac_Header'}
14365                  $as_echo "$as_val"'`
14366                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14367 $as_echo "$ac_res" >&6; }
14368
14369 fi
14370 as_val=`eval 'as_val=${'$as_ac_Header'}
14371                  $as_echo "$as_val"'`
14372    if test "x$as_val" = x""yes; then
14373   cat >>confdefs.h <<_ACEOF
14374 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14375 _ACEOF
14376
14377 else
14378   { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
14379 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
14380    { (exit 1); exit 1; }; }
14381 fi
14382
14383 done
14384
14385 fi
14386
14387 done
14388
14389 fi
14390
14391 if test "$PORTNAME" = "win32" ; then
14392
14393 for ac_header in crtdefs.h
14394 do
14395 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14397   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14398 $as_echo_n "checking for $ac_header... " >&6; }
14399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14400   $as_echo_n "(cached) " >&6
14401 fi
14402 ac_res=`eval 'as_val=${'$as_ac_Header'}
14403                  $as_echo "$as_val"'`
14404                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14405 $as_echo "$ac_res" >&6; }
14406 else
14407   # Is the header compilable?
14408 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14409 $as_echo_n "checking $ac_header usability... " >&6; }
14410 cat >conftest.$ac_ext <<_ACEOF
14411 /* confdefs.h.  */
14412 _ACEOF
14413 cat confdefs.h >>conftest.$ac_ext
14414 cat >>conftest.$ac_ext <<_ACEOF
14415 /* end confdefs.h.  */
14416 $ac_includes_default
14417 #include <$ac_header>
14418 _ACEOF
14419 rm -f conftest.$ac_objext
14420 if { (ac_try="$ac_compile"
14421 case "(($ac_try" in
14422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14423   *) ac_try_echo=$ac_try;;
14424 esac
14425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14426 $as_echo "$ac_try_echo") >&5
14427   (eval "$ac_compile") 2>conftest.er1
14428   ac_status=$?
14429   grep -v '^ *+' conftest.er1 >conftest.err
14430   rm -f conftest.er1
14431   cat conftest.err >&5
14432   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433   (exit $ac_status); } && {
14434          test -z "$ac_c_werror_flag" ||
14435          test ! -s conftest.err
14436        } && test -s conftest.$ac_objext; then
14437   ac_header_compiler=yes
14438 else
14439   $as_echo "$as_me: failed program was:" >&5
14440 sed 's/^/| /' conftest.$ac_ext >&5
14441
14442         ac_header_compiler=no
14443 fi
14444
14445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14446 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14447 $as_echo "$ac_header_compiler" >&6; }
14448
14449 # Is the header present?
14450 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14451 $as_echo_n "checking $ac_header presence... " >&6; }
14452 cat >conftest.$ac_ext <<_ACEOF
14453 /* confdefs.h.  */
14454 _ACEOF
14455 cat confdefs.h >>conftest.$ac_ext
14456 cat >>conftest.$ac_ext <<_ACEOF
14457 /* end confdefs.h.  */
14458 #include <$ac_header>
14459 _ACEOF
14460 if { (ac_try="$ac_cpp conftest.$ac_ext"
14461 case "(($ac_try" in
14462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14463   *) ac_try_echo=$ac_try;;
14464 esac
14465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14466 $as_echo "$ac_try_echo") >&5
14467   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14468   ac_status=$?
14469   grep -v '^ *+' conftest.er1 >conftest.err
14470   rm -f conftest.er1
14471   cat conftest.err >&5
14472   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473   (exit $ac_status); } >/dev/null && {
14474          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14475          test ! -s conftest.err
14476        }; then
14477   ac_header_preproc=yes
14478 else
14479   $as_echo "$as_me: failed program was:" >&5
14480 sed 's/^/| /' conftest.$ac_ext >&5
14481
14482   ac_header_preproc=no
14483 fi
14484
14485 rm -f conftest.err conftest.$ac_ext
14486 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14487 $as_echo "$ac_header_preproc" >&6; }
14488
14489 # So?  What about this header?
14490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14491   yes:no: )
14492     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14493 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14494     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14495 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14496     ac_header_preproc=yes
14497     ;;
14498   no:yes:* )
14499     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14500 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14501     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14502 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14503     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14504 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14505     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14506 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14507     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14508 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14509     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14510 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14511     ( cat <<\_ASBOX
14512 ## ---------------------------------------- ##
14513 ## Report this to pgsql-bugs@postgresql.org ##
14514 ## ---------------------------------------- ##
14515 _ASBOX
14516      ) | sed "s/^/$as_me: WARNING:     /" >&2
14517     ;;
14518 esac
14519 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14520 $as_echo_n "checking for $ac_header... " >&6; }
14521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14522   $as_echo_n "(cached) " >&6
14523 else
14524   eval "$as_ac_Header=\$ac_header_preproc"
14525 fi
14526 ac_res=`eval 'as_val=${'$as_ac_Header'}
14527                  $as_echo "$as_val"'`
14528                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14529 $as_echo "$ac_res" >&6; }
14530
14531 fi
14532 as_val=`eval 'as_val=${'$as_ac_Header'}
14533                  $as_echo "$as_val"'`
14534    if test "x$as_val" = x""yes; then
14535   cat >>confdefs.h <<_ACEOF
14536 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14537 _ACEOF
14538
14539 fi
14540
14541 done
14542
14543 fi
14544
14545 ##
14546 ## Types, structures, compiler characteristics
14547 ##
14548
14549
14550  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14551 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14552 if test "${ac_cv_c_bigendian+set}" = set; then
14553   $as_echo_n "(cached) " >&6
14554 else
14555   ac_cv_c_bigendian=unknown
14556     # See if we're dealing with a universal compiler.
14557     cat >conftest.$ac_ext <<_ACEOF
14558 /* confdefs.h.  */
14559 _ACEOF
14560 cat confdefs.h >>conftest.$ac_ext
14561 cat >>conftest.$ac_ext <<_ACEOF
14562 /* end confdefs.h.  */
14563 #ifndef __APPLE_CC__
14564                not a universal capable compiler
14565              #endif
14566              typedef int dummy;
14567
14568 _ACEOF
14569 rm -f conftest.$ac_objext
14570 if { (ac_try="$ac_compile"
14571 case "(($ac_try" in
14572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573   *) ac_try_echo=$ac_try;;
14574 esac
14575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14576 $as_echo "$ac_try_echo") >&5
14577   (eval "$ac_compile") 2>conftest.er1
14578   ac_status=$?
14579   grep -v '^ *+' conftest.er1 >conftest.err
14580   rm -f conftest.er1
14581   cat conftest.err >&5
14582   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583   (exit $ac_status); } && {
14584          test -z "$ac_c_werror_flag" ||
14585          test ! -s conftest.err
14586        } && test -s conftest.$ac_objext; then
14587
14588         # Check for potential -arch flags.  It is not universal unless
14589         # there are some -arch flags.  Note that *ppc* also matches
14590         # ppc64.  This check is also rather less than ideal.
14591         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
14592           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14593         esac
14594 else
14595   $as_echo "$as_me: failed program was:" >&5
14596 sed 's/^/| /' conftest.$ac_ext >&5
14597
14598
14599 fi
14600
14601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14602     if test $ac_cv_c_bigendian = unknown; then
14603       # See if sys/param.h defines the BYTE_ORDER macro.
14604       cat >conftest.$ac_ext <<_ACEOF
14605 /* confdefs.h.  */
14606 _ACEOF
14607 cat confdefs.h >>conftest.$ac_ext
14608 cat >>conftest.$ac_ext <<_ACEOF
14609 /* end confdefs.h.  */
14610 #include <sys/types.h>
14611              #include <sys/param.h>
14612
14613 int
14614 main ()
14615 {
14616 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14617                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14618                      && LITTLE_ENDIAN)
14619               bogus endian macros
14620              #endif
14621
14622   ;
14623   return 0;
14624 }
14625 _ACEOF
14626 rm -f conftest.$ac_objext
14627 if { (ac_try="$ac_compile"
14628 case "(($ac_try" in
14629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630   *) ac_try_echo=$ac_try;;
14631 esac
14632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14633 $as_echo "$ac_try_echo") >&5
14634   (eval "$ac_compile") 2>conftest.er1
14635   ac_status=$?
14636   grep -v '^ *+' conftest.er1 >conftest.err
14637   rm -f conftest.er1
14638   cat conftest.err >&5
14639   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640   (exit $ac_status); } && {
14641          test -z "$ac_c_werror_flag" ||
14642          test ! -s conftest.err
14643        } && test -s conftest.$ac_objext; then
14644   # It does; now see whether it defined to BIG_ENDIAN or not.
14645          cat >conftest.$ac_ext <<_ACEOF
14646 /* confdefs.h.  */
14647 _ACEOF
14648 cat confdefs.h >>conftest.$ac_ext
14649 cat >>conftest.$ac_ext <<_ACEOF
14650 /* end confdefs.h.  */
14651 #include <sys/types.h>
14652                 #include <sys/param.h>
14653
14654 int
14655 main ()
14656 {
14657 #if BYTE_ORDER != BIG_ENDIAN
14658                  not big endian
14659                 #endif
14660
14661   ;
14662   return 0;
14663 }
14664 _ACEOF
14665 rm -f conftest.$ac_objext
14666 if { (ac_try="$ac_compile"
14667 case "(($ac_try" in
14668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14669   *) ac_try_echo=$ac_try;;
14670 esac
14671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14672 $as_echo "$ac_try_echo") >&5
14673   (eval "$ac_compile") 2>conftest.er1
14674   ac_status=$?
14675   grep -v '^ *+' conftest.er1 >conftest.err
14676   rm -f conftest.er1
14677   cat conftest.err >&5
14678   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679   (exit $ac_status); } && {
14680          test -z "$ac_c_werror_flag" ||
14681          test ! -s conftest.err
14682        } && test -s conftest.$ac_objext; then
14683   ac_cv_c_bigendian=yes
14684 else
14685   $as_echo "$as_me: failed program was:" >&5
14686 sed 's/^/| /' conftest.$ac_ext >&5
14687
14688         ac_cv_c_bigendian=no
14689 fi
14690
14691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14692 else
14693   $as_echo "$as_me: failed program was:" >&5
14694 sed 's/^/| /' conftest.$ac_ext >&5
14695
14696
14697 fi
14698
14699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14700     fi
14701     if test $ac_cv_c_bigendian = unknown; then
14702       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14703       cat >conftest.$ac_ext <<_ACEOF
14704 /* confdefs.h.  */
14705 _ACEOF
14706 cat confdefs.h >>conftest.$ac_ext
14707 cat >>conftest.$ac_ext <<_ACEOF
14708 /* end confdefs.h.  */
14709 #include <limits.h>
14710
14711 int
14712 main ()
14713 {
14714 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14715               bogus endian macros
14716              #endif
14717
14718   ;
14719   return 0;
14720 }
14721 _ACEOF
14722 rm -f conftest.$ac_objext
14723 if { (ac_try="$ac_compile"
14724 case "(($ac_try" in
14725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14726   *) ac_try_echo=$ac_try;;
14727 esac
14728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14729 $as_echo "$ac_try_echo") >&5
14730   (eval "$ac_compile") 2>conftest.er1
14731   ac_status=$?
14732   grep -v '^ *+' conftest.er1 >conftest.err
14733   rm -f conftest.er1
14734   cat conftest.err >&5
14735   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736   (exit $ac_status); } && {
14737          test -z "$ac_c_werror_flag" ||
14738          test ! -s conftest.err
14739        } && test -s conftest.$ac_objext; then
14740   # It does; now see whether it defined to _BIG_ENDIAN or not.
14741          cat >conftest.$ac_ext <<_ACEOF
14742 /* confdefs.h.  */
14743 _ACEOF
14744 cat confdefs.h >>conftest.$ac_ext
14745 cat >>conftest.$ac_ext <<_ACEOF
14746 /* end confdefs.h.  */
14747 #include <limits.h>
14748
14749 int
14750 main ()
14751 {
14752 #ifndef _BIG_ENDIAN
14753                  not big endian
14754                 #endif
14755
14756   ;
14757   return 0;
14758 }
14759 _ACEOF
14760 rm -f conftest.$ac_objext
14761 if { (ac_try="$ac_compile"
14762 case "(($ac_try" in
14763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14764   *) ac_try_echo=$ac_try;;
14765 esac
14766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14767 $as_echo "$ac_try_echo") >&5
14768   (eval "$ac_compile") 2>conftest.er1
14769   ac_status=$?
14770   grep -v '^ *+' conftest.er1 >conftest.err
14771   rm -f conftest.er1
14772   cat conftest.err >&5
14773   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774   (exit $ac_status); } && {
14775          test -z "$ac_c_werror_flag" ||
14776          test ! -s conftest.err
14777        } && test -s conftest.$ac_objext; then
14778   ac_cv_c_bigendian=yes
14779 else
14780   $as_echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.$ac_ext >&5
14782
14783         ac_cv_c_bigendian=no
14784 fi
14785
14786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14787 else
14788   $as_echo "$as_me: failed program was:" >&5
14789 sed 's/^/| /' conftest.$ac_ext >&5
14790
14791
14792 fi
14793
14794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14795     fi
14796     if test $ac_cv_c_bigendian = unknown; then
14797       # Compile a test program.
14798       if test "$cross_compiling" = yes; then
14799   # Try to guess by grepping values from an object file.
14800          cat >conftest.$ac_ext <<_ACEOF
14801 /* confdefs.h.  */
14802 _ACEOF
14803 cat confdefs.h >>conftest.$ac_ext
14804 cat >>conftest.$ac_ext <<_ACEOF
14805 /* end confdefs.h.  */
14806 short int ascii_mm[] =
14807                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14808                 short int ascii_ii[] =
14809                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14810                 int use_ascii (int i) {
14811                   return ascii_mm[i] + ascii_ii[i];
14812                 }
14813                 short int ebcdic_ii[] =
14814                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14815                 short int ebcdic_mm[] =
14816                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14817                 int use_ebcdic (int i) {
14818                   return ebcdic_mm[i] + ebcdic_ii[i];
14819                 }
14820                 extern int foo;
14821
14822 int
14823 main ()
14824 {
14825 return use_ascii (foo) == use_ebcdic (foo);
14826   ;
14827   return 0;
14828 }
14829 _ACEOF
14830 rm -f conftest.$ac_objext
14831 if { (ac_try="$ac_compile"
14832 case "(($ac_try" in
14833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14834   *) ac_try_echo=$ac_try;;
14835 esac
14836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14837 $as_echo "$ac_try_echo") >&5
14838   (eval "$ac_compile") 2>conftest.er1
14839   ac_status=$?
14840   grep -v '^ *+' conftest.er1 >conftest.err
14841   rm -f conftest.er1
14842   cat conftest.err >&5
14843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844   (exit $ac_status); } && {
14845          test -z "$ac_c_werror_flag" ||
14846          test ! -s conftest.err
14847        } && test -s conftest.$ac_objext; then
14848   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14849               ac_cv_c_bigendian=yes
14850             fi
14851             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14852               if test "$ac_cv_c_bigendian" = unknown; then
14853                 ac_cv_c_bigendian=no
14854               else
14855                 # finding both strings is unlikely to happen, but who knows?
14856                 ac_cv_c_bigendian=unknown
14857               fi
14858             fi
14859 else
14860   $as_echo "$as_me: failed program was:" >&5
14861 sed 's/^/| /' conftest.$ac_ext >&5
14862
14863
14864 fi
14865
14866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14867 else
14868   cat >conftest.$ac_ext <<_ACEOF
14869 /* confdefs.h.  */
14870 _ACEOF
14871 cat confdefs.h >>conftest.$ac_ext
14872 cat >>conftest.$ac_ext <<_ACEOF
14873 /* end confdefs.h.  */
14874 $ac_includes_default
14875 int
14876 main ()
14877 {
14878
14879              /* Are we little or big endian?  From Harbison&Steele.  */
14880              union
14881              {
14882                long int l;
14883                char c[sizeof (long int)];
14884              } u;
14885              u.l = 1;
14886              return u.c[sizeof (long int) - 1] == 1;
14887
14888   ;
14889   return 0;
14890 }
14891 _ACEOF
14892 rm -f conftest$ac_exeext
14893 if { (ac_try="$ac_link"
14894 case "(($ac_try" in
14895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14896   *) ac_try_echo=$ac_try;;
14897 esac
14898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14899 $as_echo "$ac_try_echo") >&5
14900   (eval "$ac_link") 2>&5
14901   ac_status=$?
14902   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14904   { (case "(($ac_try" in
14905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14906   *) ac_try_echo=$ac_try;;
14907 esac
14908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14909 $as_echo "$ac_try_echo") >&5
14910   (eval "$ac_try") 2>&5
14911   ac_status=$?
14912   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913   (exit $ac_status); }; }; then
14914   ac_cv_c_bigendian=no
14915 else
14916   $as_echo "$as_me: program exited with status $ac_status" >&5
14917 $as_echo "$as_me: failed program was:" >&5
14918 sed 's/^/| /' conftest.$ac_ext >&5
14919
14920 ( exit $ac_status )
14921 ac_cv_c_bigendian=yes
14922 fi
14923 rm -rf conftest.dSYM
14924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14925 fi
14926
14927
14928     fi
14929 fi
14930 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14931 $as_echo "$ac_cv_c_bigendian" >&6; }
14932  case $ac_cv_c_bigendian in #(
14933    yes)
14934      cat >>confdefs.h <<\_ACEOF
14935 #define WORDS_BIGENDIAN 1
14936 _ACEOF
14937 ;; #(
14938    no)
14939       ;; #(
14940    universal)
14941
14942 cat >>confdefs.h <<\_ACEOF
14943 #define AC_APPLE_UNIVERSAL_BUILD 1
14944 _ACEOF
14945
14946      ;; #(
14947    *)
14948      { { $as_echo "$as_me:$LINENO: error: unknown endianness
14949  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14950 $as_echo "$as_me: error: unknown endianness
14951  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14952    { (exit 1); exit 1; }; } ;;
14953  esac
14954
14955 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14956 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14957 if test "${ac_cv_c_const+set}" = set; then
14958   $as_echo_n "(cached) " >&6
14959 else
14960   cat >conftest.$ac_ext <<_ACEOF
14961 /* confdefs.h.  */
14962 _ACEOF
14963 cat confdefs.h >>conftest.$ac_ext
14964 cat >>conftest.$ac_ext <<_ACEOF
14965 /* end confdefs.h.  */
14966
14967 int
14968 main ()
14969 {
14970 /* FIXME: Include the comments suggested by Paul. */
14971 #ifndef __cplusplus
14972   /* Ultrix mips cc rejects this.  */
14973   typedef int charset[2];
14974   const charset cs;
14975   /* SunOS 4.1.1 cc rejects this.  */
14976   char const *const *pcpcc;
14977   char **ppc;
14978   /* NEC SVR4.0.2 mips cc rejects this.  */
14979   struct point {int x, y;};
14980   static struct point const zero = {0,0};
14981   /* AIX XL C 1.02.0.0 rejects this.
14982      It does not let you subtract one const X* pointer from another in
14983      an arm of an if-expression whose if-part is not a constant
14984      expression */
14985   const char *g = "string";
14986   pcpcc = &g + (g ? g-g : 0);
14987   /* HPUX 7.0 cc rejects these. */
14988   ++pcpcc;
14989   ppc = (char**) pcpcc;
14990   pcpcc = (char const *const *) ppc;
14991   { /* SCO 3.2v4 cc rejects this.  */
14992     char *t;
14993     char const *s = 0 ? (char *) 0 : (char const *) 0;
14994
14995     *t++ = 0;
14996     if (s) return 0;
14997   }
14998   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14999     int x[] = {25, 17};
15000     const int *foo = &x[0];
15001     ++foo;
15002   }
15003   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15004     typedef const int *iptr;
15005     iptr p = 0;
15006     ++p;
15007   }
15008   { /* AIX XL C 1.02.0.0 rejects this saying
15009        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15010     struct s { int j; const int *ap[3]; };
15011     struct s *b; b->j = 5;
15012   }
15013   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15014     const int foo = 10;
15015     if (!foo) return 0;
15016   }
15017   return !cs[0] && !zero.x;
15018 #endif
15019
15020   ;
15021   return 0;
15022 }
15023 _ACEOF
15024 rm -f conftest.$ac_objext
15025 if { (ac_try="$ac_compile"
15026 case "(($ac_try" in
15027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15028   *) ac_try_echo=$ac_try;;
15029 esac
15030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15031 $as_echo "$ac_try_echo") >&5
15032   (eval "$ac_compile") 2>conftest.er1
15033   ac_status=$?
15034   grep -v '^ *+' conftest.er1 >conftest.err
15035   rm -f conftest.er1
15036   cat conftest.err >&5
15037   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038   (exit $ac_status); } && {
15039          test -z "$ac_c_werror_flag" ||
15040          test ! -s conftest.err
15041        } && test -s conftest.$ac_objext; then
15042   ac_cv_c_const=yes
15043 else
15044   $as_echo "$as_me: failed program was:" >&5
15045 sed 's/^/| /' conftest.$ac_ext >&5
15046
15047         ac_cv_c_const=no
15048 fi
15049
15050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15051 fi
15052 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15053 $as_echo "$ac_cv_c_const" >&6; }
15054 if test $ac_cv_c_const = no; then
15055
15056 cat >>confdefs.h <<\_ACEOF
15057 #define const /**/
15058 _ACEOF
15059
15060 fi
15061
15062 { $as_echo "$as_me:$LINENO: checking for inline" >&5
15063 $as_echo_n "checking for inline... " >&6; }
15064 if test "${ac_cv_c_inline+set}" = set; then
15065   $as_echo_n "(cached) " >&6
15066 else
15067   ac_cv_c_inline=no
15068 for ac_kw in inline __inline__ __inline; do
15069   cat >conftest.$ac_ext <<_ACEOF
15070 /* confdefs.h.  */
15071 _ACEOF
15072 cat confdefs.h >>conftest.$ac_ext
15073 cat >>conftest.$ac_ext <<_ACEOF
15074 /* end confdefs.h.  */
15075 #ifndef __cplusplus
15076 typedef int foo_t;
15077 static $ac_kw foo_t static_foo () {return 0; }
15078 $ac_kw foo_t foo () {return 0; }
15079 #endif
15080
15081 _ACEOF
15082 rm -f conftest.$ac_objext
15083 if { (ac_try="$ac_compile"
15084 case "(($ac_try" in
15085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15086   *) ac_try_echo=$ac_try;;
15087 esac
15088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15089 $as_echo "$ac_try_echo") >&5
15090   (eval "$ac_compile") 2>conftest.er1
15091   ac_status=$?
15092   grep -v '^ *+' conftest.er1 >conftest.err
15093   rm -f conftest.er1
15094   cat conftest.err >&5
15095   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096   (exit $ac_status); } && {
15097          test -z "$ac_c_werror_flag" ||
15098          test ! -s conftest.err
15099        } && test -s conftest.$ac_objext; then
15100   ac_cv_c_inline=$ac_kw
15101 else
15102   $as_echo "$as_me: failed program was:" >&5
15103 sed 's/^/| /' conftest.$ac_ext >&5
15104
15105
15106 fi
15107
15108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15109   test "$ac_cv_c_inline" != no && break
15110 done
15111
15112 fi
15113 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15114 $as_echo "$ac_cv_c_inline" >&6; }
15115
15116
15117 case $ac_cv_c_inline in
15118   inline | yes) ;;
15119   *)
15120     case $ac_cv_c_inline in
15121       no) ac_val=;;
15122       *) ac_val=$ac_cv_c_inline;;
15123     esac
15124     cat >>confdefs.h <<_ACEOF
15125 #ifndef __cplusplus
15126 #define inline $ac_val
15127 #endif
15128 _ACEOF
15129     ;;
15130 esac
15131
15132 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
15133 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
15134 if test "${pgac_cv_c_inline_quietly+set}" = set; then
15135   $as_echo_n "(cached) " >&6
15136 else
15137   pgac_cv_c_inline_quietly=no
15138   if test "$ac_cv_c_inline" != no; then
15139     pgac_c_inline_save_werror=$ac_c_werror_flag
15140     ac_c_werror_flag=yes
15141     cat >conftest.$ac_ext <<_ACEOF
15142 /* confdefs.h.  */
15143 _ACEOF
15144 cat confdefs.h >>conftest.$ac_ext
15145 cat >>conftest.$ac_ext <<_ACEOF
15146 /* end confdefs.h.  */
15147 static inline int fun () {return 0;}
15148 int
15149 main ()
15150 {
15151
15152   ;
15153   return 0;
15154 }
15155 _ACEOF
15156 rm -f conftest.$ac_objext conftest$ac_exeext
15157 if { (ac_try="$ac_link"
15158 case "(($ac_try" in
15159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15160   *) ac_try_echo=$ac_try;;
15161 esac
15162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15163 $as_echo "$ac_try_echo") >&5
15164   (eval "$ac_link") 2>conftest.er1
15165   ac_status=$?
15166   grep -v '^ *+' conftest.er1 >conftest.err
15167   rm -f conftest.er1
15168   cat conftest.err >&5
15169   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170   (exit $ac_status); } && {
15171          test -z "$ac_c_werror_flag" ||
15172          test ! -s conftest.err
15173        } && test -s conftest$ac_exeext && {
15174          test "$cross_compiling" = yes ||
15175          $as_test_x conftest$ac_exeext
15176        }; then
15177   pgac_cv_c_inline_quietly=yes
15178 else
15179   $as_echo "$as_me: failed program was:" >&5
15180 sed 's/^/| /' conftest.$ac_ext >&5
15181
15182
15183 fi
15184
15185 rm -rf conftest.dSYM
15186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15187       conftest$ac_exeext conftest.$ac_ext
15188     ac_c_werror_flag=$pgac_c_inline_save_werror
15189   fi
15190 fi
15191 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
15192 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
15193 if test "$pgac_cv_c_inline_quietly" != no; then
15194
15195 cat >>confdefs.h <<_ACEOF
15196 #define USE_INLINE 1
15197 _ACEOF
15198
15199 fi
15200
15201 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
15202 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
15203 if test "${ac_cv_c_stringize+set}" = set; then
15204   $as_echo_n "(cached) " >&6
15205 else
15206   cat >conftest.$ac_ext <<_ACEOF
15207 /* confdefs.h.  */
15208 _ACEOF
15209 cat confdefs.h >>conftest.$ac_ext
15210 cat >>conftest.$ac_ext <<_ACEOF
15211 /* end confdefs.h.  */
15212 #define x(y) #y
15213
15214 char *s = x(teststring);
15215 _ACEOF
15216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15217   $EGREP "#teststring" >/dev/null 2>&1; then
15218   ac_cv_c_stringize=no
15219 else
15220   ac_cv_c_stringize=yes
15221 fi
15222 rm -f conftest*
15223
15224 fi
15225 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
15226 $as_echo "$ac_cv_c_stringize" >&6; }
15227 if test $ac_cv_c_stringize = yes; then
15228
15229 cat >>confdefs.h <<\_ACEOF
15230 #define HAVE_STRINGIZE 1
15231 _ACEOF
15232
15233 fi
15234
15235
15236   { $as_echo "$as_me:$LINENO: checking for flexible array members" >&5
15237 $as_echo_n "checking for flexible array members... " >&6; }
15238 if test "${ac_cv_c_flexmember+set}" = set; then
15239   $as_echo_n "(cached) " >&6
15240 else
15241   cat >conftest.$ac_ext <<_ACEOF
15242 /* confdefs.h.  */
15243 _ACEOF
15244 cat confdefs.h >>conftest.$ac_ext
15245 cat >>conftest.$ac_ext <<_ACEOF
15246 /* end confdefs.h.  */
15247 #include <stdlib.h>
15248             #include <stdio.h>
15249             #include <stddef.h>
15250             struct s { int n; double d[]; };
15251 int
15252 main ()
15253 {
15254 int m = getchar ();
15255             struct s *p = malloc (offsetof (struct s, d)
15256                                   + m * sizeof (double));
15257             p->d[0] = 0.0;
15258             return p->d != (double *) NULL;
15259   ;
15260   return 0;
15261 }
15262 _ACEOF
15263 rm -f conftest.$ac_objext
15264 if { (ac_try="$ac_compile"
15265 case "(($ac_try" in
15266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15267   *) ac_try_echo=$ac_try;;
15268 esac
15269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15270 $as_echo "$ac_try_echo") >&5
15271   (eval "$ac_compile") 2>conftest.er1
15272   ac_status=$?
15273   grep -v '^ *+' conftest.er1 >conftest.err
15274   rm -f conftest.er1
15275   cat conftest.err >&5
15276   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277   (exit $ac_status); } && {
15278          test -z "$ac_c_werror_flag" ||
15279          test ! -s conftest.err
15280        } && test -s conftest.$ac_objext; then
15281   ac_cv_c_flexmember=yes
15282 else
15283   $as_echo "$as_me: failed program was:" >&5
15284 sed 's/^/| /' conftest.$ac_ext >&5
15285
15286         ac_cv_c_flexmember=no
15287 fi
15288
15289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15290 fi
15291 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_flexmember" >&5
15292 $as_echo "$ac_cv_c_flexmember" >&6; }
15293   if test $ac_cv_c_flexmember = yes; then
15294
15295 cat >>confdefs.h <<\_ACEOF
15296 #define FLEXIBLE_ARRAY_MEMBER /**/
15297 _ACEOF
15298
15299   else
15300     cat >>confdefs.h <<\_ACEOF
15301 #define FLEXIBLE_ARRAY_MEMBER 1
15302 _ACEOF
15303
15304   fi
15305
15306 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
15307 $as_echo_n "checking for signed types... " >&6; }
15308 if test "${pgac_cv_c_signed+set}" = set; then
15309   $as_echo_n "(cached) " >&6
15310 else
15311   cat >conftest.$ac_ext <<_ACEOF
15312 /* confdefs.h.  */
15313 _ACEOF
15314 cat confdefs.h >>conftest.$ac_ext
15315 cat >>conftest.$ac_ext <<_ACEOF
15316 /* end confdefs.h.  */
15317
15318 int
15319 main ()
15320 {
15321 signed char c; signed short s; signed int i;
15322   ;
15323   return 0;
15324 }
15325 _ACEOF
15326 rm -f conftest.$ac_objext
15327 if { (ac_try="$ac_compile"
15328 case "(($ac_try" in
15329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15330   *) ac_try_echo=$ac_try;;
15331 esac
15332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15333 $as_echo "$ac_try_echo") >&5
15334   (eval "$ac_compile") 2>conftest.er1
15335   ac_status=$?
15336   grep -v '^ *+' conftest.er1 >conftest.err
15337   rm -f conftest.er1
15338   cat conftest.err >&5
15339   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340   (exit $ac_status); } && {
15341          test -z "$ac_c_werror_flag" ||
15342          test ! -s conftest.err
15343        } && test -s conftest.$ac_objext; then
15344   pgac_cv_c_signed=yes
15345 else
15346   $as_echo "$as_me: failed program was:" >&5
15347 sed 's/^/| /' conftest.$ac_ext >&5
15348
15349         pgac_cv_c_signed=no
15350 fi
15351
15352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15353 fi
15354 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
15355 $as_echo "$pgac_cv_c_signed" >&6; }
15356 if test x"$pgac_cv_c_signed" = xno ; then
15357
15358 cat >>confdefs.h <<\_ACEOF
15359 #define signed /**/
15360 _ACEOF
15361
15362 fi
15363 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
15364 $as_echo_n "checking for working volatile... " >&6; }
15365 if test "${ac_cv_c_volatile+set}" = set; then
15366   $as_echo_n "(cached) " >&6
15367 else
15368   cat >conftest.$ac_ext <<_ACEOF
15369 /* confdefs.h.  */
15370 _ACEOF
15371 cat confdefs.h >>conftest.$ac_ext
15372 cat >>conftest.$ac_ext <<_ACEOF
15373 /* end confdefs.h.  */
15374
15375 int
15376 main ()
15377 {
15378
15379 volatile int x;
15380 int * volatile y = (int *) 0;
15381 return !x && !y;
15382   ;
15383   return 0;
15384 }
15385 _ACEOF
15386 rm -f conftest.$ac_objext
15387 if { (ac_try="$ac_compile"
15388 case "(($ac_try" in
15389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15390   *) ac_try_echo=$ac_try;;
15391 esac
15392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15393 $as_echo "$ac_try_echo") >&5
15394   (eval "$ac_compile") 2>conftest.er1
15395   ac_status=$?
15396   grep -v '^ *+' conftest.er1 >conftest.err
15397   rm -f conftest.er1
15398   cat conftest.err >&5
15399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400   (exit $ac_status); } && {
15401          test -z "$ac_c_werror_flag" ||
15402          test ! -s conftest.err
15403        } && test -s conftest.$ac_objext; then
15404   ac_cv_c_volatile=yes
15405 else
15406   $as_echo "$as_me: failed program was:" >&5
15407 sed 's/^/| /' conftest.$ac_ext >&5
15408
15409         ac_cv_c_volatile=no
15410 fi
15411
15412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15413 fi
15414 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
15415 $as_echo "$ac_cv_c_volatile" >&6; }
15416 if test $ac_cv_c_volatile = no; then
15417
15418 cat >>confdefs.h <<\_ACEOF
15419 #define volatile /**/
15420 _ACEOF
15421
15422 fi
15423
15424 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
15425 $as_echo_n "checking for __func__... " >&6; }
15426 if test "${pgac_cv_funcname_func_support+set}" = set; then
15427   $as_echo_n "(cached) " >&6
15428 else
15429   cat >conftest.$ac_ext <<_ACEOF
15430 /* confdefs.h.  */
15431 _ACEOF
15432 cat confdefs.h >>conftest.$ac_ext
15433 cat >>conftest.$ac_ext <<_ACEOF
15434 /* end confdefs.h.  */
15435 #include <stdio.h>
15436 int
15437 main ()
15438 {
15439 printf("%s\n", __func__);
15440   ;
15441   return 0;
15442 }
15443 _ACEOF
15444 rm -f conftest.$ac_objext
15445 if { (ac_try="$ac_compile"
15446 case "(($ac_try" in
15447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15448   *) ac_try_echo=$ac_try;;
15449 esac
15450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15451 $as_echo "$ac_try_echo") >&5
15452   (eval "$ac_compile") 2>conftest.er1
15453   ac_status=$?
15454   grep -v '^ *+' conftest.er1 >conftest.err
15455   rm -f conftest.er1
15456   cat conftest.err >&5
15457   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458   (exit $ac_status); } && {
15459          test -z "$ac_c_werror_flag" ||
15460          test ! -s conftest.err
15461        } && test -s conftest.$ac_objext; then
15462   pgac_cv_funcname_func_support=yes
15463 else
15464   $as_echo "$as_me: failed program was:" >&5
15465 sed 's/^/| /' conftest.$ac_ext >&5
15466
15467         pgac_cv_funcname_func_support=no
15468 fi
15469
15470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15471 fi
15472 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
15473 $as_echo "$pgac_cv_funcname_func_support" >&6; }
15474 if test x"$pgac_cv_funcname_func_support" = xyes ; then
15475
15476 cat >>confdefs.h <<\_ACEOF
15477 #define HAVE_FUNCNAME__FUNC 1
15478 _ACEOF
15479
15480 else
15481 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
15482 $as_echo_n "checking for __FUNCTION__... " >&6; }
15483 if test "${pgac_cv_funcname_function_support+set}" = set; then
15484   $as_echo_n "(cached) " >&6
15485 else
15486   cat >conftest.$ac_ext <<_ACEOF
15487 /* confdefs.h.  */
15488 _ACEOF
15489 cat confdefs.h >>conftest.$ac_ext
15490 cat >>conftest.$ac_ext <<_ACEOF
15491 /* end confdefs.h.  */
15492 #include <stdio.h>
15493 int
15494 main ()
15495 {
15496 printf("%s\n", __FUNCTION__);
15497   ;
15498   return 0;
15499 }
15500 _ACEOF
15501 rm -f conftest.$ac_objext
15502 if { (ac_try="$ac_compile"
15503 case "(($ac_try" in
15504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15505   *) ac_try_echo=$ac_try;;
15506 esac
15507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15508 $as_echo "$ac_try_echo") >&5
15509   (eval "$ac_compile") 2>conftest.er1
15510   ac_status=$?
15511   grep -v '^ *+' conftest.er1 >conftest.err
15512   rm -f conftest.er1
15513   cat conftest.err >&5
15514   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515   (exit $ac_status); } && {
15516          test -z "$ac_c_werror_flag" ||
15517          test ! -s conftest.err
15518        } && test -s conftest.$ac_objext; then
15519   pgac_cv_funcname_function_support=yes
15520 else
15521   $as_echo "$as_me: failed program was:" >&5
15522 sed 's/^/| /' conftest.$ac_ext >&5
15523
15524         pgac_cv_funcname_function_support=no
15525 fi
15526
15527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15528 fi
15529 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
15530 $as_echo "$pgac_cv_funcname_function_support" >&6; }
15531 if test x"$pgac_cv_funcname_function_support" = xyes ; then
15532
15533 cat >>confdefs.h <<\_ACEOF
15534 #define HAVE_FUNCNAME__FUNCTION 1
15535 _ACEOF
15536
15537 fi
15538 fi
15539 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
15540 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
15541 if test "${ac_cv_struct_tm+set}" = set; then
15542   $as_echo_n "(cached) " >&6
15543 else
15544   cat >conftest.$ac_ext <<_ACEOF
15545 /* confdefs.h.  */
15546 _ACEOF
15547 cat confdefs.h >>conftest.$ac_ext
15548 cat >>conftest.$ac_ext <<_ACEOF
15549 /* end confdefs.h.  */
15550 #include <sys/types.h>
15551 #include <time.h>
15552
15553 int
15554 main ()
15555 {
15556 struct tm tm;
15557                                      int *p = &tm.tm_sec;
15558                                      return !p;
15559   ;
15560   return 0;
15561 }
15562 _ACEOF
15563 rm -f conftest.$ac_objext
15564 if { (ac_try="$ac_compile"
15565 case "(($ac_try" in
15566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15567   *) ac_try_echo=$ac_try;;
15568 esac
15569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15570 $as_echo "$ac_try_echo") >&5
15571   (eval "$ac_compile") 2>conftest.er1
15572   ac_status=$?
15573   grep -v '^ *+' conftest.er1 >conftest.err
15574   rm -f conftest.er1
15575   cat conftest.err >&5
15576   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577   (exit $ac_status); } && {
15578          test -z "$ac_c_werror_flag" ||
15579          test ! -s conftest.err
15580        } && test -s conftest.$ac_objext; then
15581   ac_cv_struct_tm=time.h
15582 else
15583   $as_echo "$as_me: failed program was:" >&5
15584 sed 's/^/| /' conftest.$ac_ext >&5
15585
15586         ac_cv_struct_tm=sys/time.h
15587 fi
15588
15589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15590 fi
15591 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
15592 $as_echo "$ac_cv_struct_tm" >&6; }
15593 if test $ac_cv_struct_tm = sys/time.h; then
15594
15595 cat >>confdefs.h <<\_ACEOF
15596 #define TM_IN_SYS_TIME 1
15597 _ACEOF
15598
15599 fi
15600
15601 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
15602 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
15603 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
15604   $as_echo_n "(cached) " >&6
15605 else
15606   cat >conftest.$ac_ext <<_ACEOF
15607 /* confdefs.h.  */
15608 _ACEOF
15609 cat confdefs.h >>conftest.$ac_ext
15610 cat >>conftest.$ac_ext <<_ACEOF
15611 /* end confdefs.h.  */
15612 #include <sys/types.h>
15613 #include <$ac_cv_struct_tm>
15614
15615
15616 int
15617 main ()
15618 {
15619 static struct tm ac_aggr;
15620 if (ac_aggr.tm_zone)
15621 return 0;
15622   ;
15623   return 0;
15624 }
15625 _ACEOF
15626 rm -f conftest.$ac_objext
15627 if { (ac_try="$ac_compile"
15628 case "(($ac_try" in
15629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15630   *) ac_try_echo=$ac_try;;
15631 esac
15632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15633 $as_echo "$ac_try_echo") >&5
15634   (eval "$ac_compile") 2>conftest.er1
15635   ac_status=$?
15636   grep -v '^ *+' conftest.er1 >conftest.err
15637   rm -f conftest.er1
15638   cat conftest.err >&5
15639   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640   (exit $ac_status); } && {
15641          test -z "$ac_c_werror_flag" ||
15642          test ! -s conftest.err
15643        } && test -s conftest.$ac_objext; then
15644   ac_cv_member_struct_tm_tm_zone=yes
15645 else
15646   $as_echo "$as_me: failed program was:" >&5
15647 sed 's/^/| /' conftest.$ac_ext >&5
15648
15649         cat >conftest.$ac_ext <<_ACEOF
15650 /* confdefs.h.  */
15651 _ACEOF
15652 cat confdefs.h >>conftest.$ac_ext
15653 cat >>conftest.$ac_ext <<_ACEOF
15654 /* end confdefs.h.  */
15655 #include <sys/types.h>
15656 #include <$ac_cv_struct_tm>
15657
15658
15659 int
15660 main ()
15661 {
15662 static struct tm ac_aggr;
15663 if (sizeof ac_aggr.tm_zone)
15664 return 0;
15665   ;
15666   return 0;
15667 }
15668 _ACEOF
15669 rm -f conftest.$ac_objext
15670 if { (ac_try="$ac_compile"
15671 case "(($ac_try" in
15672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15673   *) ac_try_echo=$ac_try;;
15674 esac
15675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15676 $as_echo "$ac_try_echo") >&5
15677   (eval "$ac_compile") 2>conftest.er1
15678   ac_status=$?
15679   grep -v '^ *+' conftest.er1 >conftest.err
15680   rm -f conftest.er1
15681   cat conftest.err >&5
15682   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683   (exit $ac_status); } && {
15684          test -z "$ac_c_werror_flag" ||
15685          test ! -s conftest.err
15686        } && test -s conftest.$ac_objext; then
15687   ac_cv_member_struct_tm_tm_zone=yes
15688 else
15689   $as_echo "$as_me: failed program was:" >&5
15690 sed 's/^/| /' conftest.$ac_ext >&5
15691
15692         ac_cv_member_struct_tm_tm_zone=no
15693 fi
15694
15695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15696 fi
15697
15698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15699 fi
15700 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
15701 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
15702 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
15703
15704 cat >>confdefs.h <<_ACEOF
15705 #define HAVE_STRUCT_TM_TM_ZONE 1
15706 _ACEOF
15707
15708
15709 fi
15710
15711 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
15712
15713 cat >>confdefs.h <<\_ACEOF
15714 #define HAVE_TM_ZONE 1
15715 _ACEOF
15716
15717 fi
15718 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
15719 $as_echo_n "checking for tzname... " >&6; }
15720 if test "${ac_cv_var_tzname+set}" = set; then
15721   $as_echo_n "(cached) " >&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 <time.h>
15730 #ifndef tzname /* For SGI.  */
15731 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
15732 #endif
15733
15734 int
15735 main ()
15736 {
15737 atoi(*tzname);
15738   ;
15739   return 0;
15740 }
15741 _ACEOF
15742 rm -f conftest.$ac_objext conftest$ac_exeext
15743 if { (ac_try="$ac_link"
15744 case "(($ac_try" in
15745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746   *) ac_try_echo=$ac_try;;
15747 esac
15748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15749 $as_echo "$ac_try_echo") >&5
15750   (eval "$ac_link") 2>conftest.er1
15751   ac_status=$?
15752   grep -v '^ *+' conftest.er1 >conftest.err
15753   rm -f conftest.er1
15754   cat conftest.err >&5
15755   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756   (exit $ac_status); } && {
15757          test -z "$ac_c_werror_flag" ||
15758          test ! -s conftest.err
15759        } && test -s conftest$ac_exeext && {
15760          test "$cross_compiling" = yes ||
15761          $as_test_x conftest$ac_exeext
15762        }; then
15763   ac_cv_var_tzname=yes
15764 else
15765   $as_echo "$as_me: failed program was:" >&5
15766 sed 's/^/| /' conftest.$ac_ext >&5
15767
15768         ac_cv_var_tzname=no
15769 fi
15770
15771 rm -rf conftest.dSYM
15772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15773       conftest$ac_exeext conftest.$ac_ext
15774 fi
15775 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15776 $as_echo "$ac_cv_var_tzname" >&6; }
15777 if test $ac_cv_var_tzname = yes; then
15778
15779 cat >>confdefs.h <<\_ACEOF
15780 #define HAVE_TZNAME 1
15781 _ACEOF
15782
15783 fi
15784
15785 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
15786 $as_echo_n "checking for union semun... " >&6; }
15787 if test "${ac_cv_type_union_semun+set}" = set; then
15788   $as_echo_n "(cached) " >&6
15789 else
15790   ac_cv_type_union_semun=no
15791 cat >conftest.$ac_ext <<_ACEOF
15792 /* confdefs.h.  */
15793 _ACEOF
15794 cat confdefs.h >>conftest.$ac_ext
15795 cat >>conftest.$ac_ext <<_ACEOF
15796 /* end confdefs.h.  */
15797 #include <sys/types.h>
15798 #include <sys/ipc.h>
15799 #include <sys/sem.h>
15800
15801 int
15802 main ()
15803 {
15804 if (sizeof (union semun))
15805        return 0;
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15817 $as_echo "$ac_try_echo") >&5
15818   (eval "$ac_compile") 2>conftest.er1
15819   ac_status=$?
15820   grep -v '^ *+' conftest.er1 >conftest.err
15821   rm -f conftest.er1
15822   cat conftest.err >&5
15823   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824   (exit $ac_status); } && {
15825          test -z "$ac_c_werror_flag" ||
15826          test ! -s conftest.err
15827        } && test -s conftest.$ac_objext; then
15828   cat >conftest.$ac_ext <<_ACEOF
15829 /* confdefs.h.  */
15830 _ACEOF
15831 cat confdefs.h >>conftest.$ac_ext
15832 cat >>conftest.$ac_ext <<_ACEOF
15833 /* end confdefs.h.  */
15834 #include <sys/types.h>
15835 #include <sys/ipc.h>
15836 #include <sys/sem.h>
15837
15838 int
15839 main ()
15840 {
15841 if (sizeof ((union semun)))
15842           return 0;
15843   ;
15844   return 0;
15845 }
15846 _ACEOF
15847 rm -f conftest.$ac_objext
15848 if { (ac_try="$ac_compile"
15849 case "(($ac_try" in
15850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15851   *) ac_try_echo=$ac_try;;
15852 esac
15853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15854 $as_echo "$ac_try_echo") >&5
15855   (eval "$ac_compile") 2>conftest.er1
15856   ac_status=$?
15857   grep -v '^ *+' conftest.er1 >conftest.err
15858   rm -f conftest.er1
15859   cat conftest.err >&5
15860   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861   (exit $ac_status); } && {
15862          test -z "$ac_c_werror_flag" ||
15863          test ! -s conftest.err
15864        } && test -s conftest.$ac_objext; then
15865   :
15866 else
15867   $as_echo "$as_me: failed program was:" >&5
15868 sed 's/^/| /' conftest.$ac_ext >&5
15869
15870         ac_cv_type_union_semun=yes
15871 fi
15872
15873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15874 else
15875   $as_echo "$as_me: failed program was:" >&5
15876 sed 's/^/| /' conftest.$ac_ext >&5
15877
15878
15879 fi
15880
15881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15882 fi
15883 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
15884 $as_echo "$ac_cv_type_union_semun" >&6; }
15885 if test "x$ac_cv_type_union_semun" = x""yes; then
15886
15887 cat >>confdefs.h <<_ACEOF
15888 #define HAVE_UNION_SEMUN 1
15889 _ACEOF
15890
15891
15892 fi
15893
15894 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
15895 $as_echo_n "checking for struct sockaddr_un... " >&6; }
15896 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
15897   $as_echo_n "(cached) " >&6
15898 else
15899   ac_cv_type_struct_sockaddr_un=no
15900 cat >conftest.$ac_ext <<_ACEOF
15901 /* confdefs.h.  */
15902 _ACEOF
15903 cat confdefs.h >>conftest.$ac_ext
15904 cat >>conftest.$ac_ext <<_ACEOF
15905 /* end confdefs.h.  */
15906 #include <sys/types.h>
15907 #ifdef HAVE_SYS_UN_H
15908 #include <sys/un.h>
15909 #endif
15910
15911
15912 int
15913 main ()
15914 {
15915 if (sizeof (struct sockaddr_un))
15916        return 0;
15917   ;
15918   return 0;
15919 }
15920 _ACEOF
15921 rm -f conftest.$ac_objext
15922 if { (ac_try="$ac_compile"
15923 case "(($ac_try" in
15924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15925   *) ac_try_echo=$ac_try;;
15926 esac
15927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15928 $as_echo "$ac_try_echo") >&5
15929   (eval "$ac_compile") 2>conftest.er1
15930   ac_status=$?
15931   grep -v '^ *+' conftest.er1 >conftest.err
15932   rm -f conftest.er1
15933   cat conftest.err >&5
15934   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935   (exit $ac_status); } && {
15936          test -z "$ac_c_werror_flag" ||
15937          test ! -s conftest.err
15938        } && test -s conftest.$ac_objext; then
15939   cat >conftest.$ac_ext <<_ACEOF
15940 /* confdefs.h.  */
15941 _ACEOF
15942 cat confdefs.h >>conftest.$ac_ext
15943 cat >>conftest.$ac_ext <<_ACEOF
15944 /* end confdefs.h.  */
15945 #include <sys/types.h>
15946 #ifdef HAVE_SYS_UN_H
15947 #include <sys/un.h>
15948 #endif
15949
15950
15951 int
15952 main ()
15953 {
15954 if (sizeof ((struct sockaddr_un)))
15955           return 0;
15956   ;
15957   return 0;
15958 }
15959 _ACEOF
15960 rm -f conftest.$ac_objext
15961 if { (ac_try="$ac_compile"
15962 case "(($ac_try" in
15963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15964   *) ac_try_echo=$ac_try;;
15965 esac
15966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15967 $as_echo "$ac_try_echo") >&5
15968   (eval "$ac_compile") 2>conftest.er1
15969   ac_status=$?
15970   grep -v '^ *+' conftest.er1 >conftest.err
15971   rm -f conftest.er1
15972   cat conftest.err >&5
15973   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974   (exit $ac_status); } && {
15975          test -z "$ac_c_werror_flag" ||
15976          test ! -s conftest.err
15977        } && test -s conftest.$ac_objext; then
15978   :
15979 else
15980   $as_echo "$as_me: failed program was:" >&5
15981 sed 's/^/| /' conftest.$ac_ext >&5
15982
15983         ac_cv_type_struct_sockaddr_un=yes
15984 fi
15985
15986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15987 else
15988   $as_echo "$as_me: failed program was:" >&5
15989 sed 's/^/| /' conftest.$ac_ext >&5
15990
15991
15992 fi
15993
15994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15995 fi
15996 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
15997 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
15998 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
15999
16000 cat >>confdefs.h <<\_ACEOF
16001 #define HAVE_UNIX_SOCKETS 1
16002 _ACEOF
16003
16004 fi
16005
16006 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
16007 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
16008 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
16009   $as_echo_n "(cached) " >&6
16010 else
16011   ac_cv_type_struct_sockaddr_storage=no
16012 cat >conftest.$ac_ext <<_ACEOF
16013 /* confdefs.h.  */
16014 _ACEOF
16015 cat confdefs.h >>conftest.$ac_ext
16016 cat >>conftest.$ac_ext <<_ACEOF
16017 /* end confdefs.h.  */
16018 #include <sys/types.h>
16019 #ifdef HAVE_SYS_SOCKET_H
16020 #include <sys/socket.h>
16021 #endif
16022
16023
16024 int
16025 main ()
16026 {
16027 if (sizeof (struct sockaddr_storage))
16028        return 0;
16029   ;
16030   return 0;
16031 }
16032 _ACEOF
16033 rm -f conftest.$ac_objext
16034 if { (ac_try="$ac_compile"
16035 case "(($ac_try" in
16036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16037   *) ac_try_echo=$ac_try;;
16038 esac
16039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16040 $as_echo "$ac_try_echo") >&5
16041   (eval "$ac_compile") 2>conftest.er1
16042   ac_status=$?
16043   grep -v '^ *+' conftest.er1 >conftest.err
16044   rm -f conftest.er1
16045   cat conftest.err >&5
16046   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047   (exit $ac_status); } && {
16048          test -z "$ac_c_werror_flag" ||
16049          test ! -s conftest.err
16050        } && test -s conftest.$ac_objext; then
16051   cat >conftest.$ac_ext <<_ACEOF
16052 /* confdefs.h.  */
16053 _ACEOF
16054 cat confdefs.h >>conftest.$ac_ext
16055 cat >>conftest.$ac_ext <<_ACEOF
16056 /* end confdefs.h.  */
16057 #include <sys/types.h>
16058 #ifdef HAVE_SYS_SOCKET_H
16059 #include <sys/socket.h>
16060 #endif
16061
16062
16063 int
16064 main ()
16065 {
16066 if (sizeof ((struct sockaddr_storage)))
16067           return 0;
16068   ;
16069   return 0;
16070 }
16071 _ACEOF
16072 rm -f conftest.$ac_objext
16073 if { (ac_try="$ac_compile"
16074 case "(($ac_try" in
16075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16076   *) ac_try_echo=$ac_try;;
16077 esac
16078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16079 $as_echo "$ac_try_echo") >&5
16080   (eval "$ac_compile") 2>conftest.er1
16081   ac_status=$?
16082   grep -v '^ *+' conftest.er1 >conftest.err
16083   rm -f conftest.er1
16084   cat conftest.err >&5
16085   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086   (exit $ac_status); } && {
16087          test -z "$ac_c_werror_flag" ||
16088          test ! -s conftest.err
16089        } && test -s conftest.$ac_objext; then
16090   :
16091 else
16092   $as_echo "$as_me: failed program was:" >&5
16093 sed 's/^/| /' conftest.$ac_ext >&5
16094
16095         ac_cv_type_struct_sockaddr_storage=yes
16096 fi
16097
16098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16099 else
16100   $as_echo "$as_me: failed program was:" >&5
16101 sed 's/^/| /' conftest.$ac_ext >&5
16102
16103
16104 fi
16105
16106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16107 fi
16108 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
16109 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
16110 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
16111
16112 cat >>confdefs.h <<_ACEOF
16113 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
16114 _ACEOF
16115
16116
16117 fi
16118
16119 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
16120 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
16121 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
16122   $as_echo_n "(cached) " >&6
16123 else
16124   cat >conftest.$ac_ext <<_ACEOF
16125 /* confdefs.h.  */
16126 _ACEOF
16127 cat confdefs.h >>conftest.$ac_ext
16128 cat >>conftest.$ac_ext <<_ACEOF
16129 /* end confdefs.h.  */
16130 #include <sys/types.h>
16131 #ifdef HAVE_SYS_SOCKET_H
16132 #include <sys/socket.h>
16133 #endif
16134
16135
16136 int
16137 main ()
16138 {
16139 static struct sockaddr_storage ac_aggr;
16140 if (ac_aggr.ss_family)
16141 return 0;
16142   ;
16143   return 0;
16144 }
16145 _ACEOF
16146 rm -f conftest.$ac_objext
16147 if { (ac_try="$ac_compile"
16148 case "(($ac_try" in
16149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16150   *) ac_try_echo=$ac_try;;
16151 esac
16152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16153 $as_echo "$ac_try_echo") >&5
16154   (eval "$ac_compile") 2>conftest.er1
16155   ac_status=$?
16156   grep -v '^ *+' conftest.er1 >conftest.err
16157   rm -f conftest.er1
16158   cat conftest.err >&5
16159   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160   (exit $ac_status); } && {
16161          test -z "$ac_c_werror_flag" ||
16162          test ! -s conftest.err
16163        } && test -s conftest.$ac_objext; then
16164   ac_cv_member_struct_sockaddr_storage_ss_family=yes
16165 else
16166   $as_echo "$as_me: failed program was:" >&5
16167 sed 's/^/| /' conftest.$ac_ext >&5
16168
16169         cat >conftest.$ac_ext <<_ACEOF
16170 /* confdefs.h.  */
16171 _ACEOF
16172 cat confdefs.h >>conftest.$ac_ext
16173 cat >>conftest.$ac_ext <<_ACEOF
16174 /* end confdefs.h.  */
16175 #include <sys/types.h>
16176 #ifdef HAVE_SYS_SOCKET_H
16177 #include <sys/socket.h>
16178 #endif
16179
16180
16181 int
16182 main ()
16183 {
16184 static struct sockaddr_storage ac_aggr;
16185 if (sizeof ac_aggr.ss_family)
16186 return 0;
16187   ;
16188   return 0;
16189 }
16190 _ACEOF
16191 rm -f conftest.$ac_objext
16192 if { (ac_try="$ac_compile"
16193 case "(($ac_try" in
16194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16195   *) ac_try_echo=$ac_try;;
16196 esac
16197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16198 $as_echo "$ac_try_echo") >&5
16199   (eval "$ac_compile") 2>conftest.er1
16200   ac_status=$?
16201   grep -v '^ *+' conftest.er1 >conftest.err
16202   rm -f conftest.er1
16203   cat conftest.err >&5
16204   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205   (exit $ac_status); } && {
16206          test -z "$ac_c_werror_flag" ||
16207          test ! -s conftest.err
16208        } && test -s conftest.$ac_objext; then
16209   ac_cv_member_struct_sockaddr_storage_ss_family=yes
16210 else
16211   $as_echo "$as_me: failed program was:" >&5
16212 sed 's/^/| /' conftest.$ac_ext >&5
16213
16214         ac_cv_member_struct_sockaddr_storage_ss_family=no
16215 fi
16216
16217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16218 fi
16219
16220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16221 fi
16222 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
16223 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
16224 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
16225
16226 cat >>confdefs.h <<_ACEOF
16227 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
16228 _ACEOF
16229
16230
16231 fi
16232 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
16233 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
16234 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
16235   $as_echo_n "(cached) " >&6
16236 else
16237   cat >conftest.$ac_ext <<_ACEOF
16238 /* confdefs.h.  */
16239 _ACEOF
16240 cat confdefs.h >>conftest.$ac_ext
16241 cat >>conftest.$ac_ext <<_ACEOF
16242 /* end confdefs.h.  */
16243 #include <sys/types.h>
16244 #ifdef HAVE_SYS_SOCKET_H
16245 #include <sys/socket.h>
16246 #endif
16247
16248
16249 int
16250 main ()
16251 {
16252 static struct sockaddr_storage ac_aggr;
16253 if (ac_aggr.__ss_family)
16254 return 0;
16255   ;
16256   return 0;
16257 }
16258 _ACEOF
16259 rm -f conftest.$ac_objext
16260 if { (ac_try="$ac_compile"
16261 case "(($ac_try" in
16262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16263   *) ac_try_echo=$ac_try;;
16264 esac
16265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16266 $as_echo "$ac_try_echo") >&5
16267   (eval "$ac_compile") 2>conftest.er1
16268   ac_status=$?
16269   grep -v '^ *+' conftest.er1 >conftest.err
16270   rm -f conftest.er1
16271   cat conftest.err >&5
16272   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273   (exit $ac_status); } && {
16274          test -z "$ac_c_werror_flag" ||
16275          test ! -s conftest.err
16276        } && test -s conftest.$ac_objext; then
16277   ac_cv_member_struct_sockaddr_storage___ss_family=yes
16278 else
16279   $as_echo "$as_me: failed program was:" >&5
16280 sed 's/^/| /' conftest.$ac_ext >&5
16281
16282         cat >conftest.$ac_ext <<_ACEOF
16283 /* confdefs.h.  */
16284 _ACEOF
16285 cat confdefs.h >>conftest.$ac_ext
16286 cat >>conftest.$ac_ext <<_ACEOF
16287 /* end confdefs.h.  */
16288 #include <sys/types.h>
16289 #ifdef HAVE_SYS_SOCKET_H
16290 #include <sys/socket.h>
16291 #endif
16292
16293
16294 int
16295 main ()
16296 {
16297 static struct sockaddr_storage ac_aggr;
16298 if (sizeof ac_aggr.__ss_family)
16299 return 0;
16300   ;
16301   return 0;
16302 }
16303 _ACEOF
16304 rm -f conftest.$ac_objext
16305 if { (ac_try="$ac_compile"
16306 case "(($ac_try" in
16307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16308   *) ac_try_echo=$ac_try;;
16309 esac
16310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16311 $as_echo "$ac_try_echo") >&5
16312   (eval "$ac_compile") 2>conftest.er1
16313   ac_status=$?
16314   grep -v '^ *+' conftest.er1 >conftest.err
16315   rm -f conftest.er1
16316   cat conftest.err >&5
16317   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318   (exit $ac_status); } && {
16319          test -z "$ac_c_werror_flag" ||
16320          test ! -s conftest.err
16321        } && test -s conftest.$ac_objext; then
16322   ac_cv_member_struct_sockaddr_storage___ss_family=yes
16323 else
16324   $as_echo "$as_me: failed program was:" >&5
16325 sed 's/^/| /' conftest.$ac_ext >&5
16326
16327         ac_cv_member_struct_sockaddr_storage___ss_family=no
16328 fi
16329
16330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16331 fi
16332
16333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16334 fi
16335 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
16336 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
16337 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
16338
16339 cat >>confdefs.h <<_ACEOF
16340 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
16341 _ACEOF
16342
16343
16344 fi
16345 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
16346 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
16347 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
16348   $as_echo_n "(cached) " >&6
16349 else
16350   cat >conftest.$ac_ext <<_ACEOF
16351 /* confdefs.h.  */
16352 _ACEOF
16353 cat confdefs.h >>conftest.$ac_ext
16354 cat >>conftest.$ac_ext <<_ACEOF
16355 /* end confdefs.h.  */
16356 #include <sys/types.h>
16357 #ifdef HAVE_SYS_SOCKET_H
16358 #include <sys/socket.h>
16359 #endif
16360
16361
16362 int
16363 main ()
16364 {
16365 static struct sockaddr_storage ac_aggr;
16366 if (ac_aggr.ss_len)
16367 return 0;
16368   ;
16369   return 0;
16370 }
16371 _ACEOF
16372 rm -f conftest.$ac_objext
16373 if { (ac_try="$ac_compile"
16374 case "(($ac_try" in
16375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16376   *) ac_try_echo=$ac_try;;
16377 esac
16378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16379 $as_echo "$ac_try_echo") >&5
16380   (eval "$ac_compile") 2>conftest.er1
16381   ac_status=$?
16382   grep -v '^ *+' conftest.er1 >conftest.err
16383   rm -f conftest.er1
16384   cat conftest.err >&5
16385   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386   (exit $ac_status); } && {
16387          test -z "$ac_c_werror_flag" ||
16388          test ! -s conftest.err
16389        } && test -s conftest.$ac_objext; then
16390   ac_cv_member_struct_sockaddr_storage_ss_len=yes
16391 else
16392   $as_echo "$as_me: failed program was:" >&5
16393 sed 's/^/| /' conftest.$ac_ext >&5
16394
16395         cat >conftest.$ac_ext <<_ACEOF
16396 /* confdefs.h.  */
16397 _ACEOF
16398 cat confdefs.h >>conftest.$ac_ext
16399 cat >>conftest.$ac_ext <<_ACEOF
16400 /* end confdefs.h.  */
16401 #include <sys/types.h>
16402 #ifdef HAVE_SYS_SOCKET_H
16403 #include <sys/socket.h>
16404 #endif
16405
16406
16407 int
16408 main ()
16409 {
16410 static struct sockaddr_storage ac_aggr;
16411 if (sizeof ac_aggr.ss_len)
16412 return 0;
16413   ;
16414   return 0;
16415 }
16416 _ACEOF
16417 rm -f conftest.$ac_objext
16418 if { (ac_try="$ac_compile"
16419 case "(($ac_try" in
16420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421   *) ac_try_echo=$ac_try;;
16422 esac
16423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16424 $as_echo "$ac_try_echo") >&5
16425   (eval "$ac_compile") 2>conftest.er1
16426   ac_status=$?
16427   grep -v '^ *+' conftest.er1 >conftest.err
16428   rm -f conftest.er1
16429   cat conftest.err >&5
16430   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431   (exit $ac_status); } && {
16432          test -z "$ac_c_werror_flag" ||
16433          test ! -s conftest.err
16434        } && test -s conftest.$ac_objext; then
16435   ac_cv_member_struct_sockaddr_storage_ss_len=yes
16436 else
16437   $as_echo "$as_me: failed program was:" >&5
16438 sed 's/^/| /' conftest.$ac_ext >&5
16439
16440         ac_cv_member_struct_sockaddr_storage_ss_len=no
16441 fi
16442
16443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16444 fi
16445
16446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16447 fi
16448 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
16449 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
16450 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
16451
16452 cat >>confdefs.h <<_ACEOF
16453 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
16454 _ACEOF
16455
16456
16457 fi
16458 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
16459 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
16460 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
16461   $as_echo_n "(cached) " >&6
16462 else
16463   cat >conftest.$ac_ext <<_ACEOF
16464 /* confdefs.h.  */
16465 _ACEOF
16466 cat confdefs.h >>conftest.$ac_ext
16467 cat >>conftest.$ac_ext <<_ACEOF
16468 /* end confdefs.h.  */
16469 #include <sys/types.h>
16470 #ifdef HAVE_SYS_SOCKET_H
16471 #include <sys/socket.h>
16472 #endif
16473
16474
16475 int
16476 main ()
16477 {
16478 static struct sockaddr_storage ac_aggr;
16479 if (ac_aggr.__ss_len)
16480 return 0;
16481   ;
16482   return 0;
16483 }
16484 _ACEOF
16485 rm -f conftest.$ac_objext
16486 if { (ac_try="$ac_compile"
16487 case "(($ac_try" in
16488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16489   *) ac_try_echo=$ac_try;;
16490 esac
16491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16492 $as_echo "$ac_try_echo") >&5
16493   (eval "$ac_compile") 2>conftest.er1
16494   ac_status=$?
16495   grep -v '^ *+' conftest.er1 >conftest.err
16496   rm -f conftest.er1
16497   cat conftest.err >&5
16498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499   (exit $ac_status); } && {
16500          test -z "$ac_c_werror_flag" ||
16501          test ! -s conftest.err
16502        } && test -s conftest.$ac_objext; then
16503   ac_cv_member_struct_sockaddr_storage___ss_len=yes
16504 else
16505   $as_echo "$as_me: failed program was:" >&5
16506 sed 's/^/| /' conftest.$ac_ext >&5
16507
16508         cat >conftest.$ac_ext <<_ACEOF
16509 /* confdefs.h.  */
16510 _ACEOF
16511 cat confdefs.h >>conftest.$ac_ext
16512 cat >>conftest.$ac_ext <<_ACEOF
16513 /* end confdefs.h.  */
16514 #include <sys/types.h>
16515 #ifdef HAVE_SYS_SOCKET_H
16516 #include <sys/socket.h>
16517 #endif
16518
16519
16520 int
16521 main ()
16522 {
16523 static struct sockaddr_storage ac_aggr;
16524 if (sizeof ac_aggr.__ss_len)
16525 return 0;
16526   ;
16527   return 0;
16528 }
16529 _ACEOF
16530 rm -f conftest.$ac_objext
16531 if { (ac_try="$ac_compile"
16532 case "(($ac_try" in
16533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16534   *) ac_try_echo=$ac_try;;
16535 esac
16536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16537 $as_echo "$ac_try_echo") >&5
16538   (eval "$ac_compile") 2>conftest.er1
16539   ac_status=$?
16540   grep -v '^ *+' conftest.er1 >conftest.err
16541   rm -f conftest.er1
16542   cat conftest.err >&5
16543   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544   (exit $ac_status); } && {
16545          test -z "$ac_c_werror_flag" ||
16546          test ! -s conftest.err
16547        } && test -s conftest.$ac_objext; then
16548   ac_cv_member_struct_sockaddr_storage___ss_len=yes
16549 else
16550   $as_echo "$as_me: failed program was:" >&5
16551 sed 's/^/| /' conftest.$ac_ext >&5
16552
16553         ac_cv_member_struct_sockaddr_storage___ss_len=no
16554 fi
16555
16556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16557 fi
16558
16559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16560 fi
16561 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
16562 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
16563 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
16564
16565 cat >>confdefs.h <<_ACEOF
16566 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
16567 _ACEOF
16568
16569
16570 fi
16571 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
16572 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
16573 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
16574   $as_echo_n "(cached) " >&6
16575 else
16576   cat >conftest.$ac_ext <<_ACEOF
16577 /* confdefs.h.  */
16578 _ACEOF
16579 cat confdefs.h >>conftest.$ac_ext
16580 cat >>conftest.$ac_ext <<_ACEOF
16581 /* end confdefs.h.  */
16582 #include <sys/types.h>
16583 #ifdef HAVE_SYS_SOCKET_H
16584 #include <sys/socket.h>
16585 #endif
16586
16587
16588 int
16589 main ()
16590 {
16591 static struct sockaddr ac_aggr;
16592 if (ac_aggr.sa_len)
16593 return 0;
16594   ;
16595   return 0;
16596 }
16597 _ACEOF
16598 rm -f conftest.$ac_objext
16599 if { (ac_try="$ac_compile"
16600 case "(($ac_try" in
16601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16602   *) ac_try_echo=$ac_try;;
16603 esac
16604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16605 $as_echo "$ac_try_echo") >&5
16606   (eval "$ac_compile") 2>conftest.er1
16607   ac_status=$?
16608   grep -v '^ *+' conftest.er1 >conftest.err
16609   rm -f conftest.er1
16610   cat conftest.err >&5
16611   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612   (exit $ac_status); } && {
16613          test -z "$ac_c_werror_flag" ||
16614          test ! -s conftest.err
16615        } && test -s conftest.$ac_objext; then
16616   ac_cv_member_struct_sockaddr_sa_len=yes
16617 else
16618   $as_echo "$as_me: failed program was:" >&5
16619 sed 's/^/| /' conftest.$ac_ext >&5
16620
16621         cat >conftest.$ac_ext <<_ACEOF
16622 /* confdefs.h.  */
16623 _ACEOF
16624 cat confdefs.h >>conftest.$ac_ext
16625 cat >>conftest.$ac_ext <<_ACEOF
16626 /* end confdefs.h.  */
16627 #include <sys/types.h>
16628 #ifdef HAVE_SYS_SOCKET_H
16629 #include <sys/socket.h>
16630 #endif
16631
16632
16633 int
16634 main ()
16635 {
16636 static struct sockaddr ac_aggr;
16637 if (sizeof ac_aggr.sa_len)
16638 return 0;
16639   ;
16640   return 0;
16641 }
16642 _ACEOF
16643 rm -f conftest.$ac_objext
16644 if { (ac_try="$ac_compile"
16645 case "(($ac_try" in
16646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16647   *) ac_try_echo=$ac_try;;
16648 esac
16649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16650 $as_echo "$ac_try_echo") >&5
16651   (eval "$ac_compile") 2>conftest.er1
16652   ac_status=$?
16653   grep -v '^ *+' conftest.er1 >conftest.err
16654   rm -f conftest.er1
16655   cat conftest.err >&5
16656   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657   (exit $ac_status); } && {
16658          test -z "$ac_c_werror_flag" ||
16659          test ! -s conftest.err
16660        } && test -s conftest.$ac_objext; then
16661   ac_cv_member_struct_sockaddr_sa_len=yes
16662 else
16663   $as_echo "$as_me: failed program was:" >&5
16664 sed 's/^/| /' conftest.$ac_ext >&5
16665
16666         ac_cv_member_struct_sockaddr_sa_len=no
16667 fi
16668
16669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16670 fi
16671
16672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16673 fi
16674 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16675 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
16676 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
16677
16678 cat >>confdefs.h <<_ACEOF
16679 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16680 _ACEOF
16681
16682
16683 fi
16684
16685 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
16686 $as_echo_n "checking for struct addrinfo... " >&6; }
16687 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
16688   $as_echo_n "(cached) " >&6
16689 else
16690   ac_cv_type_struct_addrinfo=no
16691 cat >conftest.$ac_ext <<_ACEOF
16692 /* confdefs.h.  */
16693 _ACEOF
16694 cat confdefs.h >>conftest.$ac_ext
16695 cat >>conftest.$ac_ext <<_ACEOF
16696 /* end confdefs.h.  */
16697 #include <sys/types.h>
16698 #include <sys/socket.h>
16699 #include <netdb.h>
16700
16701
16702 int
16703 main ()
16704 {
16705 if (sizeof (struct addrinfo))
16706        return 0;
16707   ;
16708   return 0;
16709 }
16710 _ACEOF
16711 rm -f conftest.$ac_objext
16712 if { (ac_try="$ac_compile"
16713 case "(($ac_try" in
16714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16715   *) ac_try_echo=$ac_try;;
16716 esac
16717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16718 $as_echo "$ac_try_echo") >&5
16719   (eval "$ac_compile") 2>conftest.er1
16720   ac_status=$?
16721   grep -v '^ *+' conftest.er1 >conftest.err
16722   rm -f conftest.er1
16723   cat conftest.err >&5
16724   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725   (exit $ac_status); } && {
16726          test -z "$ac_c_werror_flag" ||
16727          test ! -s conftest.err
16728        } && test -s conftest.$ac_objext; then
16729   cat >conftest.$ac_ext <<_ACEOF
16730 /* confdefs.h.  */
16731 _ACEOF
16732 cat confdefs.h >>conftest.$ac_ext
16733 cat >>conftest.$ac_ext <<_ACEOF
16734 /* end confdefs.h.  */
16735 #include <sys/types.h>
16736 #include <sys/socket.h>
16737 #include <netdb.h>
16738
16739
16740 int
16741 main ()
16742 {
16743 if (sizeof ((struct addrinfo)))
16744           return 0;
16745   ;
16746   return 0;
16747 }
16748 _ACEOF
16749 rm -f conftest.$ac_objext
16750 if { (ac_try="$ac_compile"
16751 case "(($ac_try" in
16752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16753   *) ac_try_echo=$ac_try;;
16754 esac
16755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16756 $as_echo "$ac_try_echo") >&5
16757   (eval "$ac_compile") 2>conftest.er1
16758   ac_status=$?
16759   grep -v '^ *+' conftest.er1 >conftest.err
16760   rm -f conftest.er1
16761   cat conftest.err >&5
16762   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763   (exit $ac_status); } && {
16764          test -z "$ac_c_werror_flag" ||
16765          test ! -s conftest.err
16766        } && test -s conftest.$ac_objext; then
16767   :
16768 else
16769   $as_echo "$as_me: failed program was:" >&5
16770 sed 's/^/| /' conftest.$ac_ext >&5
16771
16772         ac_cv_type_struct_addrinfo=yes
16773 fi
16774
16775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16776 else
16777   $as_echo "$as_me: failed program was:" >&5
16778 sed 's/^/| /' conftest.$ac_ext >&5
16779
16780
16781 fi
16782
16783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16784 fi
16785 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
16786 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
16787 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
16788
16789 cat >>confdefs.h <<_ACEOF
16790 #define HAVE_STRUCT_ADDRINFO 1
16791 _ACEOF
16792
16793
16794 fi
16795
16796
16797   { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
16798 $as_echo_n "checking for intptr_t... " >&6; }
16799 if test "${ac_cv_type_intptr_t+set}" = set; then
16800   $as_echo_n "(cached) " >&6
16801 else
16802   ac_cv_type_intptr_t=no
16803 cat >conftest.$ac_ext <<_ACEOF
16804 /* confdefs.h.  */
16805 _ACEOF
16806 cat confdefs.h >>conftest.$ac_ext
16807 cat >>conftest.$ac_ext <<_ACEOF
16808 /* end confdefs.h.  */
16809 $ac_includes_default
16810 int
16811 main ()
16812 {
16813 if (sizeof (intptr_t))
16814        return 0;
16815   ;
16816   return 0;
16817 }
16818 _ACEOF
16819 rm -f conftest.$ac_objext
16820 if { (ac_try="$ac_compile"
16821 case "(($ac_try" in
16822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823   *) ac_try_echo=$ac_try;;
16824 esac
16825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16826 $as_echo "$ac_try_echo") >&5
16827   (eval "$ac_compile") 2>conftest.er1
16828   ac_status=$?
16829   grep -v '^ *+' conftest.er1 >conftest.err
16830   rm -f conftest.er1
16831   cat conftest.err >&5
16832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833   (exit $ac_status); } && {
16834          test -z "$ac_c_werror_flag" ||
16835          test ! -s conftest.err
16836        } && test -s conftest.$ac_objext; then
16837   cat >conftest.$ac_ext <<_ACEOF
16838 /* confdefs.h.  */
16839 _ACEOF
16840 cat confdefs.h >>conftest.$ac_ext
16841 cat >>conftest.$ac_ext <<_ACEOF
16842 /* end confdefs.h.  */
16843 $ac_includes_default
16844 int
16845 main ()
16846 {
16847 if (sizeof ((intptr_t)))
16848           return 0;
16849   ;
16850   return 0;
16851 }
16852 _ACEOF
16853 rm -f conftest.$ac_objext
16854 if { (ac_try="$ac_compile"
16855 case "(($ac_try" in
16856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16857   *) ac_try_echo=$ac_try;;
16858 esac
16859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16860 $as_echo "$ac_try_echo") >&5
16861   (eval "$ac_compile") 2>conftest.er1
16862   ac_status=$?
16863   grep -v '^ *+' conftest.er1 >conftest.err
16864   rm -f conftest.er1
16865   cat conftest.err >&5
16866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867   (exit $ac_status); } && {
16868          test -z "$ac_c_werror_flag" ||
16869          test ! -s conftest.err
16870        } && test -s conftest.$ac_objext; then
16871   :
16872 else
16873   $as_echo "$as_me: failed program was:" >&5
16874 sed 's/^/| /' conftest.$ac_ext >&5
16875
16876         ac_cv_type_intptr_t=yes
16877 fi
16878
16879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16880 else
16881   $as_echo "$as_me: failed program was:" >&5
16882 sed 's/^/| /' conftest.$ac_ext >&5
16883
16884
16885 fi
16886
16887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16888 fi
16889 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
16890 $as_echo "$ac_cv_type_intptr_t" >&6; }
16891 if test "x$ac_cv_type_intptr_t" = x""yes; then
16892
16893 cat >>confdefs.h <<\_ACEOF
16894 #define HAVE_INTPTR_T 1
16895 _ACEOF
16896
16897 else
16898   for ac_type in 'int' 'long int' 'long long int'; do
16899        cat >conftest.$ac_ext <<_ACEOF
16900 /* confdefs.h.  */
16901 _ACEOF
16902 cat confdefs.h >>conftest.$ac_ext
16903 cat >>conftest.$ac_ext <<_ACEOF
16904 /* end confdefs.h.  */
16905 $ac_includes_default
16906 int
16907 main ()
16908 {
16909 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16910 test_array [0] = 0
16911
16912   ;
16913   return 0;
16914 }
16915 _ACEOF
16916 rm -f conftest.$ac_objext
16917 if { (ac_try="$ac_compile"
16918 case "(($ac_try" in
16919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16920   *) ac_try_echo=$ac_try;;
16921 esac
16922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16923 $as_echo "$ac_try_echo") >&5
16924   (eval "$ac_compile") 2>conftest.er1
16925   ac_status=$?
16926   grep -v '^ *+' conftest.er1 >conftest.err
16927   rm -f conftest.er1
16928   cat conftest.err >&5
16929   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930   (exit $ac_status); } && {
16931          test -z "$ac_c_werror_flag" ||
16932          test ! -s conftest.err
16933        } && test -s conftest.$ac_objext; then
16934
16935 cat >>confdefs.h <<_ACEOF
16936 #define intptr_t $ac_type
16937 _ACEOF
16938
16939           ac_type=
16940 else
16941   $as_echo "$as_me: failed program was:" >&5
16942 sed 's/^/| /' conftest.$ac_ext >&5
16943
16944
16945 fi
16946
16947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16948        test -z "$ac_type" && break
16949      done
16950 fi
16951
16952
16953
16954   { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
16955 $as_echo_n "checking for uintptr_t... " >&6; }
16956 if test "${ac_cv_type_uintptr_t+set}" = set; then
16957   $as_echo_n "(cached) " >&6
16958 else
16959   ac_cv_type_uintptr_t=no
16960 cat >conftest.$ac_ext <<_ACEOF
16961 /* confdefs.h.  */
16962 _ACEOF
16963 cat confdefs.h >>conftest.$ac_ext
16964 cat >>conftest.$ac_ext <<_ACEOF
16965 /* end confdefs.h.  */
16966 $ac_includes_default
16967 int
16968 main ()
16969 {
16970 if (sizeof (uintptr_t))
16971        return 0;
16972   ;
16973   return 0;
16974 }
16975 _ACEOF
16976 rm -f conftest.$ac_objext
16977 if { (ac_try="$ac_compile"
16978 case "(($ac_try" in
16979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16980   *) ac_try_echo=$ac_try;;
16981 esac
16982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16983 $as_echo "$ac_try_echo") >&5
16984   (eval "$ac_compile") 2>conftest.er1
16985   ac_status=$?
16986   grep -v '^ *+' conftest.er1 >conftest.err
16987   rm -f conftest.er1
16988   cat conftest.err >&5
16989   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990   (exit $ac_status); } && {
16991          test -z "$ac_c_werror_flag" ||
16992          test ! -s conftest.err
16993        } && test -s conftest.$ac_objext; then
16994   cat >conftest.$ac_ext <<_ACEOF
16995 /* confdefs.h.  */
16996 _ACEOF
16997 cat confdefs.h >>conftest.$ac_ext
16998 cat >>conftest.$ac_ext <<_ACEOF
16999 /* end confdefs.h.  */
17000 $ac_includes_default
17001 int
17002 main ()
17003 {
17004 if (sizeof ((uintptr_t)))
17005           return 0;
17006   ;
17007   return 0;
17008 }
17009 _ACEOF
17010 rm -f conftest.$ac_objext
17011 if { (ac_try="$ac_compile"
17012 case "(($ac_try" in
17013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17014   *) ac_try_echo=$ac_try;;
17015 esac
17016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17017 $as_echo "$ac_try_echo") >&5
17018   (eval "$ac_compile") 2>conftest.er1
17019   ac_status=$?
17020   grep -v '^ *+' conftest.er1 >conftest.err
17021   rm -f conftest.er1
17022   cat conftest.err >&5
17023   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024   (exit $ac_status); } && {
17025          test -z "$ac_c_werror_flag" ||
17026          test ! -s conftest.err
17027        } && test -s conftest.$ac_objext; then
17028   :
17029 else
17030   $as_echo "$as_me: failed program was:" >&5
17031 sed 's/^/| /' conftest.$ac_ext >&5
17032
17033         ac_cv_type_uintptr_t=yes
17034 fi
17035
17036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17037 else
17038   $as_echo "$as_me: failed program was:" >&5
17039 sed 's/^/| /' conftest.$ac_ext >&5
17040
17041
17042 fi
17043
17044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17045 fi
17046 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
17047 $as_echo "$ac_cv_type_uintptr_t" >&6; }
17048 if test "x$ac_cv_type_uintptr_t" = x""yes; then
17049
17050 cat >>confdefs.h <<\_ACEOF
17051 #define HAVE_UINTPTR_T 1
17052 _ACEOF
17053
17054 else
17055   for ac_type in 'unsigned int' 'unsigned long int' \
17056         'unsigned long long int'; do
17057        cat >conftest.$ac_ext <<_ACEOF
17058 /* confdefs.h.  */
17059 _ACEOF
17060 cat confdefs.h >>conftest.$ac_ext
17061 cat >>conftest.$ac_ext <<_ACEOF
17062 /* end confdefs.h.  */
17063 $ac_includes_default
17064 int
17065 main ()
17066 {
17067 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17068 test_array [0] = 0
17069
17070   ;
17071   return 0;
17072 }
17073 _ACEOF
17074 rm -f conftest.$ac_objext
17075 if { (ac_try="$ac_compile"
17076 case "(($ac_try" in
17077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17078   *) ac_try_echo=$ac_try;;
17079 esac
17080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17081 $as_echo "$ac_try_echo") >&5
17082   (eval "$ac_compile") 2>conftest.er1
17083   ac_status=$?
17084   grep -v '^ *+' conftest.er1 >conftest.err
17085   rm -f conftest.er1
17086   cat conftest.err >&5
17087   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088   (exit $ac_status); } && {
17089          test -z "$ac_c_werror_flag" ||
17090          test ! -s conftest.err
17091        } && test -s conftest.$ac_objext; then
17092
17093 cat >>confdefs.h <<_ACEOF
17094 #define uintptr_t $ac_type
17095 _ACEOF
17096
17097           ac_type=
17098 else
17099   $as_echo "$as_me: failed program was:" >&5
17100 sed 's/^/| /' conftest.$ac_ext >&5
17101
17102
17103 fi
17104
17105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17106        test -z "$ac_type" && break
17107      done
17108 fi
17109
17110
17111
17112   { $as_echo "$as_me:$LINENO: checking for long long int" >&5
17113 $as_echo_n "checking for long long int... " >&6; }
17114 if test "${ac_cv_type_long_long_int+set}" = set; then
17115   $as_echo_n "(cached) " >&6
17116 else
17117   cat >conftest.$ac_ext <<_ACEOF
17118
17119   /* confdefs.h.  */
17120 _ACEOF
17121 cat confdefs.h >>conftest.$ac_ext
17122 cat >>conftest.$ac_ext <<_ACEOF
17123 /* end confdefs.h.  */
17124 /* For now, do not test the preprocessor; as of 2007 there are too many
17125          implementations with broken preprocessors.  Perhaps this can
17126          be revisited in 2012.  In the meantime, code should not expect
17127          #if to work with literals wider than 32 bits.  */
17128       /* Test literals.  */
17129       long long int ll = 9223372036854775807ll;
17130       long long int nll = -9223372036854775807LL;
17131       unsigned long long int ull = 18446744073709551615ULL;
17132       /* Test constant expressions.   */
17133       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17134                      ? 1 : -1)];
17135       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17136                      ? 1 : -1)];
17137       int i = 63;
17138 int
17139 main ()
17140 {
17141 /* Test availability of runtime routines for shift and division.  */
17142       long long int llmax = 9223372036854775807ll;
17143       unsigned long long int ullmax = 18446744073709551615ull;
17144       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17145               | (llmax / ll) | (llmax % ll)
17146               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17147               | (ullmax / ull) | (ullmax % ull));
17148   ;
17149   return 0;
17150 }
17151
17152 _ACEOF
17153 rm -f conftest.$ac_objext conftest$ac_exeext
17154 if { (ac_try="$ac_link"
17155 case "(($ac_try" in
17156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17157   *) ac_try_echo=$ac_try;;
17158 esac
17159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17160 $as_echo "$ac_try_echo") >&5
17161   (eval "$ac_link") 2>conftest.er1
17162   ac_status=$?
17163   grep -v '^ *+' conftest.er1 >conftest.err
17164   rm -f conftest.er1
17165   cat conftest.err >&5
17166   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167   (exit $ac_status); } && {
17168          test -z "$ac_c_werror_flag" ||
17169          test ! -s conftest.err
17170        } && test -s conftest$ac_exeext && {
17171          test "$cross_compiling" = yes ||
17172          $as_test_x conftest$ac_exeext
17173        }; then
17174                         if test "$cross_compiling" = yes; then
17175   ac_cv_type_long_long_int=yes
17176 else
17177   cat >conftest.$ac_ext <<_ACEOF
17178 /* confdefs.h.  */
17179 _ACEOF
17180 cat confdefs.h >>conftest.$ac_ext
17181 cat >>conftest.$ac_ext <<_ACEOF
17182 /* end confdefs.h.  */
17183 #include <limits.h>
17184                #ifndef LLONG_MAX
17185                # define HALF \
17186                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17187                # define LLONG_MAX (HALF - 1 + HALF)
17188                #endif
17189 int
17190 main ()
17191 {
17192 long long int n = 1;
17193                int i;
17194                for (i = 0; ; i++)
17195                  {
17196                    long long int m = n << i;
17197                    if (m >> i != n)
17198                      return 1;
17199                    if (LLONG_MAX / 2 < m)
17200                      break;
17201                  }
17202                return 0;
17203   ;
17204   return 0;
17205 }
17206 _ACEOF
17207 rm -f conftest$ac_exeext
17208 if { (ac_try="$ac_link"
17209 case "(($ac_try" in
17210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17211   *) ac_try_echo=$ac_try;;
17212 esac
17213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17214 $as_echo "$ac_try_echo") >&5
17215   (eval "$ac_link") 2>&5
17216   ac_status=$?
17217   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17219   { (case "(($ac_try" in
17220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17221   *) ac_try_echo=$ac_try;;
17222 esac
17223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17224 $as_echo "$ac_try_echo") >&5
17225   (eval "$ac_try") 2>&5
17226   ac_status=$?
17227   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228   (exit $ac_status); }; }; then
17229   ac_cv_type_long_long_int=yes
17230 else
17231   $as_echo "$as_me: program exited with status $ac_status" >&5
17232 $as_echo "$as_me: failed program was:" >&5
17233 sed 's/^/| /' conftest.$ac_ext >&5
17234
17235 ( exit $ac_status )
17236 ac_cv_type_long_long_int=no
17237 fi
17238 rm -rf conftest.dSYM
17239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17240 fi
17241
17242
17243 else
17244   $as_echo "$as_me: failed program was:" >&5
17245 sed 's/^/| /' conftest.$ac_ext >&5
17246
17247         ac_cv_type_long_long_int=no
17248 fi
17249
17250 rm -rf conftest.dSYM
17251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17252       conftest$ac_exeext conftest.$ac_ext
17253 fi
17254 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
17255 $as_echo "$ac_cv_type_long_long_int" >&6; }
17256   if test $ac_cv_type_long_long_int = yes; then
17257
17258 cat >>confdefs.h <<\_ACEOF
17259 #define HAVE_LONG_LONG_INT 1
17260 _ACEOF
17261
17262   fi
17263
17264
17265 { $as_echo "$as_me:$LINENO: checking for locale_t" >&5
17266 $as_echo_n "checking for locale_t... " >&6; }
17267 if test "${pgac_cv_type_locale_t+set}" = set; then
17268   $as_echo_n "(cached) " >&6
17269 else
17270   cat >conftest.$ac_ext <<_ACEOF
17271 /* confdefs.h.  */
17272 _ACEOF
17273 cat confdefs.h >>conftest.$ac_ext
17274 cat >>conftest.$ac_ext <<_ACEOF
17275 /* end confdefs.h.  */
17276 #include <locale.h>
17277 locale_t x;
17278 int
17279 main ()
17280 {
17281
17282   ;
17283   return 0;
17284 }
17285 _ACEOF
17286 rm -f conftest.$ac_objext
17287 if { (ac_try="$ac_compile"
17288 case "(($ac_try" in
17289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17290   *) ac_try_echo=$ac_try;;
17291 esac
17292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17293 $as_echo "$ac_try_echo") >&5
17294   (eval "$ac_compile") 2>conftest.er1
17295   ac_status=$?
17296   grep -v '^ *+' conftest.er1 >conftest.err
17297   rm -f conftest.er1
17298   cat conftest.err >&5
17299   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300   (exit $ac_status); } && {
17301          test -z "$ac_c_werror_flag" ||
17302          test ! -s conftest.err
17303        } && test -s conftest.$ac_objext; then
17304   pgac_cv_type_locale_t=yes
17305 else
17306   $as_echo "$as_me: failed program was:" >&5
17307 sed 's/^/| /' conftest.$ac_ext >&5
17308
17309         cat >conftest.$ac_ext <<_ACEOF
17310 /* confdefs.h.  */
17311 _ACEOF
17312 cat confdefs.h >>conftest.$ac_ext
17313 cat >>conftest.$ac_ext <<_ACEOF
17314 /* end confdefs.h.  */
17315 #include <xlocale.h>
17316 locale_t x;
17317 int
17318 main ()
17319 {
17320
17321   ;
17322   return 0;
17323 }
17324 _ACEOF
17325 rm -f conftest.$ac_objext
17326 if { (ac_try="$ac_compile"
17327 case "(($ac_try" in
17328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17329   *) ac_try_echo=$ac_try;;
17330 esac
17331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17332 $as_echo "$ac_try_echo") >&5
17333   (eval "$ac_compile") 2>conftest.er1
17334   ac_status=$?
17335   grep -v '^ *+' conftest.er1 >conftest.err
17336   rm -f conftest.er1
17337   cat conftest.err >&5
17338   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339   (exit $ac_status); } && {
17340          test -z "$ac_c_werror_flag" ||
17341          test ! -s conftest.err
17342        } && test -s conftest.$ac_objext; then
17343   pgac_cv_type_locale_t='yes (in xlocale.h)'
17344 else
17345   $as_echo "$as_me: failed program was:" >&5
17346 sed 's/^/| /' conftest.$ac_ext >&5
17347
17348         pgac_cv_type_locale_t=no
17349 fi
17350
17351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17352 fi
17353
17354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17355 fi
17356 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_locale_t" >&5
17357 $as_echo "$pgac_cv_type_locale_t" >&6; }
17358 if test "$pgac_cv_type_locale_t" != no; then
17359
17360 cat >>confdefs.h <<\_ACEOF
17361 #define HAVE_LOCALE_T 1
17362 _ACEOF
17363
17364 fi
17365 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
17366
17367 cat >>confdefs.h <<\_ACEOF
17368 #define LOCALE_T_IN_XLOCALE 1
17369 _ACEOF
17370
17371 fi
17372
17373 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
17374 $as_echo_n "checking for struct cmsgcred... " >&6; }
17375 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
17376   $as_echo_n "(cached) " >&6
17377 else
17378   ac_cv_type_struct_cmsgcred=no
17379 cat >conftest.$ac_ext <<_ACEOF
17380 /* confdefs.h.  */
17381 _ACEOF
17382 cat confdefs.h >>conftest.$ac_ext
17383 cat >>conftest.$ac_ext <<_ACEOF
17384 /* end confdefs.h.  */
17385 #include <sys/socket.h>
17386 #ifdef HAVE_SYS_UCRED_H
17387 #include <sys/ucred.h>
17388 #endif
17389
17390 int
17391 main ()
17392 {
17393 if (sizeof (struct cmsgcred))
17394        return 0;
17395   ;
17396   return 0;
17397 }
17398 _ACEOF
17399 rm -f conftest.$ac_objext
17400 if { (ac_try="$ac_compile"
17401 case "(($ac_try" in
17402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17403   *) ac_try_echo=$ac_try;;
17404 esac
17405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17406 $as_echo "$ac_try_echo") >&5
17407   (eval "$ac_compile") 2>conftest.er1
17408   ac_status=$?
17409   grep -v '^ *+' conftest.er1 >conftest.err
17410   rm -f conftest.er1
17411   cat conftest.err >&5
17412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413   (exit $ac_status); } && {
17414          test -z "$ac_c_werror_flag" ||
17415          test ! -s conftest.err
17416        } && test -s conftest.$ac_objext; then
17417   cat >conftest.$ac_ext <<_ACEOF
17418 /* confdefs.h.  */
17419 _ACEOF
17420 cat confdefs.h >>conftest.$ac_ext
17421 cat >>conftest.$ac_ext <<_ACEOF
17422 /* end confdefs.h.  */
17423 #include <sys/socket.h>
17424 #ifdef HAVE_SYS_UCRED_H
17425 #include <sys/ucred.h>
17426 #endif
17427
17428 int
17429 main ()
17430 {
17431 if (sizeof ((struct cmsgcred)))
17432           return 0;
17433   ;
17434   return 0;
17435 }
17436 _ACEOF
17437 rm -f conftest.$ac_objext
17438 if { (ac_try="$ac_compile"
17439 case "(($ac_try" in
17440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17441   *) ac_try_echo=$ac_try;;
17442 esac
17443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17444 $as_echo "$ac_try_echo") >&5
17445   (eval "$ac_compile") 2>conftest.er1
17446   ac_status=$?
17447   grep -v '^ *+' conftest.er1 >conftest.err
17448   rm -f conftest.er1
17449   cat conftest.err >&5
17450   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451   (exit $ac_status); } && {
17452          test -z "$ac_c_werror_flag" ||
17453          test ! -s conftest.err
17454        } && test -s conftest.$ac_objext; then
17455   :
17456 else
17457   $as_echo "$as_me: failed program was:" >&5
17458 sed 's/^/| /' conftest.$ac_ext >&5
17459
17460         ac_cv_type_struct_cmsgcred=yes
17461 fi
17462
17463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17464 else
17465   $as_echo "$as_me: failed program was:" >&5
17466 sed 's/^/| /' conftest.$ac_ext >&5
17467
17468
17469 fi
17470
17471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17472 fi
17473 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
17474 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
17475 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
17476
17477 cat >>confdefs.h <<_ACEOF
17478 #define HAVE_STRUCT_CMSGCRED 1
17479 _ACEOF
17480
17481
17482 fi
17483
17484
17485 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
17486 $as_echo_n "checking for struct option... " >&6; }
17487 if test "${ac_cv_type_struct_option+set}" = set; then
17488   $as_echo_n "(cached) " >&6
17489 else
17490   ac_cv_type_struct_option=no
17491 cat >conftest.$ac_ext <<_ACEOF
17492 /* confdefs.h.  */
17493 _ACEOF
17494 cat confdefs.h >>conftest.$ac_ext
17495 cat >>conftest.$ac_ext <<_ACEOF
17496 /* end confdefs.h.  */
17497 #ifdef HAVE_GETOPT_H
17498 #include <getopt.h>
17499 #endif
17500
17501 int
17502 main ()
17503 {
17504 if (sizeof (struct option))
17505        return 0;
17506   ;
17507   return 0;
17508 }
17509 _ACEOF
17510 rm -f conftest.$ac_objext
17511 if { (ac_try="$ac_compile"
17512 case "(($ac_try" in
17513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514   *) ac_try_echo=$ac_try;;
17515 esac
17516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17517 $as_echo "$ac_try_echo") >&5
17518   (eval "$ac_compile") 2>conftest.er1
17519   ac_status=$?
17520   grep -v '^ *+' conftest.er1 >conftest.err
17521   rm -f conftest.er1
17522   cat conftest.err >&5
17523   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524   (exit $ac_status); } && {
17525          test -z "$ac_c_werror_flag" ||
17526          test ! -s conftest.err
17527        } && test -s conftest.$ac_objext; then
17528   cat >conftest.$ac_ext <<_ACEOF
17529 /* confdefs.h.  */
17530 _ACEOF
17531 cat confdefs.h >>conftest.$ac_ext
17532 cat >>conftest.$ac_ext <<_ACEOF
17533 /* end confdefs.h.  */
17534 #ifdef HAVE_GETOPT_H
17535 #include <getopt.h>
17536 #endif
17537
17538 int
17539 main ()
17540 {
17541 if (sizeof ((struct option)))
17542           return 0;
17543   ;
17544   return 0;
17545 }
17546 _ACEOF
17547 rm -f conftest.$ac_objext
17548 if { (ac_try="$ac_compile"
17549 case "(($ac_try" in
17550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17551   *) ac_try_echo=$ac_try;;
17552 esac
17553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17554 $as_echo "$ac_try_echo") >&5
17555   (eval "$ac_compile") 2>conftest.er1
17556   ac_status=$?
17557   grep -v '^ *+' conftest.er1 >conftest.err
17558   rm -f conftest.er1
17559   cat conftest.err >&5
17560   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561   (exit $ac_status); } && {
17562          test -z "$ac_c_werror_flag" ||
17563          test ! -s conftest.err
17564        } && test -s conftest.$ac_objext; then
17565   :
17566 else
17567   $as_echo "$as_me: failed program was:" >&5
17568 sed 's/^/| /' conftest.$ac_ext >&5
17569
17570         ac_cv_type_struct_option=yes
17571 fi
17572
17573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17574 else
17575   $as_echo "$as_me: failed program was:" >&5
17576 sed 's/^/| /' conftest.$ac_ext >&5
17577
17578
17579 fi
17580
17581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17582 fi
17583 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
17584 $as_echo "$ac_cv_type_struct_option" >&6; }
17585 if test "x$ac_cv_type_struct_option" = x""yes; then
17586
17587 cat >>confdefs.h <<_ACEOF
17588 #define HAVE_STRUCT_OPTION 1
17589 _ACEOF
17590
17591
17592 fi
17593
17594
17595 if test "$with_zlib" = yes; then
17596   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
17597   # did not).  While we could work around the lack of z_streamp, it
17598   # seems unwise to encourage people to use such old zlib versions...
17599   { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
17600 $as_echo_n "checking for z_streamp... " >&6; }
17601 if test "${ac_cv_type_z_streamp+set}" = set; then
17602   $as_echo_n "(cached) " >&6
17603 else
17604   ac_cv_type_z_streamp=no
17605 cat >conftest.$ac_ext <<_ACEOF
17606 /* confdefs.h.  */
17607 _ACEOF
17608 cat confdefs.h >>conftest.$ac_ext
17609 cat >>conftest.$ac_ext <<_ACEOF
17610 /* end confdefs.h.  */
17611 #include <zlib.h>
17612
17613 int
17614 main ()
17615 {
17616 if (sizeof (z_streamp))
17617        return 0;
17618   ;
17619   return 0;
17620 }
17621 _ACEOF
17622 rm -f conftest.$ac_objext
17623 if { (ac_try="$ac_compile"
17624 case "(($ac_try" in
17625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17626   *) ac_try_echo=$ac_try;;
17627 esac
17628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17629 $as_echo "$ac_try_echo") >&5
17630   (eval "$ac_compile") 2>conftest.er1
17631   ac_status=$?
17632   grep -v '^ *+' conftest.er1 >conftest.err
17633   rm -f conftest.er1
17634   cat conftest.err >&5
17635   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636   (exit $ac_status); } && {
17637          test -z "$ac_c_werror_flag" ||
17638          test ! -s conftest.err
17639        } && test -s conftest.$ac_objext; then
17640   cat >conftest.$ac_ext <<_ACEOF
17641 /* confdefs.h.  */
17642 _ACEOF
17643 cat confdefs.h >>conftest.$ac_ext
17644 cat >>conftest.$ac_ext <<_ACEOF
17645 /* end confdefs.h.  */
17646 #include <zlib.h>
17647
17648 int
17649 main ()
17650 {
17651 if (sizeof ((z_streamp)))
17652           return 0;
17653   ;
17654   return 0;
17655 }
17656 _ACEOF
17657 rm -f conftest.$ac_objext
17658 if { (ac_try="$ac_compile"
17659 case "(($ac_try" in
17660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17661   *) ac_try_echo=$ac_try;;
17662 esac
17663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17664 $as_echo "$ac_try_echo") >&5
17665   (eval "$ac_compile") 2>conftest.er1
17666   ac_status=$?
17667   grep -v '^ *+' conftest.er1 >conftest.err
17668   rm -f conftest.er1
17669   cat conftest.err >&5
17670   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671   (exit $ac_status); } && {
17672          test -z "$ac_c_werror_flag" ||
17673          test ! -s conftest.err
17674        } && test -s conftest.$ac_objext; then
17675   :
17676 else
17677   $as_echo "$as_me: failed program was:" >&5
17678 sed 's/^/| /' conftest.$ac_ext >&5
17679
17680         ac_cv_type_z_streamp=yes
17681 fi
17682
17683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17684 else
17685   $as_echo "$as_me: failed program was:" >&5
17686 sed 's/^/| /' conftest.$ac_ext >&5
17687
17688
17689 fi
17690
17691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17692 fi
17693 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
17694 $as_echo "$ac_cv_type_z_streamp" >&6; }
17695 if test "x$ac_cv_type_z_streamp" = x""yes; then
17696   :
17697 else
17698   { { $as_echo "$as_me:$LINENO: error: zlib version is too old
17699 Use --without-zlib to disable zlib support." >&5
17700 $as_echo "$as_me: error: zlib version is too old
17701 Use --without-zlib to disable zlib support." >&2;}
17702    { (exit 1); exit 1; }; }
17703 fi
17704
17705 fi
17706
17707 if test "$with_krb5" = yes; then
17708 # Check for differences between MIT and Heimdal (KTH) releases
17709   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
17710 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
17711 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
17712   $as_echo_n "(cached) " >&6
17713 else
17714   cat >conftest.$ac_ext <<_ACEOF
17715 /* confdefs.h.  */
17716 _ACEOF
17717 cat confdefs.h >>conftest.$ac_ext
17718 cat >>conftest.$ac_ext <<_ACEOF
17719 /* end confdefs.h.  */
17720 #include <krb5.h>
17721
17722 int
17723 main ()
17724 {
17725 static krb5_ticket ac_aggr;
17726 if (ac_aggr.enc_part2)
17727 return 0;
17728   ;
17729   return 0;
17730 }
17731 _ACEOF
17732 rm -f conftest.$ac_objext
17733 if { (ac_try="$ac_compile"
17734 case "(($ac_try" in
17735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17736   *) ac_try_echo=$ac_try;;
17737 esac
17738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17739 $as_echo "$ac_try_echo") >&5
17740   (eval "$ac_compile") 2>conftest.er1
17741   ac_status=$?
17742   grep -v '^ *+' conftest.er1 >conftest.err
17743   rm -f conftest.er1
17744   cat conftest.err >&5
17745   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746   (exit $ac_status); } && {
17747          test -z "$ac_c_werror_flag" ||
17748          test ! -s conftest.err
17749        } && test -s conftest.$ac_objext; then
17750   ac_cv_member_krb5_ticket_enc_part2=yes
17751 else
17752   $as_echo "$as_me: failed program was:" >&5
17753 sed 's/^/| /' conftest.$ac_ext >&5
17754
17755         cat >conftest.$ac_ext <<_ACEOF
17756 /* confdefs.h.  */
17757 _ACEOF
17758 cat confdefs.h >>conftest.$ac_ext
17759 cat >>conftest.$ac_ext <<_ACEOF
17760 /* end confdefs.h.  */
17761 #include <krb5.h>
17762
17763 int
17764 main ()
17765 {
17766 static krb5_ticket ac_aggr;
17767 if (sizeof ac_aggr.enc_part2)
17768 return 0;
17769   ;
17770   return 0;
17771 }
17772 _ACEOF
17773 rm -f conftest.$ac_objext
17774 if { (ac_try="$ac_compile"
17775 case "(($ac_try" in
17776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17777   *) ac_try_echo=$ac_try;;
17778 esac
17779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17780 $as_echo "$ac_try_echo") >&5
17781   (eval "$ac_compile") 2>conftest.er1
17782   ac_status=$?
17783   grep -v '^ *+' conftest.er1 >conftest.err
17784   rm -f conftest.er1
17785   cat conftest.err >&5
17786   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787   (exit $ac_status); } && {
17788          test -z "$ac_c_werror_flag" ||
17789          test ! -s conftest.err
17790        } && test -s conftest.$ac_objext; then
17791   ac_cv_member_krb5_ticket_enc_part2=yes
17792 else
17793   $as_echo "$as_me: failed program was:" >&5
17794 sed 's/^/| /' conftest.$ac_ext >&5
17795
17796         ac_cv_member_krb5_ticket_enc_part2=no
17797 fi
17798
17799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17800 fi
17801
17802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17803 fi
17804 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
17805 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
17806 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
17807
17808 cat >>confdefs.h <<_ACEOF
17809 #define HAVE_KRB5_TICKET_ENC_PART2 1
17810 _ACEOF
17811
17812
17813 else
17814   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
17815 $as_echo_n "checking for krb5_ticket.client... " >&6; }
17816 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
17817   $as_echo_n "(cached) " >&6
17818 else
17819   cat >conftest.$ac_ext <<_ACEOF
17820 /* confdefs.h.  */
17821 _ACEOF
17822 cat confdefs.h >>conftest.$ac_ext
17823 cat >>conftest.$ac_ext <<_ACEOF
17824 /* end confdefs.h.  */
17825 #include <krb5.h>
17826
17827 int
17828 main ()
17829 {
17830 static krb5_ticket ac_aggr;
17831 if (ac_aggr.client)
17832 return 0;
17833   ;
17834   return 0;
17835 }
17836 _ACEOF
17837 rm -f conftest.$ac_objext
17838 if { (ac_try="$ac_compile"
17839 case "(($ac_try" in
17840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17841   *) ac_try_echo=$ac_try;;
17842 esac
17843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17844 $as_echo "$ac_try_echo") >&5
17845   (eval "$ac_compile") 2>conftest.er1
17846   ac_status=$?
17847   grep -v '^ *+' conftest.er1 >conftest.err
17848   rm -f conftest.er1
17849   cat conftest.err >&5
17850   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851   (exit $ac_status); } && {
17852          test -z "$ac_c_werror_flag" ||
17853          test ! -s conftest.err
17854        } && test -s conftest.$ac_objext; then
17855   ac_cv_member_krb5_ticket_client=yes
17856 else
17857   $as_echo "$as_me: failed program was:" >&5
17858 sed 's/^/| /' conftest.$ac_ext >&5
17859
17860         cat >conftest.$ac_ext <<_ACEOF
17861 /* confdefs.h.  */
17862 _ACEOF
17863 cat confdefs.h >>conftest.$ac_ext
17864 cat >>conftest.$ac_ext <<_ACEOF
17865 /* end confdefs.h.  */
17866 #include <krb5.h>
17867
17868 int
17869 main ()
17870 {
17871 static krb5_ticket ac_aggr;
17872 if (sizeof ac_aggr.client)
17873 return 0;
17874   ;
17875   return 0;
17876 }
17877 _ACEOF
17878 rm -f conftest.$ac_objext
17879 if { (ac_try="$ac_compile"
17880 case "(($ac_try" in
17881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17882   *) ac_try_echo=$ac_try;;
17883 esac
17884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17885 $as_echo "$ac_try_echo") >&5
17886   (eval "$ac_compile") 2>conftest.er1
17887   ac_status=$?
17888   grep -v '^ *+' conftest.er1 >conftest.err
17889   rm -f conftest.er1
17890   cat conftest.err >&5
17891   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892   (exit $ac_status); } && {
17893          test -z "$ac_c_werror_flag" ||
17894          test ! -s conftest.err
17895        } && test -s conftest.$ac_objext; then
17896   ac_cv_member_krb5_ticket_client=yes
17897 else
17898   $as_echo "$as_me: failed program was:" >&5
17899 sed 's/^/| /' conftest.$ac_ext >&5
17900
17901         ac_cv_member_krb5_ticket_client=no
17902 fi
17903
17904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17905 fi
17906
17907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17908 fi
17909 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
17910 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
17911 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
17912
17913 cat >>confdefs.h <<_ACEOF
17914 #define HAVE_KRB5_TICKET_CLIENT 1
17915 _ACEOF
17916
17917
17918 else
17919   { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
17920 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
17921    { (exit 1); exit 1; }; }
17922 fi
17923
17924 fi
17925
17926   { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
17927 $as_echo_n "checking for krb5_error.text.data... " >&6; }
17928 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
17929   $as_echo_n "(cached) " >&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 #include <krb5.h>
17938
17939 int
17940 main ()
17941 {
17942 static krb5_error ac_aggr;
17943 if (ac_aggr.text.data)
17944 return 0;
17945   ;
17946   return 0;
17947 }
17948 _ACEOF
17949 rm -f conftest.$ac_objext
17950 if { (ac_try="$ac_compile"
17951 case "(($ac_try" in
17952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17953   *) ac_try_echo=$ac_try;;
17954 esac
17955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17956 $as_echo "$ac_try_echo") >&5
17957   (eval "$ac_compile") 2>conftest.er1
17958   ac_status=$?
17959   grep -v '^ *+' conftest.er1 >conftest.err
17960   rm -f conftest.er1
17961   cat conftest.err >&5
17962   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963   (exit $ac_status); } && {
17964          test -z "$ac_c_werror_flag" ||
17965          test ! -s conftest.err
17966        } && test -s conftest.$ac_objext; then
17967   ac_cv_member_krb5_error_text_data=yes
17968 else
17969   $as_echo "$as_me: failed program was:" >&5
17970 sed 's/^/| /' conftest.$ac_ext >&5
17971
17972         cat >conftest.$ac_ext <<_ACEOF
17973 /* confdefs.h.  */
17974 _ACEOF
17975 cat confdefs.h >>conftest.$ac_ext
17976 cat >>conftest.$ac_ext <<_ACEOF
17977 /* end confdefs.h.  */
17978 #include <krb5.h>
17979
17980 int
17981 main ()
17982 {
17983 static krb5_error ac_aggr;
17984 if (sizeof ac_aggr.text.data)
17985 return 0;
17986   ;
17987   return 0;
17988 }
17989 _ACEOF
17990 rm -f conftest.$ac_objext
17991 if { (ac_try="$ac_compile"
17992 case "(($ac_try" in
17993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17994   *) ac_try_echo=$ac_try;;
17995 esac
17996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17997 $as_echo "$ac_try_echo") >&5
17998   (eval "$ac_compile") 2>conftest.er1
17999   ac_status=$?
18000   grep -v '^ *+' conftest.er1 >conftest.err
18001   rm -f conftest.er1
18002   cat conftest.err >&5
18003   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004   (exit $ac_status); } && {
18005          test -z "$ac_c_werror_flag" ||
18006          test ! -s conftest.err
18007        } && test -s conftest.$ac_objext; then
18008   ac_cv_member_krb5_error_text_data=yes
18009 else
18010   $as_echo "$as_me: failed program was:" >&5
18011 sed 's/^/| /' conftest.$ac_ext >&5
18012
18013         ac_cv_member_krb5_error_text_data=no
18014 fi
18015
18016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18017 fi
18018
18019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18020 fi
18021 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
18022 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
18023 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
18024
18025 cat >>confdefs.h <<_ACEOF
18026 #define HAVE_KRB5_ERROR_TEXT_DATA 1
18027 _ACEOF
18028
18029
18030 else
18031   { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
18032 $as_echo_n "checking for krb5_error.e_data... " >&6; }
18033 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
18034   $as_echo_n "(cached) " >&6
18035 else
18036   cat >conftest.$ac_ext <<_ACEOF
18037 /* confdefs.h.  */
18038 _ACEOF
18039 cat confdefs.h >>conftest.$ac_ext
18040 cat >>conftest.$ac_ext <<_ACEOF
18041 /* end confdefs.h.  */
18042 #include <krb5.h>
18043
18044 int
18045 main ()
18046 {
18047 static krb5_error ac_aggr;
18048 if (ac_aggr.e_data)
18049 return 0;
18050   ;
18051   return 0;
18052 }
18053 _ACEOF
18054 rm -f conftest.$ac_objext
18055 if { (ac_try="$ac_compile"
18056 case "(($ac_try" in
18057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18058   *) ac_try_echo=$ac_try;;
18059 esac
18060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18061 $as_echo "$ac_try_echo") >&5
18062   (eval "$ac_compile") 2>conftest.er1
18063   ac_status=$?
18064   grep -v '^ *+' conftest.er1 >conftest.err
18065   rm -f conftest.er1
18066   cat conftest.err >&5
18067   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068   (exit $ac_status); } && {
18069          test -z "$ac_c_werror_flag" ||
18070          test ! -s conftest.err
18071        } && test -s conftest.$ac_objext; then
18072   ac_cv_member_krb5_error_e_data=yes
18073 else
18074   $as_echo "$as_me: failed program was:" >&5
18075 sed 's/^/| /' conftest.$ac_ext >&5
18076
18077         cat >conftest.$ac_ext <<_ACEOF
18078 /* confdefs.h.  */
18079 _ACEOF
18080 cat confdefs.h >>conftest.$ac_ext
18081 cat >>conftest.$ac_ext <<_ACEOF
18082 /* end confdefs.h.  */
18083 #include <krb5.h>
18084
18085 int
18086 main ()
18087 {
18088 static krb5_error ac_aggr;
18089 if (sizeof ac_aggr.e_data)
18090 return 0;
18091   ;
18092   return 0;
18093 }
18094 _ACEOF
18095 rm -f conftest.$ac_objext
18096 if { (ac_try="$ac_compile"
18097 case "(($ac_try" in
18098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18099   *) ac_try_echo=$ac_try;;
18100 esac
18101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18102 $as_echo "$ac_try_echo") >&5
18103   (eval "$ac_compile") 2>conftest.er1
18104   ac_status=$?
18105   grep -v '^ *+' conftest.er1 >conftest.err
18106   rm -f conftest.er1
18107   cat conftest.err >&5
18108   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109   (exit $ac_status); } && {
18110          test -z "$ac_c_werror_flag" ||
18111          test ! -s conftest.err
18112        } && test -s conftest.$ac_objext; then
18113   ac_cv_member_krb5_error_e_data=yes
18114 else
18115   $as_echo "$as_me: failed program was:" >&5
18116 sed 's/^/| /' conftest.$ac_ext >&5
18117
18118         ac_cv_member_krb5_error_e_data=no
18119 fi
18120
18121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18122 fi
18123
18124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18125 fi
18126 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
18127 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
18128 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
18129
18130 cat >>confdefs.h <<_ACEOF
18131 #define HAVE_KRB5_ERROR_E_DATA 1
18132 _ACEOF
18133
18134
18135 else
18136   { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
18137 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
18138    { (exit 1); exit 1; }; }
18139 fi
18140
18141 fi
18142
18143
18144 # Win32 requires headers to be loaded for __stdcall, so can't use
18145 # AC_CHECK_FUNCS here.
18146   { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
18147 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
18148   cat >conftest.$ac_ext <<_ACEOF
18149 /* confdefs.h.  */
18150 _ACEOF
18151 cat confdefs.h >>conftest.$ac_ext
18152 cat >>conftest.$ac_ext <<_ACEOF
18153 /* end confdefs.h.  */
18154 #include <krb5.h>
18155 int
18156 main ()
18157 {
18158 krb5_free_unparsed_name(NULL,NULL);
18159   ;
18160   return 0;
18161 }
18162 _ACEOF
18163 rm -f conftest.$ac_objext conftest$ac_exeext
18164 if { (ac_try="$ac_link"
18165 case "(($ac_try" in
18166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18167   *) ac_try_echo=$ac_try;;
18168 esac
18169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18170 $as_echo "$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   $as_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          test "$cross_compiling" = yes ||
18182          $as_test_x conftest$ac_exeext
18183        }; then
18184
18185 cat >>confdefs.h <<\_ACEOF
18186 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
18187 _ACEOF
18188
18189 { $as_echo "$as_me:$LINENO: result: yes" >&5
18190 $as_echo "yes" >&6; }
18191 else
18192   $as_echo "$as_me: failed program was:" >&5
18193 sed 's/^/| /' conftest.$ac_ext >&5
18194
18195         { $as_echo "$as_me:$LINENO: result: no" >&5
18196 $as_echo "no" >&6; }
18197 fi
18198
18199 rm -rf conftest.dSYM
18200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18201       conftest$ac_exeext conftest.$ac_ext
18202 fi
18203
18204 # On PPC, check if assembler supports LWARX instruction's mutex hint bit
18205 case $host_cpu in
18206   ppc*|powerpc*)
18207     { $as_echo "$as_me:$LINENO: checking whether assembler supports lwarx hint bit" >&5
18208 $as_echo_n "checking whether assembler supports lwarx hint bit... " >&6; }
18209     cat >conftest.$ac_ext <<_ACEOF
18210 /* confdefs.h.  */
18211 _ACEOF
18212 cat confdefs.h >>conftest.$ac_ext
18213 cat >>conftest.$ac_ext <<_ACEOF
18214 /* end confdefs.h.  */
18215
18216 int
18217 main ()
18218 {
18219 int a = 0; int *p = &a; int r;
18220          __asm__ __volatile__ (" lwarx %0,0,%1,1\n" : "=&r"(r) : "r"(p));
18221   ;
18222   return 0;
18223 }
18224 _ACEOF
18225 rm -f conftest.$ac_objext
18226 if { (ac_try="$ac_compile"
18227 case "(($ac_try" in
18228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18229   *) ac_try_echo=$ac_try;;
18230 esac
18231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18232 $as_echo "$ac_try_echo") >&5
18233   (eval "$ac_compile") 2>conftest.er1
18234   ac_status=$?
18235   grep -v '^ *+' conftest.er1 >conftest.err
18236   rm -f conftest.er1
18237   cat conftest.err >&5
18238   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239   (exit $ac_status); } && {
18240          test -z "$ac_c_werror_flag" ||
18241          test ! -s conftest.err
18242        } && test -s conftest.$ac_objext; then
18243   pgac_cv_have_ppc_mutex_hint=yes
18244 else
18245   $as_echo "$as_me: failed program was:" >&5
18246 sed 's/^/| /' conftest.$ac_ext >&5
18247
18248         pgac_cv_have_ppc_mutex_hint=no
18249 fi
18250
18251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18252     { $as_echo "$as_me:$LINENO: result: $pgac_cv_have_ppc_mutex_hint" >&5
18253 $as_echo "$pgac_cv_have_ppc_mutex_hint" >&6; }
18254     if test x"$pgac_cv_have_ppc_mutex_hint" = xyes ; then
18255
18256 cat >>confdefs.h <<\_ACEOF
18257 #define HAVE_PPC_LWARX_MUTEX_HINT 1
18258 _ACEOF
18259
18260     fi
18261   ;;
18262 esac
18263
18264 # Check largefile support.  You might think this is a system service not a
18265 # compiler characteristic, but you'd be wrong.  We must check this before
18266 # probing existence of related functions such as fseeko, since the largefile
18267 # defines can affect what is generated for that.
18268 if test "$PORTNAME" != "win32"; then
18269    # Check whether --enable-largefile was given.
18270 if test "${enable_largefile+set}" = set; then
18271   enableval=$enable_largefile;
18272 fi
18273
18274 if test "$enable_largefile" != no; then
18275
18276   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
18277 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18278 if test "${ac_cv_sys_largefile_CC+set}" = set; then
18279   $as_echo_n "(cached) " >&6
18280 else
18281   ac_cv_sys_largefile_CC=no
18282      if test "$GCC" != yes; then
18283        ac_save_CC=$CC
18284        while :; do
18285          # IRIX 6.2 and later do not support large files by default,
18286          # so use the C compiler's -n32 option if that helps.
18287          cat >conftest.$ac_ext <<_ACEOF
18288 /* confdefs.h.  */
18289 _ACEOF
18290 cat confdefs.h >>conftest.$ac_ext
18291 cat >>conftest.$ac_ext <<_ACEOF
18292 /* end confdefs.h.  */
18293 #include <sys/types.h>
18294  /* Check that off_t can represent 2**63 - 1 correctly.
18295     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18296     since some C++ compilers masquerading as C compilers
18297     incorrectly reject 9223372036854775807.  */
18298 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18299   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18300                        && LARGE_OFF_T % 2147483647 == 1)
18301                       ? 1 : -1];
18302 int
18303 main ()
18304 {
18305
18306   ;
18307   return 0;
18308 }
18309 _ACEOF
18310          rm -f conftest.$ac_objext
18311 if { (ac_try="$ac_compile"
18312 case "(($ac_try" in
18313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18314   *) ac_try_echo=$ac_try;;
18315 esac
18316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18317 $as_echo "$ac_try_echo") >&5
18318   (eval "$ac_compile") 2>conftest.er1
18319   ac_status=$?
18320   grep -v '^ *+' conftest.er1 >conftest.err
18321   rm -f conftest.er1
18322   cat conftest.err >&5
18323   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324   (exit $ac_status); } && {
18325          test -z "$ac_c_werror_flag" ||
18326          test ! -s conftest.err
18327        } && test -s conftest.$ac_objext; then
18328   break
18329 else
18330   $as_echo "$as_me: failed program was:" >&5
18331 sed 's/^/| /' conftest.$ac_ext >&5
18332
18333
18334 fi
18335
18336 rm -f core conftest.err conftest.$ac_objext
18337          CC="$CC -n32"
18338          rm -f conftest.$ac_objext
18339 if { (ac_try="$ac_compile"
18340 case "(($ac_try" in
18341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18342   *) ac_try_echo=$ac_try;;
18343 esac
18344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18345 $as_echo "$ac_try_echo") >&5
18346   (eval "$ac_compile") 2>conftest.er1
18347   ac_status=$?
18348   grep -v '^ *+' conftest.er1 >conftest.err
18349   rm -f conftest.er1
18350   cat conftest.err >&5
18351   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352   (exit $ac_status); } && {
18353          test -z "$ac_c_werror_flag" ||
18354          test ! -s conftest.err
18355        } && test -s conftest.$ac_objext; then
18356   ac_cv_sys_largefile_CC=' -n32'; break
18357 else
18358   $as_echo "$as_me: failed program was:" >&5
18359 sed 's/^/| /' conftest.$ac_ext >&5
18360
18361
18362 fi
18363
18364 rm -f core conftest.err conftest.$ac_objext
18365          break
18366        done
18367        CC=$ac_save_CC
18368        rm -f conftest.$ac_ext
18369     fi
18370 fi
18371 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
18372 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
18373   if test "$ac_cv_sys_largefile_CC" != no; then
18374     CC=$CC$ac_cv_sys_largefile_CC
18375   fi
18376
18377   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18378 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18379 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18380   $as_echo_n "(cached) " >&6
18381 else
18382   while :; do
18383   cat >conftest.$ac_ext <<_ACEOF
18384 /* confdefs.h.  */
18385 _ACEOF
18386 cat confdefs.h >>conftest.$ac_ext
18387 cat >>conftest.$ac_ext <<_ACEOF
18388 /* end confdefs.h.  */
18389 #include <sys/types.h>
18390  /* Check that off_t can represent 2**63 - 1 correctly.
18391     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18392     since some C++ compilers masquerading as C compilers
18393     incorrectly reject 9223372036854775807.  */
18394 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18395   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18396                        && LARGE_OFF_T % 2147483647 == 1)
18397                       ? 1 : -1];
18398 int
18399 main ()
18400 {
18401
18402   ;
18403   return 0;
18404 }
18405 _ACEOF
18406 rm -f conftest.$ac_objext
18407 if { (ac_try="$ac_compile"
18408 case "(($ac_try" in
18409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18410   *) ac_try_echo=$ac_try;;
18411 esac
18412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18413 $as_echo "$ac_try_echo") >&5
18414   (eval "$ac_compile") 2>conftest.er1
18415   ac_status=$?
18416   grep -v '^ *+' conftest.er1 >conftest.err
18417   rm -f conftest.er1
18418   cat conftest.err >&5
18419   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420   (exit $ac_status); } && {
18421          test -z "$ac_c_werror_flag" ||
18422          test ! -s conftest.err
18423        } && test -s conftest.$ac_objext; then
18424   ac_cv_sys_file_offset_bits=no; break
18425 else
18426   $as_echo "$as_me: failed program was:" >&5
18427 sed 's/^/| /' conftest.$ac_ext >&5
18428
18429
18430 fi
18431
18432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18433   cat >conftest.$ac_ext <<_ACEOF
18434 /* confdefs.h.  */
18435 _ACEOF
18436 cat confdefs.h >>conftest.$ac_ext
18437 cat >>conftest.$ac_ext <<_ACEOF
18438 /* end confdefs.h.  */
18439 #define _FILE_OFFSET_BITS 64
18440 #include <sys/types.h>
18441  /* Check that off_t can represent 2**63 - 1 correctly.
18442     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18443     since some C++ compilers masquerading as C compilers
18444     incorrectly reject 9223372036854775807.  */
18445 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18446   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18447                        && LARGE_OFF_T % 2147483647 == 1)
18448                       ? 1 : -1];
18449 int
18450 main ()
18451 {
18452
18453   ;
18454   return 0;
18455 }
18456 _ACEOF
18457 rm -f conftest.$ac_objext
18458 if { (ac_try="$ac_compile"
18459 case "(($ac_try" in
18460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18461   *) ac_try_echo=$ac_try;;
18462 esac
18463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18464 $as_echo "$ac_try_echo") >&5
18465   (eval "$ac_compile") 2>conftest.er1
18466   ac_status=$?
18467   grep -v '^ *+' conftest.er1 >conftest.err
18468   rm -f conftest.er1
18469   cat conftest.err >&5
18470   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471   (exit $ac_status); } && {
18472          test -z "$ac_c_werror_flag" ||
18473          test ! -s conftest.err
18474        } && test -s conftest.$ac_objext; then
18475   ac_cv_sys_file_offset_bits=64; break
18476 else
18477   $as_echo "$as_me: failed program was:" >&5
18478 sed 's/^/| /' conftest.$ac_ext >&5
18479
18480
18481 fi
18482
18483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18484   ac_cv_sys_file_offset_bits=unknown
18485   break
18486 done
18487 fi
18488 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18489 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18490 case $ac_cv_sys_file_offset_bits in #(
18491   no | unknown) ;;
18492   *)
18493 cat >>confdefs.h <<_ACEOF
18494 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18495 _ACEOF
18496 ;;
18497 esac
18498 rm -rf conftest*
18499   if test $ac_cv_sys_file_offset_bits = unknown; then
18500     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18501 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18502 if test "${ac_cv_sys_large_files+set}" = set; then
18503   $as_echo_n "(cached) " >&6
18504 else
18505   while :; do
18506   cat >conftest.$ac_ext <<_ACEOF
18507 /* confdefs.h.  */
18508 _ACEOF
18509 cat confdefs.h >>conftest.$ac_ext
18510 cat >>conftest.$ac_ext <<_ACEOF
18511 /* end confdefs.h.  */
18512 #include <sys/types.h>
18513  /* Check that off_t can represent 2**63 - 1 correctly.
18514     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18515     since some C++ compilers masquerading as C compilers
18516     incorrectly reject 9223372036854775807.  */
18517 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18518   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18519                        && LARGE_OFF_T % 2147483647 == 1)
18520                       ? 1 : -1];
18521 int
18522 main ()
18523 {
18524
18525   ;
18526   return 0;
18527 }
18528 _ACEOF
18529 rm -f conftest.$ac_objext
18530 if { (ac_try="$ac_compile"
18531 case "(($ac_try" in
18532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18533   *) ac_try_echo=$ac_try;;
18534 esac
18535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18536 $as_echo "$ac_try_echo") >&5
18537   (eval "$ac_compile") 2>conftest.er1
18538   ac_status=$?
18539   grep -v '^ *+' conftest.er1 >conftest.err
18540   rm -f conftest.er1
18541   cat conftest.err >&5
18542   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543   (exit $ac_status); } && {
18544          test -z "$ac_c_werror_flag" ||
18545          test ! -s conftest.err
18546        } && test -s conftest.$ac_objext; then
18547   ac_cv_sys_large_files=no; break
18548 else
18549   $as_echo "$as_me: failed program was:" >&5
18550 sed 's/^/| /' conftest.$ac_ext >&5
18551
18552
18553 fi
18554
18555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18556   cat >conftest.$ac_ext <<_ACEOF
18557 /* confdefs.h.  */
18558 _ACEOF
18559 cat confdefs.h >>conftest.$ac_ext
18560 cat >>conftest.$ac_ext <<_ACEOF
18561 /* end confdefs.h.  */
18562 #define _LARGE_FILES 1
18563 #include <sys/types.h>
18564  /* Check that off_t can represent 2**63 - 1 correctly.
18565     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18566     since some C++ compilers masquerading as C compilers
18567     incorrectly reject 9223372036854775807.  */
18568 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18569   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18570                        && LARGE_OFF_T % 2147483647 == 1)
18571                       ? 1 : -1];
18572 int
18573 main ()
18574 {
18575
18576   ;
18577   return 0;
18578 }
18579 _ACEOF
18580 rm -f conftest.$ac_objext
18581 if { (ac_try="$ac_compile"
18582 case "(($ac_try" in
18583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18584   *) ac_try_echo=$ac_try;;
18585 esac
18586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18587 $as_echo "$ac_try_echo") >&5
18588   (eval "$ac_compile") 2>conftest.er1
18589   ac_status=$?
18590   grep -v '^ *+' conftest.er1 >conftest.err
18591   rm -f conftest.er1
18592   cat conftest.err >&5
18593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594   (exit $ac_status); } && {
18595          test -z "$ac_c_werror_flag" ||
18596          test ! -s conftest.err
18597        } && test -s conftest.$ac_objext; then
18598   ac_cv_sys_large_files=1; break
18599 else
18600   $as_echo "$as_me: failed program was:" >&5
18601 sed 's/^/| /' conftest.$ac_ext >&5
18602
18603
18604 fi
18605
18606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18607   ac_cv_sys_large_files=unknown
18608   break
18609 done
18610 fi
18611 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18612 $as_echo "$ac_cv_sys_large_files" >&6; }
18613 case $ac_cv_sys_large_files in #(
18614   no | unknown) ;;
18615   *)
18616 cat >>confdefs.h <<_ACEOF
18617 #define _LARGE_FILES $ac_cv_sys_large_files
18618 _ACEOF
18619 ;;
18620 esac
18621 rm -rf conftest*
18622   fi
18623 fi
18624
18625 fi
18626
18627 # Check for largefile support (must be after AC_SYS_LARGEFILE)
18628 # The cast to long int works around a bug in the HP C Compiler
18629 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18630 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18631 # This bug is HP SR number 8606223364.
18632 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
18633 $as_echo_n "checking size of off_t... " >&6; }
18634 if test "${ac_cv_sizeof_off_t+set}" = set; then
18635   $as_echo_n "(cached) " >&6
18636 else
18637   if test "$cross_compiling" = yes; then
18638   # Depending upon the size, compute the lo and hi bounds.
18639 cat >conftest.$ac_ext <<_ACEOF
18640 /* confdefs.h.  */
18641 _ACEOF
18642 cat confdefs.h >>conftest.$ac_ext
18643 cat >>conftest.$ac_ext <<_ACEOF
18644 /* end confdefs.h.  */
18645 $ac_includes_default
18646 int
18647 main ()
18648 {
18649 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
18650 test_array [0] = 0
18651
18652   ;
18653   return 0;
18654 }
18655 _ACEOF
18656 rm -f conftest.$ac_objext
18657 if { (ac_try="$ac_compile"
18658 case "(($ac_try" in
18659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18660   *) ac_try_echo=$ac_try;;
18661 esac
18662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18663 $as_echo "$ac_try_echo") >&5
18664   (eval "$ac_compile") 2>conftest.er1
18665   ac_status=$?
18666   grep -v '^ *+' conftest.er1 >conftest.err
18667   rm -f conftest.er1
18668   cat conftest.err >&5
18669   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670   (exit $ac_status); } && {
18671          test -z "$ac_c_werror_flag" ||
18672          test ! -s conftest.err
18673        } && test -s conftest.$ac_objext; then
18674   ac_lo=0 ac_mid=0
18675   while :; do
18676     cat >conftest.$ac_ext <<_ACEOF
18677 /* confdefs.h.  */
18678 _ACEOF
18679 cat confdefs.h >>conftest.$ac_ext
18680 cat >>conftest.$ac_ext <<_ACEOF
18681 /* end confdefs.h.  */
18682 $ac_includes_default
18683 int
18684 main ()
18685 {
18686 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18687 test_array [0] = 0
18688
18689   ;
18690   return 0;
18691 }
18692 _ACEOF
18693 rm -f conftest.$ac_objext
18694 if { (ac_try="$ac_compile"
18695 case "(($ac_try" in
18696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18697   *) ac_try_echo=$ac_try;;
18698 esac
18699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18700 $as_echo "$ac_try_echo") >&5
18701   (eval "$ac_compile") 2>conftest.er1
18702   ac_status=$?
18703   grep -v '^ *+' conftest.er1 >conftest.err
18704   rm -f conftest.er1
18705   cat conftest.err >&5
18706   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707   (exit $ac_status); } && {
18708          test -z "$ac_c_werror_flag" ||
18709          test ! -s conftest.err
18710        } && test -s conftest.$ac_objext; then
18711   ac_hi=$ac_mid; break
18712 else
18713   $as_echo "$as_me: failed program was:" >&5
18714 sed 's/^/| /' conftest.$ac_ext >&5
18715
18716         ac_lo=`expr $ac_mid + 1`
18717                         if test $ac_lo -le $ac_mid; then
18718                           ac_lo= ac_hi=
18719                           break
18720                         fi
18721                         ac_mid=`expr 2 '*' $ac_mid + 1`
18722 fi
18723
18724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18725   done
18726 else
18727   $as_echo "$as_me: failed program was:" >&5
18728 sed 's/^/| /' conftest.$ac_ext >&5
18729
18730         cat >conftest.$ac_ext <<_ACEOF
18731 /* confdefs.h.  */
18732 _ACEOF
18733 cat confdefs.h >>conftest.$ac_ext
18734 cat >>conftest.$ac_ext <<_ACEOF
18735 /* end confdefs.h.  */
18736 $ac_includes_default
18737 int
18738 main ()
18739 {
18740 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
18741 test_array [0] = 0
18742
18743   ;
18744   return 0;
18745 }
18746 _ACEOF
18747 rm -f conftest.$ac_objext
18748 if { (ac_try="$ac_compile"
18749 case "(($ac_try" in
18750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18751   *) ac_try_echo=$ac_try;;
18752 esac
18753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18754 $as_echo "$ac_try_echo") >&5
18755   (eval "$ac_compile") 2>conftest.er1
18756   ac_status=$?
18757   grep -v '^ *+' conftest.er1 >conftest.err
18758   rm -f conftest.er1
18759   cat conftest.err >&5
18760   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761   (exit $ac_status); } && {
18762          test -z "$ac_c_werror_flag" ||
18763          test ! -s conftest.err
18764        } && test -s conftest.$ac_objext; then
18765   ac_hi=-1 ac_mid=-1
18766   while :; do
18767     cat >conftest.$ac_ext <<_ACEOF
18768 /* confdefs.h.  */
18769 _ACEOF
18770 cat confdefs.h >>conftest.$ac_ext
18771 cat >>conftest.$ac_ext <<_ACEOF
18772 /* end confdefs.h.  */
18773 $ac_includes_default
18774 int
18775 main ()
18776 {
18777 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
18778 test_array [0] = 0
18779
18780   ;
18781   return 0;
18782 }
18783 _ACEOF
18784 rm -f conftest.$ac_objext
18785 if { (ac_try="$ac_compile"
18786 case "(($ac_try" in
18787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18788   *) ac_try_echo=$ac_try;;
18789 esac
18790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18791 $as_echo "$ac_try_echo") >&5
18792   (eval "$ac_compile") 2>conftest.er1
18793   ac_status=$?
18794   grep -v '^ *+' conftest.er1 >conftest.err
18795   rm -f conftest.er1
18796   cat conftest.err >&5
18797   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798   (exit $ac_status); } && {
18799          test -z "$ac_c_werror_flag" ||
18800          test ! -s conftest.err
18801        } && test -s conftest.$ac_objext; then
18802   ac_lo=$ac_mid; break
18803 else
18804   $as_echo "$as_me: failed program was:" >&5
18805 sed 's/^/| /' conftest.$ac_ext >&5
18806
18807         ac_hi=`expr '(' $ac_mid ')' - 1`
18808                         if test $ac_mid -le $ac_hi; then
18809                           ac_lo= ac_hi=
18810                           break
18811                         fi
18812                         ac_mid=`expr 2 '*' $ac_mid`
18813 fi
18814
18815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18816   done
18817 else
18818   $as_echo "$as_me: failed program was:" >&5
18819 sed 's/^/| /' conftest.$ac_ext >&5
18820
18821         ac_lo= ac_hi=
18822 fi
18823
18824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18825 fi
18826
18827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18828 # Binary search between lo and hi bounds.
18829 while test "x$ac_lo" != "x$ac_hi"; do
18830   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18831   cat >conftest.$ac_ext <<_ACEOF
18832 /* confdefs.h.  */
18833 _ACEOF
18834 cat confdefs.h >>conftest.$ac_ext
18835 cat >>conftest.$ac_ext <<_ACEOF
18836 /* end confdefs.h.  */
18837 $ac_includes_default
18838 int
18839 main ()
18840 {
18841 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18842 test_array [0] = 0
18843
18844   ;
18845   return 0;
18846 }
18847 _ACEOF
18848 rm -f conftest.$ac_objext
18849 if { (ac_try="$ac_compile"
18850 case "(($ac_try" in
18851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18852   *) ac_try_echo=$ac_try;;
18853 esac
18854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18855 $as_echo "$ac_try_echo") >&5
18856   (eval "$ac_compile") 2>conftest.er1
18857   ac_status=$?
18858   grep -v '^ *+' conftest.er1 >conftest.err
18859   rm -f conftest.er1
18860   cat conftest.err >&5
18861   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862   (exit $ac_status); } && {
18863          test -z "$ac_c_werror_flag" ||
18864          test ! -s conftest.err
18865        } && test -s conftest.$ac_objext; then
18866   ac_hi=$ac_mid
18867 else
18868   $as_echo "$as_me: failed program was:" >&5
18869 sed 's/^/| /' conftest.$ac_ext >&5
18870
18871         ac_lo=`expr '(' $ac_mid ')' + 1`
18872 fi
18873
18874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18875 done
18876 case $ac_lo in
18877 ?*) ac_cv_sizeof_off_t=$ac_lo;;
18878 '') if test "$ac_cv_type_off_t" = yes; then
18879      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18881 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18882 See \`config.log' for more details." >&5
18883 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18884 See \`config.log' for more details." >&2;}
18885    { (exit 77); exit 77; }; }; }
18886    else
18887      ac_cv_sizeof_off_t=0
18888    fi ;;
18889 esac
18890 else
18891   cat >conftest.$ac_ext <<_ACEOF
18892 /* confdefs.h.  */
18893 _ACEOF
18894 cat confdefs.h >>conftest.$ac_ext
18895 cat >>conftest.$ac_ext <<_ACEOF
18896 /* end confdefs.h.  */
18897 $ac_includes_default
18898 static long int longval () { return (long int) (sizeof (off_t)); }
18899 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
18900 #include <stdio.h>
18901 #include <stdlib.h>
18902 int
18903 main ()
18904 {
18905
18906   FILE *f = fopen ("conftest.val", "w");
18907   if (! f)
18908     return 1;
18909   if (((long int) (sizeof (off_t))) < 0)
18910     {
18911       long int i = longval ();
18912       if (i != ((long int) (sizeof (off_t))))
18913         return 1;
18914       fprintf (f, "%ld", i);
18915     }
18916   else
18917     {
18918       unsigned long int i = ulongval ();
18919       if (i != ((long int) (sizeof (off_t))))
18920         return 1;
18921       fprintf (f, "%lu", i);
18922     }
18923   /* Do not output a trailing newline, as this causes \r\n confusion
18924      on some platforms.  */
18925   return ferror (f) || fclose (f) != 0;
18926
18927   ;
18928   return 0;
18929 }
18930 _ACEOF
18931 rm -f conftest$ac_exeext
18932 if { (ac_try="$ac_link"
18933 case "(($ac_try" in
18934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18935   *) ac_try_echo=$ac_try;;
18936 esac
18937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18938 $as_echo "$ac_try_echo") >&5
18939   (eval "$ac_link") 2>&5
18940   ac_status=$?
18941   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18943   { (case "(($ac_try" in
18944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18945   *) ac_try_echo=$ac_try;;
18946 esac
18947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18948 $as_echo "$ac_try_echo") >&5
18949   (eval "$ac_try") 2>&5
18950   ac_status=$?
18951   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952   (exit $ac_status); }; }; then
18953   ac_cv_sizeof_off_t=`cat conftest.val`
18954 else
18955   $as_echo "$as_me: program exited with status $ac_status" >&5
18956 $as_echo "$as_me: failed program was:" >&5
18957 sed 's/^/| /' conftest.$ac_ext >&5
18958
18959 ( exit $ac_status )
18960 if test "$ac_cv_type_off_t" = yes; then
18961      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18963 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18964 See \`config.log' for more details." >&5
18965 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18966 See \`config.log' for more details." >&2;}
18967    { (exit 77); exit 77; }; }; }
18968    else
18969      ac_cv_sizeof_off_t=0
18970    fi
18971 fi
18972 rm -rf conftest.dSYM
18973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18974 fi
18975 rm -f conftest.val
18976 fi
18977 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
18978 $as_echo "$ac_cv_sizeof_off_t" >&6; }
18979
18980
18981
18982 cat >>confdefs.h <<_ACEOF
18983 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
18984 _ACEOF
18985
18986
18987
18988 # If we don't have largefile support, can't handle segsize >= 2GB.
18989 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
18990    { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
18991 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
18992    { (exit 1); exit 1; }; }
18993 fi
18994
18995
18996 ##
18997 ## Functions, global variables
18998 ##
18999
19000 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
19001 $as_echo_n "checking for int timezone... " >&6; }
19002 if test "${pgac_cv_var_int_timezone+set}" = set; then
19003   $as_echo_n "(cached) " >&6
19004 else
19005   cat >conftest.$ac_ext <<_ACEOF
19006 /* confdefs.h.  */
19007 _ACEOF
19008 cat confdefs.h >>conftest.$ac_ext
19009 cat >>conftest.$ac_ext <<_ACEOF
19010 /* end confdefs.h.  */
19011 #include <time.h>
19012 int res;
19013 int
19014 main ()
19015 {
19016 #ifndef __CYGWIN__
19017 res = timezone / 60;
19018 #else
19019 res = _timezone / 60;
19020 #endif
19021   ;
19022   return 0;
19023 }
19024 _ACEOF
19025 rm -f conftest.$ac_objext conftest$ac_exeext
19026 if { (ac_try="$ac_link"
19027 case "(($ac_try" in
19028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19029   *) ac_try_echo=$ac_try;;
19030 esac
19031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19032 $as_echo "$ac_try_echo") >&5
19033   (eval "$ac_link") 2>conftest.er1
19034   ac_status=$?
19035   grep -v '^ *+' conftest.er1 >conftest.err
19036   rm -f conftest.er1
19037   cat conftest.err >&5
19038   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039   (exit $ac_status); } && {
19040          test -z "$ac_c_werror_flag" ||
19041          test ! -s conftest.err
19042        } && test -s conftest$ac_exeext && {
19043          test "$cross_compiling" = yes ||
19044          $as_test_x conftest$ac_exeext
19045        }; then
19046   pgac_cv_var_int_timezone=yes
19047 else
19048   $as_echo "$as_me: failed program was:" >&5
19049 sed 's/^/| /' conftest.$ac_ext >&5
19050
19051         pgac_cv_var_int_timezone=no
19052 fi
19053
19054 rm -rf conftest.dSYM
19055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19056       conftest$ac_exeext conftest.$ac_ext
19057 fi
19058 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
19059 $as_echo "$pgac_cv_var_int_timezone" >&6; }
19060 if test x"$pgac_cv_var_int_timezone" = xyes ; then
19061
19062 cat >>confdefs.h <<\_ACEOF
19063 #define HAVE_INT_TIMEZONE /**/
19064 _ACEOF
19065
19066 fi
19067 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
19068 $as_echo_n "checking types of arguments for accept()... " >&6; }
19069  if test "${ac_cv_func_accept_return+set}" = set; then
19070   $as_echo_n "(cached) " >&6
19071 else
19072    if test "${ac_cv_func_accept_arg1+set}" = set; then
19073   $as_echo_n "(cached) " >&6
19074 else
19075     if test "${ac_cv_func_accept_arg2+set}" = set; then
19076   $as_echo_n "(cached) " >&6
19077 else
19078      if test "${ac_cv_func_accept_arg3+set}" = set; then
19079   $as_echo_n "(cached) " >&6
19080 else
19081       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET WSAAPI'; do
19082       for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
19083        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
19084         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
19085          cat >conftest.$ac_ext <<_ACEOF
19086 /* confdefs.h.  */
19087 _ACEOF
19088 cat confdefs.h >>conftest.$ac_ext
19089 cat >>conftest.$ac_ext <<_ACEOF
19090 /* end confdefs.h.  */
19091 #ifdef HAVE_SYS_TYPES_H
19092 #include <sys/types.h>
19093 #endif
19094 #ifdef HAVE_SYS_SOCKET_H
19095 #include <sys/socket.h>
19096 #endif
19097 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
19098 int
19099 main ()
19100 {
19101
19102   ;
19103   return 0;
19104 }
19105 _ACEOF
19106 rm -f conftest.$ac_objext
19107 if { (ac_try="$ac_compile"
19108 case "(($ac_try" in
19109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19110   *) ac_try_echo=$ac_try;;
19111 esac
19112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19113 $as_echo "$ac_try_echo") >&5
19114   (eval "$ac_compile") 2>conftest.er1
19115   ac_status=$?
19116   grep -v '^ *+' conftest.er1 >conftest.err
19117   rm -f conftest.er1
19118   cat conftest.err >&5
19119   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120   (exit $ac_status); } && {
19121          test -z "$ac_c_werror_flag" ||
19122          test ! -s conftest.err
19123        } && test -s conftest.$ac_objext; then
19124   ac_not_found=no; break 4
19125 else
19126   $as_echo "$as_me: failed program was:" >&5
19127 sed 's/^/| /' conftest.$ac_ext >&5
19128
19129         ac_not_found=yes
19130 fi
19131
19132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19133        done
19134       done
19135      done
19136     done
19137     if test "$ac_not_found" = yes; then
19138       { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
19139 $as_echo "$as_me: error: could not determine argument types" >&2;}
19140    { (exit 1); exit 1; }; }
19141     fi
19142     if test "$ac_cv_func_accept_arg3" = "void"; then
19143       ac_cv_func_accept_arg3=int
19144     fi
19145
19146 fi
19147
19148 fi
19149
19150 fi
19151
19152 fi
19153  { $as_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
19154 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
19155
19156 cat >>confdefs.h <<_ACEOF
19157 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
19158 _ACEOF
19159
19160
19161 cat >>confdefs.h <<_ACEOF
19162 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
19163 _ACEOF
19164
19165
19166 cat >>confdefs.h <<_ACEOF
19167 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
19168 _ACEOF
19169
19170
19171 cat >>confdefs.h <<_ACEOF
19172 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
19173 _ACEOF
19174
19175
19176 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
19177 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
19178 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
19179   $as_echo_n "(cached) " >&6
19180 else
19181   cat >conftest.$ac_ext <<_ACEOF
19182 /* confdefs.h.  */
19183 _ACEOF
19184 cat confdefs.h >>conftest.$ac_ext
19185 cat >>conftest.$ac_ext <<_ACEOF
19186 /* end confdefs.h.  */
19187 #include <sys/time.h>
19188 int
19189 main ()
19190 {
19191 struct timeval *tp;
19192 struct timezone *tzp;
19193 gettimeofday(tp,tzp);
19194   ;
19195   return 0;
19196 }
19197 _ACEOF
19198 rm -f conftest.$ac_objext
19199 if { (ac_try="$ac_compile"
19200 case "(($ac_try" in
19201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19202   *) ac_try_echo=$ac_try;;
19203 esac
19204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19205 $as_echo "$ac_try_echo") >&5
19206   (eval "$ac_compile") 2>conftest.er1
19207   ac_status=$?
19208   grep -v '^ *+' conftest.er1 >conftest.err
19209   rm -f conftest.er1
19210   cat conftest.err >&5
19211   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212   (exit $ac_status); } && {
19213          test -z "$ac_c_werror_flag" ||
19214          test ! -s conftest.err
19215        } && test -s conftest.$ac_objext; then
19216   pgac_cv_func_gettimeofday_1arg=no
19217 else
19218   $as_echo "$as_me: failed program was:" >&5
19219 sed 's/^/| /' conftest.$ac_ext >&5
19220
19221         pgac_cv_func_gettimeofday_1arg=yes
19222 fi
19223
19224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19225 fi
19226 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
19227 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
19228 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
19229
19230 cat >>confdefs.h <<\_ACEOF
19231 #define GETTIMEOFDAY_1ARG /**/
19232 _ACEOF
19233
19234 fi
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258 for ac_func in cbrt dlopen fdatasync getifaddrs getpeerucred getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sync_file_range towlower utime utimes wcstombs wcstombs_l
19259 do
19260 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19261 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19262 $as_echo_n "checking for $ac_func... " >&6; }
19263 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19264   $as_echo_n "(cached) " >&6
19265 else
19266   cat >conftest.$ac_ext <<_ACEOF
19267 /* confdefs.h.  */
19268 _ACEOF
19269 cat confdefs.h >>conftest.$ac_ext
19270 cat >>conftest.$ac_ext <<_ACEOF
19271 /* end confdefs.h.  */
19272 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19273    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19274 #define $ac_func innocuous_$ac_func
19275
19276 /* System header to define __stub macros and hopefully few prototypes,
19277     which can conflict with char $ac_func (); below.
19278     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19279     <limits.h> exists even on freestanding compilers.  */
19280
19281 #ifdef __STDC__
19282 # include <limits.h>
19283 #else
19284 # include <assert.h>
19285 #endif
19286
19287 #undef $ac_func
19288
19289 /* Override any GCC internal prototype to avoid an error.
19290    Use char because int might match the return type of a GCC
19291    builtin and then its argument prototype would still apply.  */
19292 #ifdef __cplusplus
19293 extern "C"
19294 #endif
19295 char $ac_func ();
19296 /* The GNU C library defines this for functions which it implements
19297     to always fail with ENOSYS.  Some functions are actually named
19298     something starting with __ and the normal name is an alias.  */
19299 #if defined __stub_$ac_func || defined __stub___$ac_func
19300 choke me
19301 #endif
19302
19303 int
19304 main ()
19305 {
19306 return $ac_func ();
19307   ;
19308   return 0;
19309 }
19310 _ACEOF
19311 rm -f conftest.$ac_objext conftest$ac_exeext
19312 if { (ac_try="$ac_link"
19313 case "(($ac_try" in
19314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19315   *) ac_try_echo=$ac_try;;
19316 esac
19317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19318 $as_echo "$ac_try_echo") >&5
19319   (eval "$ac_link") 2>conftest.er1
19320   ac_status=$?
19321   grep -v '^ *+' conftest.er1 >conftest.err
19322   rm -f conftest.er1
19323   cat conftest.err >&5
19324   $as_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_exeext && {
19329          test "$cross_compiling" = yes ||
19330          $as_test_x conftest$ac_exeext
19331        }; then
19332   eval "$as_ac_var=yes"
19333 else
19334   $as_echo "$as_me: failed program was:" >&5
19335 sed 's/^/| /' conftest.$ac_ext >&5
19336
19337         eval "$as_ac_var=no"
19338 fi
19339
19340 rm -rf conftest.dSYM
19341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19342       conftest$ac_exeext conftest.$ac_ext
19343 fi
19344 ac_res=`eval 'as_val=${'$as_ac_var'}
19345                  $as_echo "$as_val"'`
19346                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19347 $as_echo "$ac_res" >&6; }
19348 as_val=`eval 'as_val=${'$as_ac_var'}
19349                  $as_echo "$as_val"'`
19350    if test "x$as_val" = x""yes; then
19351   cat >>confdefs.h <<_ACEOF
19352 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19353 _ACEOF
19354
19355 fi
19356 done
19357
19358
19359
19360 for ac_func in fseeko
19361 do
19362 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19363 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19364 $as_echo_n "checking for $ac_func... " >&6; }
19365 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19366   $as_echo_n "(cached) " >&6
19367 else
19368   cat >conftest.$ac_ext <<_ACEOF
19369 /* confdefs.h.  */
19370 _ACEOF
19371 cat confdefs.h >>conftest.$ac_ext
19372 cat >>conftest.$ac_ext <<_ACEOF
19373 /* end confdefs.h.  */
19374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19375    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19376 #define $ac_func innocuous_$ac_func
19377
19378 /* System header to define __stub macros and hopefully few prototypes,
19379     which can conflict with char $ac_func (); below.
19380     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19381     <limits.h> exists even on freestanding compilers.  */
19382
19383 #ifdef __STDC__
19384 # include <limits.h>
19385 #else
19386 # include <assert.h>
19387 #endif
19388
19389 #undef $ac_func
19390
19391 /* Override any GCC internal prototype to avoid an error.
19392    Use char because int might match the return type of a GCC
19393    builtin and then its argument prototype would still apply.  */
19394 #ifdef __cplusplus
19395 extern "C"
19396 #endif
19397 char $ac_func ();
19398 /* The GNU C library defines this for functions which it implements
19399     to always fail with ENOSYS.  Some functions are actually named
19400     something starting with __ and the normal name is an alias.  */
19401 #if defined __stub_$ac_func || defined __stub___$ac_func
19402 choke me
19403 #endif
19404
19405 int
19406 main ()
19407 {
19408 return $ac_func ();
19409   ;
19410   return 0;
19411 }
19412 _ACEOF
19413 rm -f conftest.$ac_objext conftest$ac_exeext
19414 if { (ac_try="$ac_link"
19415 case "(($ac_try" in
19416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19417   *) ac_try_echo=$ac_try;;
19418 esac
19419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19420 $as_echo "$ac_try_echo") >&5
19421   (eval "$ac_link") 2>conftest.er1
19422   ac_status=$?
19423   grep -v '^ *+' conftest.er1 >conftest.err
19424   rm -f conftest.er1
19425   cat conftest.err >&5
19426   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427   (exit $ac_status); } && {
19428          test -z "$ac_c_werror_flag" ||
19429          test ! -s conftest.err
19430        } && test -s conftest$ac_exeext && {
19431          test "$cross_compiling" = yes ||
19432          $as_test_x conftest$ac_exeext
19433        }; then
19434   eval "$as_ac_var=yes"
19435 else
19436   $as_echo "$as_me: failed program was:" >&5
19437 sed 's/^/| /' conftest.$ac_ext >&5
19438
19439         eval "$as_ac_var=no"
19440 fi
19441
19442 rm -rf conftest.dSYM
19443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19444       conftest$ac_exeext conftest.$ac_ext
19445 fi
19446 ac_res=`eval 'as_val=${'$as_ac_var'}
19447                  $as_echo "$as_val"'`
19448                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19449 $as_echo "$ac_res" >&6; }
19450 as_val=`eval 'as_val=${'$as_ac_var'}
19451                  $as_echo "$as_val"'`
19452    if test "x$as_val" = x""yes; then
19453   cat >>confdefs.h <<_ACEOF
19454 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19455 _ACEOF
19456
19457 else
19458   case " $LIBOBJS " in
19459   *" $ac_func.$ac_objext "* ) ;;
19460   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19461  ;;
19462 esac
19463
19464 fi
19465 done
19466
19467
19468 case $host_os in
19469         # NetBSD uses a custom fseeko/ftello built on fsetpos/fgetpos
19470         # Mingw uses macros to access Win32 API calls
19471         netbsd*|mingw*)
19472
19473 cat >>confdefs.h <<\_ACEOF
19474 #define HAVE_FSEEKO 1
19475 _ACEOF
19476
19477                 ac_cv_func_fseeko=yes;;
19478         *)
19479                 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19480 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19481 if test "${ac_cv_sys_largefile_source+set}" = set; then
19482   $as_echo_n "(cached) " >&6
19483 else
19484   while :; do
19485   cat >conftest.$ac_ext <<_ACEOF
19486 /* confdefs.h.  */
19487 _ACEOF
19488 cat confdefs.h >>conftest.$ac_ext
19489 cat >>conftest.$ac_ext <<_ACEOF
19490 /* end confdefs.h.  */
19491 #include <sys/types.h> /* for off_t */
19492      #include <stdio.h>
19493 int
19494 main ()
19495 {
19496 int (*fp) (FILE *, off_t, int) = fseeko;
19497      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19498   ;
19499   return 0;
19500 }
19501 _ACEOF
19502 rm -f conftest.$ac_objext conftest$ac_exeext
19503 if { (ac_try="$ac_link"
19504 case "(($ac_try" in
19505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19506   *) ac_try_echo=$ac_try;;
19507 esac
19508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19509 $as_echo "$ac_try_echo") >&5
19510   (eval "$ac_link") 2>conftest.er1
19511   ac_status=$?
19512   grep -v '^ *+' conftest.er1 >conftest.err
19513   rm -f conftest.er1
19514   cat conftest.err >&5
19515   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516   (exit $ac_status); } && {
19517          test -z "$ac_c_werror_flag" ||
19518          test ! -s conftest.err
19519        } && test -s conftest$ac_exeext && {
19520          test "$cross_compiling" = yes ||
19521          $as_test_x conftest$ac_exeext
19522        }; then
19523   ac_cv_sys_largefile_source=no; break
19524 else
19525   $as_echo "$as_me: failed program was:" >&5
19526 sed 's/^/| /' conftest.$ac_ext >&5
19527
19528
19529 fi
19530
19531 rm -rf conftest.dSYM
19532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19533       conftest$ac_exeext conftest.$ac_ext
19534   cat >conftest.$ac_ext <<_ACEOF
19535 /* confdefs.h.  */
19536 _ACEOF
19537 cat confdefs.h >>conftest.$ac_ext
19538 cat >>conftest.$ac_ext <<_ACEOF
19539 /* end confdefs.h.  */
19540 #define _LARGEFILE_SOURCE 1
19541 #include <sys/types.h> /* for off_t */
19542      #include <stdio.h>
19543 int
19544 main ()
19545 {
19546 int (*fp) (FILE *, off_t, int) = fseeko;
19547      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19548   ;
19549   return 0;
19550 }
19551 _ACEOF
19552 rm -f conftest.$ac_objext conftest$ac_exeext
19553 if { (ac_try="$ac_link"
19554 case "(($ac_try" in
19555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19556   *) ac_try_echo=$ac_try;;
19557 esac
19558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19559 $as_echo "$ac_try_echo") >&5
19560   (eval "$ac_link") 2>conftest.er1
19561   ac_status=$?
19562   grep -v '^ *+' conftest.er1 >conftest.err
19563   rm -f conftest.er1
19564   cat conftest.err >&5
19565   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566   (exit $ac_status); } && {
19567          test -z "$ac_c_werror_flag" ||
19568          test ! -s conftest.err
19569        } && test -s conftest$ac_exeext && {
19570          test "$cross_compiling" = yes ||
19571          $as_test_x conftest$ac_exeext
19572        }; then
19573   ac_cv_sys_largefile_source=1; break
19574 else
19575   $as_echo "$as_me: failed program was:" >&5
19576 sed 's/^/| /' conftest.$ac_ext >&5
19577
19578
19579 fi
19580
19581 rm -rf conftest.dSYM
19582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19583       conftest$ac_exeext conftest.$ac_ext
19584   ac_cv_sys_largefile_source=unknown
19585   break
19586 done
19587 fi
19588 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19589 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19590 case $ac_cv_sys_largefile_source in #(
19591   no | unknown) ;;
19592   *)
19593 cat >>confdefs.h <<_ACEOF
19594 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19595 _ACEOF
19596 ;;
19597 esac
19598 rm -rf conftest*
19599
19600 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19601 # in glibc 2.1.3, but that breaks too many other things.
19602 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19603 if test $ac_cv_sys_largefile_source != unknown; then
19604
19605 cat >>confdefs.h <<\_ACEOF
19606 #define HAVE_FSEEKO 1
19607 _ACEOF
19608
19609 fi
19610 ;;
19611 esac
19612
19613 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
19614 # by calling it, 2009-04-02
19615 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
19616 if test "$PORTNAME" != "solaris"; then
19617
19618 for ac_func in posix_fadvise
19619 do
19620 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19621 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19622 $as_echo_n "checking for $ac_func... " >&6; }
19623 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19624   $as_echo_n "(cached) " >&6
19625 else
19626   cat >conftest.$ac_ext <<_ACEOF
19627 /* confdefs.h.  */
19628 _ACEOF
19629 cat confdefs.h >>conftest.$ac_ext
19630 cat >>conftest.$ac_ext <<_ACEOF
19631 /* end confdefs.h.  */
19632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19633    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19634 #define $ac_func innocuous_$ac_func
19635
19636 /* System header to define __stub macros and hopefully few prototypes,
19637     which can conflict with char $ac_func (); below.
19638     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19639     <limits.h> exists even on freestanding compilers.  */
19640
19641 #ifdef __STDC__
19642 # include <limits.h>
19643 #else
19644 # include <assert.h>
19645 #endif
19646
19647 #undef $ac_func
19648
19649 /* Override any GCC internal prototype to avoid an error.
19650    Use char because int might match the return type of a GCC
19651    builtin and then its argument prototype would still apply.  */
19652 #ifdef __cplusplus
19653 extern "C"
19654 #endif
19655 char $ac_func ();
19656 /* The GNU C library defines this for functions which it implements
19657     to always fail with ENOSYS.  Some functions are actually named
19658     something starting with __ and the normal name is an alias.  */
19659 #if defined __stub_$ac_func || defined __stub___$ac_func
19660 choke me
19661 #endif
19662
19663 int
19664 main ()
19665 {
19666 return $ac_func ();
19667   ;
19668   return 0;
19669 }
19670 _ACEOF
19671 rm -f conftest.$ac_objext conftest$ac_exeext
19672 if { (ac_try="$ac_link"
19673 case "(($ac_try" in
19674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19675   *) ac_try_echo=$ac_try;;
19676 esac
19677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19678 $as_echo "$ac_try_echo") >&5
19679   (eval "$ac_link") 2>conftest.er1
19680   ac_status=$?
19681   grep -v '^ *+' conftest.er1 >conftest.err
19682   rm -f conftest.er1
19683   cat conftest.err >&5
19684   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685   (exit $ac_status); } && {
19686          test -z "$ac_c_werror_flag" ||
19687          test ! -s conftest.err
19688        } && test -s conftest$ac_exeext && {
19689          test "$cross_compiling" = yes ||
19690          $as_test_x conftest$ac_exeext
19691        }; then
19692   eval "$as_ac_var=yes"
19693 else
19694   $as_echo "$as_me: failed program was:" >&5
19695 sed 's/^/| /' conftest.$ac_ext >&5
19696
19697         eval "$as_ac_var=no"
19698 fi
19699
19700 rm -rf conftest.dSYM
19701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19702       conftest$ac_exeext conftest.$ac_ext
19703 fi
19704 ac_res=`eval 'as_val=${'$as_ac_var'}
19705                  $as_echo "$as_val"'`
19706                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19707 $as_echo "$ac_res" >&6; }
19708 as_val=`eval 'as_val=${'$as_ac_var'}
19709                  $as_echo "$as_val"'`
19710    if test "x$as_val" = x""yes; then
19711   cat >>confdefs.h <<_ACEOF
19712 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19713 _ACEOF
19714
19715 fi
19716 done
19717
19718 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
19719 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
19720 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
19721   $as_echo_n "(cached) " >&6
19722 else
19723   cat >conftest.$ac_ext <<_ACEOF
19724 /* confdefs.h.  */
19725 _ACEOF
19726 cat confdefs.h >>conftest.$ac_ext
19727 cat >>conftest.$ac_ext <<_ACEOF
19728 /* end confdefs.h.  */
19729 #include <fcntl.h>
19730
19731 int
19732 main ()
19733 {
19734 #ifndef posix_fadvise
19735   (void) posix_fadvise;
19736 #endif
19737
19738   ;
19739   return 0;
19740 }
19741 _ACEOF
19742 rm -f conftest.$ac_objext
19743 if { (ac_try="$ac_compile"
19744 case "(($ac_try" in
19745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19746   *) ac_try_echo=$ac_try;;
19747 esac
19748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19749 $as_echo "$ac_try_echo") >&5
19750   (eval "$ac_compile") 2>conftest.er1
19751   ac_status=$?
19752   grep -v '^ *+' conftest.er1 >conftest.err
19753   rm -f conftest.er1
19754   cat conftest.err >&5
19755   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756   (exit $ac_status); } && {
19757          test -z "$ac_c_werror_flag" ||
19758          test ! -s conftest.err
19759        } && test -s conftest.$ac_objext; then
19760   ac_cv_have_decl_posix_fadvise=yes
19761 else
19762   $as_echo "$as_me: failed program was:" >&5
19763 sed 's/^/| /' conftest.$ac_ext >&5
19764
19765         ac_cv_have_decl_posix_fadvise=no
19766 fi
19767
19768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19769 fi
19770 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
19771 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
19772 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
19773
19774 cat >>confdefs.h <<_ACEOF
19775 #define HAVE_DECL_POSIX_FADVISE 1
19776 _ACEOF
19777
19778
19779 else
19780   cat >>confdefs.h <<_ACEOF
19781 #define HAVE_DECL_POSIX_FADVISE 0
19782 _ACEOF
19783
19784
19785 fi
19786
19787
19788 fi
19789
19790 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
19791 $as_echo_n "checking whether fdatasync is declared... " >&6; }
19792 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
19793   $as_echo_n "(cached) " >&6
19794 else
19795   cat >conftest.$ac_ext <<_ACEOF
19796 /* confdefs.h.  */
19797 _ACEOF
19798 cat confdefs.h >>conftest.$ac_ext
19799 cat >>conftest.$ac_ext <<_ACEOF
19800 /* end confdefs.h.  */
19801 #include <unistd.h>
19802
19803 int
19804 main ()
19805 {
19806 #ifndef fdatasync
19807   (void) fdatasync;
19808 #endif
19809
19810   ;
19811   return 0;
19812 }
19813 _ACEOF
19814 rm -f conftest.$ac_objext
19815 if { (ac_try="$ac_compile"
19816 case "(($ac_try" in
19817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19818   *) ac_try_echo=$ac_try;;
19819 esac
19820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19821 $as_echo "$ac_try_echo") >&5
19822   (eval "$ac_compile") 2>conftest.er1
19823   ac_status=$?
19824   grep -v '^ *+' conftest.er1 >conftest.err
19825   rm -f conftest.er1
19826   cat conftest.err >&5
19827   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828   (exit $ac_status); } && {
19829          test -z "$ac_c_werror_flag" ||
19830          test ! -s conftest.err
19831        } && test -s conftest.$ac_objext; then
19832   ac_cv_have_decl_fdatasync=yes
19833 else
19834   $as_echo "$as_me: failed program was:" >&5
19835 sed 's/^/| /' conftest.$ac_ext >&5
19836
19837         ac_cv_have_decl_fdatasync=no
19838 fi
19839
19840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19841 fi
19842 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
19843 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
19844 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
19845
19846 cat >>confdefs.h <<_ACEOF
19847 #define HAVE_DECL_FDATASYNC 1
19848 _ACEOF
19849
19850
19851 else
19852   cat >>confdefs.h <<_ACEOF
19853 #define HAVE_DECL_FDATASYNC 0
19854 _ACEOF
19855
19856
19857 fi
19858
19859
19860 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
19861 $as_echo_n "checking whether strlcat is declared... " >&6; }
19862 if test "${ac_cv_have_decl_strlcat+set}" = set; then
19863   $as_echo_n "(cached) " >&6
19864 else
19865   cat >conftest.$ac_ext <<_ACEOF
19866 /* confdefs.h.  */
19867 _ACEOF
19868 cat confdefs.h >>conftest.$ac_ext
19869 cat >>conftest.$ac_ext <<_ACEOF
19870 /* end confdefs.h.  */
19871 $ac_includes_default
19872 int
19873 main ()
19874 {
19875 #ifndef strlcat
19876   (void) strlcat;
19877 #endif
19878
19879   ;
19880   return 0;
19881 }
19882 _ACEOF
19883 rm -f conftest.$ac_objext
19884 if { (ac_try="$ac_compile"
19885 case "(($ac_try" in
19886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19887   *) ac_try_echo=$ac_try;;
19888 esac
19889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19890 $as_echo "$ac_try_echo") >&5
19891   (eval "$ac_compile") 2>conftest.er1
19892   ac_status=$?
19893   grep -v '^ *+' conftest.er1 >conftest.err
19894   rm -f conftest.er1
19895   cat conftest.err >&5
19896   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897   (exit $ac_status); } && {
19898          test -z "$ac_c_werror_flag" ||
19899          test ! -s conftest.err
19900        } && test -s conftest.$ac_objext; then
19901   ac_cv_have_decl_strlcat=yes
19902 else
19903   $as_echo "$as_me: failed program was:" >&5
19904 sed 's/^/| /' conftest.$ac_ext >&5
19905
19906         ac_cv_have_decl_strlcat=no
19907 fi
19908
19909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19910 fi
19911 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
19912 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
19913 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
19914
19915 cat >>confdefs.h <<_ACEOF
19916 #define HAVE_DECL_STRLCAT 1
19917 _ACEOF
19918
19919
19920 else
19921   cat >>confdefs.h <<_ACEOF
19922 #define HAVE_DECL_STRLCAT 0
19923 _ACEOF
19924
19925
19926 fi
19927 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
19928 $as_echo_n "checking whether strlcpy is declared... " >&6; }
19929 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
19930   $as_echo_n "(cached) " >&6
19931 else
19932   cat >conftest.$ac_ext <<_ACEOF
19933 /* confdefs.h.  */
19934 _ACEOF
19935 cat confdefs.h >>conftest.$ac_ext
19936 cat >>conftest.$ac_ext <<_ACEOF
19937 /* end confdefs.h.  */
19938 $ac_includes_default
19939 int
19940 main ()
19941 {
19942 #ifndef strlcpy
19943   (void) strlcpy;
19944 #endif
19945
19946   ;
19947   return 0;
19948 }
19949 _ACEOF
19950 rm -f conftest.$ac_objext
19951 if { (ac_try="$ac_compile"
19952 case "(($ac_try" in
19953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19954   *) ac_try_echo=$ac_try;;
19955 esac
19956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19957 $as_echo "$ac_try_echo") >&5
19958   (eval "$ac_compile") 2>conftest.er1
19959   ac_status=$?
19960   grep -v '^ *+' conftest.er1 >conftest.err
19961   rm -f conftest.er1
19962   cat conftest.err >&5
19963   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964   (exit $ac_status); } && {
19965          test -z "$ac_c_werror_flag" ||
19966          test ! -s conftest.err
19967        } && test -s conftest.$ac_objext; then
19968   ac_cv_have_decl_strlcpy=yes
19969 else
19970   $as_echo "$as_me: failed program was:" >&5
19971 sed 's/^/| /' conftest.$ac_ext >&5
19972
19973         ac_cv_have_decl_strlcpy=no
19974 fi
19975
19976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19977 fi
19978 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
19979 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
19980 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
19981
19982 cat >>confdefs.h <<_ACEOF
19983 #define HAVE_DECL_STRLCPY 1
19984 _ACEOF
19985
19986
19987 else
19988   cat >>confdefs.h <<_ACEOF
19989 #define HAVE_DECL_STRLCPY 0
19990 _ACEOF
19991
19992
19993 fi
19994
19995
19996 # This is probably only present on Darwin, but may as well check always
19997 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
19998 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
19999 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
20000   $as_echo_n "(cached) " >&6
20001 else
20002   cat >conftest.$ac_ext <<_ACEOF
20003 /* confdefs.h.  */
20004 _ACEOF
20005 cat confdefs.h >>conftest.$ac_ext
20006 cat >>conftest.$ac_ext <<_ACEOF
20007 /* end confdefs.h.  */
20008 #include <fcntl.h>
20009
20010 int
20011 main ()
20012 {
20013 #ifndef F_FULLFSYNC
20014   (void) F_FULLFSYNC;
20015 #endif
20016
20017   ;
20018   return 0;
20019 }
20020 _ACEOF
20021 rm -f conftest.$ac_objext
20022 if { (ac_try="$ac_compile"
20023 case "(($ac_try" in
20024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20025   *) ac_try_echo=$ac_try;;
20026 esac
20027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20028 $as_echo "$ac_try_echo") >&5
20029   (eval "$ac_compile") 2>conftest.er1
20030   ac_status=$?
20031   grep -v '^ *+' conftest.er1 >conftest.err
20032   rm -f conftest.er1
20033   cat conftest.err >&5
20034   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035   (exit $ac_status); } && {
20036          test -z "$ac_c_werror_flag" ||
20037          test ! -s conftest.err
20038        } && test -s conftest.$ac_objext; then
20039   ac_cv_have_decl_F_FULLFSYNC=yes
20040 else
20041   $as_echo "$as_me: failed program was:" >&5
20042 sed 's/^/| /' conftest.$ac_ext >&5
20043
20044         ac_cv_have_decl_F_FULLFSYNC=no
20045 fi
20046
20047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20048 fi
20049 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
20050 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
20051 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
20052
20053 cat >>confdefs.h <<_ACEOF
20054 #define HAVE_DECL_F_FULLFSYNC 1
20055 _ACEOF
20056
20057
20058 else
20059   cat >>confdefs.h <<_ACEOF
20060 #define HAVE_DECL_F_FULLFSYNC 0
20061 _ACEOF
20062
20063
20064 fi
20065
20066
20067
20068 HAVE_IPV6=no
20069 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
20070 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
20071 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
20072   $as_echo_n "(cached) " >&6
20073 else
20074   ac_cv_type_struct_sockaddr_in6=no
20075 cat >conftest.$ac_ext <<_ACEOF
20076 /* confdefs.h.  */
20077 _ACEOF
20078 cat confdefs.h >>conftest.$ac_ext
20079 cat >>conftest.$ac_ext <<_ACEOF
20080 /* end confdefs.h.  */
20081 $ac_includes_default
20082 #include <netinet/in.h>
20083
20084 int
20085 main ()
20086 {
20087 if (sizeof (struct sockaddr_in6))
20088        return 0;
20089   ;
20090   return 0;
20091 }
20092 _ACEOF
20093 rm -f conftest.$ac_objext
20094 if { (ac_try="$ac_compile"
20095 case "(($ac_try" in
20096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20097   *) ac_try_echo=$ac_try;;
20098 esac
20099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20100 $as_echo "$ac_try_echo") >&5
20101   (eval "$ac_compile") 2>conftest.er1
20102   ac_status=$?
20103   grep -v '^ *+' conftest.er1 >conftest.err
20104   rm -f conftest.er1
20105   cat conftest.err >&5
20106   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107   (exit $ac_status); } && {
20108          test -z "$ac_c_werror_flag" ||
20109          test ! -s conftest.err
20110        } && test -s conftest.$ac_objext; then
20111   cat >conftest.$ac_ext <<_ACEOF
20112 /* confdefs.h.  */
20113 _ACEOF
20114 cat confdefs.h >>conftest.$ac_ext
20115 cat >>conftest.$ac_ext <<_ACEOF
20116 /* end confdefs.h.  */
20117 $ac_includes_default
20118 #include <netinet/in.h>
20119
20120 int
20121 main ()
20122 {
20123 if (sizeof ((struct sockaddr_in6)))
20124           return 0;
20125   ;
20126   return 0;
20127 }
20128 _ACEOF
20129 rm -f conftest.$ac_objext
20130 if { (ac_try="$ac_compile"
20131 case "(($ac_try" in
20132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20133   *) ac_try_echo=$ac_try;;
20134 esac
20135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20136 $as_echo "$ac_try_echo") >&5
20137   (eval "$ac_compile") 2>conftest.er1
20138   ac_status=$?
20139   grep -v '^ *+' conftest.er1 >conftest.err
20140   rm -f conftest.er1
20141   cat conftest.err >&5
20142   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20143   (exit $ac_status); } && {
20144          test -z "$ac_c_werror_flag" ||
20145          test ! -s conftest.err
20146        } && test -s conftest.$ac_objext; then
20147   :
20148 else
20149   $as_echo "$as_me: failed program was:" >&5
20150 sed 's/^/| /' conftest.$ac_ext >&5
20151
20152         ac_cv_type_struct_sockaddr_in6=yes
20153 fi
20154
20155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20156 else
20157   $as_echo "$as_me: failed program was:" >&5
20158 sed 's/^/| /' conftest.$ac_ext >&5
20159
20160
20161 fi
20162
20163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20164 fi
20165 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
20166 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
20167 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
20168
20169 cat >>confdefs.h <<\_ACEOF
20170 #define HAVE_IPV6 1
20171 _ACEOF
20172
20173          HAVE_IPV6=yes
20174 fi
20175
20176
20177
20178 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
20179 $as_echo_n "checking for PS_STRINGS... " >&6; }
20180 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
20181   $as_echo_n "(cached) " >&6
20182 else
20183   cat >conftest.$ac_ext <<_ACEOF
20184 /* confdefs.h.  */
20185 _ACEOF
20186 cat confdefs.h >>conftest.$ac_ext
20187 cat >>conftest.$ac_ext <<_ACEOF
20188 /* end confdefs.h.  */
20189 #include <machine/vmparam.h>
20190 #include <sys/exec.h>
20191
20192 int
20193 main ()
20194 {
20195 PS_STRINGS->ps_nargvstr = 1;
20196 PS_STRINGS->ps_argvstr = "foo";
20197   ;
20198   return 0;
20199 }
20200 _ACEOF
20201 rm -f conftest.$ac_objext conftest$ac_exeext
20202 if { (ac_try="$ac_link"
20203 case "(($ac_try" in
20204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20205   *) ac_try_echo=$ac_try;;
20206 esac
20207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20208 $as_echo "$ac_try_echo") >&5
20209   (eval "$ac_link") 2>conftest.er1
20210   ac_status=$?
20211   grep -v '^ *+' conftest.er1 >conftest.err
20212   rm -f conftest.er1
20213   cat conftest.err >&5
20214   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215   (exit $ac_status); } && {
20216          test -z "$ac_c_werror_flag" ||
20217          test ! -s conftest.err
20218        } && test -s conftest$ac_exeext && {
20219          test "$cross_compiling" = yes ||
20220          $as_test_x conftest$ac_exeext
20221        }; then
20222   pgac_cv_var_PS_STRINGS=yes
20223 else
20224   $as_echo "$as_me: failed program was:" >&5
20225 sed 's/^/| /' conftest.$ac_ext >&5
20226
20227         pgac_cv_var_PS_STRINGS=no
20228 fi
20229
20230 rm -rf conftest.dSYM
20231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20232       conftest$ac_exeext conftest.$ac_ext
20233 fi
20234 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
20235 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
20236 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
20237
20238 cat >>confdefs.h <<\_ACEOF
20239 #define HAVE_PS_STRINGS /**/
20240 _ACEOF
20241
20242 fi
20243
20244
20245 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
20246 # is missing.  Yes, there are machines that have only one.  We may
20247 # also decide to use snprintf.c if snprintf() is present but does not
20248 # have all the features we need --- see below.
20249
20250 if test "$PORTNAME" = "win32"; then
20251   # Win32 gets snprintf.c built unconditionally.
20252   #
20253   # To properly translate all NLS languages strings, we must support the
20254   # *printf() %$ format, which allows *printf() arguments to be selected
20255   # by position in the translated string.
20256   #
20257   # libintl versions < 0.13 use the native *printf() functions, and Win32
20258   # *printf() doesn't understand %$, so we must use our /port versions,
20259   # which do understand %$. libintl versions >= 0.13 include their own
20260   # *printf versions on Win32.  The libintl 0.13 release note text is:
20261   #
20262   #   C format strings with positions, as they arise when a translator
20263   #   needs to reorder a sentence, are now supported on all platforms.
20264   #   On those few platforms (NetBSD and Woe32) for which the native
20265   #   printf()/fprintf()/... functions don't support such format
20266   #   strings, replacements are provided through <libintl.h>.
20267   #
20268   # We could use libintl >= 0.13's *printf() if we were sure that we had
20269   # a litint >= 0.13 at runtime, but seeing that there is no clean way
20270   # to guarantee that, it is best to just use our own, so we are sure to
20271   # get %$ support. In include/port.h we disable the *printf() macros
20272   # that might have been defined by libintl.
20273   #
20274   # We do this unconditionally whether NLS is used or not so we are sure
20275   # that all Win32 libraries and binaries behave the same.
20276   pgac_need_repl_snprintf=yes
20277 else
20278   pgac_need_repl_snprintf=no
20279
20280 for ac_func in snprintf
20281 do
20282 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20283 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20284 $as_echo_n "checking for $ac_func... " >&6; }
20285 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20286   $as_echo_n "(cached) " >&6
20287 else
20288   cat >conftest.$ac_ext <<_ACEOF
20289 /* confdefs.h.  */
20290 _ACEOF
20291 cat confdefs.h >>conftest.$ac_ext
20292 cat >>conftest.$ac_ext <<_ACEOF
20293 /* end confdefs.h.  */
20294 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20295    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20296 #define $ac_func innocuous_$ac_func
20297
20298 /* System header to define __stub macros and hopefully few prototypes,
20299     which can conflict with char $ac_func (); below.
20300     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20301     <limits.h> exists even on freestanding compilers.  */
20302
20303 #ifdef __STDC__
20304 # include <limits.h>
20305 #else
20306 # include <assert.h>
20307 #endif
20308
20309 #undef $ac_func
20310
20311 /* Override any GCC internal prototype to avoid an error.
20312    Use char because int might match the return type of a GCC
20313    builtin and then its argument prototype would still apply.  */
20314 #ifdef __cplusplus
20315 extern "C"
20316 #endif
20317 char $ac_func ();
20318 /* The GNU C library defines this for functions which it implements
20319     to always fail with ENOSYS.  Some functions are actually named
20320     something starting with __ and the normal name is an alias.  */
20321 #if defined __stub_$ac_func || defined __stub___$ac_func
20322 choke me
20323 #endif
20324
20325 int
20326 main ()
20327 {
20328 return $ac_func ();
20329   ;
20330   return 0;
20331 }
20332 _ACEOF
20333 rm -f conftest.$ac_objext conftest$ac_exeext
20334 if { (ac_try="$ac_link"
20335 case "(($ac_try" in
20336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20337   *) ac_try_echo=$ac_try;;
20338 esac
20339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20340 $as_echo "$ac_try_echo") >&5
20341   (eval "$ac_link") 2>conftest.er1
20342   ac_status=$?
20343   grep -v '^ *+' conftest.er1 >conftest.err
20344   rm -f conftest.er1
20345   cat conftest.err >&5
20346   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347   (exit $ac_status); } && {
20348          test -z "$ac_c_werror_flag" ||
20349          test ! -s conftest.err
20350        } && test -s conftest$ac_exeext && {
20351          test "$cross_compiling" = yes ||
20352          $as_test_x conftest$ac_exeext
20353        }; then
20354   eval "$as_ac_var=yes"
20355 else
20356   $as_echo "$as_me: failed program was:" >&5
20357 sed 's/^/| /' conftest.$ac_ext >&5
20358
20359         eval "$as_ac_var=no"
20360 fi
20361
20362 rm -rf conftest.dSYM
20363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20364       conftest$ac_exeext conftest.$ac_ext
20365 fi
20366 ac_res=`eval 'as_val=${'$as_ac_var'}
20367                  $as_echo "$as_val"'`
20368                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20369 $as_echo "$ac_res" >&6; }
20370 as_val=`eval 'as_val=${'$as_ac_var'}
20371                  $as_echo "$as_val"'`
20372    if test "x$as_val" = x""yes; then
20373   cat >>confdefs.h <<_ACEOF
20374 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20375 _ACEOF
20376
20377 else
20378   pgac_need_repl_snprintf=yes
20379 fi
20380 done
20381
20382
20383 for ac_func in vsnprintf
20384 do
20385 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20386 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20387 $as_echo_n "checking for $ac_func... " >&6; }
20388 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20389   $as_echo_n "(cached) " >&6
20390 else
20391   cat >conftest.$ac_ext <<_ACEOF
20392 /* confdefs.h.  */
20393 _ACEOF
20394 cat confdefs.h >>conftest.$ac_ext
20395 cat >>conftest.$ac_ext <<_ACEOF
20396 /* end confdefs.h.  */
20397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20398    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20399 #define $ac_func innocuous_$ac_func
20400
20401 /* System header to define __stub macros and hopefully few prototypes,
20402     which can conflict with char $ac_func (); below.
20403     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20404     <limits.h> exists even on freestanding compilers.  */
20405
20406 #ifdef __STDC__
20407 # include <limits.h>
20408 #else
20409 # include <assert.h>
20410 #endif
20411
20412 #undef $ac_func
20413
20414 /* Override any GCC internal prototype to avoid an error.
20415    Use char because int might match the return type of a GCC
20416    builtin and then its argument prototype would still apply.  */
20417 #ifdef __cplusplus
20418 extern "C"
20419 #endif
20420 char $ac_func ();
20421 /* The GNU C library defines this for functions which it implements
20422     to always fail with ENOSYS.  Some functions are actually named
20423     something starting with __ and the normal name is an alias.  */
20424 #if defined __stub_$ac_func || defined __stub___$ac_func
20425 choke me
20426 #endif
20427
20428 int
20429 main ()
20430 {
20431 return $ac_func ();
20432   ;
20433   return 0;
20434 }
20435 _ACEOF
20436 rm -f conftest.$ac_objext conftest$ac_exeext
20437 if { (ac_try="$ac_link"
20438 case "(($ac_try" in
20439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20440   *) ac_try_echo=$ac_try;;
20441 esac
20442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20443 $as_echo "$ac_try_echo") >&5
20444   (eval "$ac_link") 2>conftest.er1
20445   ac_status=$?
20446   grep -v '^ *+' conftest.er1 >conftest.err
20447   rm -f conftest.er1
20448   cat conftest.err >&5
20449   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450   (exit $ac_status); } && {
20451          test -z "$ac_c_werror_flag" ||
20452          test ! -s conftest.err
20453        } && test -s conftest$ac_exeext && {
20454          test "$cross_compiling" = yes ||
20455          $as_test_x conftest$ac_exeext
20456        }; then
20457   eval "$as_ac_var=yes"
20458 else
20459   $as_echo "$as_me: failed program was:" >&5
20460 sed 's/^/| /' conftest.$ac_ext >&5
20461
20462         eval "$as_ac_var=no"
20463 fi
20464
20465 rm -rf conftest.dSYM
20466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20467       conftest$ac_exeext conftest.$ac_ext
20468 fi
20469 ac_res=`eval 'as_val=${'$as_ac_var'}
20470                  $as_echo "$as_val"'`
20471                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20472 $as_echo "$ac_res" >&6; }
20473 as_val=`eval 'as_val=${'$as_ac_var'}
20474                  $as_echo "$as_val"'`
20475    if test "x$as_val" = x""yes; then
20476   cat >>confdefs.h <<_ACEOF
20477 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20478 _ACEOF
20479
20480 else
20481   pgac_need_repl_snprintf=yes
20482 fi
20483 done
20484
20485 fi
20486
20487
20488 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
20489 # include/c.h will provide declarations.  Note this is a separate test
20490 # from whether the functions exist in the C library --- there are
20491 # systems that have the functions but don't bother to declare them :-(
20492
20493 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
20494 $as_echo_n "checking whether snprintf is declared... " >&6; }
20495 if test "${ac_cv_have_decl_snprintf+set}" = set; then
20496   $as_echo_n "(cached) " >&6
20497 else
20498   cat >conftest.$ac_ext <<_ACEOF
20499 /* confdefs.h.  */
20500 _ACEOF
20501 cat confdefs.h >>conftest.$ac_ext
20502 cat >>conftest.$ac_ext <<_ACEOF
20503 /* end confdefs.h.  */
20504 $ac_includes_default
20505 int
20506 main ()
20507 {
20508 #ifndef snprintf
20509   (void) snprintf;
20510 #endif
20511
20512   ;
20513   return 0;
20514 }
20515 _ACEOF
20516 rm -f conftest.$ac_objext
20517 if { (ac_try="$ac_compile"
20518 case "(($ac_try" in
20519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20520   *) ac_try_echo=$ac_try;;
20521 esac
20522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20523 $as_echo "$ac_try_echo") >&5
20524   (eval "$ac_compile") 2>conftest.er1
20525   ac_status=$?
20526   grep -v '^ *+' conftest.er1 >conftest.err
20527   rm -f conftest.er1
20528   cat conftest.err >&5
20529   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530   (exit $ac_status); } && {
20531          test -z "$ac_c_werror_flag" ||
20532          test ! -s conftest.err
20533        } && test -s conftest.$ac_objext; then
20534   ac_cv_have_decl_snprintf=yes
20535 else
20536   $as_echo "$as_me: failed program was:" >&5
20537 sed 's/^/| /' conftest.$ac_ext >&5
20538
20539         ac_cv_have_decl_snprintf=no
20540 fi
20541
20542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20543 fi
20544 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
20545 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
20546 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
20547
20548 cat >>confdefs.h <<_ACEOF
20549 #define HAVE_DECL_SNPRINTF 1
20550 _ACEOF
20551
20552
20553 else
20554   cat >>confdefs.h <<_ACEOF
20555 #define HAVE_DECL_SNPRINTF 0
20556 _ACEOF
20557
20558
20559 fi
20560 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
20561 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
20562 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
20563   $as_echo_n "(cached) " >&6
20564 else
20565   cat >conftest.$ac_ext <<_ACEOF
20566 /* confdefs.h.  */
20567 _ACEOF
20568 cat confdefs.h >>conftest.$ac_ext
20569 cat >>conftest.$ac_ext <<_ACEOF
20570 /* end confdefs.h.  */
20571 $ac_includes_default
20572 int
20573 main ()
20574 {
20575 #ifndef vsnprintf
20576   (void) vsnprintf;
20577 #endif
20578
20579   ;
20580   return 0;
20581 }
20582 _ACEOF
20583 rm -f conftest.$ac_objext
20584 if { (ac_try="$ac_compile"
20585 case "(($ac_try" in
20586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20587   *) ac_try_echo=$ac_try;;
20588 esac
20589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20590 $as_echo "$ac_try_echo") >&5
20591   (eval "$ac_compile") 2>conftest.er1
20592   ac_status=$?
20593   grep -v '^ *+' conftest.er1 >conftest.err
20594   rm -f conftest.er1
20595   cat conftest.err >&5
20596   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597   (exit $ac_status); } && {
20598          test -z "$ac_c_werror_flag" ||
20599          test ! -s conftest.err
20600        } && test -s conftest.$ac_objext; then
20601   ac_cv_have_decl_vsnprintf=yes
20602 else
20603   $as_echo "$as_me: failed program was:" >&5
20604 sed 's/^/| /' conftest.$ac_ext >&5
20605
20606         ac_cv_have_decl_vsnprintf=no
20607 fi
20608
20609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20610 fi
20611 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
20612 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
20613 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
20614
20615 cat >>confdefs.h <<_ACEOF
20616 #define HAVE_DECL_VSNPRINTF 1
20617 _ACEOF
20618
20619
20620 else
20621   cat >>confdefs.h <<_ACEOF
20622 #define HAVE_DECL_VSNPRINTF 0
20623 _ACEOF
20624
20625
20626 fi
20627
20628
20629
20630
20631 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
20632 $as_echo_n "checking for isinf... " >&6; }
20633 if test "${ac_cv_func_isinf+set}" = set; then
20634   $as_echo_n "(cached) " >&6
20635 else
20636   cat >conftest.$ac_ext <<_ACEOF
20637 /* confdefs.h.  */
20638 _ACEOF
20639 cat confdefs.h >>conftest.$ac_ext
20640 cat >>conftest.$ac_ext <<_ACEOF
20641 /* end confdefs.h.  */
20642
20643 #include <math.h>
20644 double glob_double;
20645
20646 int
20647 main ()
20648 {
20649 return isinf(glob_double) ? 0 : 1;
20650   ;
20651   return 0;
20652 }
20653 _ACEOF
20654 rm -f conftest.$ac_objext conftest$ac_exeext
20655 if { (ac_try="$ac_link"
20656 case "(($ac_try" in
20657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20658   *) ac_try_echo=$ac_try;;
20659 esac
20660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20661 $as_echo "$ac_try_echo") >&5
20662   (eval "$ac_link") 2>conftest.er1
20663   ac_status=$?
20664   grep -v '^ *+' conftest.er1 >conftest.err
20665   rm -f conftest.er1
20666   cat conftest.err >&5
20667   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668   (exit $ac_status); } && {
20669          test -z "$ac_c_werror_flag" ||
20670          test ! -s conftest.err
20671        } && test -s conftest$ac_exeext && {
20672          test "$cross_compiling" = yes ||
20673          $as_test_x conftest$ac_exeext
20674        }; then
20675   ac_cv_func_isinf=yes
20676 else
20677   $as_echo "$as_me: failed program was:" >&5
20678 sed 's/^/| /' conftest.$ac_ext >&5
20679
20680         ac_cv_func_isinf=no
20681 fi
20682
20683 rm -rf conftest.dSYM
20684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20685       conftest$ac_exeext conftest.$ac_ext
20686 fi
20687 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
20688 $as_echo "$ac_cv_func_isinf" >&6; }
20689
20690 if test $ac_cv_func_isinf = yes ; then
20691
20692 cat >>confdefs.h <<\_ACEOF
20693 #define HAVE_ISINF 1
20694 _ACEOF
20695
20696 else
20697   case " $LIBOBJS " in
20698   *" isinf.$ac_objext "* ) ;;
20699   *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
20700  ;;
20701 esac
20702
20703   # Look for a way to implement a substitute for isinf()
20704
20705
20706
20707
20708 for ac_func in fpclass fp_class fp_class_d class
20709 do
20710 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20711 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20712 $as_echo_n "checking for $ac_func... " >&6; }
20713 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20714   $as_echo_n "(cached) " >&6
20715 else
20716   cat >conftest.$ac_ext <<_ACEOF
20717 /* confdefs.h.  */
20718 _ACEOF
20719 cat confdefs.h >>conftest.$ac_ext
20720 cat >>conftest.$ac_ext <<_ACEOF
20721 /* end confdefs.h.  */
20722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20723    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20724 #define $ac_func innocuous_$ac_func
20725
20726 /* System header to define __stub macros and hopefully few prototypes,
20727     which can conflict with char $ac_func (); below.
20728     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20729     <limits.h> exists even on freestanding compilers.  */
20730
20731 #ifdef __STDC__
20732 # include <limits.h>
20733 #else
20734 # include <assert.h>
20735 #endif
20736
20737 #undef $ac_func
20738
20739 /* Override any GCC internal prototype to avoid an error.
20740    Use char because int might match the return type of a GCC
20741    builtin and then its argument prototype would still apply.  */
20742 #ifdef __cplusplus
20743 extern "C"
20744 #endif
20745 char $ac_func ();
20746 /* The GNU C library defines this for functions which it implements
20747     to always fail with ENOSYS.  Some functions are actually named
20748     something starting with __ and the normal name is an alias.  */
20749 #if defined __stub_$ac_func || defined __stub___$ac_func
20750 choke me
20751 #endif
20752
20753 int
20754 main ()
20755 {
20756 return $ac_func ();
20757   ;
20758   return 0;
20759 }
20760 _ACEOF
20761 rm -f conftest.$ac_objext conftest$ac_exeext
20762 if { (ac_try="$ac_link"
20763 case "(($ac_try" in
20764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20765   *) ac_try_echo=$ac_try;;
20766 esac
20767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20768 $as_echo "$ac_try_echo") >&5
20769   (eval "$ac_link") 2>conftest.er1
20770   ac_status=$?
20771   grep -v '^ *+' conftest.er1 >conftest.err
20772   rm -f conftest.er1
20773   cat conftest.err >&5
20774   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775   (exit $ac_status); } && {
20776          test -z "$ac_c_werror_flag" ||
20777          test ! -s conftest.err
20778        } && test -s conftest$ac_exeext && {
20779          test "$cross_compiling" = yes ||
20780          $as_test_x conftest$ac_exeext
20781        }; then
20782   eval "$as_ac_var=yes"
20783 else
20784   $as_echo "$as_me: failed program was:" >&5
20785 sed 's/^/| /' conftest.$ac_ext >&5
20786
20787         eval "$as_ac_var=no"
20788 fi
20789
20790 rm -rf conftest.dSYM
20791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20792       conftest$ac_exeext conftest.$ac_ext
20793 fi
20794 ac_res=`eval 'as_val=${'$as_ac_var'}
20795                  $as_echo "$as_val"'`
20796                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20797 $as_echo "$ac_res" >&6; }
20798 as_val=`eval 'as_val=${'$as_ac_var'}
20799                  $as_echo "$as_val"'`
20800    if test "x$as_val" = x""yes; then
20801   cat >>confdefs.h <<_ACEOF
20802 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20803 _ACEOF
20804  break
20805 fi
20806 done
20807
20808 fi
20809
20810 # Some versions of libedit contain strlcpy(); so disregard that library while
20811 # checking for these standard libc functions.
20812 pgac_save_LIBS="$LIBS"
20813 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
20814
20815
20816
20817
20818
20819
20820
20821
20822
20823
20824
20825
20826 for ac_func in crypt fls getopt getrusage inet_aton random rint srandom strerror strlcat strlcpy
20827 do
20828 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20829 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20830 $as_echo_n "checking for $ac_func... " >&6; }
20831 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20832   $as_echo_n "(cached) " >&6
20833 else
20834   cat >conftest.$ac_ext <<_ACEOF
20835 /* confdefs.h.  */
20836 _ACEOF
20837 cat confdefs.h >>conftest.$ac_ext
20838 cat >>conftest.$ac_ext <<_ACEOF
20839 /* end confdefs.h.  */
20840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20841    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20842 #define $ac_func innocuous_$ac_func
20843
20844 /* System header to define __stub macros and hopefully few prototypes,
20845     which can conflict with char $ac_func (); below.
20846     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20847     <limits.h> exists even on freestanding compilers.  */
20848
20849 #ifdef __STDC__
20850 # include <limits.h>
20851 #else
20852 # include <assert.h>
20853 #endif
20854
20855 #undef $ac_func
20856
20857 /* Override any GCC internal prototype to avoid an error.
20858    Use char because int might match the return type of a GCC
20859    builtin and then its argument prototype would still apply.  */
20860 #ifdef __cplusplus
20861 extern "C"
20862 #endif
20863 char $ac_func ();
20864 /* The GNU C library defines this for functions which it implements
20865     to always fail with ENOSYS.  Some functions are actually named
20866     something starting with __ and the normal name is an alias.  */
20867 #if defined __stub_$ac_func || defined __stub___$ac_func
20868 choke me
20869 #endif
20870
20871 int
20872 main ()
20873 {
20874 return $ac_func ();
20875   ;
20876   return 0;
20877 }
20878 _ACEOF
20879 rm -f conftest.$ac_objext conftest$ac_exeext
20880 if { (ac_try="$ac_link"
20881 case "(($ac_try" in
20882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20883   *) ac_try_echo=$ac_try;;
20884 esac
20885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20886 $as_echo "$ac_try_echo") >&5
20887   (eval "$ac_link") 2>conftest.er1
20888   ac_status=$?
20889   grep -v '^ *+' conftest.er1 >conftest.err
20890   rm -f conftest.er1
20891   cat conftest.err >&5
20892   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893   (exit $ac_status); } && {
20894          test -z "$ac_c_werror_flag" ||
20895          test ! -s conftest.err
20896        } && test -s conftest$ac_exeext && {
20897          test "$cross_compiling" = yes ||
20898          $as_test_x conftest$ac_exeext
20899        }; then
20900   eval "$as_ac_var=yes"
20901 else
20902   $as_echo "$as_me: failed program was:" >&5
20903 sed 's/^/| /' conftest.$ac_ext >&5
20904
20905         eval "$as_ac_var=no"
20906 fi
20907
20908 rm -rf conftest.dSYM
20909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20910       conftest$ac_exeext conftest.$ac_ext
20911 fi
20912 ac_res=`eval 'as_val=${'$as_ac_var'}
20913                  $as_echo "$as_val"'`
20914                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20915 $as_echo "$ac_res" >&6; }
20916 as_val=`eval 'as_val=${'$as_ac_var'}
20917                  $as_echo "$as_val"'`
20918    if test "x$as_val" = x""yes; then
20919   cat >>confdefs.h <<_ACEOF
20920 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20921 _ACEOF
20922
20923 else
20924   case " $LIBOBJS " in
20925   *" $ac_func.$ac_objext "* ) ;;
20926   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20927  ;;
20928 esac
20929
20930 fi
20931 done
20932
20933
20934
20935 case $host_os in
20936
20937         # Windows uses a specialised env handler
20938         # and doesn't need a replacement getpeereid because it doesn't use
20939         # Unix sockets.
20940         mingw*)
20941
20942 cat >>confdefs.h <<\_ACEOF
20943 #define HAVE_UNSETENV 1
20944 _ACEOF
20945
20946
20947 cat >>confdefs.h <<\_ACEOF
20948 #define HAVE_GETPEEREID 1
20949 _ACEOF
20950
20951                 ac_cv_func_unsetenv=yes
20952                 ac_cv_func_getpeereid=yes;;
20953         *)
20954
20955
20956 for ac_func in unsetenv getpeereid
20957 do
20958 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20959 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20960 $as_echo_n "checking for $ac_func... " >&6; }
20961 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20962   $as_echo_n "(cached) " >&6
20963 else
20964   cat >conftest.$ac_ext <<_ACEOF
20965 /* confdefs.h.  */
20966 _ACEOF
20967 cat confdefs.h >>conftest.$ac_ext
20968 cat >>conftest.$ac_ext <<_ACEOF
20969 /* end confdefs.h.  */
20970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20971    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20972 #define $ac_func innocuous_$ac_func
20973
20974 /* System header to define __stub macros and hopefully few prototypes,
20975     which can conflict with char $ac_func (); below.
20976     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20977     <limits.h> exists even on freestanding compilers.  */
20978
20979 #ifdef __STDC__
20980 # include <limits.h>
20981 #else
20982 # include <assert.h>
20983 #endif
20984
20985 #undef $ac_func
20986
20987 /* Override any GCC internal prototype to avoid an error.
20988    Use char because int might match the return type of a GCC
20989    builtin and then its argument prototype would still apply.  */
20990 #ifdef __cplusplus
20991 extern "C"
20992 #endif
20993 char $ac_func ();
20994 /* The GNU C library defines this for functions which it implements
20995     to always fail with ENOSYS.  Some functions are actually named
20996     something starting with __ and the normal name is an alias.  */
20997 #if defined __stub_$ac_func || defined __stub___$ac_func
20998 choke me
20999 #endif
21000
21001 int
21002 main ()
21003 {
21004 return $ac_func ();
21005   ;
21006   return 0;
21007 }
21008 _ACEOF
21009 rm -f conftest.$ac_objext conftest$ac_exeext
21010 if { (ac_try="$ac_link"
21011 case "(($ac_try" in
21012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21013   *) ac_try_echo=$ac_try;;
21014 esac
21015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21016 $as_echo "$ac_try_echo") >&5
21017   (eval "$ac_link") 2>conftest.er1
21018   ac_status=$?
21019   grep -v '^ *+' conftest.er1 >conftest.err
21020   rm -f conftest.er1
21021   cat conftest.err >&5
21022   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023   (exit $ac_status); } && {
21024          test -z "$ac_c_werror_flag" ||
21025          test ! -s conftest.err
21026        } && test -s conftest$ac_exeext && {
21027          test "$cross_compiling" = yes ||
21028          $as_test_x conftest$ac_exeext
21029        }; then
21030   eval "$as_ac_var=yes"
21031 else
21032   $as_echo "$as_me: failed program was:" >&5
21033 sed 's/^/| /' conftest.$ac_ext >&5
21034
21035         eval "$as_ac_var=no"
21036 fi
21037
21038 rm -rf conftest.dSYM
21039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21040       conftest$ac_exeext conftest.$ac_ext
21041 fi
21042 ac_res=`eval 'as_val=${'$as_ac_var'}
21043                  $as_echo "$as_val"'`
21044                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21045 $as_echo "$ac_res" >&6; }
21046 as_val=`eval 'as_val=${'$as_ac_var'}
21047                  $as_echo "$as_val"'`
21048    if test "x$as_val" = x""yes; then
21049   cat >>confdefs.h <<_ACEOF
21050 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21051 _ACEOF
21052
21053 else
21054   case " $LIBOBJS " in
21055   *" $ac_func.$ac_objext "* ) ;;
21056   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21057  ;;
21058 esac
21059
21060 fi
21061 done
21062
21063
21064                 ;;
21065 esac
21066
21067
21068 LIBS="$pgac_save_LIBS"
21069
21070 # System's version of getaddrinfo(), if any, may be used only if we found
21071 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
21072 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
21073 # versions of getaddrinfo don't follow normal C call protocol.  This is OK
21074 # because we want to use our own getaddrinfo.c on Windows anyway.)
21075 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
21076
21077 for ac_func in getaddrinfo
21078 do
21079 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21080 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21081 $as_echo_n "checking for $ac_func... " >&6; }
21082 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21083   $as_echo_n "(cached) " >&6
21084 else
21085   cat >conftest.$ac_ext <<_ACEOF
21086 /* confdefs.h.  */
21087 _ACEOF
21088 cat confdefs.h >>conftest.$ac_ext
21089 cat >>conftest.$ac_ext <<_ACEOF
21090 /* end confdefs.h.  */
21091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21092    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21093 #define $ac_func innocuous_$ac_func
21094
21095 /* System header to define __stub macros and hopefully few prototypes,
21096     which can conflict with char $ac_func (); below.
21097     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21098     <limits.h> exists even on freestanding compilers.  */
21099
21100 #ifdef __STDC__
21101 # include <limits.h>
21102 #else
21103 # include <assert.h>
21104 #endif
21105
21106 #undef $ac_func
21107
21108 /* Override any GCC internal prototype to avoid an error.
21109    Use char because int might match the return type of a GCC
21110    builtin and then its argument prototype would still apply.  */
21111 #ifdef __cplusplus
21112 extern "C"
21113 #endif
21114 char $ac_func ();
21115 /* The GNU C library defines this for functions which it implements
21116     to always fail with ENOSYS.  Some functions are actually named
21117     something starting with __ and the normal name is an alias.  */
21118 #if defined __stub_$ac_func || defined __stub___$ac_func
21119 choke me
21120 #endif
21121
21122 int
21123 main ()
21124 {
21125 return $ac_func ();
21126   ;
21127   return 0;
21128 }
21129 _ACEOF
21130 rm -f conftest.$ac_objext conftest$ac_exeext
21131 if { (ac_try="$ac_link"
21132 case "(($ac_try" in
21133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21134   *) ac_try_echo=$ac_try;;
21135 esac
21136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21137 $as_echo "$ac_try_echo") >&5
21138   (eval "$ac_link") 2>conftest.er1
21139   ac_status=$?
21140   grep -v '^ *+' conftest.er1 >conftest.err
21141   rm -f conftest.er1
21142   cat conftest.err >&5
21143   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21144   (exit $ac_status); } && {
21145          test -z "$ac_c_werror_flag" ||
21146          test ! -s conftest.err
21147        } && test -s conftest$ac_exeext && {
21148          test "$cross_compiling" = yes ||
21149          $as_test_x conftest$ac_exeext
21150        }; then
21151   eval "$as_ac_var=yes"
21152 else
21153   $as_echo "$as_me: failed program was:" >&5
21154 sed 's/^/| /' conftest.$ac_ext >&5
21155
21156         eval "$as_ac_var=no"
21157 fi
21158
21159 rm -rf conftest.dSYM
21160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21161       conftest$ac_exeext conftest.$ac_ext
21162 fi
21163 ac_res=`eval 'as_val=${'$as_ac_var'}
21164                  $as_echo "$as_val"'`
21165                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21166 $as_echo "$ac_res" >&6; }
21167 as_val=`eval 'as_val=${'$as_ac_var'}
21168                  $as_echo "$as_val"'`
21169    if test "x$as_val" = x""yes; then
21170   cat >>confdefs.h <<_ACEOF
21171 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21172 _ACEOF
21173
21174 else
21175   case " $LIBOBJS " in
21176   *" $ac_func.$ac_objext "* ) ;;
21177   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21178  ;;
21179 esac
21180
21181 fi
21182 done
21183
21184
21185 else
21186   case " $LIBOBJS " in
21187   *" getaddrinfo.$ac_objext "* ) ;;
21188   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
21189  ;;
21190 esac
21191
21192 fi
21193
21194 # Similarly, use system's getopt_long() only if system provides struct option.
21195 if test x"$ac_cv_type_struct_option" = xyes ; then
21196
21197 for ac_func in getopt_long
21198 do
21199 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21200 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21201 $as_echo_n "checking for $ac_func... " >&6; }
21202 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21203   $as_echo_n "(cached) " >&6
21204 else
21205   cat >conftest.$ac_ext <<_ACEOF
21206 /* confdefs.h.  */
21207 _ACEOF
21208 cat confdefs.h >>conftest.$ac_ext
21209 cat >>conftest.$ac_ext <<_ACEOF
21210 /* end confdefs.h.  */
21211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21212    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21213 #define $ac_func innocuous_$ac_func
21214
21215 /* System header to define __stub macros and hopefully few prototypes,
21216     which can conflict with char $ac_func (); below.
21217     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21218     <limits.h> exists even on freestanding compilers.  */
21219
21220 #ifdef __STDC__
21221 # include <limits.h>
21222 #else
21223 # include <assert.h>
21224 #endif
21225
21226 #undef $ac_func
21227
21228 /* Override any GCC internal prototype to avoid an error.
21229    Use char because int might match the return type of a GCC
21230    builtin and then its argument prototype would still apply.  */
21231 #ifdef __cplusplus
21232 extern "C"
21233 #endif
21234 char $ac_func ();
21235 /* The GNU C library defines this for functions which it implements
21236     to always fail with ENOSYS.  Some functions are actually named
21237     something starting with __ and the normal name is an alias.  */
21238 #if defined __stub_$ac_func || defined __stub___$ac_func
21239 choke me
21240 #endif
21241
21242 int
21243 main ()
21244 {
21245 return $ac_func ();
21246   ;
21247   return 0;
21248 }
21249 _ACEOF
21250 rm -f conftest.$ac_objext conftest$ac_exeext
21251 if { (ac_try="$ac_link"
21252 case "(($ac_try" in
21253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21254   *) ac_try_echo=$ac_try;;
21255 esac
21256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21257 $as_echo "$ac_try_echo") >&5
21258   (eval "$ac_link") 2>conftest.er1
21259   ac_status=$?
21260   grep -v '^ *+' conftest.er1 >conftest.err
21261   rm -f conftest.er1
21262   cat conftest.err >&5
21263   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264   (exit $ac_status); } && {
21265          test -z "$ac_c_werror_flag" ||
21266          test ! -s conftest.err
21267        } && test -s conftest$ac_exeext && {
21268          test "$cross_compiling" = yes ||
21269          $as_test_x conftest$ac_exeext
21270        }; then
21271   eval "$as_ac_var=yes"
21272 else
21273   $as_echo "$as_me: failed program was:" >&5
21274 sed 's/^/| /' conftest.$ac_ext >&5
21275
21276         eval "$as_ac_var=no"
21277 fi
21278
21279 rm -rf conftest.dSYM
21280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21281       conftest$ac_exeext conftest.$ac_ext
21282 fi
21283 ac_res=`eval 'as_val=${'$as_ac_var'}
21284                  $as_echo "$as_val"'`
21285                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21286 $as_echo "$ac_res" >&6; }
21287 as_val=`eval 'as_val=${'$as_ac_var'}
21288                  $as_echo "$as_val"'`
21289    if test "x$as_val" = x""yes; then
21290   cat >>confdefs.h <<_ACEOF
21291 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21292 _ACEOF
21293
21294 else
21295   case " $LIBOBJS " in
21296   *" $ac_func.$ac_objext "* ) ;;
21297   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21298  ;;
21299 esac
21300
21301 fi
21302 done
21303
21304
21305 else
21306   case " $LIBOBJS " in
21307   *" getopt_long.$ac_objext "* ) ;;
21308   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21309  ;;
21310 esac
21311
21312 fi
21313
21314 # Solaris' getopt() doesn't do what we want for long options, so always use
21315 # our version on that platform.
21316 if test "$PORTNAME" = "solaris"; then
21317   case " $LIBOBJS " in
21318   *" getopt.$ac_objext "* ) ;;
21319   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21320  ;;
21321 esac
21322
21323 fi
21324
21325 # mingw has adopted a GNU-centric interpretation of optind/optreset,
21326 # so always use our version on Windows.
21327 if test "$PORTNAME" = "win32"; then
21328   case " $LIBOBJS " in
21329   *" getopt.$ac_objext "* ) ;;
21330   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21331  ;;
21332 esac
21333
21334   case " $LIBOBJS " in
21335   *" getopt_long.$ac_objext "* ) ;;
21336   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21337  ;;
21338 esac
21339
21340 fi
21341
21342 # Win32 support
21343 if test "$PORTNAME" = "win32"; then
21344
21345 for ac_func in gettimeofday
21346 do
21347 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21348 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21349 $as_echo_n "checking for $ac_func... " >&6; }
21350 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21351   $as_echo_n "(cached) " >&6
21352 else
21353   cat >conftest.$ac_ext <<_ACEOF
21354 /* confdefs.h.  */
21355 _ACEOF
21356 cat confdefs.h >>conftest.$ac_ext
21357 cat >>conftest.$ac_ext <<_ACEOF
21358 /* end confdefs.h.  */
21359 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21360    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21361 #define $ac_func innocuous_$ac_func
21362
21363 /* System header to define __stub macros and hopefully few prototypes,
21364     which can conflict with char $ac_func (); below.
21365     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21366     <limits.h> exists even on freestanding compilers.  */
21367
21368 #ifdef __STDC__
21369 # include <limits.h>
21370 #else
21371 # include <assert.h>
21372 #endif
21373
21374 #undef $ac_func
21375
21376 /* Override any GCC internal prototype to avoid an error.
21377    Use char because int might match the return type of a GCC
21378    builtin and then its argument prototype would still apply.  */
21379 #ifdef __cplusplus
21380 extern "C"
21381 #endif
21382 char $ac_func ();
21383 /* The GNU C library defines this for functions which it implements
21384     to always fail with ENOSYS.  Some functions are actually named
21385     something starting with __ and the normal name is an alias.  */
21386 #if defined __stub_$ac_func || defined __stub___$ac_func
21387 choke me
21388 #endif
21389
21390 int
21391 main ()
21392 {
21393 return $ac_func ();
21394   ;
21395   return 0;
21396 }
21397 _ACEOF
21398 rm -f conftest.$ac_objext conftest$ac_exeext
21399 if { (ac_try="$ac_link"
21400 case "(($ac_try" in
21401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21402   *) ac_try_echo=$ac_try;;
21403 esac
21404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21405 $as_echo "$ac_try_echo") >&5
21406   (eval "$ac_link") 2>conftest.er1
21407   ac_status=$?
21408   grep -v '^ *+' conftest.er1 >conftest.err
21409   rm -f conftest.er1
21410   cat conftest.err >&5
21411   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412   (exit $ac_status); } && {
21413          test -z "$ac_c_werror_flag" ||
21414          test ! -s conftest.err
21415        } && test -s conftest$ac_exeext && {
21416          test "$cross_compiling" = yes ||
21417          $as_test_x conftest$ac_exeext
21418        }; then
21419   eval "$as_ac_var=yes"
21420 else
21421   $as_echo "$as_me: failed program was:" >&5
21422 sed 's/^/| /' conftest.$ac_ext >&5
21423
21424         eval "$as_ac_var=no"
21425 fi
21426
21427 rm -rf conftest.dSYM
21428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21429       conftest$ac_exeext conftest.$ac_ext
21430 fi
21431 ac_res=`eval 'as_val=${'$as_ac_var'}
21432                  $as_echo "$as_val"'`
21433                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21434 $as_echo "$ac_res" >&6; }
21435 as_val=`eval 'as_val=${'$as_ac_var'}
21436                  $as_echo "$as_val"'`
21437    if test "x$as_val" = x""yes; then
21438   cat >>confdefs.h <<_ACEOF
21439 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21440 _ACEOF
21441
21442 else
21443   case " $LIBOBJS " in
21444   *" $ac_func.$ac_objext "* ) ;;
21445   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21446  ;;
21447 esac
21448
21449 fi
21450 done
21451
21452
21453   case " $LIBOBJS " in
21454   *" kill.$ac_objext "* ) ;;
21455   *) LIBOBJS="$LIBOBJS kill.$ac_objext"
21456  ;;
21457 esac
21458
21459   case " $LIBOBJS " in
21460   *" open.$ac_objext "* ) ;;
21461   *) LIBOBJS="$LIBOBJS open.$ac_objext"
21462  ;;
21463 esac
21464
21465   case " $LIBOBJS " in
21466   *" win32env.$ac_objext "* ) ;;
21467   *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
21468  ;;
21469 esac
21470
21471   case " $LIBOBJS " in
21472   *" win32error.$ac_objext "* ) ;;
21473   *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
21474  ;;
21475 esac
21476
21477   case " $LIBOBJS " in
21478   *" win32setlocale.$ac_objext "* ) ;;
21479   *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
21480  ;;
21481 esac
21482
21483
21484 cat >>confdefs.h <<\_ACEOF
21485 #define HAVE_SYMLINK 1
21486 _ACEOF
21487
21488   { $as_echo "$as_me:$LINENO: checking for MINIDUMP_TYPE" >&5
21489 $as_echo_n "checking for MINIDUMP_TYPE... " >&6; }
21490 if test "${ac_cv_type_MINIDUMP_TYPE+set}" = set; then
21491   $as_echo_n "(cached) " >&6
21492 else
21493   ac_cv_type_MINIDUMP_TYPE=no
21494 cat >conftest.$ac_ext <<_ACEOF
21495 /* confdefs.h.  */
21496 _ACEOF
21497 cat confdefs.h >>conftest.$ac_ext
21498 cat >>conftest.$ac_ext <<_ACEOF
21499 /* end confdefs.h.  */
21500
21501 #define WIN32_LEAN_AND_MEAN
21502 #include <windows.h>
21503 #include <string.h>
21504 #include <dbghelp.h>
21505
21506 int
21507 main ()
21508 {
21509 if (sizeof (MINIDUMP_TYPE))
21510        return 0;
21511   ;
21512   return 0;
21513 }
21514 _ACEOF
21515 rm -f conftest.$ac_objext
21516 if { (ac_try="$ac_compile"
21517 case "(($ac_try" in
21518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21519   *) ac_try_echo=$ac_try;;
21520 esac
21521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21522 $as_echo "$ac_try_echo") >&5
21523   (eval "$ac_compile") 2>conftest.er1
21524   ac_status=$?
21525   grep -v '^ *+' conftest.er1 >conftest.err
21526   rm -f conftest.er1
21527   cat conftest.err >&5
21528   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529   (exit $ac_status); } && {
21530          test -z "$ac_c_werror_flag" ||
21531          test ! -s conftest.err
21532        } && test -s conftest.$ac_objext; then
21533   cat >conftest.$ac_ext <<_ACEOF
21534 /* confdefs.h.  */
21535 _ACEOF
21536 cat confdefs.h >>conftest.$ac_ext
21537 cat >>conftest.$ac_ext <<_ACEOF
21538 /* end confdefs.h.  */
21539
21540 #define WIN32_LEAN_AND_MEAN
21541 #include <windows.h>
21542 #include <string.h>
21543 #include <dbghelp.h>
21544
21545 int
21546 main ()
21547 {
21548 if (sizeof ((MINIDUMP_TYPE)))
21549           return 0;
21550   ;
21551   return 0;
21552 }
21553 _ACEOF
21554 rm -f conftest.$ac_objext
21555 if { (ac_try="$ac_compile"
21556 case "(($ac_try" in
21557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21558   *) ac_try_echo=$ac_try;;
21559 esac
21560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21561 $as_echo "$ac_try_echo") >&5
21562   (eval "$ac_compile") 2>conftest.er1
21563   ac_status=$?
21564   grep -v '^ *+' conftest.er1 >conftest.err
21565   rm -f conftest.er1
21566   cat conftest.err >&5
21567   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568   (exit $ac_status); } && {
21569          test -z "$ac_c_werror_flag" ||
21570          test ! -s conftest.err
21571        } && test -s conftest.$ac_objext; then
21572   :
21573 else
21574   $as_echo "$as_me: failed program was:" >&5
21575 sed 's/^/| /' conftest.$ac_ext >&5
21576
21577         ac_cv_type_MINIDUMP_TYPE=yes
21578 fi
21579
21580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21581 else
21582   $as_echo "$as_me: failed program was:" >&5
21583 sed 's/^/| /' conftest.$ac_ext >&5
21584
21585
21586 fi
21587
21588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21589 fi
21590 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_MINIDUMP_TYPE" >&5
21591 $as_echo "$ac_cv_type_MINIDUMP_TYPE" >&6; }
21592 if test "x$ac_cv_type_MINIDUMP_TYPE" = x""yes; then
21593
21594 cat >>confdefs.h <<_ACEOF
21595 #define HAVE_MINIDUMP_TYPE 1
21596 _ACEOF
21597
21598 pgac_minidump_type=yes
21599 else
21600   pgac_minidump_type=no
21601 fi
21602
21603 fi
21604 if test x"$pgac_minidump_type" = x"yes" ; then
21605   have_win32_dbghelp=yes
21606
21607 else
21608   have_win32_dbghelp=no
21609
21610 fi
21611
21612 if test "$with_readline" = yes; then
21613   { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
21614 $as_echo_n "checking for rl_completion_append_character... " >&6; }
21615 if test "${pgac_cv_var_rl_completion_append_character+set}" = set; then
21616   $as_echo_n "(cached) " >&6
21617 else
21618   cat >conftest.$ac_ext <<_ACEOF
21619 /* confdefs.h.  */
21620 _ACEOF
21621 cat confdefs.h >>conftest.$ac_ext
21622 cat >>conftest.$ac_ext <<_ACEOF
21623 /* end confdefs.h.  */
21624 #include <stdio.h>
21625 #ifdef HAVE_READLINE_READLINE_H
21626 # include <readline/readline.h>
21627 #elif defined(HAVE_READLINE_H)
21628 # include <readline.h>
21629 #endif
21630
21631 int
21632 main ()
21633 {
21634 rl_completion_append_character = 'x';
21635   ;
21636   return 0;
21637 }
21638 _ACEOF
21639 rm -f conftest.$ac_objext conftest$ac_exeext
21640 if { (ac_try="$ac_link"
21641 case "(($ac_try" in
21642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21643   *) ac_try_echo=$ac_try;;
21644 esac
21645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21646 $as_echo "$ac_try_echo") >&5
21647   (eval "$ac_link") 2>conftest.er1
21648   ac_status=$?
21649   grep -v '^ *+' conftest.er1 >conftest.err
21650   rm -f conftest.er1
21651   cat conftest.err >&5
21652   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653   (exit $ac_status); } && {
21654          test -z "$ac_c_werror_flag" ||
21655          test ! -s conftest.err
21656        } && test -s conftest$ac_exeext && {
21657          test "$cross_compiling" = yes ||
21658          $as_test_x conftest$ac_exeext
21659        }; then
21660   pgac_cv_var_rl_completion_append_character=yes
21661 else
21662   $as_echo "$as_me: failed program was:" >&5
21663 sed 's/^/| /' conftest.$ac_ext >&5
21664
21665         pgac_cv_var_rl_completion_append_character=no
21666 fi
21667
21668 rm -rf conftest.dSYM
21669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21670       conftest$ac_exeext conftest.$ac_ext
21671 fi
21672 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_rl_completion_append_character" >&5
21673 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
21674 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
21675
21676 cat >>confdefs.h <<\_ACEOF
21677 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
21678 _ACEOF
21679
21680 fi
21681
21682
21683 for ac_func in rl_completion_matches rl_filename_completion_function
21684 do
21685 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21686 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21687 $as_echo_n "checking for $ac_func... " >&6; }
21688 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21689   $as_echo_n "(cached) " >&6
21690 else
21691   cat >conftest.$ac_ext <<_ACEOF
21692 /* confdefs.h.  */
21693 _ACEOF
21694 cat confdefs.h >>conftest.$ac_ext
21695 cat >>conftest.$ac_ext <<_ACEOF
21696 /* end confdefs.h.  */
21697 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21698    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21699 #define $ac_func innocuous_$ac_func
21700
21701 /* System header to define __stub macros and hopefully few prototypes,
21702     which can conflict with char $ac_func (); below.
21703     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21704     <limits.h> exists even on freestanding compilers.  */
21705
21706 #ifdef __STDC__
21707 # include <limits.h>
21708 #else
21709 # include <assert.h>
21710 #endif
21711
21712 #undef $ac_func
21713
21714 /* Override any GCC internal prototype to avoid an error.
21715    Use char because int might match the return type of a GCC
21716    builtin and then its argument prototype would still apply.  */
21717 #ifdef __cplusplus
21718 extern "C"
21719 #endif
21720 char $ac_func ();
21721 /* The GNU C library defines this for functions which it implements
21722     to always fail with ENOSYS.  Some functions are actually named
21723     something starting with __ and the normal name is an alias.  */
21724 #if defined __stub_$ac_func || defined __stub___$ac_func
21725 choke me
21726 #endif
21727
21728 int
21729 main ()
21730 {
21731 return $ac_func ();
21732   ;
21733   return 0;
21734 }
21735 _ACEOF
21736 rm -f conftest.$ac_objext conftest$ac_exeext
21737 if { (ac_try="$ac_link"
21738 case "(($ac_try" in
21739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21740   *) ac_try_echo=$ac_try;;
21741 esac
21742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21743 $as_echo "$ac_try_echo") >&5
21744   (eval "$ac_link") 2>conftest.er1
21745   ac_status=$?
21746   grep -v '^ *+' conftest.er1 >conftest.err
21747   rm -f conftest.er1
21748   cat conftest.err >&5
21749   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750   (exit $ac_status); } && {
21751          test -z "$ac_c_werror_flag" ||
21752          test ! -s conftest.err
21753        } && test -s conftest$ac_exeext && {
21754          test "$cross_compiling" = yes ||
21755          $as_test_x conftest$ac_exeext
21756        }; then
21757   eval "$as_ac_var=yes"
21758 else
21759   $as_echo "$as_me: failed program was:" >&5
21760 sed 's/^/| /' conftest.$ac_ext >&5
21761
21762         eval "$as_ac_var=no"
21763 fi
21764
21765 rm -rf conftest.dSYM
21766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21767       conftest$ac_exeext conftest.$ac_ext
21768 fi
21769 ac_res=`eval 'as_val=${'$as_ac_var'}
21770                  $as_echo "$as_val"'`
21771                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21772 $as_echo "$ac_res" >&6; }
21773 as_val=`eval 'as_val=${'$as_ac_var'}
21774                  $as_echo "$as_val"'`
21775    if test "x$as_val" = x""yes; then
21776   cat >>confdefs.h <<_ACEOF
21777 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21778 _ACEOF
21779
21780 fi
21781 done
21782
21783
21784
21785 for ac_func in append_history history_truncate_file
21786 do
21787 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21788 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21789 $as_echo_n "checking for $ac_func... " >&6; }
21790 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21791   $as_echo_n "(cached) " >&6
21792 else
21793   cat >conftest.$ac_ext <<_ACEOF
21794 /* confdefs.h.  */
21795 _ACEOF
21796 cat confdefs.h >>conftest.$ac_ext
21797 cat >>conftest.$ac_ext <<_ACEOF
21798 /* end confdefs.h.  */
21799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21800    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21801 #define $ac_func innocuous_$ac_func
21802
21803 /* System header to define __stub macros and hopefully few prototypes,
21804     which can conflict with char $ac_func (); below.
21805     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21806     <limits.h> exists even on freestanding compilers.  */
21807
21808 #ifdef __STDC__
21809 # include <limits.h>
21810 #else
21811 # include <assert.h>
21812 #endif
21813
21814 #undef $ac_func
21815
21816 /* Override any GCC internal prototype to avoid an error.
21817    Use char because int might match the return type of a GCC
21818    builtin and then its argument prototype would still apply.  */
21819 #ifdef __cplusplus
21820 extern "C"
21821 #endif
21822 char $ac_func ();
21823 /* The GNU C library defines this for functions which it implements
21824     to always fail with ENOSYS.  Some functions are actually named
21825     something starting with __ and the normal name is an alias.  */
21826 #if defined __stub_$ac_func || defined __stub___$ac_func
21827 choke me
21828 #endif
21829
21830 int
21831 main ()
21832 {
21833 return $ac_func ();
21834   ;
21835   return 0;
21836 }
21837 _ACEOF
21838 rm -f conftest.$ac_objext conftest$ac_exeext
21839 if { (ac_try="$ac_link"
21840 case "(($ac_try" in
21841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21842   *) ac_try_echo=$ac_try;;
21843 esac
21844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21845 $as_echo "$ac_try_echo") >&5
21846   (eval "$ac_link") 2>conftest.er1
21847   ac_status=$?
21848   grep -v '^ *+' conftest.er1 >conftest.err
21849   rm -f conftest.er1
21850   cat conftest.err >&5
21851   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852   (exit $ac_status); } && {
21853          test -z "$ac_c_werror_flag" ||
21854          test ! -s conftest.err
21855        } && test -s conftest$ac_exeext && {
21856          test "$cross_compiling" = yes ||
21857          $as_test_x conftest$ac_exeext
21858        }; then
21859   eval "$as_ac_var=yes"
21860 else
21861   $as_echo "$as_me: failed program was:" >&5
21862 sed 's/^/| /' conftest.$ac_ext >&5
21863
21864         eval "$as_ac_var=no"
21865 fi
21866
21867 rm -rf conftest.dSYM
21868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21869       conftest$ac_exeext conftest.$ac_ext
21870 fi
21871 ac_res=`eval 'as_val=${'$as_ac_var'}
21872                  $as_echo "$as_val"'`
21873                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21874 $as_echo "$ac_res" >&6; }
21875 as_val=`eval 'as_val=${'$as_ac_var'}
21876                  $as_echo "$as_val"'`
21877    if test "x$as_val" = x""yes; then
21878   cat >>confdefs.h <<_ACEOF
21879 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21880 _ACEOF
21881
21882 fi
21883 done
21884
21885 fi
21886
21887
21888 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
21889 $as_echo_n "checking for sigsetjmp... " >&6; }
21890 if test "${pgac_cv_func_sigsetjmp+set}" = set; then
21891   $as_echo_n "(cached) " >&6
21892 else
21893   cat >conftest.$ac_ext <<_ACEOF
21894 /* confdefs.h.  */
21895 _ACEOF
21896 cat confdefs.h >>conftest.$ac_ext
21897 cat >>conftest.$ac_ext <<_ACEOF
21898 /* end confdefs.h.  */
21899 #include <setjmp.h>
21900 int
21901 main ()
21902 {
21903 sigjmp_buf x; sigsetjmp(x, 1);
21904   ;
21905   return 0;
21906 }
21907 _ACEOF
21908 rm -f conftest.$ac_objext conftest$ac_exeext
21909 if { (ac_try="$ac_link"
21910 case "(($ac_try" in
21911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21912   *) ac_try_echo=$ac_try;;
21913 esac
21914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21915 $as_echo "$ac_try_echo") >&5
21916   (eval "$ac_link") 2>conftest.er1
21917   ac_status=$?
21918   grep -v '^ *+' conftest.er1 >conftest.err
21919   rm -f conftest.er1
21920   cat conftest.err >&5
21921   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21922   (exit $ac_status); } && {
21923          test -z "$ac_c_werror_flag" ||
21924          test ! -s conftest.err
21925        } && test -s conftest$ac_exeext && {
21926          test "$cross_compiling" = yes ||
21927          $as_test_x conftest$ac_exeext
21928        }; then
21929   pgac_cv_func_sigsetjmp=yes
21930 else
21931   $as_echo "$as_me: failed program was:" >&5
21932 sed 's/^/| /' conftest.$ac_ext >&5
21933
21934         pgac_cv_func_sigsetjmp=no
21935 fi
21936
21937 rm -rf conftest.dSYM
21938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21939       conftest$ac_exeext conftest.$ac_ext
21940 fi
21941 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_sigsetjmp" >&5
21942 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
21943 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
21944
21945 cat >>confdefs.h <<\_ACEOF
21946 #define HAVE_SIGSETJMP 1
21947 _ACEOF
21948
21949 fi
21950
21951 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
21952 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
21953 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
21954   $as_echo_n "(cached) " >&6
21955 else
21956   cat >conftest.$ac_ext <<_ACEOF
21957 /* confdefs.h.  */
21958 _ACEOF
21959 cat confdefs.h >>conftest.$ac_ext
21960 cat >>conftest.$ac_ext <<_ACEOF
21961 /* end confdefs.h.  */
21962 #include <signal.h>
21963 /* NetBSD declares sys_siglist in unistd.h.  */
21964 #ifdef HAVE_UNISTD_H
21965 # include <unistd.h>
21966 #endif
21967
21968
21969 int
21970 main ()
21971 {
21972 #ifndef sys_siglist
21973   (void) sys_siglist;
21974 #endif
21975
21976   ;
21977   return 0;
21978 }
21979 _ACEOF
21980 rm -f conftest.$ac_objext
21981 if { (ac_try="$ac_compile"
21982 case "(($ac_try" in
21983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984   *) ac_try_echo=$ac_try;;
21985 esac
21986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21987 $as_echo "$ac_try_echo") >&5
21988   (eval "$ac_compile") 2>conftest.er1
21989   ac_status=$?
21990   grep -v '^ *+' conftest.er1 >conftest.err
21991   rm -f conftest.er1
21992   cat conftest.err >&5
21993   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994   (exit $ac_status); } && {
21995          test -z "$ac_c_werror_flag" ||
21996          test ! -s conftest.err
21997        } && test -s conftest.$ac_objext; then
21998   ac_cv_have_decl_sys_siglist=yes
21999 else
22000   $as_echo "$as_me: failed program was:" >&5
22001 sed 's/^/| /' conftest.$ac_ext >&5
22002
22003         ac_cv_have_decl_sys_siglist=no
22004 fi
22005
22006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22007 fi
22008 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
22009 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
22010 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
22011
22012 cat >>confdefs.h <<_ACEOF
22013 #define HAVE_DECL_SYS_SIGLIST 1
22014 _ACEOF
22015
22016
22017 else
22018   cat >>confdefs.h <<_ACEOF
22019 #define HAVE_DECL_SYS_SIGLIST 0
22020 _ACEOF
22021
22022
22023 fi
22024
22025
22026
22027
22028 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
22029 $as_echo_n "checking for syslog... " >&6; }
22030 if test "${ac_cv_func_syslog+set}" = set; then
22031   $as_echo_n "(cached) " >&6
22032 else
22033   cat >conftest.$ac_ext <<_ACEOF
22034 /* confdefs.h.  */
22035 _ACEOF
22036 cat confdefs.h >>conftest.$ac_ext
22037 cat >>conftest.$ac_ext <<_ACEOF
22038 /* end confdefs.h.  */
22039 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
22040    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22041 #define syslog innocuous_syslog
22042
22043 /* System header to define __stub macros and hopefully few prototypes,
22044     which can conflict with char syslog (); below.
22045     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22046     <limits.h> exists even on freestanding compilers.  */
22047
22048 #ifdef __STDC__
22049 # include <limits.h>
22050 #else
22051 # include <assert.h>
22052 #endif
22053
22054 #undef syslog
22055
22056 /* Override any GCC internal prototype to avoid an error.
22057    Use char because int might match the return type of a GCC
22058    builtin and then its argument prototype would still apply.  */
22059 #ifdef __cplusplus
22060 extern "C"
22061 #endif
22062 char syslog ();
22063 /* The GNU C library defines this for functions which it implements
22064     to always fail with ENOSYS.  Some functions are actually named
22065     something starting with __ and the normal name is an alias.  */
22066 #if defined __stub_syslog || defined __stub___syslog
22067 choke me
22068 #endif
22069
22070 int
22071 main ()
22072 {
22073 return syslog ();
22074   ;
22075   return 0;
22076 }
22077 _ACEOF
22078 rm -f conftest.$ac_objext conftest$ac_exeext
22079 if { (ac_try="$ac_link"
22080 case "(($ac_try" in
22081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22082   *) ac_try_echo=$ac_try;;
22083 esac
22084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22085 $as_echo "$ac_try_echo") >&5
22086   (eval "$ac_link") 2>conftest.er1
22087   ac_status=$?
22088   grep -v '^ *+' conftest.er1 >conftest.err
22089   rm -f conftest.er1
22090   cat conftest.err >&5
22091   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22092   (exit $ac_status); } && {
22093          test -z "$ac_c_werror_flag" ||
22094          test ! -s conftest.err
22095        } && test -s conftest$ac_exeext && {
22096          test "$cross_compiling" = yes ||
22097          $as_test_x conftest$ac_exeext
22098        }; then
22099   ac_cv_func_syslog=yes
22100 else
22101   $as_echo "$as_me: failed program was:" >&5
22102 sed 's/^/| /' conftest.$ac_ext >&5
22103
22104         ac_cv_func_syslog=no
22105 fi
22106
22107 rm -rf conftest.dSYM
22108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22109       conftest$ac_exeext conftest.$ac_ext
22110 fi
22111 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
22112 $as_echo "$ac_cv_func_syslog" >&6; }
22113 if test "x$ac_cv_func_syslog" = x""yes; then
22114   if test "${ac_cv_header_syslog_h+set}" = set; then
22115   { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22116 $as_echo_n "checking for syslog.h... " >&6; }
22117 if test "${ac_cv_header_syslog_h+set}" = set; then
22118   $as_echo_n "(cached) " >&6
22119 fi
22120 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22121 $as_echo "$ac_cv_header_syslog_h" >&6; }
22122 else
22123   # Is the header compilable?
22124 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
22125 $as_echo_n "checking syslog.h usability... " >&6; }
22126 cat >conftest.$ac_ext <<_ACEOF
22127 /* confdefs.h.  */
22128 _ACEOF
22129 cat confdefs.h >>conftest.$ac_ext
22130 cat >>conftest.$ac_ext <<_ACEOF
22131 /* end confdefs.h.  */
22132 $ac_includes_default
22133 #include <syslog.h>
22134 _ACEOF
22135 rm -f conftest.$ac_objext
22136 if { (ac_try="$ac_compile"
22137 case "(($ac_try" in
22138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22139   *) ac_try_echo=$ac_try;;
22140 esac
22141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22142 $as_echo "$ac_try_echo") >&5
22143   (eval "$ac_compile") 2>conftest.er1
22144   ac_status=$?
22145   grep -v '^ *+' conftest.er1 >conftest.err
22146   rm -f conftest.er1
22147   cat conftest.err >&5
22148   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149   (exit $ac_status); } && {
22150          test -z "$ac_c_werror_flag" ||
22151          test ! -s conftest.err
22152        } && test -s conftest.$ac_objext; then
22153   ac_header_compiler=yes
22154 else
22155   $as_echo "$as_me: failed program was:" >&5
22156 sed 's/^/| /' conftest.$ac_ext >&5
22157
22158         ac_header_compiler=no
22159 fi
22160
22161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22162 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22163 $as_echo "$ac_header_compiler" >&6; }
22164
22165 # Is the header present?
22166 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
22167 $as_echo_n "checking syslog.h presence... " >&6; }
22168 cat >conftest.$ac_ext <<_ACEOF
22169 /* confdefs.h.  */
22170 _ACEOF
22171 cat confdefs.h >>conftest.$ac_ext
22172 cat >>conftest.$ac_ext <<_ACEOF
22173 /* end confdefs.h.  */
22174 #include <syslog.h>
22175 _ACEOF
22176 if { (ac_try="$ac_cpp conftest.$ac_ext"
22177 case "(($ac_try" in
22178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22179   *) ac_try_echo=$ac_try;;
22180 esac
22181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22182 $as_echo "$ac_try_echo") >&5
22183   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22184   ac_status=$?
22185   grep -v '^ *+' conftest.er1 >conftest.err
22186   rm -f conftest.er1
22187   cat conftest.err >&5
22188   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189   (exit $ac_status); } >/dev/null && {
22190          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22191          test ! -s conftest.err
22192        }; then
22193   ac_header_preproc=yes
22194 else
22195   $as_echo "$as_me: failed program was:" >&5
22196 sed 's/^/| /' conftest.$ac_ext >&5
22197
22198   ac_header_preproc=no
22199 fi
22200
22201 rm -f conftest.err conftest.$ac_ext
22202 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22203 $as_echo "$ac_header_preproc" >&6; }
22204
22205 # So?  What about this header?
22206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22207   yes:no: )
22208     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
22209 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22210     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
22211 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
22212     ac_header_preproc=yes
22213     ;;
22214   no:yes:* )
22215     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
22216 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
22217     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     check for missing prerequisite headers?" >&5
22218 $as_echo "$as_me: WARNING: syslog.h:     check for missing prerequisite headers?" >&2;}
22219     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
22220 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
22221     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&5
22222 $as_echo "$as_me: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22223     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
22224 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
22225     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
22226 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
22227     ( cat <<\_ASBOX
22228 ## ---------------------------------------- ##
22229 ## Report this to pgsql-bugs@postgresql.org ##
22230 ## ---------------------------------------- ##
22231 _ASBOX
22232      ) | sed "s/^/$as_me: WARNING:     /" >&2
22233     ;;
22234 esac
22235 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22236 $as_echo_n "checking for syslog.h... " >&6; }
22237 if test "${ac_cv_header_syslog_h+set}" = set; then
22238   $as_echo_n "(cached) " >&6
22239 else
22240   ac_cv_header_syslog_h=$ac_header_preproc
22241 fi
22242 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22243 $as_echo "$ac_cv_header_syslog_h" >&6; }
22244
22245 fi
22246 if test "x$ac_cv_header_syslog_h" = x""yes; then
22247
22248 cat >>confdefs.h <<\_ACEOF
22249 #define HAVE_SYSLOG 1
22250 _ACEOF
22251
22252 fi
22253
22254
22255 fi
22256
22257
22258 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
22259 $as_echo_n "checking for opterr... " >&6; }
22260 if test "${pgac_cv_var_int_opterr+set}" = set; then
22261   $as_echo_n "(cached) " >&6
22262 else
22263   cat >conftest.$ac_ext <<_ACEOF
22264 /* confdefs.h.  */
22265 _ACEOF
22266 cat confdefs.h >>conftest.$ac_ext
22267 cat >>conftest.$ac_ext <<_ACEOF
22268 /* end confdefs.h.  */
22269 #include <unistd.h>
22270 int
22271 main ()
22272 {
22273 extern int opterr; opterr = 1;
22274   ;
22275   return 0;
22276 }
22277 _ACEOF
22278 rm -f conftest.$ac_objext conftest$ac_exeext
22279 if { (ac_try="$ac_link"
22280 case "(($ac_try" in
22281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22282   *) ac_try_echo=$ac_try;;
22283 esac
22284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22285 $as_echo "$ac_try_echo") >&5
22286   (eval "$ac_link") 2>conftest.er1
22287   ac_status=$?
22288   grep -v '^ *+' conftest.er1 >conftest.err
22289   rm -f conftest.er1
22290   cat conftest.err >&5
22291   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292   (exit $ac_status); } && {
22293          test -z "$ac_c_werror_flag" ||
22294          test ! -s conftest.err
22295        } && test -s conftest$ac_exeext && {
22296          test "$cross_compiling" = yes ||
22297          $as_test_x conftest$ac_exeext
22298        }; then
22299   pgac_cv_var_int_opterr=yes
22300 else
22301   $as_echo "$as_me: failed program was:" >&5
22302 sed 's/^/| /' conftest.$ac_ext >&5
22303
22304         pgac_cv_var_int_opterr=no
22305 fi
22306
22307 rm -rf conftest.dSYM
22308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22309       conftest$ac_exeext conftest.$ac_ext
22310 fi
22311 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
22312 $as_echo "$pgac_cv_var_int_opterr" >&6; }
22313 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
22314
22315 cat >>confdefs.h <<\_ACEOF
22316 #define HAVE_INT_OPTERR 1
22317 _ACEOF
22318
22319 fi
22320
22321 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
22322 $as_echo_n "checking for optreset... " >&6; }
22323 if test "${pgac_cv_var_int_optreset+set}" = set; then
22324   $as_echo_n "(cached) " >&6
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 #include <unistd.h>
22333 int
22334 main ()
22335 {
22336 extern int optreset; optreset = 1;
22337   ;
22338   return 0;
22339 }
22340 _ACEOF
22341 rm -f conftest.$ac_objext conftest$ac_exeext
22342 if { (ac_try="$ac_link"
22343 case "(($ac_try" in
22344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22345   *) ac_try_echo=$ac_try;;
22346 esac
22347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22348 $as_echo "$ac_try_echo") >&5
22349   (eval "$ac_link") 2>conftest.er1
22350   ac_status=$?
22351   grep -v '^ *+' conftest.er1 >conftest.err
22352   rm -f conftest.er1
22353   cat conftest.err >&5
22354   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355   (exit $ac_status); } && {
22356          test -z "$ac_c_werror_flag" ||
22357          test ! -s conftest.err
22358        } && test -s conftest$ac_exeext && {
22359          test "$cross_compiling" = yes ||
22360          $as_test_x conftest$ac_exeext
22361        }; then
22362   pgac_cv_var_int_optreset=yes
22363 else
22364   $as_echo "$as_me: failed program was:" >&5
22365 sed 's/^/| /' conftest.$ac_ext >&5
22366
22367         pgac_cv_var_int_optreset=no
22368 fi
22369
22370 rm -rf conftest.dSYM
22371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22372       conftest$ac_exeext conftest.$ac_ext
22373 fi
22374 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
22375 $as_echo "$pgac_cv_var_int_optreset" >&6; }
22376 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
22377
22378 cat >>confdefs.h <<\_ACEOF
22379 #define HAVE_INT_OPTRESET 1
22380 _ACEOF
22381
22382 fi
22383
22384
22385
22386 for ac_func in strtoll strtoq
22387 do
22388 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22389 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22390 $as_echo_n "checking for $ac_func... " >&6; }
22391 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22392   $as_echo_n "(cached) " >&6
22393 else
22394   cat >conftest.$ac_ext <<_ACEOF
22395 /* confdefs.h.  */
22396 _ACEOF
22397 cat confdefs.h >>conftest.$ac_ext
22398 cat >>conftest.$ac_ext <<_ACEOF
22399 /* end confdefs.h.  */
22400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22401    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22402 #define $ac_func innocuous_$ac_func
22403
22404 /* System header to define __stub macros and hopefully few prototypes,
22405     which can conflict with char $ac_func (); below.
22406     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22407     <limits.h> exists even on freestanding compilers.  */
22408
22409 #ifdef __STDC__
22410 # include <limits.h>
22411 #else
22412 # include <assert.h>
22413 #endif
22414
22415 #undef $ac_func
22416
22417 /* Override any GCC internal prototype to avoid an error.
22418    Use char because int might match the return type of a GCC
22419    builtin and then its argument prototype would still apply.  */
22420 #ifdef __cplusplus
22421 extern "C"
22422 #endif
22423 char $ac_func ();
22424 /* The GNU C library defines this for functions which it implements
22425     to always fail with ENOSYS.  Some functions are actually named
22426     something starting with __ and the normal name is an alias.  */
22427 #if defined __stub_$ac_func || defined __stub___$ac_func
22428 choke me
22429 #endif
22430
22431 int
22432 main ()
22433 {
22434 return $ac_func ();
22435   ;
22436   return 0;
22437 }
22438 _ACEOF
22439 rm -f conftest.$ac_objext conftest$ac_exeext
22440 if { (ac_try="$ac_link"
22441 case "(($ac_try" in
22442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22443   *) ac_try_echo=$ac_try;;
22444 esac
22445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22446 $as_echo "$ac_try_echo") >&5
22447   (eval "$ac_link") 2>conftest.er1
22448   ac_status=$?
22449   grep -v '^ *+' conftest.er1 >conftest.err
22450   rm -f conftest.er1
22451   cat conftest.err >&5
22452   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453   (exit $ac_status); } && {
22454          test -z "$ac_c_werror_flag" ||
22455          test ! -s conftest.err
22456        } && test -s conftest$ac_exeext && {
22457          test "$cross_compiling" = yes ||
22458          $as_test_x conftest$ac_exeext
22459        }; then
22460   eval "$as_ac_var=yes"
22461 else
22462   $as_echo "$as_me: failed program was:" >&5
22463 sed 's/^/| /' conftest.$ac_ext >&5
22464
22465         eval "$as_ac_var=no"
22466 fi
22467
22468 rm -rf conftest.dSYM
22469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22470       conftest$ac_exeext conftest.$ac_ext
22471 fi
22472 ac_res=`eval 'as_val=${'$as_ac_var'}
22473                  $as_echo "$as_val"'`
22474                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22475 $as_echo "$ac_res" >&6; }
22476 as_val=`eval 'as_val=${'$as_ac_var'}
22477                  $as_echo "$as_val"'`
22478    if test "x$as_val" = x""yes; then
22479   cat >>confdefs.h <<_ACEOF
22480 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22481 _ACEOF
22482  break
22483 fi
22484 done
22485
22486
22487
22488 for ac_func in strtoull strtouq
22489 do
22490 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22491 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22492 $as_echo_n "checking for $ac_func... " >&6; }
22493 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22494   $as_echo_n "(cached) " >&6
22495 else
22496   cat >conftest.$ac_ext <<_ACEOF
22497 /* confdefs.h.  */
22498 _ACEOF
22499 cat confdefs.h >>conftest.$ac_ext
22500 cat >>conftest.$ac_ext <<_ACEOF
22501 /* end confdefs.h.  */
22502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22503    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22504 #define $ac_func innocuous_$ac_func
22505
22506 /* System header to define __stub macros and hopefully few prototypes,
22507     which can conflict with char $ac_func (); below.
22508     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22509     <limits.h> exists even on freestanding compilers.  */
22510
22511 #ifdef __STDC__
22512 # include <limits.h>
22513 #else
22514 # include <assert.h>
22515 #endif
22516
22517 #undef $ac_func
22518
22519 /* Override any GCC internal prototype to avoid an error.
22520    Use char because int might match the return type of a GCC
22521    builtin and then its argument prototype would still apply.  */
22522 #ifdef __cplusplus
22523 extern "C"
22524 #endif
22525 char $ac_func ();
22526 /* The GNU C library defines this for functions which it implements
22527     to always fail with ENOSYS.  Some functions are actually named
22528     something starting with __ and the normal name is an alias.  */
22529 #if defined __stub_$ac_func || defined __stub___$ac_func
22530 choke me
22531 #endif
22532
22533 int
22534 main ()
22535 {
22536 return $ac_func ();
22537   ;
22538   return 0;
22539 }
22540 _ACEOF
22541 rm -f conftest.$ac_objext conftest$ac_exeext
22542 if { (ac_try="$ac_link"
22543 case "(($ac_try" in
22544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22545   *) ac_try_echo=$ac_try;;
22546 esac
22547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22548 $as_echo "$ac_try_echo") >&5
22549   (eval "$ac_link") 2>conftest.er1
22550   ac_status=$?
22551   grep -v '^ *+' conftest.er1 >conftest.err
22552   rm -f conftest.er1
22553   cat conftest.err >&5
22554   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555   (exit $ac_status); } && {
22556          test -z "$ac_c_werror_flag" ||
22557          test ! -s conftest.err
22558        } && test -s conftest$ac_exeext && {
22559          test "$cross_compiling" = yes ||
22560          $as_test_x conftest$ac_exeext
22561        }; then
22562   eval "$as_ac_var=yes"
22563 else
22564   $as_echo "$as_me: failed program was:" >&5
22565 sed 's/^/| /' conftest.$ac_ext >&5
22566
22567         eval "$as_ac_var=no"
22568 fi
22569
22570 rm -rf conftest.dSYM
22571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22572       conftest$ac_exeext conftest.$ac_ext
22573 fi
22574 ac_res=`eval 'as_val=${'$as_ac_var'}
22575                  $as_echo "$as_val"'`
22576                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22577 $as_echo "$ac_res" >&6; }
22578 as_val=`eval 'as_val=${'$as_ac_var'}
22579                  $as_echo "$as_val"'`
22580    if test "x$as_val" = x""yes; then
22581   cat >>confdefs.h <<_ACEOF
22582 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22583 _ACEOF
22584  break
22585 fi
22586 done
22587
22588
22589 { $as_echo "$as_me:$LINENO: checking for builtin locking functions" >&5
22590 $as_echo_n "checking for builtin locking functions... " >&6; }
22591 if test "${pgac_cv_gcc_int_atomics+set}" = set; then
22592   $as_echo_n "(cached) " >&6
22593 else
22594   cat >conftest.$ac_ext <<_ACEOF
22595 /* confdefs.h.  */
22596 _ACEOF
22597 cat confdefs.h >>conftest.$ac_ext
22598 cat >>conftest.$ac_ext <<_ACEOF
22599 /* end confdefs.h.  */
22600
22601 int
22602 main ()
22603 {
22604 int lock = 0;
22605    __sync_lock_test_and_set(&lock, 1);
22606    __sync_lock_release(&lock);
22607   ;
22608   return 0;
22609 }
22610 _ACEOF
22611 rm -f conftest.$ac_objext conftest$ac_exeext
22612 if { (ac_try="$ac_link"
22613 case "(($ac_try" in
22614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22615   *) ac_try_echo=$ac_try;;
22616 esac
22617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22618 $as_echo "$ac_try_echo") >&5
22619   (eval "$ac_link") 2>conftest.er1
22620   ac_status=$?
22621   grep -v '^ *+' conftest.er1 >conftest.err
22622   rm -f conftest.er1
22623   cat conftest.err >&5
22624   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625   (exit $ac_status); } && {
22626          test -z "$ac_c_werror_flag" ||
22627          test ! -s conftest.err
22628        } && test -s conftest$ac_exeext && {
22629          test "$cross_compiling" = yes ||
22630          $as_test_x conftest$ac_exeext
22631        }; then
22632   pgac_cv_gcc_int_atomics="yes"
22633 else
22634   $as_echo "$as_me: failed program was:" >&5
22635 sed 's/^/| /' conftest.$ac_ext >&5
22636
22637         pgac_cv_gcc_int_atomics="no"
22638 fi
22639
22640 rm -rf conftest.dSYM
22641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22642       conftest$ac_exeext conftest.$ac_ext
22643 fi
22644 { $as_echo "$as_me:$LINENO: result: $pgac_cv_gcc_int_atomics" >&5
22645 $as_echo "$pgac_cv_gcc_int_atomics" >&6; }
22646 if test x"$pgac_cv_gcc_int_atomics" = x"yes"; then
22647
22648 cat >>confdefs.h <<\_ACEOF
22649 #define HAVE_GCC_INT_ATOMICS 1
22650 _ACEOF
22651
22652 fi
22653
22654
22655 #
22656 # Pthreads
22657 #
22658 # For each platform, we need to know about any special compile and link
22659 # libraries, and whether the normal C function names are thread-safe.
22660 # See the comment at the top of src/port/thread.c for more information.
22661 # WIN32 doesn't need the pthread tests;  it always uses threads
22662 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
22663
22664
22665
22666 ac_ext=c
22667 ac_cpp='$CPP $CPPFLAGS'
22668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22671
22672 acx_pthread_ok=no
22673
22674 # We used to check for pthread.h first, but this fails if pthread.h
22675 # requires special compiler flags (e.g. on True64 or Sequent).
22676 # It gets checked for in the link test anyway.
22677
22678 # First of all, check if the user has set any of the PTHREAD_LIBS,
22679 # etcetera environment variables, and if threads linking works using
22680 # them:
22681 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22682         save_CFLAGS="$CFLAGS"
22683         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22684         save_LIBS="$LIBS"
22685         LIBS="$PTHREAD_LIBS $LIBS"
22686         { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22687 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
22688         cat >conftest.$ac_ext <<_ACEOF
22689 /* confdefs.h.  */
22690 _ACEOF
22691 cat confdefs.h >>conftest.$ac_ext
22692 cat >>conftest.$ac_ext <<_ACEOF
22693 /* end confdefs.h.  */
22694
22695 /* Override any GCC internal prototype to avoid an error.
22696    Use char because int might match the return type of a GCC
22697    builtin and then its argument prototype would still apply.  */
22698 #ifdef __cplusplus
22699 extern "C"
22700 #endif
22701 char pthread_join ();
22702 int
22703 main ()
22704 {
22705 return pthread_join ();
22706   ;
22707   return 0;
22708 }
22709 _ACEOF
22710 rm -f conftest.$ac_objext conftest$ac_exeext
22711 if { (ac_try="$ac_link"
22712 case "(($ac_try" in
22713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22714   *) ac_try_echo=$ac_try;;
22715 esac
22716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22717 $as_echo "$ac_try_echo") >&5
22718   (eval "$ac_link") 2>conftest.er1
22719   ac_status=$?
22720   grep -v '^ *+' conftest.er1 >conftest.err
22721   rm -f conftest.er1
22722   cat conftest.err >&5
22723   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724   (exit $ac_status); } && {
22725          test -z "$ac_c_werror_flag" ||
22726          test ! -s conftest.err
22727        } && test -s conftest$ac_exeext && {
22728          test "$cross_compiling" = yes ||
22729          $as_test_x conftest$ac_exeext
22730        }; then
22731   acx_pthread_ok=yes
22732 else
22733   $as_echo "$as_me: failed program was:" >&5
22734 sed 's/^/| /' conftest.$ac_ext >&5
22735
22736
22737 fi
22738
22739 rm -rf conftest.dSYM
22740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22741       conftest$ac_exeext conftest.$ac_ext
22742         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22743 $as_echo "$acx_pthread_ok" >&6; }
22744         if test x"$acx_pthread_ok" = xno; then
22745                 PTHREAD_LIBS=""
22746                 PTHREAD_CFLAGS=""
22747         fi
22748         LIBS="$save_LIBS"
22749         CFLAGS="$save_CFLAGS"
22750 fi
22751
22752 # We must check for the threads library under a number of different
22753 # names; the ordering is very important because some systems
22754 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22755 # libraries is broken (non-POSIX).
22756
22757 # Create a list of thread flags to try.  Items starting with a "-" are
22758 # C compiler flags, and other items are library names, except for "none"
22759 # which indicates that we try without any flags at all, and "pthread-config"
22760 # which is a program returning the flags for the Pth emulation library.
22761
22762 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
22763
22764 # The ordering *is* (sometimes) important.  Some notes on the
22765 # individual items follow:
22766
22767 # pthreads: AIX (must check this before -lpthread)
22768 # none: in case threads are in libc; should be tried before -Kthread and
22769 #       other compiler flags to prevent continual compiler warnings
22770 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22771 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22772 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22773 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22774 # -pthreads: Solaris/gcc
22775 # -mthreads: Mingw32/gcc, Lynx/gcc
22776 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22777 #      doesn't hurt to check since this sometimes defines pthreads too;
22778 #      also defines -D_REENTRANT)
22779 # pthread: Linux, etcetera
22780 # --thread-safe: KAI C++
22781 # pthread-config: use pthread-config program (for GNU Pth library)
22782
22783 case "${host_cpu}-${host_os}" in
22784         *solaris*)
22785
22786         # On Solaris (at least, for some versions), libc contains stubbed
22787         # (non-functional) versions of the pthreads routines, so link-based
22788         # tests will erroneously succeed.  (We need to link with -pthread or
22789         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
22790         # a function called by this macro, so we could check for that, but
22791         # who knows whether they'll stub that too in a future libc.)  So,
22792         # we'll just look for -pthreads and -lpthread first:
22793
22794         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22795         ;;
22796 esac
22797
22798 if test x"$acx_pthread_ok" = xno; then
22799 for flag in $acx_pthread_flags; do
22800
22801         tryPTHREAD_CFLAGS=""
22802         tryPTHREAD_LIBS=""
22803         case $flag in
22804                 none)
22805                 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22806 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
22807                 ;;
22808
22809                 -*)
22810                 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22811 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
22812                 tryPTHREAD_CFLAGS="$flag"
22813                 ;;
22814
22815                 pthread-config)
22816                 # skip this if we already have flags defined, for PostgreSQL
22817                 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
22818                 # Extract the first word of "pthread-config", so it can be a program name with args.
22819 set dummy pthread-config; ac_word=$2
22820 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22821 $as_echo_n "checking for $ac_word... " >&6; }
22822 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22823   $as_echo_n "(cached) " >&6
22824 else
22825   if test -n "$acx_pthread_config"; then
22826   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22827 else
22828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22829 for as_dir in $PATH
22830 do
22831   IFS=$as_save_IFS
22832   test -z "$as_dir" && as_dir=.
22833   for ac_exec_ext in '' $ac_executable_extensions; do
22834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22835     ac_cv_prog_acx_pthread_config="yes"
22836     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22837     break 2
22838   fi
22839 done
22840 done
22841 IFS=$as_save_IFS
22842
22843   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22844 fi
22845 fi
22846 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22847 if test -n "$acx_pthread_config"; then
22848   { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22849 $as_echo "$acx_pthread_config" >&6; }
22850 else
22851   { $as_echo "$as_me:$LINENO: result: no" >&5
22852 $as_echo "no" >&6; }
22853 fi
22854
22855
22856                 if test x"$acx_pthread_config" = xno; then continue; fi
22857                 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
22858                 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22859                 ;;
22860
22861                 *)
22862                 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22863 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
22864                 tryPTHREAD_LIBS="-l$flag"
22865                 ;;
22866         esac
22867
22868         save_LIBS="$LIBS"
22869         save_CFLAGS="$CFLAGS"
22870         LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
22871         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22872
22873         # Check for various functions.  We must include pthread.h,
22874         # since some functions may be macros.  (On the Sequent, we
22875         # need a special flag -Kthread to make this header compile.)
22876         # We check for pthread_join because it is in -lpthread on IRIX
22877         # while pthread_create is in libc.  We check for pthread_attr_init
22878         # due to DEC craziness with -lpthreads.  We check for
22879         # pthread_cleanup_push because it is one of the few pthread
22880         # functions on Solaris that doesn't have a non-functional libc stub.
22881         # We try pthread_create on general principles.
22882         cat >conftest.$ac_ext <<_ACEOF
22883 /* confdefs.h.  */
22884 _ACEOF
22885 cat confdefs.h >>conftest.$ac_ext
22886 cat >>conftest.$ac_ext <<_ACEOF
22887 /* end confdefs.h.  */
22888 #include <pthread.h>
22889 int
22890 main ()
22891 {
22892 pthread_t th; pthread_join(th, 0);
22893                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
22894                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22895   ;
22896   return 0;
22897 }
22898 _ACEOF
22899 rm -f conftest.$ac_objext conftest$ac_exeext
22900 if { (ac_try="$ac_link"
22901 case "(($ac_try" in
22902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22903   *) ac_try_echo=$ac_try;;
22904 esac
22905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22906 $as_echo "$ac_try_echo") >&5
22907   (eval "$ac_link") 2>conftest.er1
22908   ac_status=$?
22909   grep -v '^ *+' conftest.er1 >conftest.err
22910   rm -f conftest.er1
22911   cat conftest.err >&5
22912   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22913   (exit $ac_status); } && {
22914          test -z "$ac_c_werror_flag" ||
22915          test ! -s conftest.err
22916        } && test -s conftest$ac_exeext && {
22917          test "$cross_compiling" = yes ||
22918          $as_test_x conftest$ac_exeext
22919        }; then
22920   acx_pthread_ok=yes
22921 else
22922   $as_echo "$as_me: failed program was:" >&5
22923 sed 's/^/| /' conftest.$ac_ext >&5
22924
22925         acx_pthread_ok=no
22926 fi
22927
22928 rm -rf conftest.dSYM
22929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22930       conftest$ac_exeext conftest.$ac_ext
22931
22932         if test "x$acx_pthread_ok" = xyes; then
22933             # Don't use options that are ignored by the compiler.
22934             # We find them by checking stderror.
22935             cat >conftest.$ac_ext <<_ACEOF
22936 int
22937 main (int argc, char **argv)
22938 {
22939   (void) argc;
22940   (void) argv;
22941   return 0;
22942 }
22943 _ACEOF
22944             rm -f conftest.$ac_objext conftest$ac_exeext
22945             # Check both linking and compiling, because they might tolerate different options.
22946             if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
22947                 # we continue with more flags because Linux needs -lpthread
22948                 # for libpq builds on PostgreSQL.  The test above only
22949                 # tests for building binaries, not shared libraries.
22950                 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
22951                 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22952             else   acx_pthread_ok=no
22953             fi
22954         fi
22955
22956         LIBS="$save_LIBS"
22957         CFLAGS="$save_CFLAGS"
22958
22959         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22960 $as_echo "$acx_pthread_ok" >&6; }
22961 done
22962 fi
22963
22964 # Various other checks:
22965 if test "x$acx_pthread_ok" = xyes; then
22966         save_LIBS="$LIBS"
22967         LIBS="$PTHREAD_LIBS $LIBS"
22968         save_CFLAGS="$CFLAGS"
22969         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22970
22971         # Detect AIX lossage: threads are created detached by default
22972         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
22973         { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22974 $as_echo_n "checking for joinable pthread attribute... " >&6; }
22975         cat >conftest.$ac_ext <<_ACEOF
22976 /* confdefs.h.  */
22977 _ACEOF
22978 cat confdefs.h >>conftest.$ac_ext
22979 cat >>conftest.$ac_ext <<_ACEOF
22980 /* end confdefs.h.  */
22981 #include <pthread.h>
22982 int
22983 main ()
22984 {
22985 int attr=PTHREAD_CREATE_JOINABLE;
22986   ;
22987   return 0;
22988 }
22989 _ACEOF
22990 rm -f conftest.$ac_objext conftest$ac_exeext
22991 if { (ac_try="$ac_link"
22992 case "(($ac_try" in
22993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22994   *) ac_try_echo=$ac_try;;
22995 esac
22996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22997 $as_echo "$ac_try_echo") >&5
22998   (eval "$ac_link") 2>conftest.er1
22999   ac_status=$?
23000   grep -v '^ *+' conftest.er1 >conftest.err
23001   rm -f conftest.er1
23002   cat conftest.err >&5
23003   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004   (exit $ac_status); } && {
23005          test -z "$ac_c_werror_flag" ||
23006          test ! -s conftest.err
23007        } && test -s conftest$ac_exeext && {
23008          test "$cross_compiling" = yes ||
23009          $as_test_x conftest$ac_exeext
23010        }; then
23011   ok=PTHREAD_CREATE_JOINABLE
23012 else
23013   $as_echo "$as_me: failed program was:" >&5
23014 sed 's/^/| /' conftest.$ac_ext >&5
23015
23016         ok=unknown
23017 fi
23018
23019 rm -rf conftest.dSYM
23020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23021       conftest$ac_exeext conftest.$ac_ext
23022         if test x"$ok" = xunknown; then
23023                 cat >conftest.$ac_ext <<_ACEOF
23024 /* confdefs.h.  */
23025 _ACEOF
23026 cat confdefs.h >>conftest.$ac_ext
23027 cat >>conftest.$ac_ext <<_ACEOF
23028 /* end confdefs.h.  */
23029 #include <pthread.h>
23030 int
23031 main ()
23032 {
23033 int attr=PTHREAD_CREATE_UNDETACHED;
23034   ;
23035   return 0;
23036 }
23037 _ACEOF
23038 rm -f conftest.$ac_objext conftest$ac_exeext
23039 if { (ac_try="$ac_link"
23040 case "(($ac_try" in
23041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23042   *) ac_try_echo=$ac_try;;
23043 esac
23044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23045 $as_echo "$ac_try_echo") >&5
23046   (eval "$ac_link") 2>conftest.er1
23047   ac_status=$?
23048   grep -v '^ *+' conftest.er1 >conftest.err
23049   rm -f conftest.er1
23050   cat conftest.err >&5
23051   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23052   (exit $ac_status); } && {
23053          test -z "$ac_c_werror_flag" ||
23054          test ! -s conftest.err
23055        } && test -s conftest$ac_exeext && {
23056          test "$cross_compiling" = yes ||
23057          $as_test_x conftest$ac_exeext
23058        }; then
23059   ok=PTHREAD_CREATE_UNDETACHED
23060 else
23061   $as_echo "$as_me: failed program was:" >&5
23062 sed 's/^/| /' conftest.$ac_ext >&5
23063
23064         ok=unknown
23065 fi
23066
23067 rm -rf conftest.dSYM
23068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23069       conftest$ac_exeext conftest.$ac_ext
23070         fi
23071         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
23072
23073 cat >>confdefs.h <<\_ACEOF
23074 #define PTHREAD_CREATE_JOINABLE $ok
23075 _ACEOF
23076
23077         fi
23078         { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
23079 $as_echo "${ok}" >&6; }
23080         if test x"$ok" = xunknown; then
23081                 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
23082 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
23083         fi
23084
23085         { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
23086 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
23087         flag=no
23088 # We always add these in PostgreSQL
23089 #       case "${host_cpu}-${host_os}" in
23090 #               *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
23091 #               *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
23092 #       esac
23093         { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
23094 $as_echo "${flag}" >&6; }
23095         if test "x$flag" != xno; then
23096                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
23097         fi
23098
23099         LIBS="$save_LIBS"
23100         CFLAGS="$save_CFLAGS"
23101
23102 # Supporting cc_r would require a special CC in all places that
23103 # use libpq, and that is ugly, so we don't do it.  Users can still
23104 # define their compiler as cc_r to do thread builds of everything.
23105         # More AIX lossage: must compile with cc_r
23106         # Extract the first word of "cc_r", so it can be a program name with args.
23107 set dummy cc_r; ac_word=$2
23108 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23109 $as_echo_n "checking for $ac_word... " >&6; }
23110 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
23111   $as_echo_n "(cached) " >&6
23112 else
23113   if test -n "$PTHREAD_CC"; then
23114   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23115 else
23116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23117 for as_dir in $PATH
23118 do
23119   IFS=$as_save_IFS
23120   test -z "$as_dir" && as_dir=.
23121   for ac_exec_ext in '' $ac_executable_extensions; do
23122   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23123     ac_cv_prog_PTHREAD_CC="cc_r"
23124     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23125     break 2
23126   fi
23127 done
23128 done
23129 IFS=$as_save_IFS
23130
23131   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
23132 fi
23133 fi
23134 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23135 if test -n "$PTHREAD_CC"; then
23136   { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23137 $as_echo "$PTHREAD_CC" >&6; }
23138 else
23139   { $as_echo "$as_me:$LINENO: result: no" >&5
23140 $as_echo "no" >&6; }
23141 fi
23142
23143
23144 else
23145         PTHREAD_CC="$CC"
23146 fi
23147
23148
23149
23150
23151
23152 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23153 if test x"$acx_pthread_ok" = xyes; then
23154
23155 cat >>confdefs.h <<\_ACEOF
23156 #define HAVE_PTHREAD 1
23157 _ACEOF
23158
23159         :
23160 else
23161         acx_pthread_ok=no
23162
23163 fi
23164 ac_ext=c
23165 ac_cpp='$CPP $CPPFLAGS'
23166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23169
23170         # set thread flags
23171
23172 # Some platforms use these, so just define them.  They can't hurt if they
23173 # are not supported.  For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
23174 # enables 5-arg getpwuid_r, among other things.
23175 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
23176
23177
23178 # At this point, we don't want to muck with the compiler name for threading.
23179 # Let's see who fails, perhaps AIX.  2004-04-23
23180 if test "$PTHREAD_CC" != "$CC"; then
23181 { { $as_echo "$as_me:$LINENO: error:
23182 PostgreSQL does not support platforms that require a special compiler
23183 for thread safety;  use --disable-thread-safety to disable thread safety." >&5
23184 $as_echo "$as_me: error:
23185 PostgreSQL does not support platforms that require a special compiler
23186 for thread safety;  use --disable-thread-safety to disable thread safety." >&2;}
23187    { (exit 1); exit 1; }; }
23188 fi
23189
23190 # Check for *_r functions
23191 _CFLAGS="$CFLAGS"
23192 _LIBS="$LIBS"
23193 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23194 LIBS="$LIBS $PTHREAD_LIBS"
23195
23196 if test "$PORTNAME" != "win32"; then
23197 if test "${ac_cv_header_pthread_h+set}" = set; then
23198   { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23199 $as_echo_n "checking for pthread.h... " >&6; }
23200 if test "${ac_cv_header_pthread_h+set}" = set; then
23201   $as_echo_n "(cached) " >&6
23202 fi
23203 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23204 $as_echo "$ac_cv_header_pthread_h" >&6; }
23205 else
23206   # Is the header compilable?
23207 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
23208 $as_echo_n "checking pthread.h usability... " >&6; }
23209 cat >conftest.$ac_ext <<_ACEOF
23210 /* confdefs.h.  */
23211 _ACEOF
23212 cat confdefs.h >>conftest.$ac_ext
23213 cat >>conftest.$ac_ext <<_ACEOF
23214 /* end confdefs.h.  */
23215 $ac_includes_default
23216 #include <pthread.h>
23217 _ACEOF
23218 rm -f conftest.$ac_objext
23219 if { (ac_try="$ac_compile"
23220 case "(($ac_try" in
23221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23222   *) ac_try_echo=$ac_try;;
23223 esac
23224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23225 $as_echo "$ac_try_echo") >&5
23226   (eval "$ac_compile") 2>conftest.er1
23227   ac_status=$?
23228   grep -v '^ *+' conftest.er1 >conftest.err
23229   rm -f conftest.er1
23230   cat conftest.err >&5
23231   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232   (exit $ac_status); } && {
23233          test -z "$ac_c_werror_flag" ||
23234          test ! -s conftest.err
23235        } && test -s conftest.$ac_objext; then
23236   ac_header_compiler=yes
23237 else
23238   $as_echo "$as_me: failed program was:" >&5
23239 sed 's/^/| /' conftest.$ac_ext >&5
23240
23241         ac_header_compiler=no
23242 fi
23243
23244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23245 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23246 $as_echo "$ac_header_compiler" >&6; }
23247
23248 # Is the header present?
23249 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
23250 $as_echo_n "checking pthread.h presence... " >&6; }
23251 cat >conftest.$ac_ext <<_ACEOF
23252 /* confdefs.h.  */
23253 _ACEOF
23254 cat confdefs.h >>conftest.$ac_ext
23255 cat >>conftest.$ac_ext <<_ACEOF
23256 /* end confdefs.h.  */
23257 #include <pthread.h>
23258 _ACEOF
23259 if { (ac_try="$ac_cpp conftest.$ac_ext"
23260 case "(($ac_try" in
23261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23262   *) ac_try_echo=$ac_try;;
23263 esac
23264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23265 $as_echo "$ac_try_echo") >&5
23266   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23267   ac_status=$?
23268   grep -v '^ *+' conftest.er1 >conftest.err
23269   rm -f conftest.er1
23270   cat conftest.err >&5
23271   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272   (exit $ac_status); } >/dev/null && {
23273          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23274          test ! -s conftest.err
23275        }; then
23276   ac_header_preproc=yes
23277 else
23278   $as_echo "$as_me: failed program was:" >&5
23279 sed 's/^/| /' conftest.$ac_ext >&5
23280
23281   ac_header_preproc=no
23282 fi
23283
23284 rm -f conftest.err conftest.$ac_ext
23285 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23286 $as_echo "$ac_header_preproc" >&6; }
23287
23288 # So?  What about this header?
23289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23290   yes:no: )
23291     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
23292 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23293     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
23294 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
23295     ac_header_preproc=yes
23296     ;;
23297   no:yes:* )
23298     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
23299 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
23300     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
23301 $as_echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
23302     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
23303 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
23304     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
23305 $as_echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23306     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
23307 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
23308     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
23309 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
23310     ( cat <<\_ASBOX
23311 ## ---------------------------------------- ##
23312 ## Report this to pgsql-bugs@postgresql.org ##
23313 ## ---------------------------------------- ##
23314 _ASBOX
23315      ) | sed "s/^/$as_me: WARNING:     /" >&2
23316     ;;
23317 esac
23318 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23319 $as_echo_n "checking for pthread.h... " >&6; }
23320 if test "${ac_cv_header_pthread_h+set}" = set; then
23321   $as_echo_n "(cached) " >&6
23322 else
23323   ac_cv_header_pthread_h=$ac_header_preproc
23324 fi
23325 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23326 $as_echo "$ac_cv_header_pthread_h" >&6; }
23327
23328 fi
23329 if test "x$ac_cv_header_pthread_h" = x""yes; then
23330   :
23331 else
23332   { { $as_echo "$as_me:$LINENO: error:
23333 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&5
23334 $as_echo "$as_me: error:
23335 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&2;}
23336    { (exit 1); exit 1; }; }
23337 fi
23338
23339
23340 fi
23341
23342
23343
23344
23345 for ac_func in strerror_r getpwuid_r gethostbyname_r
23346 do
23347 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23348 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23349 $as_echo_n "checking for $ac_func... " >&6; }
23350 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23351   $as_echo_n "(cached) " >&6
23352 else
23353   cat >conftest.$ac_ext <<_ACEOF
23354 /* confdefs.h.  */
23355 _ACEOF
23356 cat confdefs.h >>conftest.$ac_ext
23357 cat >>conftest.$ac_ext <<_ACEOF
23358 /* end confdefs.h.  */
23359 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23360    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23361 #define $ac_func innocuous_$ac_func
23362
23363 /* System header to define __stub macros and hopefully few prototypes,
23364     which can conflict with char $ac_func (); below.
23365     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23366     <limits.h> exists even on freestanding compilers.  */
23367
23368 #ifdef __STDC__
23369 # include <limits.h>
23370 #else
23371 # include <assert.h>
23372 #endif
23373
23374 #undef $ac_func
23375
23376 /* Override any GCC internal prototype to avoid an error.
23377    Use char because int might match the return type of a GCC
23378    builtin and then its argument prototype would still apply.  */
23379 #ifdef __cplusplus
23380 extern "C"
23381 #endif
23382 char $ac_func ();
23383 /* The GNU C library defines this for functions which it implements
23384     to always fail with ENOSYS.  Some functions are actually named
23385     something starting with __ and the normal name is an alias.  */
23386 #if defined __stub_$ac_func || defined __stub___$ac_func
23387 choke me
23388 #endif
23389
23390 int
23391 main ()
23392 {
23393 return $ac_func ();
23394   ;
23395   return 0;
23396 }
23397 _ACEOF
23398 rm -f conftest.$ac_objext conftest$ac_exeext
23399 if { (ac_try="$ac_link"
23400 case "(($ac_try" in
23401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23402   *) ac_try_echo=$ac_try;;
23403 esac
23404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23405 $as_echo "$ac_try_echo") >&5
23406   (eval "$ac_link") 2>conftest.er1
23407   ac_status=$?
23408   grep -v '^ *+' conftest.er1 >conftest.err
23409   rm -f conftest.er1
23410   cat conftest.err >&5
23411   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412   (exit $ac_status); } && {
23413          test -z "$ac_c_werror_flag" ||
23414          test ! -s conftest.err
23415        } && test -s conftest$ac_exeext && {
23416          test "$cross_compiling" = yes ||
23417          $as_test_x conftest$ac_exeext
23418        }; then
23419   eval "$as_ac_var=yes"
23420 else
23421   $as_echo "$as_me: failed program was:" >&5
23422 sed 's/^/| /' conftest.$ac_ext >&5
23423
23424         eval "$as_ac_var=no"
23425 fi
23426
23427 rm -rf conftest.dSYM
23428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23429       conftest$ac_exeext conftest.$ac_ext
23430 fi
23431 ac_res=`eval 'as_val=${'$as_ac_var'}
23432                  $as_echo "$as_val"'`
23433                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23434 $as_echo "$ac_res" >&6; }
23435 as_val=`eval 'as_val=${'$as_ac_var'}
23436                  $as_echo "$as_val"'`
23437    if test "x$as_val" = x""yes; then
23438   cat >>confdefs.h <<_ACEOF
23439 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23440 _ACEOF
23441
23442 fi
23443 done
23444
23445
23446 # Do test here with the proper thread flags
23447 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
23448 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
23449 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
23450   $as_echo_n "(cached) " >&6
23451 else
23452   cat >conftest.$ac_ext <<_ACEOF
23453 /* confdefs.h.  */
23454 _ACEOF
23455 cat confdefs.h >>conftest.$ac_ext
23456 cat >>conftest.$ac_ext <<_ACEOF
23457 /* end confdefs.h.  */
23458 #include <sys/types.h>
23459 #include <pwd.h>
23460 int
23461 main ()
23462 {
23463 uid_t uid;
23464 struct passwd *space;
23465 char *buf;
23466 size_t bufsize;
23467 struct passwd **result;
23468 getpwuid_r(uid, space, buf, bufsize, result);
23469   ;
23470   return 0;
23471 }
23472 _ACEOF
23473 rm -f conftest.$ac_objext
23474 if { (ac_try="$ac_compile"
23475 case "(($ac_try" in
23476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23477   *) ac_try_echo=$ac_try;;
23478 esac
23479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23480 $as_echo "$ac_try_echo") >&5
23481   (eval "$ac_compile") 2>conftest.er1
23482   ac_status=$?
23483   grep -v '^ *+' conftest.er1 >conftest.err
23484   rm -f conftest.er1
23485   cat conftest.err >&5
23486   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23487   (exit $ac_status); } && {
23488          test -z "$ac_c_werror_flag" ||
23489          test ! -s conftest.err
23490        } && test -s conftest.$ac_objext; then
23491   pgac_cv_func_getpwuid_r_5arg=yes
23492 else
23493   $as_echo "$as_me: failed program was:" >&5
23494 sed 's/^/| /' conftest.$ac_ext >&5
23495
23496         pgac_cv_func_getpwuid_r_5arg=no
23497 fi
23498
23499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23500 fi
23501 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
23502 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
23503 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
23504
23505 cat >>confdefs.h <<\_ACEOF
23506 #define GETPWUID_R_5ARG /**/
23507 _ACEOF
23508
23509 fi
23510
23511 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
23512 $as_echo_n "checking whether strerror_r returns int... " >&6; }
23513 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
23514   $as_echo_n "(cached) " >&6
23515 else
23516   cat >conftest.$ac_ext <<_ACEOF
23517 /* confdefs.h.  */
23518 _ACEOF
23519 cat confdefs.h >>conftest.$ac_ext
23520 cat >>conftest.$ac_ext <<_ACEOF
23521 /* end confdefs.h.  */
23522 #include <string.h>
23523 int
23524 main ()
23525 {
23526 #ifndef _AIX
23527 int strerror_r(int, char *, size_t);
23528 #else
23529 /* Older AIX has 'int' for the third argument so we don't test the args. */
23530 int strerror_r();
23531 #endif
23532   ;
23533   return 0;
23534 }
23535 _ACEOF
23536 rm -f conftest.$ac_objext
23537 if { (ac_try="$ac_compile"
23538 case "(($ac_try" in
23539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23540   *) ac_try_echo=$ac_try;;
23541 esac
23542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23543 $as_echo "$ac_try_echo") >&5
23544   (eval "$ac_compile") 2>conftest.er1
23545   ac_status=$?
23546   grep -v '^ *+' conftest.er1 >conftest.err
23547   rm -f conftest.er1
23548   cat conftest.err >&5
23549   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550   (exit $ac_status); } && {
23551          test -z "$ac_c_werror_flag" ||
23552          test ! -s conftest.err
23553        } && test -s conftest.$ac_objext; then
23554   pgac_cv_func_strerror_r_int=yes
23555 else
23556   $as_echo "$as_me: failed program was:" >&5
23557 sed 's/^/| /' conftest.$ac_ext >&5
23558
23559         pgac_cv_func_strerror_r_int=no
23560 fi
23561
23562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23563 fi
23564 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
23565 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
23566 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
23567
23568 cat >>confdefs.h <<\_ACEOF
23569 #define STRERROR_R_INT /**/
23570 _ACEOF
23571
23572 fi
23573
23574
23575 CFLAGS="$_CFLAGS"
23576 LIBS="$_LIBS"
23577
23578 else
23579 # do not use values from template file
23580 PTHREAD_CFLAGS=
23581 PTHREAD_LIBS=
23582 fi
23583
23584
23585
23586
23587
23588 # We can test for libldap_r only after we know PTHREAD_LIBS
23589 if test "$with_ldap" = yes ; then
23590   _LIBS="$LIBS"
23591   if test "$PORTNAME" != "win32"; then
23592
23593 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
23594 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
23595 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
23596   $as_echo_n "(cached) " >&6
23597 else
23598   ac_check_lib_save_LIBS=$LIBS
23599 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
23600 cat >conftest.$ac_ext <<_ACEOF
23601 /* confdefs.h.  */
23602 _ACEOF
23603 cat confdefs.h >>conftest.$ac_ext
23604 cat >>conftest.$ac_ext <<_ACEOF
23605 /* end confdefs.h.  */
23606
23607 /* Override any GCC internal prototype to avoid an error.
23608    Use char because int might match the return type of a GCC
23609    builtin and then its argument prototype would still apply.  */
23610 #ifdef __cplusplus
23611 extern "C"
23612 #endif
23613 char ldap_bind ();
23614 int
23615 main ()
23616 {
23617 return ldap_bind ();
23618   ;
23619   return 0;
23620 }
23621 _ACEOF
23622 rm -f conftest.$ac_objext conftest$ac_exeext
23623 if { (ac_try="$ac_link"
23624 case "(($ac_try" in
23625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23626   *) ac_try_echo=$ac_try;;
23627 esac
23628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23629 $as_echo "$ac_try_echo") >&5
23630   (eval "$ac_link") 2>conftest.er1
23631   ac_status=$?
23632   grep -v '^ *+' conftest.er1 >conftest.err
23633   rm -f conftest.er1
23634   cat conftest.err >&5
23635   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636   (exit $ac_status); } && {
23637          test -z "$ac_c_werror_flag" ||
23638          test ! -s conftest.err
23639        } && test -s conftest$ac_exeext && {
23640          test "$cross_compiling" = yes ||
23641          $as_test_x conftest$ac_exeext
23642        }; then
23643   ac_cv_lib_ldap_ldap_bind=yes
23644 else
23645   $as_echo "$as_me: failed program was:" >&5
23646 sed 's/^/| /' conftest.$ac_ext >&5
23647
23648         ac_cv_lib_ldap_ldap_bind=no
23649 fi
23650
23651 rm -rf conftest.dSYM
23652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23653       conftest$ac_exeext conftest.$ac_ext
23654 LIBS=$ac_check_lib_save_LIBS
23655 fi
23656 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
23657 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
23658 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
23659   cat >>confdefs.h <<_ACEOF
23660 #define HAVE_LIBLDAP 1
23661 _ACEOF
23662
23663   LIBS="-lldap $LIBS"
23664
23665 else
23666   { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
23667 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
23668    { (exit 1); exit 1; }; }
23669 fi
23670
23671     LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
23672     if test "$enable_thread_safety" = yes; then
23673       # on some platforms ldap_r fails to link without PTHREAD_LIBS
23674
23675 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
23676 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
23677 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
23678   $as_echo_n "(cached) " >&6
23679 else
23680   ac_check_lib_save_LIBS=$LIBS
23681 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
23682 cat >conftest.$ac_ext <<_ACEOF
23683 /* confdefs.h.  */
23684 _ACEOF
23685 cat confdefs.h >>conftest.$ac_ext
23686 cat >>conftest.$ac_ext <<_ACEOF
23687 /* end confdefs.h.  */
23688
23689 /* Override any GCC internal prototype to avoid an error.
23690    Use char because int might match the return type of a GCC
23691    builtin and then its argument prototype would still apply.  */
23692 #ifdef __cplusplus
23693 extern "C"
23694 #endif
23695 char ldap_simple_bind ();
23696 int
23697 main ()
23698 {
23699 return ldap_simple_bind ();
23700   ;
23701   return 0;
23702 }
23703 _ACEOF
23704 rm -f conftest.$ac_objext conftest$ac_exeext
23705 if { (ac_try="$ac_link"
23706 case "(($ac_try" in
23707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23708   *) ac_try_echo=$ac_try;;
23709 esac
23710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23711 $as_echo "$ac_try_echo") >&5
23712   (eval "$ac_link") 2>conftest.er1
23713   ac_status=$?
23714   grep -v '^ *+' conftest.er1 >conftest.err
23715   rm -f conftest.er1
23716   cat conftest.err >&5
23717   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718   (exit $ac_status); } && {
23719          test -z "$ac_c_werror_flag" ||
23720          test ! -s conftest.err
23721        } && test -s conftest$ac_exeext && {
23722          test "$cross_compiling" = yes ||
23723          $as_test_x conftest$ac_exeext
23724        }; then
23725   ac_cv_lib_ldap_r_ldap_simple_bind=yes
23726 else
23727   $as_echo "$as_me: failed program was:" >&5
23728 sed 's/^/| /' conftest.$ac_ext >&5
23729
23730         ac_cv_lib_ldap_r_ldap_simple_bind=no
23731 fi
23732
23733 rm -rf conftest.dSYM
23734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23735       conftest$ac_exeext conftest.$ac_ext
23736 LIBS=$ac_check_lib_save_LIBS
23737 fi
23738 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
23739 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
23740 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
23741   cat >>confdefs.h <<_ACEOF
23742 #define HAVE_LIBLDAP_R 1
23743 _ACEOF
23744
23745   LIBS="-lldap_r $LIBS"
23746
23747 else
23748   { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
23749 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
23750    { (exit 1); exit 1; }; }
23751 fi
23752
23753       LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
23754     else
23755       LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
23756     fi
23757   else
23758
23759 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
23760 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
23761 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
23762   $as_echo_n "(cached) " >&6
23763 else
23764   ac_check_lib_save_LIBS=$LIBS
23765 LIBS="-lwldap32  $LIBS"
23766 cat >conftest.$ac_ext <<_ACEOF
23767 /* confdefs.h.  */
23768 _ACEOF
23769 cat confdefs.h >>conftest.$ac_ext
23770 cat >>conftest.$ac_ext <<_ACEOF
23771 /* end confdefs.h.  */
23772
23773 /* Override any GCC internal prototype to avoid an error.
23774    Use char because int might match the return type of a GCC
23775    builtin and then its argument prototype would still apply.  */
23776 #ifdef __cplusplus
23777 extern "C"
23778 #endif
23779 char ldap_bind ();
23780 int
23781 main ()
23782 {
23783 return ldap_bind ();
23784   ;
23785   return 0;
23786 }
23787 _ACEOF
23788 rm -f conftest.$ac_objext conftest$ac_exeext
23789 if { (ac_try="$ac_link"
23790 case "(($ac_try" in
23791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23792   *) ac_try_echo=$ac_try;;
23793 esac
23794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23795 $as_echo "$ac_try_echo") >&5
23796   (eval "$ac_link") 2>conftest.er1
23797   ac_status=$?
23798   grep -v '^ *+' conftest.er1 >conftest.err
23799   rm -f conftest.er1
23800   cat conftest.err >&5
23801   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23802   (exit $ac_status); } && {
23803          test -z "$ac_c_werror_flag" ||
23804          test ! -s conftest.err
23805        } && test -s conftest$ac_exeext && {
23806          test "$cross_compiling" = yes ||
23807          $as_test_x conftest$ac_exeext
23808        }; then
23809   ac_cv_lib_wldap32_ldap_bind=yes
23810 else
23811   $as_echo "$as_me: failed program was:" >&5
23812 sed 's/^/| /' conftest.$ac_ext >&5
23813
23814         ac_cv_lib_wldap32_ldap_bind=no
23815 fi
23816
23817 rm -rf conftest.dSYM
23818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23819       conftest$ac_exeext conftest.$ac_ext
23820 LIBS=$ac_check_lib_save_LIBS
23821 fi
23822 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
23823 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
23824 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
23825   cat >>confdefs.h <<_ACEOF
23826 #define HAVE_LIBWLDAP32 1
23827 _ACEOF
23828
23829   LIBS="-lwldap32 $LIBS"
23830
23831 else
23832   { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
23833 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
23834    { (exit 1); exit 1; }; }
23835 fi
23836
23837     LDAP_LIBS_FE="-lwldap32"
23838     LDAP_LIBS_BE="-lwldap32"
23839   fi
23840   LIBS="$_LIBS"
23841 fi
23842
23843
23844
23845
23846 # Older versions of libxml2 lack the xmlStructuredErrorContext variable
23847 # (which could be a macro referring to a function, if threading is enabled)
23848 if test "$with_libxml" = yes ; then
23849   { $as_echo "$as_me:$LINENO: checking for xmlStructuredErrorContext" >&5
23850 $as_echo_n "checking for xmlStructuredErrorContext... " >&6; }
23851 if test "${pgac_cv_libxml_structerrctx+set}" = set; then
23852   $as_echo_n "(cached) " >&6
23853 else
23854   cat >conftest.$ac_ext <<_ACEOF
23855 /* confdefs.h.  */
23856 _ACEOF
23857 cat confdefs.h >>conftest.$ac_ext
23858 cat >>conftest.$ac_ext <<_ACEOF
23859 /* end confdefs.h.  */
23860 #include <libxml/globals.h>
23861                 void *globptr;
23862 int
23863 main ()
23864 {
23865 globptr = xmlStructuredErrorContext
23866   ;
23867   return 0;
23868 }
23869 _ACEOF
23870 rm -f conftest.$ac_objext conftest$ac_exeext
23871 if { (ac_try="$ac_link"
23872 case "(($ac_try" in
23873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23874   *) ac_try_echo=$ac_try;;
23875 esac
23876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23877 $as_echo "$ac_try_echo") >&5
23878   (eval "$ac_link") 2>conftest.er1
23879   ac_status=$?
23880   grep -v '^ *+' conftest.er1 >conftest.err
23881   rm -f conftest.er1
23882   cat conftest.err >&5
23883   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884   (exit $ac_status); } && {
23885          test -z "$ac_c_werror_flag" ||
23886          test ! -s conftest.err
23887        } && test -s conftest$ac_exeext && {
23888          test "$cross_compiling" = yes ||
23889          $as_test_x conftest$ac_exeext
23890        }; then
23891   pgac_cv_libxml_structerrctx=yes
23892 else
23893   $as_echo "$as_me: failed program was:" >&5
23894 sed 's/^/| /' conftest.$ac_ext >&5
23895
23896         pgac_cv_libxml_structerrctx=no
23897 fi
23898
23899 rm -rf conftest.dSYM
23900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23901       conftest$ac_exeext conftest.$ac_ext
23902 fi
23903 { $as_echo "$as_me:$LINENO: result: $pgac_cv_libxml_structerrctx" >&5
23904 $as_echo "$pgac_cv_libxml_structerrctx" >&6; }
23905   if test x"$pgac_cv_libxml_structerrctx" = x"yes"; then
23906
23907 cat >>confdefs.h <<\_ACEOF
23908 #define HAVE_XMLSTRUCTUREDERRORCONTEXT 1
23909 _ACEOF
23910
23911   fi
23912 fi
23913
23914
23915 # This test makes sure that run tests work at all.  Sometimes a shared
23916 # library is found by the linker, but the runtime linker can't find it.
23917 # This check should come after all modifications of compiler or linker
23918 # variables, and before any other run tests.
23919 { $as_echo "$as_me:$LINENO: checking test program" >&5
23920 $as_echo_n "checking test program... " >&6; }
23921 if test "$cross_compiling" = yes; then
23922   { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
23923 $as_echo "cross-compiling" >&6; }
23924 else
23925   cat >conftest.$ac_ext <<_ACEOF
23926 /* confdefs.h.  */
23927 _ACEOF
23928 cat confdefs.h >>conftest.$ac_ext
23929 cat >>conftest.$ac_ext <<_ACEOF
23930 /* end confdefs.h.  */
23931 int main() { return 0; }
23932 _ACEOF
23933 rm -f conftest$ac_exeext
23934 if { (ac_try="$ac_link"
23935 case "(($ac_try" in
23936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23937   *) ac_try_echo=$ac_try;;
23938 esac
23939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23940 $as_echo "$ac_try_echo") >&5
23941   (eval "$ac_link") 2>&5
23942   ac_status=$?
23943   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23944   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23945   { (case "(($ac_try" in
23946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23947   *) ac_try_echo=$ac_try;;
23948 esac
23949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23950 $as_echo "$ac_try_echo") >&5
23951   (eval "$ac_try") 2>&5
23952   ac_status=$?
23953   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23954   (exit $ac_status); }; }; then
23955   { $as_echo "$as_me:$LINENO: result: ok" >&5
23956 $as_echo "ok" >&6; }
23957 else
23958   $as_echo "$as_me: program exited with status $ac_status" >&5
23959 $as_echo "$as_me: failed program was:" >&5
23960 sed 's/^/| /' conftest.$ac_ext >&5
23961
23962 ( exit $ac_status )
23963 { $as_echo "$as_me:$LINENO: result: failed" >&5
23964 $as_echo "failed" >&6; }
23965 { { $as_echo "$as_me:$LINENO: error:
23966 Could not execute a simple test program.  This may be a problem
23967 related to locating shared libraries.  Check the file 'config.log'
23968 for the exact reason." >&5
23969 $as_echo "$as_me: error:
23970 Could not execute a simple test program.  This may be a problem
23971 related to locating shared libraries.  Check the file 'config.log'
23972 for the exact reason." >&2;}
23973    { (exit 1); exit 1; }; }
23974 fi
23975 rm -rf conftest.dSYM
23976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23977 fi
23978
23979
23980
23981 # --------------------
23982 # Run tests below here
23983 # --------------------
23984
23985 # Force use of our snprintf if system's doesn't do arg control
23986 # See comment above at snprintf test for details.
23987 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
23988   { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
23989 $as_echo_n "checking whether printf supports argument control... " >&6; }
23990 if test "${pgac_cv_printf_arg_control+set}" = set; then
23991   $as_echo_n "(cached) " >&6
23992 else
23993   if test "$cross_compiling" = yes; then
23994   pgac_cv_printf_arg_control=cross
23995 else
23996   cat >conftest.$ac_ext <<_ACEOF
23997 /* confdefs.h.  */
23998 _ACEOF
23999 cat confdefs.h >>conftest.$ac_ext
24000 cat >>conftest.$ac_ext <<_ACEOF
24001 /* end confdefs.h.  */
24002 #include <stdio.h>
24003 #include <string.h>
24004
24005 int main()
24006 {
24007   char buf[100];
24008
24009   /* can it swap arguments? */
24010   snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
24011   if (strcmp(buf, "4 3") != 0)
24012     return 1;
24013   return 0;
24014 }
24015 _ACEOF
24016 rm -f conftest$ac_exeext
24017 if { (ac_try="$ac_link"
24018 case "(($ac_try" in
24019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24020   *) ac_try_echo=$ac_try;;
24021 esac
24022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24023 $as_echo "$ac_try_echo") >&5
24024   (eval "$ac_link") 2>&5
24025   ac_status=$?
24026   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24027   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24028   { (case "(($ac_try" in
24029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24030   *) ac_try_echo=$ac_try;;
24031 esac
24032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24033 $as_echo "$ac_try_echo") >&5
24034   (eval "$ac_try") 2>&5
24035   ac_status=$?
24036   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24037   (exit $ac_status); }; }; then
24038   pgac_cv_printf_arg_control=yes
24039 else
24040   $as_echo "$as_me: program exited with status $ac_status" >&5
24041 $as_echo "$as_me: failed program was:" >&5
24042 sed 's/^/| /' conftest.$ac_ext >&5
24043
24044 ( exit $ac_status )
24045 pgac_cv_printf_arg_control=no
24046 fi
24047 rm -rf conftest.dSYM
24048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24049 fi
24050
24051
24052
24053 fi
24054 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
24055 $as_echo "$pgac_cv_printf_arg_control" >&6; }
24056
24057   if test $pgac_cv_printf_arg_control != yes ; then
24058     pgac_need_repl_snprintf=yes
24059   fi
24060 fi
24061
24062
24063
24064
24065 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
24066 $as_echo_n "checking whether long int is 64 bits... " >&6; }
24067 if test "${pgac_cv_type_long_int_64+set}" = set; then
24068   $as_echo_n "(cached) " >&6
24069 else
24070   if test "$cross_compiling" = yes; then
24071   # If cross-compiling, check the size reported by the compiler and
24072 # trust that the arithmetic works.
24073 cat >conftest.$ac_ext <<_ACEOF
24074 /* confdefs.h.  */
24075 _ACEOF
24076 cat confdefs.h >>conftest.$ac_ext
24077 cat >>conftest.$ac_ext <<_ACEOF
24078 /* end confdefs.h.  */
24079
24080 int
24081 main ()
24082 {
24083 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
24084 test_array [0] = 0
24085
24086   ;
24087   return 0;
24088 }
24089 _ACEOF
24090 rm -f conftest.$ac_objext
24091 if { (ac_try="$ac_compile"
24092 case "(($ac_try" in
24093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24094   *) ac_try_echo=$ac_try;;
24095 esac
24096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24097 $as_echo "$ac_try_echo") >&5
24098   (eval "$ac_compile") 2>conftest.er1
24099   ac_status=$?
24100   grep -v '^ *+' conftest.er1 >conftest.err
24101   rm -f conftest.er1
24102   cat conftest.err >&5
24103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24104   (exit $ac_status); } && {
24105          test -z "$ac_c_werror_flag" ||
24106          test ! -s conftest.err
24107        } && test -s conftest.$ac_objext; then
24108   pgac_cv_type_long_int_64=yes
24109 else
24110   $as_echo "$as_me: failed program was:" >&5
24111 sed 's/^/| /' conftest.$ac_ext >&5
24112
24113         pgac_cv_type_long_int_64=no
24114 fi
24115
24116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24117 else
24118   cat >conftest.$ac_ext <<_ACEOF
24119 /* confdefs.h.  */
24120 _ACEOF
24121 cat confdefs.h >>conftest.$ac_ext
24122 cat >>conftest.$ac_ext <<_ACEOF
24123 /* end confdefs.h.  */
24124 typedef long int ac_int64;
24125
24126 /*
24127  * These are globals to discourage the compiler from folding all the
24128  * arithmetic tests down to compile-time constants.
24129  */
24130 ac_int64 a = 20000001;
24131 ac_int64 b = 40000005;
24132
24133 int does_int64_work()
24134 {
24135   ac_int64 c,d;
24136
24137   if (sizeof(ac_int64) != 8)
24138     return 0;                   /* definitely not the right size */
24139
24140   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24141   c = a * b;
24142   d = (c + b) / b;
24143   if (d != a+1)
24144     return 0;
24145   return 1;
24146 }
24147 main() {
24148   exit(! does_int64_work());
24149 }
24150 _ACEOF
24151 rm -f conftest$ac_exeext
24152 if { (ac_try="$ac_link"
24153 case "(($ac_try" in
24154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24155   *) ac_try_echo=$ac_try;;
24156 esac
24157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24158 $as_echo "$ac_try_echo") >&5
24159   (eval "$ac_link") 2>&5
24160   ac_status=$?
24161   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24162   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24163   { (case "(($ac_try" in
24164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24165   *) ac_try_echo=$ac_try;;
24166 esac
24167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24168 $as_echo "$ac_try_echo") >&5
24169   (eval "$ac_try") 2>&5
24170   ac_status=$?
24171   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24172   (exit $ac_status); }; }; then
24173   pgac_cv_type_long_int_64=yes
24174 else
24175   $as_echo "$as_me: program exited with status $ac_status" >&5
24176 $as_echo "$as_me: failed program was:" >&5
24177 sed 's/^/| /' conftest.$ac_ext >&5
24178
24179 ( exit $ac_status )
24180 pgac_cv_type_long_int_64=no
24181 fi
24182 rm -rf conftest.dSYM
24183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24184 fi
24185
24186
24187 fi
24188 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
24189 $as_echo "$pgac_cv_type_long_int_64" >&6; }
24190
24191 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
24192 if test x"$pgac_cv_type_long_int_64" = xyes ; then
24193
24194 cat >>confdefs.h <<\_ACEOF
24195 #define HAVE_LONG_INT_64 1
24196 _ACEOF
24197
24198 fi
24199
24200
24201 if test x"$HAVE_LONG_INT_64" = x"no" ; then
24202   { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
24203 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
24204 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
24205   $as_echo_n "(cached) " >&6
24206 else
24207   if test "$cross_compiling" = yes; then
24208   # If cross-compiling, check the size reported by the compiler and
24209 # trust that the arithmetic works.
24210 cat >conftest.$ac_ext <<_ACEOF
24211 /* confdefs.h.  */
24212 _ACEOF
24213 cat confdefs.h >>conftest.$ac_ext
24214 cat >>conftest.$ac_ext <<_ACEOF
24215 /* end confdefs.h.  */
24216
24217 int
24218 main ()
24219 {
24220 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
24221 test_array [0] = 0
24222
24223   ;
24224   return 0;
24225 }
24226 _ACEOF
24227 rm -f conftest.$ac_objext
24228 if { (ac_try="$ac_compile"
24229 case "(($ac_try" in
24230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24231   *) ac_try_echo=$ac_try;;
24232 esac
24233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24234 $as_echo "$ac_try_echo") >&5
24235   (eval "$ac_compile") 2>conftest.er1
24236   ac_status=$?
24237   grep -v '^ *+' conftest.er1 >conftest.err
24238   rm -f conftest.er1
24239   cat conftest.err >&5
24240   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241   (exit $ac_status); } && {
24242          test -z "$ac_c_werror_flag" ||
24243          test ! -s conftest.err
24244        } && test -s conftest.$ac_objext; then
24245   pgac_cv_type_long_long_int_64=yes
24246 else
24247   $as_echo "$as_me: failed program was:" >&5
24248 sed 's/^/| /' conftest.$ac_ext >&5
24249
24250         pgac_cv_type_long_long_int_64=no
24251 fi
24252
24253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24254 else
24255   cat >conftest.$ac_ext <<_ACEOF
24256 /* confdefs.h.  */
24257 _ACEOF
24258 cat confdefs.h >>conftest.$ac_ext
24259 cat >>conftest.$ac_ext <<_ACEOF
24260 /* end confdefs.h.  */
24261 typedef long long int ac_int64;
24262
24263 /*
24264  * These are globals to discourage the compiler from folding all the
24265  * arithmetic tests down to compile-time constants.
24266  */
24267 ac_int64 a = 20000001;
24268 ac_int64 b = 40000005;
24269
24270 int does_int64_work()
24271 {
24272   ac_int64 c,d;
24273
24274   if (sizeof(ac_int64) != 8)
24275     return 0;                   /* definitely not the right size */
24276
24277   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24278   c = a * b;
24279   d = (c + b) / b;
24280   if (d != a+1)
24281     return 0;
24282   return 1;
24283 }
24284 main() {
24285   exit(! does_int64_work());
24286 }
24287 _ACEOF
24288 rm -f conftest$ac_exeext
24289 if { (ac_try="$ac_link"
24290 case "(($ac_try" in
24291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24292   *) ac_try_echo=$ac_try;;
24293 esac
24294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24295 $as_echo "$ac_try_echo") >&5
24296   (eval "$ac_link") 2>&5
24297   ac_status=$?
24298   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24299   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24300   { (case "(($ac_try" in
24301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24302   *) ac_try_echo=$ac_try;;
24303 esac
24304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24305 $as_echo "$ac_try_echo") >&5
24306   (eval "$ac_try") 2>&5
24307   ac_status=$?
24308   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24309   (exit $ac_status); }; }; then
24310   pgac_cv_type_long_long_int_64=yes
24311 else
24312   $as_echo "$as_me: program exited with status $ac_status" >&5
24313 $as_echo "$as_me: failed program was:" >&5
24314 sed 's/^/| /' conftest.$ac_ext >&5
24315
24316 ( exit $ac_status )
24317 pgac_cv_type_long_long_int_64=no
24318 fi
24319 rm -rf conftest.dSYM
24320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24321 fi
24322
24323
24324 fi
24325 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
24326 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
24327
24328 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
24329 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
24330
24331 cat >>confdefs.h <<\_ACEOF
24332 #define HAVE_LONG_LONG_INT_64 1
24333 _ACEOF
24334
24335 fi
24336
24337   if test x"$HAVE_LONG_LONG_INT_64" = x"no" ; then
24338     { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
24339 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
24340    { (exit 1); exit 1; }; }
24341   fi
24342 fi
24343
24344
24345
24346 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
24347   cat >conftest.$ac_ext <<_ACEOF
24348 /* confdefs.h.  */
24349 _ACEOF
24350 cat confdefs.h >>conftest.$ac_ext
24351 cat >>conftest.$ac_ext <<_ACEOF
24352 /* end confdefs.h.  */
24353
24354 #define INT64CONST(x)  x##LL
24355 long long int foo = INT64CONST(0x1234567890123456);
24356
24357 int
24358 main ()
24359 {
24360
24361   ;
24362   return 0;
24363 }
24364 _ACEOF
24365 rm -f conftest.$ac_objext
24366 if { (ac_try="$ac_compile"
24367 case "(($ac_try" in
24368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24369   *) ac_try_echo=$ac_try;;
24370 esac
24371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24372 $as_echo "$ac_try_echo") >&5
24373   (eval "$ac_compile") 2>conftest.er1
24374   ac_status=$?
24375   grep -v '^ *+' conftest.er1 >conftest.err
24376   rm -f conftest.er1
24377   cat conftest.err >&5
24378   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24379   (exit $ac_status); } && {
24380          test -z "$ac_c_werror_flag" ||
24381          test ! -s conftest.err
24382        } && test -s conftest.$ac_objext; then
24383
24384 cat >>confdefs.h <<\_ACEOF
24385 #define HAVE_LL_CONSTANTS 1
24386 _ACEOF
24387
24388 else
24389   $as_echo "$as_me: failed program was:" >&5
24390 sed 's/^/| /' conftest.$ac_ext >&5
24391
24392
24393 fi
24394
24395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24396 fi
24397
24398
24399 # If we found "long int" is 64 bits, assume snprintf handles it.  If
24400 # we found we need to use "long long int", better check.  We cope with
24401 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
24402 # work, fall back to our own snprintf emulation (which we know uses %lld).
24403
24404 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
24405   if test $pgac_need_repl_snprintf = no; then
24406     { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
24407 $as_echo_n "checking snprintf format for long long int... " >&6; }
24408 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
24409   $as_echo_n "(cached) " >&6
24410 else
24411   for pgac_format in '%lld' '%qd' '%I64d'; do
24412 if test "$cross_compiling" = yes; then
24413   pgac_cv_snprintf_long_long_int_format=cross; break
24414 else
24415   cat >conftest.$ac_ext <<_ACEOF
24416 /* confdefs.h.  */
24417 _ACEOF
24418 cat confdefs.h >>conftest.$ac_ext
24419 cat >>conftest.$ac_ext <<_ACEOF
24420 /* end confdefs.h.  */
24421 #include <stdio.h>
24422 typedef long long int ac_int64;
24423 #define INT64_FORMAT "$pgac_format"
24424
24425 ac_int64 a = 20000001;
24426 ac_int64 b = 40000005;
24427
24428 int does_int64_snprintf_work()
24429 {
24430   ac_int64 c;
24431   char buf[100];
24432
24433   if (sizeof(ac_int64) != 8)
24434     return 0;                   /* doesn't look like the right size */
24435
24436   c = a * b;
24437   snprintf(buf, 100, INT64_FORMAT, c);
24438   if (strcmp(buf, "800000140000005") != 0)
24439     return 0;                   /* either multiply or snprintf is busted */
24440   return 1;
24441 }
24442 main() {
24443   exit(! does_int64_snprintf_work());
24444 }
24445 _ACEOF
24446 rm -f conftest$ac_exeext
24447 if { (ac_try="$ac_link"
24448 case "(($ac_try" in
24449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24450   *) ac_try_echo=$ac_try;;
24451 esac
24452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24453 $as_echo "$ac_try_echo") >&5
24454   (eval "$ac_link") 2>&5
24455   ac_status=$?
24456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24457   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24458   { (case "(($ac_try" in
24459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24460   *) ac_try_echo=$ac_try;;
24461 esac
24462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24463 $as_echo "$ac_try_echo") >&5
24464   (eval "$ac_try") 2>&5
24465   ac_status=$?
24466   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467   (exit $ac_status); }; }; then
24468   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
24469 else
24470   $as_echo "$as_me: program exited with status $ac_status" >&5
24471 $as_echo "$as_me: failed program was:" >&5
24472 sed 's/^/| /' conftest.$ac_ext >&5
24473
24474 fi
24475 rm -rf conftest.dSYM
24476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24477 fi
24478
24479
24480 done
24481 fi
24482
24483 LONG_LONG_INT_FORMAT=''
24484
24485 case $pgac_cv_snprintf_long_long_int_format in
24486   cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
24487 $as_echo "cannot test (not on host machine)" >&6; };;
24488   ?*)    { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
24489 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
24490          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
24491   *)     { $as_echo "$as_me:$LINENO: result: none" >&5
24492 $as_echo "none" >&6; };;
24493 esac
24494     if test "$LONG_LONG_INT_FORMAT" = ""; then
24495       # Force usage of our own snprintf, since system snprintf is broken
24496       pgac_need_repl_snprintf=yes
24497       LONG_LONG_INT_FORMAT='%lld'
24498     fi
24499   else
24500     # Here if we previously decided we needed to use our own snprintf
24501     LONG_LONG_INT_FORMAT='%lld'
24502   fi
24503   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
24504   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
24505   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
24506 else
24507   # Here if we are not using 'long long int' at all
24508   INT64_FORMAT='"%ld"'
24509   UINT64_FORMAT='"%lu"'
24510 fi
24511
24512
24513 cat >>confdefs.h <<_ACEOF
24514 #define INT64_FORMAT $INT64_FORMAT
24515 _ACEOF
24516
24517
24518
24519 cat >>confdefs.h <<_ACEOF
24520 #define UINT64_FORMAT $UINT64_FORMAT
24521 _ACEOF
24522
24523
24524 # Now we have checked all the reasons to replace snprintf
24525 if test $pgac_need_repl_snprintf = yes; then
24526
24527 cat >>confdefs.h <<\_ACEOF
24528 #define USE_REPL_SNPRINTF 1
24529 _ACEOF
24530
24531   case " $LIBOBJS " in
24532   *" snprintf.$ac_objext "* ) ;;
24533   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
24534  ;;
24535 esac
24536
24537 fi
24538
24539 # Check size of void *, size_t (enables tweaks for > 32bit address space)
24540 # The cast to long int works around a bug in the HP C Compiler
24541 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24542 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24543 # This bug is HP SR number 8606223364.
24544 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
24545 $as_echo_n "checking size of void *... " >&6; }
24546 if test "${ac_cv_sizeof_void_p+set}" = set; then
24547   $as_echo_n "(cached) " >&6
24548 else
24549   if test "$cross_compiling" = yes; then
24550   # Depending upon the size, compute the lo and hi bounds.
24551 cat >conftest.$ac_ext <<_ACEOF
24552 /* confdefs.h.  */
24553 _ACEOF
24554 cat confdefs.h >>conftest.$ac_ext
24555 cat >>conftest.$ac_ext <<_ACEOF
24556 /* end confdefs.h.  */
24557 $ac_includes_default
24558 int
24559 main ()
24560 {
24561 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
24562 test_array [0] = 0
24563
24564   ;
24565   return 0;
24566 }
24567 _ACEOF
24568 rm -f conftest.$ac_objext
24569 if { (ac_try="$ac_compile"
24570 case "(($ac_try" in
24571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24572   *) ac_try_echo=$ac_try;;
24573 esac
24574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24575 $as_echo "$ac_try_echo") >&5
24576   (eval "$ac_compile") 2>conftest.er1
24577   ac_status=$?
24578   grep -v '^ *+' conftest.er1 >conftest.err
24579   rm -f conftest.er1
24580   cat conftest.err >&5
24581   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582   (exit $ac_status); } && {
24583          test -z "$ac_c_werror_flag" ||
24584          test ! -s conftest.err
24585        } && test -s conftest.$ac_objext; then
24586   ac_lo=0 ac_mid=0
24587   while :; do
24588     cat >conftest.$ac_ext <<_ACEOF
24589 /* confdefs.h.  */
24590 _ACEOF
24591 cat confdefs.h >>conftest.$ac_ext
24592 cat >>conftest.$ac_ext <<_ACEOF
24593 /* end confdefs.h.  */
24594 $ac_includes_default
24595 int
24596 main ()
24597 {
24598 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24599 test_array [0] = 0
24600
24601   ;
24602   return 0;
24603 }
24604 _ACEOF
24605 rm -f conftest.$ac_objext
24606 if { (ac_try="$ac_compile"
24607 case "(($ac_try" in
24608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24609   *) ac_try_echo=$ac_try;;
24610 esac
24611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24612 $as_echo "$ac_try_echo") >&5
24613   (eval "$ac_compile") 2>conftest.er1
24614   ac_status=$?
24615   grep -v '^ *+' conftest.er1 >conftest.err
24616   rm -f conftest.er1
24617   cat conftest.err >&5
24618   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24619   (exit $ac_status); } && {
24620          test -z "$ac_c_werror_flag" ||
24621          test ! -s conftest.err
24622        } && test -s conftest.$ac_objext; then
24623   ac_hi=$ac_mid; break
24624 else
24625   $as_echo "$as_me: failed program was:" >&5
24626 sed 's/^/| /' conftest.$ac_ext >&5
24627
24628         ac_lo=`expr $ac_mid + 1`
24629                         if test $ac_lo -le $ac_mid; then
24630                           ac_lo= ac_hi=
24631                           break
24632                         fi
24633                         ac_mid=`expr 2 '*' $ac_mid + 1`
24634 fi
24635
24636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24637   done
24638 else
24639   $as_echo "$as_me: failed program was:" >&5
24640 sed 's/^/| /' conftest.$ac_ext >&5
24641
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 $ac_includes_default
24649 int
24650 main ()
24651 {
24652 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
24653 test_array [0] = 0
24654
24655   ;
24656   return 0;
24657 }
24658 _ACEOF
24659 rm -f conftest.$ac_objext
24660 if { (ac_try="$ac_compile"
24661 case "(($ac_try" in
24662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24663   *) ac_try_echo=$ac_try;;
24664 esac
24665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24666 $as_echo "$ac_try_echo") >&5
24667   (eval "$ac_compile") 2>conftest.er1
24668   ac_status=$?
24669   grep -v '^ *+' conftest.er1 >conftest.err
24670   rm -f conftest.er1
24671   cat conftest.err >&5
24672   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24673   (exit $ac_status); } && {
24674          test -z "$ac_c_werror_flag" ||
24675          test ! -s conftest.err
24676        } && test -s conftest.$ac_objext; then
24677   ac_hi=-1 ac_mid=-1
24678   while :; do
24679     cat >conftest.$ac_ext <<_ACEOF
24680 /* confdefs.h.  */
24681 _ACEOF
24682 cat confdefs.h >>conftest.$ac_ext
24683 cat >>conftest.$ac_ext <<_ACEOF
24684 /* end confdefs.h.  */
24685 $ac_includes_default
24686 int
24687 main ()
24688 {
24689 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
24690 test_array [0] = 0
24691
24692   ;
24693   return 0;
24694 }
24695 _ACEOF
24696 rm -f conftest.$ac_objext
24697 if { (ac_try="$ac_compile"
24698 case "(($ac_try" in
24699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24700   *) ac_try_echo=$ac_try;;
24701 esac
24702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24703 $as_echo "$ac_try_echo") >&5
24704   (eval "$ac_compile") 2>conftest.er1
24705   ac_status=$?
24706   grep -v '^ *+' conftest.er1 >conftest.err
24707   rm -f conftest.er1
24708   cat conftest.err >&5
24709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710   (exit $ac_status); } && {
24711          test -z "$ac_c_werror_flag" ||
24712          test ! -s conftest.err
24713        } && test -s conftest.$ac_objext; then
24714   ac_lo=$ac_mid; break
24715 else
24716   $as_echo "$as_me: failed program was:" >&5
24717 sed 's/^/| /' conftest.$ac_ext >&5
24718
24719         ac_hi=`expr '(' $ac_mid ')' - 1`
24720                         if test $ac_mid -le $ac_hi; then
24721                           ac_lo= ac_hi=
24722                           break
24723                         fi
24724                         ac_mid=`expr 2 '*' $ac_mid`
24725 fi
24726
24727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24728   done
24729 else
24730   $as_echo "$as_me: failed program was:" >&5
24731 sed 's/^/| /' conftest.$ac_ext >&5
24732
24733         ac_lo= ac_hi=
24734 fi
24735
24736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24737 fi
24738
24739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24740 # Binary search between lo and hi bounds.
24741 while test "x$ac_lo" != "x$ac_hi"; do
24742   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24743   cat >conftest.$ac_ext <<_ACEOF
24744 /* confdefs.h.  */
24745 _ACEOF
24746 cat confdefs.h >>conftest.$ac_ext
24747 cat >>conftest.$ac_ext <<_ACEOF
24748 /* end confdefs.h.  */
24749 $ac_includes_default
24750 int
24751 main ()
24752 {
24753 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24754 test_array [0] = 0
24755
24756   ;
24757   return 0;
24758 }
24759 _ACEOF
24760 rm -f conftest.$ac_objext
24761 if { (ac_try="$ac_compile"
24762 case "(($ac_try" in
24763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24764   *) ac_try_echo=$ac_try;;
24765 esac
24766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24767 $as_echo "$ac_try_echo") >&5
24768   (eval "$ac_compile") 2>conftest.er1
24769   ac_status=$?
24770   grep -v '^ *+' conftest.er1 >conftest.err
24771   rm -f conftest.er1
24772   cat conftest.err >&5
24773   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24774   (exit $ac_status); } && {
24775          test -z "$ac_c_werror_flag" ||
24776          test ! -s conftest.err
24777        } && test -s conftest.$ac_objext; then
24778   ac_hi=$ac_mid
24779 else
24780   $as_echo "$as_me: failed program was:" >&5
24781 sed 's/^/| /' conftest.$ac_ext >&5
24782
24783         ac_lo=`expr '(' $ac_mid ')' + 1`
24784 fi
24785
24786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24787 done
24788 case $ac_lo in
24789 ?*) ac_cv_sizeof_void_p=$ac_lo;;
24790 '') if test "$ac_cv_type_void_p" = yes; then
24791      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24793 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24794 See \`config.log' for more details." >&5
24795 $as_echo "$as_me: error: cannot compute sizeof (void *)
24796 See \`config.log' for more details." >&2;}
24797    { (exit 77); exit 77; }; }; }
24798    else
24799      ac_cv_sizeof_void_p=0
24800    fi ;;
24801 esac
24802 else
24803   cat >conftest.$ac_ext <<_ACEOF
24804 /* confdefs.h.  */
24805 _ACEOF
24806 cat confdefs.h >>conftest.$ac_ext
24807 cat >>conftest.$ac_ext <<_ACEOF
24808 /* end confdefs.h.  */
24809 $ac_includes_default
24810 static long int longval () { return (long int) (sizeof (void *)); }
24811 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
24812 #include <stdio.h>
24813 #include <stdlib.h>
24814 int
24815 main ()
24816 {
24817
24818   FILE *f = fopen ("conftest.val", "w");
24819   if (! f)
24820     return 1;
24821   if (((long int) (sizeof (void *))) < 0)
24822     {
24823       long int i = longval ();
24824       if (i != ((long int) (sizeof (void *))))
24825         return 1;
24826       fprintf (f, "%ld", i);
24827     }
24828   else
24829     {
24830       unsigned long int i = ulongval ();
24831       if (i != ((long int) (sizeof (void *))))
24832         return 1;
24833       fprintf (f, "%lu", i);
24834     }
24835   /* Do not output a trailing newline, as this causes \r\n confusion
24836      on some platforms.  */
24837   return ferror (f) || fclose (f) != 0;
24838
24839   ;
24840   return 0;
24841 }
24842 _ACEOF
24843 rm -f conftest$ac_exeext
24844 if { (ac_try="$ac_link"
24845 case "(($ac_try" in
24846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24847   *) ac_try_echo=$ac_try;;
24848 esac
24849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24850 $as_echo "$ac_try_echo") >&5
24851   (eval "$ac_link") 2>&5
24852   ac_status=$?
24853   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24855   { (case "(($ac_try" in
24856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24857   *) ac_try_echo=$ac_try;;
24858 esac
24859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24860 $as_echo "$ac_try_echo") >&5
24861   (eval "$ac_try") 2>&5
24862   ac_status=$?
24863   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24864   (exit $ac_status); }; }; then
24865   ac_cv_sizeof_void_p=`cat conftest.val`
24866 else
24867   $as_echo "$as_me: program exited with status $ac_status" >&5
24868 $as_echo "$as_me: failed program was:" >&5
24869 sed 's/^/| /' conftest.$ac_ext >&5
24870
24871 ( exit $ac_status )
24872 if test "$ac_cv_type_void_p" = yes; then
24873      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24875 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24876 See \`config.log' for more details." >&5
24877 $as_echo "$as_me: error: cannot compute sizeof (void *)
24878 See \`config.log' for more details." >&2;}
24879    { (exit 77); exit 77; }; }; }
24880    else
24881      ac_cv_sizeof_void_p=0
24882    fi
24883 fi
24884 rm -rf conftest.dSYM
24885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24886 fi
24887 rm -f conftest.val
24888 fi
24889 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24890 $as_echo "$ac_cv_sizeof_void_p" >&6; }
24891
24892
24893
24894 cat >>confdefs.h <<_ACEOF
24895 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24896 _ACEOF
24897
24898
24899 # The cast to long int works around a bug in the HP C Compiler
24900 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24901 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24902 # This bug is HP SR number 8606223364.
24903 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
24904 $as_echo_n "checking size of size_t... " >&6; }
24905 if test "${ac_cv_sizeof_size_t+set}" = set; then
24906   $as_echo_n "(cached) " >&6
24907 else
24908   if test "$cross_compiling" = yes; then
24909   # Depending upon the size, compute the lo and hi bounds.
24910 cat >conftest.$ac_ext <<_ACEOF
24911 /* confdefs.h.  */
24912 _ACEOF
24913 cat confdefs.h >>conftest.$ac_ext
24914 cat >>conftest.$ac_ext <<_ACEOF
24915 /* end confdefs.h.  */
24916 $ac_includes_default
24917 int
24918 main ()
24919 {
24920 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
24921 test_array [0] = 0
24922
24923   ;
24924   return 0;
24925 }
24926 _ACEOF
24927 rm -f conftest.$ac_objext
24928 if { (ac_try="$ac_compile"
24929 case "(($ac_try" in
24930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24931   *) ac_try_echo=$ac_try;;
24932 esac
24933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24934 $as_echo "$ac_try_echo") >&5
24935   (eval "$ac_compile") 2>conftest.er1
24936   ac_status=$?
24937   grep -v '^ *+' conftest.er1 >conftest.err
24938   rm -f conftest.er1
24939   cat conftest.err >&5
24940   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24941   (exit $ac_status); } && {
24942          test -z "$ac_c_werror_flag" ||
24943          test ! -s conftest.err
24944        } && test -s conftest.$ac_objext; then
24945   ac_lo=0 ac_mid=0
24946   while :; do
24947     cat >conftest.$ac_ext <<_ACEOF
24948 /* confdefs.h.  */
24949 _ACEOF
24950 cat confdefs.h >>conftest.$ac_ext
24951 cat >>conftest.$ac_ext <<_ACEOF
24952 /* end confdefs.h.  */
24953 $ac_includes_default
24954 int
24955 main ()
24956 {
24957 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24958 test_array [0] = 0
24959
24960   ;
24961   return 0;
24962 }
24963 _ACEOF
24964 rm -f conftest.$ac_objext
24965 if { (ac_try="$ac_compile"
24966 case "(($ac_try" in
24967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24968   *) ac_try_echo=$ac_try;;
24969 esac
24970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24971 $as_echo "$ac_try_echo") >&5
24972   (eval "$ac_compile") 2>conftest.er1
24973   ac_status=$?
24974   grep -v '^ *+' conftest.er1 >conftest.err
24975   rm -f conftest.er1
24976   cat conftest.err >&5
24977   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24978   (exit $ac_status); } && {
24979          test -z "$ac_c_werror_flag" ||
24980          test ! -s conftest.err
24981        } && test -s conftest.$ac_objext; then
24982   ac_hi=$ac_mid; break
24983 else
24984   $as_echo "$as_me: failed program was:" >&5
24985 sed 's/^/| /' conftest.$ac_ext >&5
24986
24987         ac_lo=`expr $ac_mid + 1`
24988                         if test $ac_lo -le $ac_mid; then
24989                           ac_lo= ac_hi=
24990                           break
24991                         fi
24992                         ac_mid=`expr 2 '*' $ac_mid + 1`
24993 fi
24994
24995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24996   done
24997 else
24998   $as_echo "$as_me: failed program was:" >&5
24999 sed 's/^/| /' conftest.$ac_ext >&5
25000
25001         cat >conftest.$ac_ext <<_ACEOF
25002 /* confdefs.h.  */
25003 _ACEOF
25004 cat confdefs.h >>conftest.$ac_ext
25005 cat >>conftest.$ac_ext <<_ACEOF
25006 /* end confdefs.h.  */
25007 $ac_includes_default
25008 int
25009 main ()
25010 {
25011 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
25012 test_array [0] = 0
25013
25014   ;
25015   return 0;
25016 }
25017 _ACEOF
25018 rm -f conftest.$ac_objext
25019 if { (ac_try="$ac_compile"
25020 case "(($ac_try" in
25021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25022   *) ac_try_echo=$ac_try;;
25023 esac
25024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25025 $as_echo "$ac_try_echo") >&5
25026   (eval "$ac_compile") 2>conftest.er1
25027   ac_status=$?
25028   grep -v '^ *+' conftest.er1 >conftest.err
25029   rm -f conftest.er1
25030   cat conftest.err >&5
25031   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25032   (exit $ac_status); } && {
25033          test -z "$ac_c_werror_flag" ||
25034          test ! -s conftest.err
25035        } && test -s conftest.$ac_objext; then
25036   ac_hi=-1 ac_mid=-1
25037   while :; do
25038     cat >conftest.$ac_ext <<_ACEOF
25039 /* confdefs.h.  */
25040 _ACEOF
25041 cat confdefs.h >>conftest.$ac_ext
25042 cat >>conftest.$ac_ext <<_ACEOF
25043 /* end confdefs.h.  */
25044 $ac_includes_default
25045 int
25046 main ()
25047 {
25048 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
25049 test_array [0] = 0
25050
25051   ;
25052   return 0;
25053 }
25054 _ACEOF
25055 rm -f conftest.$ac_objext
25056 if { (ac_try="$ac_compile"
25057 case "(($ac_try" in
25058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25059   *) ac_try_echo=$ac_try;;
25060 esac
25061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25062 $as_echo "$ac_try_echo") >&5
25063   (eval "$ac_compile") 2>conftest.er1
25064   ac_status=$?
25065   grep -v '^ *+' conftest.er1 >conftest.err
25066   rm -f conftest.er1
25067   cat conftest.err >&5
25068   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069   (exit $ac_status); } && {
25070          test -z "$ac_c_werror_flag" ||
25071          test ! -s conftest.err
25072        } && test -s conftest.$ac_objext; then
25073   ac_lo=$ac_mid; break
25074 else
25075   $as_echo "$as_me: failed program was:" >&5
25076 sed 's/^/| /' conftest.$ac_ext >&5
25077
25078         ac_hi=`expr '(' $ac_mid ')' - 1`
25079                         if test $ac_mid -le $ac_hi; then
25080                           ac_lo= ac_hi=
25081                           break
25082                         fi
25083                         ac_mid=`expr 2 '*' $ac_mid`
25084 fi
25085
25086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25087   done
25088 else
25089   $as_echo "$as_me: failed program was:" >&5
25090 sed 's/^/| /' conftest.$ac_ext >&5
25091
25092         ac_lo= ac_hi=
25093 fi
25094
25095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25096 fi
25097
25098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25099 # Binary search between lo and hi bounds.
25100 while test "x$ac_lo" != "x$ac_hi"; do
25101   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25102   cat >conftest.$ac_ext <<_ACEOF
25103 /* confdefs.h.  */
25104 _ACEOF
25105 cat confdefs.h >>conftest.$ac_ext
25106 cat >>conftest.$ac_ext <<_ACEOF
25107 /* end confdefs.h.  */
25108 $ac_includes_default
25109 int
25110 main ()
25111 {
25112 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
25113 test_array [0] = 0
25114
25115   ;
25116   return 0;
25117 }
25118 _ACEOF
25119 rm -f conftest.$ac_objext
25120 if { (ac_try="$ac_compile"
25121 case "(($ac_try" in
25122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25123   *) ac_try_echo=$ac_try;;
25124 esac
25125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25126 $as_echo "$ac_try_echo") >&5
25127   (eval "$ac_compile") 2>conftest.er1
25128   ac_status=$?
25129   grep -v '^ *+' conftest.er1 >conftest.err
25130   rm -f conftest.er1
25131   cat conftest.err >&5
25132   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25133   (exit $ac_status); } && {
25134          test -z "$ac_c_werror_flag" ||
25135          test ! -s conftest.err
25136        } && test -s conftest.$ac_objext; then
25137   ac_hi=$ac_mid
25138 else
25139   $as_echo "$as_me: failed program was:" >&5
25140 sed 's/^/| /' conftest.$ac_ext >&5
25141
25142         ac_lo=`expr '(' $ac_mid ')' + 1`
25143 fi
25144
25145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25146 done
25147 case $ac_lo in
25148 ?*) ac_cv_sizeof_size_t=$ac_lo;;
25149 '') if test "$ac_cv_type_size_t" = yes; then
25150      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25152 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25153 See \`config.log' for more details." >&5
25154 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25155 See \`config.log' for more details." >&2;}
25156    { (exit 77); exit 77; }; }; }
25157    else
25158      ac_cv_sizeof_size_t=0
25159    fi ;;
25160 esac
25161 else
25162   cat >conftest.$ac_ext <<_ACEOF
25163 /* confdefs.h.  */
25164 _ACEOF
25165 cat confdefs.h >>conftest.$ac_ext
25166 cat >>conftest.$ac_ext <<_ACEOF
25167 /* end confdefs.h.  */
25168 $ac_includes_default
25169 static long int longval () { return (long int) (sizeof (size_t)); }
25170 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
25171 #include <stdio.h>
25172 #include <stdlib.h>
25173 int
25174 main ()
25175 {
25176
25177   FILE *f = fopen ("conftest.val", "w");
25178   if (! f)
25179     return 1;
25180   if (((long int) (sizeof (size_t))) < 0)
25181     {
25182       long int i = longval ();
25183       if (i != ((long int) (sizeof (size_t))))
25184         return 1;
25185       fprintf (f, "%ld", i);
25186     }
25187   else
25188     {
25189       unsigned long int i = ulongval ();
25190       if (i != ((long int) (sizeof (size_t))))
25191         return 1;
25192       fprintf (f, "%lu", i);
25193     }
25194   /* Do not output a trailing newline, as this causes \r\n confusion
25195      on some platforms.  */
25196   return ferror (f) || fclose (f) != 0;
25197
25198   ;
25199   return 0;
25200 }
25201 _ACEOF
25202 rm -f conftest$ac_exeext
25203 if { (ac_try="$ac_link"
25204 case "(($ac_try" in
25205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25206   *) ac_try_echo=$ac_try;;
25207 esac
25208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25209 $as_echo "$ac_try_echo") >&5
25210   (eval "$ac_link") 2>&5
25211   ac_status=$?
25212   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25213   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25214   { (case "(($ac_try" in
25215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25216   *) ac_try_echo=$ac_try;;
25217 esac
25218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25219 $as_echo "$ac_try_echo") >&5
25220   (eval "$ac_try") 2>&5
25221   ac_status=$?
25222   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25223   (exit $ac_status); }; }; then
25224   ac_cv_sizeof_size_t=`cat conftest.val`
25225 else
25226   $as_echo "$as_me: program exited with status $ac_status" >&5
25227 $as_echo "$as_me: failed program was:" >&5
25228 sed 's/^/| /' conftest.$ac_ext >&5
25229
25230 ( exit $ac_status )
25231 if test "$ac_cv_type_size_t" = yes; then
25232      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25234 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25235 See \`config.log' for more details." >&5
25236 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25237 See \`config.log' for more details." >&2;}
25238    { (exit 77); exit 77; }; }; }
25239    else
25240      ac_cv_sizeof_size_t=0
25241    fi
25242 fi
25243 rm -rf conftest.dSYM
25244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25245 fi
25246 rm -f conftest.val
25247 fi
25248 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
25249 $as_echo "$ac_cv_sizeof_size_t" >&6; }
25250
25251
25252
25253 cat >>confdefs.h <<_ACEOF
25254 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
25255 _ACEOF
25256
25257
25258 # The cast to long int works around a bug in the HP C Compiler
25259 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25260 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25261 # This bug is HP SR number 8606223364.
25262 { $as_echo "$as_me:$LINENO: checking size of long" >&5
25263 $as_echo_n "checking size of long... " >&6; }
25264 if test "${ac_cv_sizeof_long+set}" = set; then
25265   $as_echo_n "(cached) " >&6
25266 else
25267   if test "$cross_compiling" = yes; then
25268   # Depending upon the size, compute the lo and hi bounds.
25269 cat >conftest.$ac_ext <<_ACEOF
25270 /* confdefs.h.  */
25271 _ACEOF
25272 cat confdefs.h >>conftest.$ac_ext
25273 cat >>conftest.$ac_ext <<_ACEOF
25274 /* end confdefs.h.  */
25275 $ac_includes_default
25276 int
25277 main ()
25278 {
25279 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
25280 test_array [0] = 0
25281
25282   ;
25283   return 0;
25284 }
25285 _ACEOF
25286 rm -f conftest.$ac_objext
25287 if { (ac_try="$ac_compile"
25288 case "(($ac_try" in
25289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25290   *) ac_try_echo=$ac_try;;
25291 esac
25292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25293 $as_echo "$ac_try_echo") >&5
25294   (eval "$ac_compile") 2>conftest.er1
25295   ac_status=$?
25296   grep -v '^ *+' conftest.er1 >conftest.err
25297   rm -f conftest.er1
25298   cat conftest.err >&5
25299   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25300   (exit $ac_status); } && {
25301          test -z "$ac_c_werror_flag" ||
25302          test ! -s conftest.err
25303        } && test -s conftest.$ac_objext; then
25304   ac_lo=0 ac_mid=0
25305   while :; do
25306     cat >conftest.$ac_ext <<_ACEOF
25307 /* confdefs.h.  */
25308 _ACEOF
25309 cat confdefs.h >>conftest.$ac_ext
25310 cat >>conftest.$ac_ext <<_ACEOF
25311 /* end confdefs.h.  */
25312 $ac_includes_default
25313 int
25314 main ()
25315 {
25316 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25317 test_array [0] = 0
25318
25319   ;
25320   return 0;
25321 }
25322 _ACEOF
25323 rm -f conftest.$ac_objext
25324 if { (ac_try="$ac_compile"
25325 case "(($ac_try" in
25326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25327   *) ac_try_echo=$ac_try;;
25328 esac
25329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25330 $as_echo "$ac_try_echo") >&5
25331   (eval "$ac_compile") 2>conftest.er1
25332   ac_status=$?
25333   grep -v '^ *+' conftest.er1 >conftest.err
25334   rm -f conftest.er1
25335   cat conftest.err >&5
25336   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25337   (exit $ac_status); } && {
25338          test -z "$ac_c_werror_flag" ||
25339          test ! -s conftest.err
25340        } && test -s conftest.$ac_objext; then
25341   ac_hi=$ac_mid; break
25342 else
25343   $as_echo "$as_me: failed program was:" >&5
25344 sed 's/^/| /' conftest.$ac_ext >&5
25345
25346         ac_lo=`expr $ac_mid + 1`
25347                         if test $ac_lo -le $ac_mid; then
25348                           ac_lo= ac_hi=
25349                           break
25350                         fi
25351                         ac_mid=`expr 2 '*' $ac_mid + 1`
25352 fi
25353
25354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25355   done
25356 else
25357   $as_echo "$as_me: failed program was:" >&5
25358 sed 's/^/| /' conftest.$ac_ext >&5
25359
25360         cat >conftest.$ac_ext <<_ACEOF
25361 /* confdefs.h.  */
25362 _ACEOF
25363 cat confdefs.h >>conftest.$ac_ext
25364 cat >>conftest.$ac_ext <<_ACEOF
25365 /* end confdefs.h.  */
25366 $ac_includes_default
25367 int
25368 main ()
25369 {
25370 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
25371 test_array [0] = 0
25372
25373   ;
25374   return 0;
25375 }
25376 _ACEOF
25377 rm -f conftest.$ac_objext
25378 if { (ac_try="$ac_compile"
25379 case "(($ac_try" in
25380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25381   *) ac_try_echo=$ac_try;;
25382 esac
25383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25384 $as_echo "$ac_try_echo") >&5
25385   (eval "$ac_compile") 2>conftest.er1
25386   ac_status=$?
25387   grep -v '^ *+' conftest.er1 >conftest.err
25388   rm -f conftest.er1
25389   cat conftest.err >&5
25390   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25391   (exit $ac_status); } && {
25392          test -z "$ac_c_werror_flag" ||
25393          test ! -s conftest.err
25394        } && test -s conftest.$ac_objext; then
25395   ac_hi=-1 ac_mid=-1
25396   while :; do
25397     cat >conftest.$ac_ext <<_ACEOF
25398 /* confdefs.h.  */
25399 _ACEOF
25400 cat confdefs.h >>conftest.$ac_ext
25401 cat >>conftest.$ac_ext <<_ACEOF
25402 /* end confdefs.h.  */
25403 $ac_includes_default
25404 int
25405 main ()
25406 {
25407 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
25408 test_array [0] = 0
25409
25410   ;
25411   return 0;
25412 }
25413 _ACEOF
25414 rm -f conftest.$ac_objext
25415 if { (ac_try="$ac_compile"
25416 case "(($ac_try" in
25417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25418   *) ac_try_echo=$ac_try;;
25419 esac
25420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25421 $as_echo "$ac_try_echo") >&5
25422   (eval "$ac_compile") 2>conftest.er1
25423   ac_status=$?
25424   grep -v '^ *+' conftest.er1 >conftest.err
25425   rm -f conftest.er1
25426   cat conftest.err >&5
25427   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25428   (exit $ac_status); } && {
25429          test -z "$ac_c_werror_flag" ||
25430          test ! -s conftest.err
25431        } && test -s conftest.$ac_objext; then
25432   ac_lo=$ac_mid; break
25433 else
25434   $as_echo "$as_me: failed program was:" >&5
25435 sed 's/^/| /' conftest.$ac_ext >&5
25436
25437         ac_hi=`expr '(' $ac_mid ')' - 1`
25438                         if test $ac_mid -le $ac_hi; then
25439                           ac_lo= ac_hi=
25440                           break
25441                         fi
25442                         ac_mid=`expr 2 '*' $ac_mid`
25443 fi
25444
25445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25446   done
25447 else
25448   $as_echo "$as_me: failed program was:" >&5
25449 sed 's/^/| /' conftest.$ac_ext >&5
25450
25451         ac_lo= ac_hi=
25452 fi
25453
25454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25455 fi
25456
25457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25458 # Binary search between lo and hi bounds.
25459 while test "x$ac_lo" != "x$ac_hi"; do
25460   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25461   cat >conftest.$ac_ext <<_ACEOF
25462 /* confdefs.h.  */
25463 _ACEOF
25464 cat confdefs.h >>conftest.$ac_ext
25465 cat >>conftest.$ac_ext <<_ACEOF
25466 /* end confdefs.h.  */
25467 $ac_includes_default
25468 int
25469 main ()
25470 {
25471 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25472 test_array [0] = 0
25473
25474   ;
25475   return 0;
25476 }
25477 _ACEOF
25478 rm -f conftest.$ac_objext
25479 if { (ac_try="$ac_compile"
25480 case "(($ac_try" in
25481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25482   *) ac_try_echo=$ac_try;;
25483 esac
25484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25485 $as_echo "$ac_try_echo") >&5
25486   (eval "$ac_compile") 2>conftest.er1
25487   ac_status=$?
25488   grep -v '^ *+' conftest.er1 >conftest.err
25489   rm -f conftest.er1
25490   cat conftest.err >&5
25491   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25492   (exit $ac_status); } && {
25493          test -z "$ac_c_werror_flag" ||
25494          test ! -s conftest.err
25495        } && test -s conftest.$ac_objext; then
25496   ac_hi=$ac_mid
25497 else
25498   $as_echo "$as_me: failed program was:" >&5
25499 sed 's/^/| /' conftest.$ac_ext >&5
25500
25501         ac_lo=`expr '(' $ac_mid ')' + 1`
25502 fi
25503
25504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25505 done
25506 case $ac_lo in
25507 ?*) ac_cv_sizeof_long=$ac_lo;;
25508 '') if test "$ac_cv_type_long" = yes; then
25509      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25511 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25512 See \`config.log' for more details." >&5
25513 $as_echo "$as_me: error: cannot compute sizeof (long)
25514 See \`config.log' for more details." >&2;}
25515    { (exit 77); exit 77; }; }; }
25516    else
25517      ac_cv_sizeof_long=0
25518    fi ;;
25519 esac
25520 else
25521   cat >conftest.$ac_ext <<_ACEOF
25522 /* confdefs.h.  */
25523 _ACEOF
25524 cat confdefs.h >>conftest.$ac_ext
25525 cat >>conftest.$ac_ext <<_ACEOF
25526 /* end confdefs.h.  */
25527 $ac_includes_default
25528 static long int longval () { return (long int) (sizeof (long)); }
25529 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
25530 #include <stdio.h>
25531 #include <stdlib.h>
25532 int
25533 main ()
25534 {
25535
25536   FILE *f = fopen ("conftest.val", "w");
25537   if (! f)
25538     return 1;
25539   if (((long int) (sizeof (long))) < 0)
25540     {
25541       long int i = longval ();
25542       if (i != ((long int) (sizeof (long))))
25543         return 1;
25544       fprintf (f, "%ld", i);
25545     }
25546   else
25547     {
25548       unsigned long int i = ulongval ();
25549       if (i != ((long int) (sizeof (long))))
25550         return 1;
25551       fprintf (f, "%lu", i);
25552     }
25553   /* Do not output a trailing newline, as this causes \r\n confusion
25554      on some platforms.  */
25555   return ferror (f) || fclose (f) != 0;
25556
25557   ;
25558   return 0;
25559 }
25560 _ACEOF
25561 rm -f conftest$ac_exeext
25562 if { (ac_try="$ac_link"
25563 case "(($ac_try" in
25564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25565   *) ac_try_echo=$ac_try;;
25566 esac
25567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25568 $as_echo "$ac_try_echo") >&5
25569   (eval "$ac_link") 2>&5
25570   ac_status=$?
25571   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25572   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25573   { (case "(($ac_try" in
25574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25575   *) ac_try_echo=$ac_try;;
25576 esac
25577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25578 $as_echo "$ac_try_echo") >&5
25579   (eval "$ac_try") 2>&5
25580   ac_status=$?
25581   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25582   (exit $ac_status); }; }; then
25583   ac_cv_sizeof_long=`cat conftest.val`
25584 else
25585   $as_echo "$as_me: program exited with status $ac_status" >&5
25586 $as_echo "$as_me: failed program was:" >&5
25587 sed 's/^/| /' conftest.$ac_ext >&5
25588
25589 ( exit $ac_status )
25590 if test "$ac_cv_type_long" = yes; then
25591      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25593 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25594 See \`config.log' for more details." >&5
25595 $as_echo "$as_me: error: cannot compute sizeof (long)
25596 See \`config.log' for more details." >&2;}
25597    { (exit 77); exit 77; }; }; }
25598    else
25599      ac_cv_sizeof_long=0
25600    fi
25601 fi
25602 rm -rf conftest.dSYM
25603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25604 fi
25605 rm -f conftest.val
25606 fi
25607 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
25608 $as_echo "$ac_cv_sizeof_long" >&6; }
25609
25610
25611
25612 cat >>confdefs.h <<_ACEOF
25613 #define SIZEOF_LONG $ac_cv_sizeof_long
25614 _ACEOF
25615
25616
25617
25618 # Decide whether float4 is passed by value: user-selectable, enabled by default
25619 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
25620 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
25621
25622
25623 # Check whether --enable-float4-byval was given.
25624 if test "${enable_float4_byval+set}" = set; then
25625   enableval=$enable_float4_byval;
25626   case $enableval in
25627     yes)
25628
25629 cat >>confdefs.h <<\_ACEOF
25630 #define USE_FLOAT4_BYVAL 1
25631 _ACEOF
25632
25633                float4passbyval=true
25634       ;;
25635     no)
25636       float4passbyval=false
25637       ;;
25638     *)
25639       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
25640 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
25641    { (exit 1); exit 1; }; }
25642       ;;
25643   esac
25644
25645 else
25646   enable_float4_byval=yes
25647
25648 cat >>confdefs.h <<\_ACEOF
25649 #define USE_FLOAT4_BYVAL 1
25650 _ACEOF
25651
25652                float4passbyval=true
25653 fi
25654
25655
25656 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
25657 $as_echo "$enable_float4_byval" >&6; }
25658
25659 cat >>confdefs.h <<_ACEOF
25660 #define FLOAT4PASSBYVAL $float4passbyval
25661 _ACEOF
25662
25663
25664 # Decide whether float8 is passed by value.
25665 # Note: this setting also controls int8 and related types such as timestamp.
25666 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
25667 # If not, trying to select it is an error.
25668 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
25669 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
25670 if test $ac_cv_sizeof_void_p -ge 8 ; then
25671
25672
25673 # Check whether --enable-float8-byval was given.
25674 if test "${enable_float8_byval+set}" = set; then
25675   enableval=$enable_float8_byval;
25676   case $enableval in
25677     yes)
25678       :
25679       ;;
25680     no)
25681       :
25682       ;;
25683     *)
25684       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25685 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25686    { (exit 1); exit 1; }; }
25687       ;;
25688   esac
25689
25690 else
25691   enable_float8_byval=yes
25692
25693 fi
25694
25695
25696 else
25697
25698
25699 # Check whether --enable-float8-byval was given.
25700 if test "${enable_float8_byval+set}" = set; then
25701   enableval=$enable_float8_byval;
25702   case $enableval in
25703     yes)
25704       :
25705       ;;
25706     no)
25707       :
25708       ;;
25709     *)
25710       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25711 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25712    { (exit 1); exit 1; }; }
25713       ;;
25714   esac
25715
25716 else
25717   enable_float8_byval=no
25718
25719 fi
25720
25721
25722   if test "$enable_float8_byval" = yes ; then
25723     { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
25724 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
25725    { (exit 1); exit 1; }; }
25726   fi
25727 fi
25728 if test "$enable_float8_byval" = yes ; then
25729
25730 cat >>confdefs.h <<\_ACEOF
25731 #define USE_FLOAT8_BYVAL 1
25732 _ACEOF
25733
25734   float8passbyval=true
25735 else
25736   float8passbyval=false
25737 fi
25738 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
25739 $as_echo "$enable_float8_byval" >&6; }
25740
25741 cat >>confdefs.h <<_ACEOF
25742 #define FLOAT8PASSBYVAL $float8passbyval
25743 _ACEOF
25744
25745
25746 # Determine memory alignment requirements for the basic C data types.
25747
25748 # The cast to long int works around a bug in the HP C Compiler,
25749 # see AC_CHECK_SIZEOF for more information.
25750 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
25751 $as_echo_n "checking alignment of short... " >&6; }
25752 if test "${ac_cv_alignof_short+set}" = set; then
25753   $as_echo_n "(cached) " >&6
25754 else
25755   if test "$cross_compiling" = yes; then
25756   # Depending upon the size, compute the lo and hi bounds.
25757 cat >conftest.$ac_ext <<_ACEOF
25758 /* confdefs.h.  */
25759 _ACEOF
25760 cat confdefs.h >>conftest.$ac_ext
25761 cat >>conftest.$ac_ext <<_ACEOF
25762 /* end confdefs.h.  */
25763 $ac_includes_default
25764 #ifndef offsetof
25765 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25766 #endif
25767 typedef struct { char x; short y; } ac__type_alignof_;
25768 int
25769 main ()
25770 {
25771 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25772 test_array [0] = 0
25773
25774   ;
25775   return 0;
25776 }
25777 _ACEOF
25778 rm -f conftest.$ac_objext
25779 if { (ac_try="$ac_compile"
25780 case "(($ac_try" in
25781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25782   *) ac_try_echo=$ac_try;;
25783 esac
25784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25785 $as_echo "$ac_try_echo") >&5
25786   (eval "$ac_compile") 2>conftest.er1
25787   ac_status=$?
25788   grep -v '^ *+' conftest.er1 >conftest.err
25789   rm -f conftest.er1
25790   cat conftest.err >&5
25791   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25792   (exit $ac_status); } && {
25793          test -z "$ac_c_werror_flag" ||
25794          test ! -s conftest.err
25795        } && test -s conftest.$ac_objext; then
25796   ac_lo=0 ac_mid=0
25797   while :; do
25798     cat >conftest.$ac_ext <<_ACEOF
25799 /* confdefs.h.  */
25800 _ACEOF
25801 cat confdefs.h >>conftest.$ac_ext
25802 cat >>conftest.$ac_ext <<_ACEOF
25803 /* end confdefs.h.  */
25804 $ac_includes_default
25805 #ifndef offsetof
25806 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25807 #endif
25808 typedef struct { char x; short y; } ac__type_alignof_;
25809 int
25810 main ()
25811 {
25812 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25813 test_array [0] = 0
25814
25815   ;
25816   return 0;
25817 }
25818 _ACEOF
25819 rm -f conftest.$ac_objext
25820 if { (ac_try="$ac_compile"
25821 case "(($ac_try" in
25822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25823   *) ac_try_echo=$ac_try;;
25824 esac
25825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25826 $as_echo "$ac_try_echo") >&5
25827   (eval "$ac_compile") 2>conftest.er1
25828   ac_status=$?
25829   grep -v '^ *+' conftest.er1 >conftest.err
25830   rm -f conftest.er1
25831   cat conftest.err >&5
25832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25833   (exit $ac_status); } && {
25834          test -z "$ac_c_werror_flag" ||
25835          test ! -s conftest.err
25836        } && test -s conftest.$ac_objext; then
25837   ac_hi=$ac_mid; break
25838 else
25839   $as_echo "$as_me: failed program was:" >&5
25840 sed 's/^/| /' conftest.$ac_ext >&5
25841
25842         ac_lo=`expr $ac_mid + 1`
25843                         if test $ac_lo -le $ac_mid; then
25844                           ac_lo= ac_hi=
25845                           break
25846                         fi
25847                         ac_mid=`expr 2 '*' $ac_mid + 1`
25848 fi
25849
25850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25851   done
25852 else
25853   $as_echo "$as_me: failed program was:" >&5
25854 sed 's/^/| /' conftest.$ac_ext >&5
25855
25856         cat >conftest.$ac_ext <<_ACEOF
25857 /* confdefs.h.  */
25858 _ACEOF
25859 cat confdefs.h >>conftest.$ac_ext
25860 cat >>conftest.$ac_ext <<_ACEOF
25861 /* end confdefs.h.  */
25862 $ac_includes_default
25863 #ifndef offsetof
25864 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25865 #endif
25866 typedef struct { char x; short y; } ac__type_alignof_;
25867 int
25868 main ()
25869 {
25870 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25871 test_array [0] = 0
25872
25873   ;
25874   return 0;
25875 }
25876 _ACEOF
25877 rm -f conftest.$ac_objext
25878 if { (ac_try="$ac_compile"
25879 case "(($ac_try" in
25880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25881   *) ac_try_echo=$ac_try;;
25882 esac
25883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25884 $as_echo "$ac_try_echo") >&5
25885   (eval "$ac_compile") 2>conftest.er1
25886   ac_status=$?
25887   grep -v '^ *+' conftest.er1 >conftest.err
25888   rm -f conftest.er1
25889   cat conftest.err >&5
25890   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25891   (exit $ac_status); } && {
25892          test -z "$ac_c_werror_flag" ||
25893          test ! -s conftest.err
25894        } && test -s conftest.$ac_objext; then
25895   ac_hi=-1 ac_mid=-1
25896   while :; do
25897     cat >conftest.$ac_ext <<_ACEOF
25898 /* confdefs.h.  */
25899 _ACEOF
25900 cat confdefs.h >>conftest.$ac_ext
25901 cat >>conftest.$ac_ext <<_ACEOF
25902 /* end confdefs.h.  */
25903 $ac_includes_default
25904 #ifndef offsetof
25905 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25906 #endif
25907 typedef struct { char x; short y; } ac__type_alignof_;
25908 int
25909 main ()
25910 {
25911 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25912 test_array [0] = 0
25913
25914   ;
25915   return 0;
25916 }
25917 _ACEOF
25918 rm -f conftest.$ac_objext
25919 if { (ac_try="$ac_compile"
25920 case "(($ac_try" in
25921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25922   *) ac_try_echo=$ac_try;;
25923 esac
25924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25925 $as_echo "$ac_try_echo") >&5
25926   (eval "$ac_compile") 2>conftest.er1
25927   ac_status=$?
25928   grep -v '^ *+' conftest.er1 >conftest.err
25929   rm -f conftest.er1
25930   cat conftest.err >&5
25931   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25932   (exit $ac_status); } && {
25933          test -z "$ac_c_werror_flag" ||
25934          test ! -s conftest.err
25935        } && test -s conftest.$ac_objext; then
25936   ac_lo=$ac_mid; break
25937 else
25938   $as_echo "$as_me: failed program was:" >&5
25939 sed 's/^/| /' conftest.$ac_ext >&5
25940
25941         ac_hi=`expr '(' $ac_mid ')' - 1`
25942                         if test $ac_mid -le $ac_hi; then
25943                           ac_lo= ac_hi=
25944                           break
25945                         fi
25946                         ac_mid=`expr 2 '*' $ac_mid`
25947 fi
25948
25949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25950   done
25951 else
25952   $as_echo "$as_me: failed program was:" >&5
25953 sed 's/^/| /' conftest.$ac_ext >&5
25954
25955         ac_lo= ac_hi=
25956 fi
25957
25958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25959 fi
25960
25961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25962 # Binary search between lo and hi bounds.
25963 while test "x$ac_lo" != "x$ac_hi"; do
25964   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25965   cat >conftest.$ac_ext <<_ACEOF
25966 /* confdefs.h.  */
25967 _ACEOF
25968 cat confdefs.h >>conftest.$ac_ext
25969 cat >>conftest.$ac_ext <<_ACEOF
25970 /* end confdefs.h.  */
25971 $ac_includes_default
25972 #ifndef offsetof
25973 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25974 #endif
25975 typedef struct { char x; short y; } ac__type_alignof_;
25976 int
25977 main ()
25978 {
25979 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25980 test_array [0] = 0
25981
25982   ;
25983   return 0;
25984 }
25985 _ACEOF
25986 rm -f conftest.$ac_objext
25987 if { (ac_try="$ac_compile"
25988 case "(($ac_try" in
25989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25990   *) ac_try_echo=$ac_try;;
25991 esac
25992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25993 $as_echo "$ac_try_echo") >&5
25994   (eval "$ac_compile") 2>conftest.er1
25995   ac_status=$?
25996   grep -v '^ *+' conftest.er1 >conftest.err
25997   rm -f conftest.er1
25998   cat conftest.err >&5
25999   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26000   (exit $ac_status); } && {
26001          test -z "$ac_c_werror_flag" ||
26002          test ! -s conftest.err
26003        } && test -s conftest.$ac_objext; then
26004   ac_hi=$ac_mid
26005 else
26006   $as_echo "$as_me: failed program was:" >&5
26007 sed 's/^/| /' conftest.$ac_ext >&5
26008
26009         ac_lo=`expr '(' $ac_mid ')' + 1`
26010 fi
26011
26012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26013 done
26014 case $ac_lo in
26015 ?*) ac_cv_alignof_short=$ac_lo;;
26016 '') if test "$ac_cv_type_short" = yes; then
26017      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26019 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
26020 See \`config.log' for more details." >&5
26021 $as_echo "$as_me: error: cannot compute alignment of short
26022 See \`config.log' for more details." >&2;}
26023    { (exit 77); exit 77; }; }; }
26024    else
26025      ac_cv_alignof_short=0
26026    fi ;;
26027 esac
26028 else
26029   cat >conftest.$ac_ext <<_ACEOF
26030 /* confdefs.h.  */
26031 _ACEOF
26032 cat confdefs.h >>conftest.$ac_ext
26033 cat >>conftest.$ac_ext <<_ACEOF
26034 /* end confdefs.h.  */
26035 $ac_includes_default
26036 #ifndef offsetof
26037 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26038 #endif
26039 typedef struct { char x; short y; } ac__type_alignof_;
26040 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26041 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26042 #include <stdio.h>
26043 #include <stdlib.h>
26044 int
26045 main ()
26046 {
26047
26048   FILE *f = fopen ("conftest.val", "w");
26049   if (! f)
26050     return 1;
26051   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26052     {
26053       long int i = longval ();
26054       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26055         return 1;
26056       fprintf (f, "%ld", i);
26057     }
26058   else
26059     {
26060       unsigned long int i = ulongval ();
26061       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26062         return 1;
26063       fprintf (f, "%lu", i);
26064     }
26065   /* Do not output a trailing newline, as this causes \r\n confusion
26066      on some platforms.  */
26067   return ferror (f) || fclose (f) != 0;
26068
26069   ;
26070   return 0;
26071 }
26072 _ACEOF
26073 rm -f conftest$ac_exeext
26074 if { (ac_try="$ac_link"
26075 case "(($ac_try" in
26076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26077   *) ac_try_echo=$ac_try;;
26078 esac
26079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26080 $as_echo "$ac_try_echo") >&5
26081   (eval "$ac_link") 2>&5
26082   ac_status=$?
26083   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26084   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26085   { (case "(($ac_try" in
26086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26087   *) ac_try_echo=$ac_try;;
26088 esac
26089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26090 $as_echo "$ac_try_echo") >&5
26091   (eval "$ac_try") 2>&5
26092   ac_status=$?
26093   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26094   (exit $ac_status); }; }; then
26095   ac_cv_alignof_short=`cat conftest.val`
26096 else
26097   $as_echo "$as_me: program exited with status $ac_status" >&5
26098 $as_echo "$as_me: failed program was:" >&5
26099 sed 's/^/| /' conftest.$ac_ext >&5
26100
26101 ( exit $ac_status )
26102 if test "$ac_cv_type_short" = yes; then
26103      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26105 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
26106 See \`config.log' for more details." >&5
26107 $as_echo "$as_me: error: cannot compute alignment of short
26108 See \`config.log' for more details." >&2;}
26109    { (exit 77); exit 77; }; }; }
26110    else
26111      ac_cv_alignof_short=0
26112    fi
26113 fi
26114 rm -rf conftest.dSYM
26115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26116 fi
26117 rm -f conftest.val
26118 fi
26119 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
26120 $as_echo "$ac_cv_alignof_short" >&6; }
26121
26122
26123
26124 cat >>confdefs.h <<_ACEOF
26125 #define ALIGNOF_SHORT $ac_cv_alignof_short
26126 _ACEOF
26127
26128
26129 # The cast to long int works around a bug in the HP C Compiler,
26130 # see AC_CHECK_SIZEOF for more information.
26131 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
26132 $as_echo_n "checking alignment of int... " >&6; }
26133 if test "${ac_cv_alignof_int+set}" = set; then
26134   $as_echo_n "(cached) " >&6
26135 else
26136   if test "$cross_compiling" = yes; then
26137   # Depending upon the size, compute the lo and hi bounds.
26138 cat >conftest.$ac_ext <<_ACEOF
26139 /* confdefs.h.  */
26140 _ACEOF
26141 cat confdefs.h >>conftest.$ac_ext
26142 cat >>conftest.$ac_ext <<_ACEOF
26143 /* end confdefs.h.  */
26144 $ac_includes_default
26145 #ifndef offsetof
26146 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26147 #endif
26148 typedef struct { char x; int y; } ac__type_alignof_;
26149 int
26150 main ()
26151 {
26152 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26153 test_array [0] = 0
26154
26155   ;
26156   return 0;
26157 }
26158 _ACEOF
26159 rm -f conftest.$ac_objext
26160 if { (ac_try="$ac_compile"
26161 case "(($ac_try" in
26162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26163   *) ac_try_echo=$ac_try;;
26164 esac
26165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26166 $as_echo "$ac_try_echo") >&5
26167   (eval "$ac_compile") 2>conftest.er1
26168   ac_status=$?
26169   grep -v '^ *+' conftest.er1 >conftest.err
26170   rm -f conftest.er1
26171   cat conftest.err >&5
26172   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26173   (exit $ac_status); } && {
26174          test -z "$ac_c_werror_flag" ||
26175          test ! -s conftest.err
26176        } && test -s conftest.$ac_objext; then
26177   ac_lo=0 ac_mid=0
26178   while :; do
26179     cat >conftest.$ac_ext <<_ACEOF
26180 /* confdefs.h.  */
26181 _ACEOF
26182 cat confdefs.h >>conftest.$ac_ext
26183 cat >>conftest.$ac_ext <<_ACEOF
26184 /* end confdefs.h.  */
26185 $ac_includes_default
26186 #ifndef offsetof
26187 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26188 #endif
26189 typedef struct { char x; int y; } ac__type_alignof_;
26190 int
26191 main ()
26192 {
26193 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26194 test_array [0] = 0
26195
26196   ;
26197   return 0;
26198 }
26199 _ACEOF
26200 rm -f conftest.$ac_objext
26201 if { (ac_try="$ac_compile"
26202 case "(($ac_try" in
26203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26204   *) ac_try_echo=$ac_try;;
26205 esac
26206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26207 $as_echo "$ac_try_echo") >&5
26208   (eval "$ac_compile") 2>conftest.er1
26209   ac_status=$?
26210   grep -v '^ *+' conftest.er1 >conftest.err
26211   rm -f conftest.er1
26212   cat conftest.err >&5
26213   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26214   (exit $ac_status); } && {
26215          test -z "$ac_c_werror_flag" ||
26216          test ! -s conftest.err
26217        } && test -s conftest.$ac_objext; then
26218   ac_hi=$ac_mid; break
26219 else
26220   $as_echo "$as_me: failed program was:" >&5
26221 sed 's/^/| /' conftest.$ac_ext >&5
26222
26223         ac_lo=`expr $ac_mid + 1`
26224                         if test $ac_lo -le $ac_mid; then
26225                           ac_lo= ac_hi=
26226                           break
26227                         fi
26228                         ac_mid=`expr 2 '*' $ac_mid + 1`
26229 fi
26230
26231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26232   done
26233 else
26234   $as_echo "$as_me: failed program was:" >&5
26235 sed 's/^/| /' conftest.$ac_ext >&5
26236
26237         cat >conftest.$ac_ext <<_ACEOF
26238 /* confdefs.h.  */
26239 _ACEOF
26240 cat confdefs.h >>conftest.$ac_ext
26241 cat >>conftest.$ac_ext <<_ACEOF
26242 /* end confdefs.h.  */
26243 $ac_includes_default
26244 #ifndef offsetof
26245 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26246 #endif
26247 typedef struct { char x; int y; } ac__type_alignof_;
26248 int
26249 main ()
26250 {
26251 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26252 test_array [0] = 0
26253
26254   ;
26255   return 0;
26256 }
26257 _ACEOF
26258 rm -f conftest.$ac_objext
26259 if { (ac_try="$ac_compile"
26260 case "(($ac_try" in
26261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26262   *) ac_try_echo=$ac_try;;
26263 esac
26264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26265 $as_echo "$ac_try_echo") >&5
26266   (eval "$ac_compile") 2>conftest.er1
26267   ac_status=$?
26268   grep -v '^ *+' conftest.er1 >conftest.err
26269   rm -f conftest.er1
26270   cat conftest.err >&5
26271   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26272   (exit $ac_status); } && {
26273          test -z "$ac_c_werror_flag" ||
26274          test ! -s conftest.err
26275        } && test -s conftest.$ac_objext; then
26276   ac_hi=-1 ac_mid=-1
26277   while :; do
26278     cat >conftest.$ac_ext <<_ACEOF
26279 /* confdefs.h.  */
26280 _ACEOF
26281 cat confdefs.h >>conftest.$ac_ext
26282 cat >>conftest.$ac_ext <<_ACEOF
26283 /* end confdefs.h.  */
26284 $ac_includes_default
26285 #ifndef offsetof
26286 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26287 #endif
26288 typedef struct { char x; int y; } ac__type_alignof_;
26289 int
26290 main ()
26291 {
26292 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26293 test_array [0] = 0
26294
26295   ;
26296   return 0;
26297 }
26298 _ACEOF
26299 rm -f conftest.$ac_objext
26300 if { (ac_try="$ac_compile"
26301 case "(($ac_try" in
26302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26303   *) ac_try_echo=$ac_try;;
26304 esac
26305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26306 $as_echo "$ac_try_echo") >&5
26307   (eval "$ac_compile") 2>conftest.er1
26308   ac_status=$?
26309   grep -v '^ *+' conftest.er1 >conftest.err
26310   rm -f conftest.er1
26311   cat conftest.err >&5
26312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26313   (exit $ac_status); } && {
26314          test -z "$ac_c_werror_flag" ||
26315          test ! -s conftest.err
26316        } && test -s conftest.$ac_objext; then
26317   ac_lo=$ac_mid; break
26318 else
26319   $as_echo "$as_me: failed program was:" >&5
26320 sed 's/^/| /' conftest.$ac_ext >&5
26321
26322         ac_hi=`expr '(' $ac_mid ')' - 1`
26323                         if test $ac_mid -le $ac_hi; then
26324                           ac_lo= ac_hi=
26325                           break
26326                         fi
26327                         ac_mid=`expr 2 '*' $ac_mid`
26328 fi
26329
26330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26331   done
26332 else
26333   $as_echo "$as_me: failed program was:" >&5
26334 sed 's/^/| /' conftest.$ac_ext >&5
26335
26336         ac_lo= ac_hi=
26337 fi
26338
26339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26340 fi
26341
26342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26343 # Binary search between lo and hi bounds.
26344 while test "x$ac_lo" != "x$ac_hi"; do
26345   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26346   cat >conftest.$ac_ext <<_ACEOF
26347 /* confdefs.h.  */
26348 _ACEOF
26349 cat confdefs.h >>conftest.$ac_ext
26350 cat >>conftest.$ac_ext <<_ACEOF
26351 /* end confdefs.h.  */
26352 $ac_includes_default
26353 #ifndef offsetof
26354 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26355 #endif
26356 typedef struct { char x; int y; } ac__type_alignof_;
26357 int
26358 main ()
26359 {
26360 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26361 test_array [0] = 0
26362
26363   ;
26364   return 0;
26365 }
26366 _ACEOF
26367 rm -f conftest.$ac_objext
26368 if { (ac_try="$ac_compile"
26369 case "(($ac_try" in
26370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26371   *) ac_try_echo=$ac_try;;
26372 esac
26373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26374 $as_echo "$ac_try_echo") >&5
26375   (eval "$ac_compile") 2>conftest.er1
26376   ac_status=$?
26377   grep -v '^ *+' conftest.er1 >conftest.err
26378   rm -f conftest.er1
26379   cat conftest.err >&5
26380   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26381   (exit $ac_status); } && {
26382          test -z "$ac_c_werror_flag" ||
26383          test ! -s conftest.err
26384        } && test -s conftest.$ac_objext; then
26385   ac_hi=$ac_mid
26386 else
26387   $as_echo "$as_me: failed program was:" >&5
26388 sed 's/^/| /' conftest.$ac_ext >&5
26389
26390         ac_lo=`expr '(' $ac_mid ')' + 1`
26391 fi
26392
26393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26394 done
26395 case $ac_lo in
26396 ?*) ac_cv_alignof_int=$ac_lo;;
26397 '') if test "$ac_cv_type_int" = yes; then
26398      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26400 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26401 See \`config.log' for more details." >&5
26402 $as_echo "$as_me: error: cannot compute alignment of int
26403 See \`config.log' for more details." >&2;}
26404    { (exit 77); exit 77; }; }; }
26405    else
26406      ac_cv_alignof_int=0
26407    fi ;;
26408 esac
26409 else
26410   cat >conftest.$ac_ext <<_ACEOF
26411 /* confdefs.h.  */
26412 _ACEOF
26413 cat confdefs.h >>conftest.$ac_ext
26414 cat >>conftest.$ac_ext <<_ACEOF
26415 /* end confdefs.h.  */
26416 $ac_includes_default
26417 #ifndef offsetof
26418 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26419 #endif
26420 typedef struct { char x; int y; } ac__type_alignof_;
26421 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26422 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26423 #include <stdio.h>
26424 #include <stdlib.h>
26425 int
26426 main ()
26427 {
26428
26429   FILE *f = fopen ("conftest.val", "w");
26430   if (! f)
26431     return 1;
26432   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26433     {
26434       long int i = longval ();
26435       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26436         return 1;
26437       fprintf (f, "%ld", i);
26438     }
26439   else
26440     {
26441       unsigned long int i = ulongval ();
26442       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26443         return 1;
26444       fprintf (f, "%lu", i);
26445     }
26446   /* Do not output a trailing newline, as this causes \r\n confusion
26447      on some platforms.  */
26448   return ferror (f) || fclose (f) != 0;
26449
26450   ;
26451   return 0;
26452 }
26453 _ACEOF
26454 rm -f conftest$ac_exeext
26455 if { (ac_try="$ac_link"
26456 case "(($ac_try" in
26457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26458   *) ac_try_echo=$ac_try;;
26459 esac
26460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26461 $as_echo "$ac_try_echo") >&5
26462   (eval "$ac_link") 2>&5
26463   ac_status=$?
26464   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26465   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26466   { (case "(($ac_try" in
26467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26468   *) ac_try_echo=$ac_try;;
26469 esac
26470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26471 $as_echo "$ac_try_echo") >&5
26472   (eval "$ac_try") 2>&5
26473   ac_status=$?
26474   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26475   (exit $ac_status); }; }; then
26476   ac_cv_alignof_int=`cat conftest.val`
26477 else
26478   $as_echo "$as_me: program exited with status $ac_status" >&5
26479 $as_echo "$as_me: failed program was:" >&5
26480 sed 's/^/| /' conftest.$ac_ext >&5
26481
26482 ( exit $ac_status )
26483 if test "$ac_cv_type_int" = yes; then
26484      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26486 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26487 See \`config.log' for more details." >&5
26488 $as_echo "$as_me: error: cannot compute alignment of int
26489 See \`config.log' for more details." >&2;}
26490    { (exit 77); exit 77; }; }; }
26491    else
26492      ac_cv_alignof_int=0
26493    fi
26494 fi
26495 rm -rf conftest.dSYM
26496 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26497 fi
26498 rm -f conftest.val
26499 fi
26500 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
26501 $as_echo "$ac_cv_alignof_int" >&6; }
26502
26503
26504
26505 cat >>confdefs.h <<_ACEOF
26506 #define ALIGNOF_INT $ac_cv_alignof_int
26507 _ACEOF
26508
26509
26510 # The cast to long int works around a bug in the HP C Compiler,
26511 # see AC_CHECK_SIZEOF for more information.
26512 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
26513 $as_echo_n "checking alignment of long... " >&6; }
26514 if test "${ac_cv_alignof_long+set}" = set; then
26515   $as_echo_n "(cached) " >&6
26516 else
26517   if test "$cross_compiling" = yes; then
26518   # Depending upon the size, compute the lo and hi bounds.
26519 cat >conftest.$ac_ext <<_ACEOF
26520 /* confdefs.h.  */
26521 _ACEOF
26522 cat confdefs.h >>conftest.$ac_ext
26523 cat >>conftest.$ac_ext <<_ACEOF
26524 /* end confdefs.h.  */
26525 $ac_includes_default
26526 #ifndef offsetof
26527 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26528 #endif
26529 typedef struct { char x; long y; } ac__type_alignof_;
26530 int
26531 main ()
26532 {
26533 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26534 test_array [0] = 0
26535
26536   ;
26537   return 0;
26538 }
26539 _ACEOF
26540 rm -f conftest.$ac_objext
26541 if { (ac_try="$ac_compile"
26542 case "(($ac_try" in
26543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26544   *) ac_try_echo=$ac_try;;
26545 esac
26546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26547 $as_echo "$ac_try_echo") >&5
26548   (eval "$ac_compile") 2>conftest.er1
26549   ac_status=$?
26550   grep -v '^ *+' conftest.er1 >conftest.err
26551   rm -f conftest.er1
26552   cat conftest.err >&5
26553   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26554   (exit $ac_status); } && {
26555          test -z "$ac_c_werror_flag" ||
26556          test ! -s conftest.err
26557        } && test -s conftest.$ac_objext; then
26558   ac_lo=0 ac_mid=0
26559   while :; do
26560     cat >conftest.$ac_ext <<_ACEOF
26561 /* confdefs.h.  */
26562 _ACEOF
26563 cat confdefs.h >>conftest.$ac_ext
26564 cat >>conftest.$ac_ext <<_ACEOF
26565 /* end confdefs.h.  */
26566 $ac_includes_default
26567 #ifndef offsetof
26568 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26569 #endif
26570 typedef struct { char x; long y; } ac__type_alignof_;
26571 int
26572 main ()
26573 {
26574 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26575 test_array [0] = 0
26576
26577   ;
26578   return 0;
26579 }
26580 _ACEOF
26581 rm -f conftest.$ac_objext
26582 if { (ac_try="$ac_compile"
26583 case "(($ac_try" in
26584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26585   *) ac_try_echo=$ac_try;;
26586 esac
26587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26588 $as_echo "$ac_try_echo") >&5
26589   (eval "$ac_compile") 2>conftest.er1
26590   ac_status=$?
26591   grep -v '^ *+' conftest.er1 >conftest.err
26592   rm -f conftest.er1
26593   cat conftest.err >&5
26594   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26595   (exit $ac_status); } && {
26596          test -z "$ac_c_werror_flag" ||
26597          test ! -s conftest.err
26598        } && test -s conftest.$ac_objext; then
26599   ac_hi=$ac_mid; break
26600 else
26601   $as_echo "$as_me: failed program was:" >&5
26602 sed 's/^/| /' conftest.$ac_ext >&5
26603
26604         ac_lo=`expr $ac_mid + 1`
26605                         if test $ac_lo -le $ac_mid; then
26606                           ac_lo= ac_hi=
26607                           break
26608                         fi
26609                         ac_mid=`expr 2 '*' $ac_mid + 1`
26610 fi
26611
26612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26613   done
26614 else
26615   $as_echo "$as_me: failed program was:" >&5
26616 sed 's/^/| /' conftest.$ac_ext >&5
26617
26618         cat >conftest.$ac_ext <<_ACEOF
26619 /* confdefs.h.  */
26620 _ACEOF
26621 cat confdefs.h >>conftest.$ac_ext
26622 cat >>conftest.$ac_ext <<_ACEOF
26623 /* end confdefs.h.  */
26624 $ac_includes_default
26625 #ifndef offsetof
26626 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26627 #endif
26628 typedef struct { char x; long y; } ac__type_alignof_;
26629 int
26630 main ()
26631 {
26632 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26633 test_array [0] = 0
26634
26635   ;
26636   return 0;
26637 }
26638 _ACEOF
26639 rm -f conftest.$ac_objext
26640 if { (ac_try="$ac_compile"
26641 case "(($ac_try" in
26642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26643   *) ac_try_echo=$ac_try;;
26644 esac
26645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26646 $as_echo "$ac_try_echo") >&5
26647   (eval "$ac_compile") 2>conftest.er1
26648   ac_status=$?
26649   grep -v '^ *+' conftest.er1 >conftest.err
26650   rm -f conftest.er1
26651   cat conftest.err >&5
26652   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26653   (exit $ac_status); } && {
26654          test -z "$ac_c_werror_flag" ||
26655          test ! -s conftest.err
26656        } && test -s conftest.$ac_objext; then
26657   ac_hi=-1 ac_mid=-1
26658   while :; do
26659     cat >conftest.$ac_ext <<_ACEOF
26660 /* confdefs.h.  */
26661 _ACEOF
26662 cat confdefs.h >>conftest.$ac_ext
26663 cat >>conftest.$ac_ext <<_ACEOF
26664 /* end confdefs.h.  */
26665 $ac_includes_default
26666 #ifndef offsetof
26667 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26668 #endif
26669 typedef struct { char x; long y; } ac__type_alignof_;
26670 int
26671 main ()
26672 {
26673 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26674 test_array [0] = 0
26675
26676   ;
26677   return 0;
26678 }
26679 _ACEOF
26680 rm -f conftest.$ac_objext
26681 if { (ac_try="$ac_compile"
26682 case "(($ac_try" in
26683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26684   *) ac_try_echo=$ac_try;;
26685 esac
26686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26687 $as_echo "$ac_try_echo") >&5
26688   (eval "$ac_compile") 2>conftest.er1
26689   ac_status=$?
26690   grep -v '^ *+' conftest.er1 >conftest.err
26691   rm -f conftest.er1
26692   cat conftest.err >&5
26693   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26694   (exit $ac_status); } && {
26695          test -z "$ac_c_werror_flag" ||
26696          test ! -s conftest.err
26697        } && test -s conftest.$ac_objext; then
26698   ac_lo=$ac_mid; break
26699 else
26700   $as_echo "$as_me: failed program was:" >&5
26701 sed 's/^/| /' conftest.$ac_ext >&5
26702
26703         ac_hi=`expr '(' $ac_mid ')' - 1`
26704                         if test $ac_mid -le $ac_hi; then
26705                           ac_lo= ac_hi=
26706                           break
26707                         fi
26708                         ac_mid=`expr 2 '*' $ac_mid`
26709 fi
26710
26711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26712   done
26713 else
26714   $as_echo "$as_me: failed program was:" >&5
26715 sed 's/^/| /' conftest.$ac_ext >&5
26716
26717         ac_lo= ac_hi=
26718 fi
26719
26720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26721 fi
26722
26723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26724 # Binary search between lo and hi bounds.
26725 while test "x$ac_lo" != "x$ac_hi"; do
26726   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26727   cat >conftest.$ac_ext <<_ACEOF
26728 /* confdefs.h.  */
26729 _ACEOF
26730 cat confdefs.h >>conftest.$ac_ext
26731 cat >>conftest.$ac_ext <<_ACEOF
26732 /* end confdefs.h.  */
26733 $ac_includes_default
26734 #ifndef offsetof
26735 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26736 #endif
26737 typedef struct { char x; long y; } ac__type_alignof_;
26738 int
26739 main ()
26740 {
26741 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26742 test_array [0] = 0
26743
26744   ;
26745   return 0;
26746 }
26747 _ACEOF
26748 rm -f conftest.$ac_objext
26749 if { (ac_try="$ac_compile"
26750 case "(($ac_try" in
26751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26752   *) ac_try_echo=$ac_try;;
26753 esac
26754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26755 $as_echo "$ac_try_echo") >&5
26756   (eval "$ac_compile") 2>conftest.er1
26757   ac_status=$?
26758   grep -v '^ *+' conftest.er1 >conftest.err
26759   rm -f conftest.er1
26760   cat conftest.err >&5
26761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26762   (exit $ac_status); } && {
26763          test -z "$ac_c_werror_flag" ||
26764          test ! -s conftest.err
26765        } && test -s conftest.$ac_objext; then
26766   ac_hi=$ac_mid
26767 else
26768   $as_echo "$as_me: failed program was:" >&5
26769 sed 's/^/| /' conftest.$ac_ext >&5
26770
26771         ac_lo=`expr '(' $ac_mid ')' + 1`
26772 fi
26773
26774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26775 done
26776 case $ac_lo in
26777 ?*) ac_cv_alignof_long=$ac_lo;;
26778 '') if test "$ac_cv_type_long" = yes; then
26779      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26781 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26782 See \`config.log' for more details." >&5
26783 $as_echo "$as_me: error: cannot compute alignment of long
26784 See \`config.log' for more details." >&2;}
26785    { (exit 77); exit 77; }; }; }
26786    else
26787      ac_cv_alignof_long=0
26788    fi ;;
26789 esac
26790 else
26791   cat >conftest.$ac_ext <<_ACEOF
26792 /* confdefs.h.  */
26793 _ACEOF
26794 cat confdefs.h >>conftest.$ac_ext
26795 cat >>conftest.$ac_ext <<_ACEOF
26796 /* end confdefs.h.  */
26797 $ac_includes_default
26798 #ifndef offsetof
26799 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26800 #endif
26801 typedef struct { char x; long y; } ac__type_alignof_;
26802 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26803 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26804 #include <stdio.h>
26805 #include <stdlib.h>
26806 int
26807 main ()
26808 {
26809
26810   FILE *f = fopen ("conftest.val", "w");
26811   if (! f)
26812     return 1;
26813   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26814     {
26815       long int i = longval ();
26816       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26817         return 1;
26818       fprintf (f, "%ld", i);
26819     }
26820   else
26821     {
26822       unsigned long int i = ulongval ();
26823       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26824         return 1;
26825       fprintf (f, "%lu", i);
26826     }
26827   /* Do not output a trailing newline, as this causes \r\n confusion
26828      on some platforms.  */
26829   return ferror (f) || fclose (f) != 0;
26830
26831   ;
26832   return 0;
26833 }
26834 _ACEOF
26835 rm -f conftest$ac_exeext
26836 if { (ac_try="$ac_link"
26837 case "(($ac_try" in
26838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26839   *) ac_try_echo=$ac_try;;
26840 esac
26841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26842 $as_echo "$ac_try_echo") >&5
26843   (eval "$ac_link") 2>&5
26844   ac_status=$?
26845   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26846   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26847   { (case "(($ac_try" in
26848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26849   *) ac_try_echo=$ac_try;;
26850 esac
26851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26852 $as_echo "$ac_try_echo") >&5
26853   (eval "$ac_try") 2>&5
26854   ac_status=$?
26855   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856   (exit $ac_status); }; }; then
26857   ac_cv_alignof_long=`cat conftest.val`
26858 else
26859   $as_echo "$as_me: program exited with status $ac_status" >&5
26860 $as_echo "$as_me: failed program was:" >&5
26861 sed 's/^/| /' conftest.$ac_ext >&5
26862
26863 ( exit $ac_status )
26864 if test "$ac_cv_type_long" = yes; then
26865      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26867 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26868 See \`config.log' for more details." >&5
26869 $as_echo "$as_me: error: cannot compute alignment of long
26870 See \`config.log' for more details." >&2;}
26871    { (exit 77); exit 77; }; }; }
26872    else
26873      ac_cv_alignof_long=0
26874    fi
26875 fi
26876 rm -rf conftest.dSYM
26877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26878 fi
26879 rm -f conftest.val
26880 fi
26881 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
26882 $as_echo "$ac_cv_alignof_long" >&6; }
26883
26884
26885
26886 cat >>confdefs.h <<_ACEOF
26887 #define ALIGNOF_LONG $ac_cv_alignof_long
26888 _ACEOF
26889
26890
26891 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
26892   # The cast to long int works around a bug in the HP C Compiler,
26893 # see AC_CHECK_SIZEOF for more information.
26894 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
26895 $as_echo_n "checking alignment of long long int... " >&6; }
26896 if test "${ac_cv_alignof_long_long_int+set}" = set; then
26897   $as_echo_n "(cached) " >&6
26898 else
26899   if test "$cross_compiling" = yes; then
26900   # Depending upon the size, compute the lo and hi bounds.
26901 cat >conftest.$ac_ext <<_ACEOF
26902 /* confdefs.h.  */
26903 _ACEOF
26904 cat confdefs.h >>conftest.$ac_ext
26905 cat >>conftest.$ac_ext <<_ACEOF
26906 /* end confdefs.h.  */
26907 $ac_includes_default
26908 #ifndef offsetof
26909 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26910 #endif
26911 typedef struct { char x; long long int y; } ac__type_alignof_;
26912 int
26913 main ()
26914 {
26915 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26916 test_array [0] = 0
26917
26918   ;
26919   return 0;
26920 }
26921 _ACEOF
26922 rm -f conftest.$ac_objext
26923 if { (ac_try="$ac_compile"
26924 case "(($ac_try" in
26925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26926   *) ac_try_echo=$ac_try;;
26927 esac
26928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26929 $as_echo "$ac_try_echo") >&5
26930   (eval "$ac_compile") 2>conftest.er1
26931   ac_status=$?
26932   grep -v '^ *+' conftest.er1 >conftest.err
26933   rm -f conftest.er1
26934   cat conftest.err >&5
26935   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26936   (exit $ac_status); } && {
26937          test -z "$ac_c_werror_flag" ||
26938          test ! -s conftest.err
26939        } && test -s conftest.$ac_objext; then
26940   ac_lo=0 ac_mid=0
26941   while :; do
26942     cat >conftest.$ac_ext <<_ACEOF
26943 /* confdefs.h.  */
26944 _ACEOF
26945 cat confdefs.h >>conftest.$ac_ext
26946 cat >>conftest.$ac_ext <<_ACEOF
26947 /* end confdefs.h.  */
26948 $ac_includes_default
26949 #ifndef offsetof
26950 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26951 #endif
26952 typedef struct { char x; long long int y; } ac__type_alignof_;
26953 int
26954 main ()
26955 {
26956 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26957 test_array [0] = 0
26958
26959   ;
26960   return 0;
26961 }
26962 _ACEOF
26963 rm -f conftest.$ac_objext
26964 if { (ac_try="$ac_compile"
26965 case "(($ac_try" in
26966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26967   *) ac_try_echo=$ac_try;;
26968 esac
26969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26970 $as_echo "$ac_try_echo") >&5
26971   (eval "$ac_compile") 2>conftest.er1
26972   ac_status=$?
26973   grep -v '^ *+' conftest.er1 >conftest.err
26974   rm -f conftest.er1
26975   cat conftest.err >&5
26976   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26977   (exit $ac_status); } && {
26978          test -z "$ac_c_werror_flag" ||
26979          test ! -s conftest.err
26980        } && test -s conftest.$ac_objext; then
26981   ac_hi=$ac_mid; break
26982 else
26983   $as_echo "$as_me: failed program was:" >&5
26984 sed 's/^/| /' conftest.$ac_ext >&5
26985
26986         ac_lo=`expr $ac_mid + 1`
26987                         if test $ac_lo -le $ac_mid; then
26988                           ac_lo= ac_hi=
26989                           break
26990                         fi
26991                         ac_mid=`expr 2 '*' $ac_mid + 1`
26992 fi
26993
26994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26995   done
26996 else
26997   $as_echo "$as_me: failed program was:" >&5
26998 sed 's/^/| /' conftest.$ac_ext >&5
26999
27000         cat >conftest.$ac_ext <<_ACEOF
27001 /* confdefs.h.  */
27002 _ACEOF
27003 cat confdefs.h >>conftest.$ac_ext
27004 cat >>conftest.$ac_ext <<_ACEOF
27005 /* end confdefs.h.  */
27006 $ac_includes_default
27007 #ifndef offsetof
27008 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27009 #endif
27010 typedef struct { char x; long long int y; } ac__type_alignof_;
27011 int
27012 main ()
27013 {
27014 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27015 test_array [0] = 0
27016
27017   ;
27018   return 0;
27019 }
27020 _ACEOF
27021 rm -f conftest.$ac_objext
27022 if { (ac_try="$ac_compile"
27023 case "(($ac_try" in
27024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27025   *) ac_try_echo=$ac_try;;
27026 esac
27027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27028 $as_echo "$ac_try_echo") >&5
27029   (eval "$ac_compile") 2>conftest.er1
27030   ac_status=$?
27031   grep -v '^ *+' conftest.er1 >conftest.err
27032   rm -f conftest.er1
27033   cat conftest.err >&5
27034   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27035   (exit $ac_status); } && {
27036          test -z "$ac_c_werror_flag" ||
27037          test ! -s conftest.err
27038        } && test -s conftest.$ac_objext; then
27039   ac_hi=-1 ac_mid=-1
27040   while :; do
27041     cat >conftest.$ac_ext <<_ACEOF
27042 /* confdefs.h.  */
27043 _ACEOF
27044 cat confdefs.h >>conftest.$ac_ext
27045 cat >>conftest.$ac_ext <<_ACEOF
27046 /* end confdefs.h.  */
27047 $ac_includes_default
27048 #ifndef offsetof
27049 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27050 #endif
27051 typedef struct { char x; long long int y; } ac__type_alignof_;
27052 int
27053 main ()
27054 {
27055 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27056 test_array [0] = 0
27057
27058   ;
27059   return 0;
27060 }
27061 _ACEOF
27062 rm -f conftest.$ac_objext
27063 if { (ac_try="$ac_compile"
27064 case "(($ac_try" in
27065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27066   *) ac_try_echo=$ac_try;;
27067 esac
27068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27069 $as_echo "$ac_try_echo") >&5
27070   (eval "$ac_compile") 2>conftest.er1
27071   ac_status=$?
27072   grep -v '^ *+' conftest.er1 >conftest.err
27073   rm -f conftest.er1
27074   cat conftest.err >&5
27075   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27076   (exit $ac_status); } && {
27077          test -z "$ac_c_werror_flag" ||
27078          test ! -s conftest.err
27079        } && test -s conftest.$ac_objext; then
27080   ac_lo=$ac_mid; break
27081 else
27082   $as_echo "$as_me: failed program was:" >&5
27083 sed 's/^/| /' conftest.$ac_ext >&5
27084
27085         ac_hi=`expr '(' $ac_mid ')' - 1`
27086                         if test $ac_mid -le $ac_hi; then
27087                           ac_lo= ac_hi=
27088                           break
27089                         fi
27090                         ac_mid=`expr 2 '*' $ac_mid`
27091 fi
27092
27093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27094   done
27095 else
27096   $as_echo "$as_me: failed program was:" >&5
27097 sed 's/^/| /' conftest.$ac_ext >&5
27098
27099         ac_lo= ac_hi=
27100 fi
27101
27102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27103 fi
27104
27105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27106 # Binary search between lo and hi bounds.
27107 while test "x$ac_lo" != "x$ac_hi"; do
27108   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27109   cat >conftest.$ac_ext <<_ACEOF
27110 /* confdefs.h.  */
27111 _ACEOF
27112 cat confdefs.h >>conftest.$ac_ext
27113 cat >>conftest.$ac_ext <<_ACEOF
27114 /* end confdefs.h.  */
27115 $ac_includes_default
27116 #ifndef offsetof
27117 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27118 #endif
27119 typedef struct { char x; long long int y; } ac__type_alignof_;
27120 int
27121 main ()
27122 {
27123 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27124 test_array [0] = 0
27125
27126   ;
27127   return 0;
27128 }
27129 _ACEOF
27130 rm -f conftest.$ac_objext
27131 if { (ac_try="$ac_compile"
27132 case "(($ac_try" in
27133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27134   *) ac_try_echo=$ac_try;;
27135 esac
27136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27137 $as_echo "$ac_try_echo") >&5
27138   (eval "$ac_compile") 2>conftest.er1
27139   ac_status=$?
27140   grep -v '^ *+' conftest.er1 >conftest.err
27141   rm -f conftest.er1
27142   cat conftest.err >&5
27143   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27144   (exit $ac_status); } && {
27145          test -z "$ac_c_werror_flag" ||
27146          test ! -s conftest.err
27147        } && test -s conftest.$ac_objext; then
27148   ac_hi=$ac_mid
27149 else
27150   $as_echo "$as_me: failed program was:" >&5
27151 sed 's/^/| /' conftest.$ac_ext >&5
27152
27153         ac_lo=`expr '(' $ac_mid ')' + 1`
27154 fi
27155
27156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27157 done
27158 case $ac_lo in
27159 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
27160 '') if test "$ac_cv_type_long_long_int" = yes; then
27161      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27163 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27164 See \`config.log' for more details." >&5
27165 $as_echo "$as_me: error: cannot compute alignment of long long int
27166 See \`config.log' for more details." >&2;}
27167    { (exit 77); exit 77; }; }; }
27168    else
27169      ac_cv_alignof_long_long_int=0
27170    fi ;;
27171 esac
27172 else
27173   cat >conftest.$ac_ext <<_ACEOF
27174 /* confdefs.h.  */
27175 _ACEOF
27176 cat confdefs.h >>conftest.$ac_ext
27177 cat >>conftest.$ac_ext <<_ACEOF
27178 /* end confdefs.h.  */
27179 $ac_includes_default
27180 #ifndef offsetof
27181 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27182 #endif
27183 typedef struct { char x; long long int y; } ac__type_alignof_;
27184 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27185 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27186 #include <stdio.h>
27187 #include <stdlib.h>
27188 int
27189 main ()
27190 {
27191
27192   FILE *f = fopen ("conftest.val", "w");
27193   if (! f)
27194     return 1;
27195   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27196     {
27197       long int i = longval ();
27198       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27199         return 1;
27200       fprintf (f, "%ld", i);
27201     }
27202   else
27203     {
27204       unsigned long int i = ulongval ();
27205       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27206         return 1;
27207       fprintf (f, "%lu", i);
27208     }
27209   /* Do not output a trailing newline, as this causes \r\n confusion
27210      on some platforms.  */
27211   return ferror (f) || fclose (f) != 0;
27212
27213   ;
27214   return 0;
27215 }
27216 _ACEOF
27217 rm -f conftest$ac_exeext
27218 if { (ac_try="$ac_link"
27219 case "(($ac_try" in
27220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27221   *) ac_try_echo=$ac_try;;
27222 esac
27223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27224 $as_echo "$ac_try_echo") >&5
27225   (eval "$ac_link") 2>&5
27226   ac_status=$?
27227   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27228   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27229   { (case "(($ac_try" in
27230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27231   *) ac_try_echo=$ac_try;;
27232 esac
27233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27234 $as_echo "$ac_try_echo") >&5
27235   (eval "$ac_try") 2>&5
27236   ac_status=$?
27237   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27238   (exit $ac_status); }; }; then
27239   ac_cv_alignof_long_long_int=`cat conftest.val`
27240 else
27241   $as_echo "$as_me: program exited with status $ac_status" >&5
27242 $as_echo "$as_me: failed program was:" >&5
27243 sed 's/^/| /' conftest.$ac_ext >&5
27244
27245 ( exit $ac_status )
27246 if test "$ac_cv_type_long_long_int" = yes; then
27247      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27249 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27250 See \`config.log' for more details." >&5
27251 $as_echo "$as_me: error: cannot compute alignment of long long int
27252 See \`config.log' for more details." >&2;}
27253    { (exit 77); exit 77; }; }; }
27254    else
27255      ac_cv_alignof_long_long_int=0
27256    fi
27257 fi
27258 rm -rf conftest.dSYM
27259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27260 fi
27261 rm -f conftest.val
27262 fi
27263 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
27264 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
27265
27266
27267
27268 cat >>confdefs.h <<_ACEOF
27269 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
27270 _ACEOF
27271
27272
27273 fi
27274 # The cast to long int works around a bug in the HP C Compiler,
27275 # see AC_CHECK_SIZEOF for more information.
27276 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
27277 $as_echo_n "checking alignment of double... " >&6; }
27278 if test "${ac_cv_alignof_double+set}" = set; then
27279   $as_echo_n "(cached) " >&6
27280 else
27281   if test "$cross_compiling" = yes; then
27282   # Depending upon the size, compute the lo and hi bounds.
27283 cat >conftest.$ac_ext <<_ACEOF
27284 /* confdefs.h.  */
27285 _ACEOF
27286 cat confdefs.h >>conftest.$ac_ext
27287 cat >>conftest.$ac_ext <<_ACEOF
27288 /* end confdefs.h.  */
27289 $ac_includes_default
27290 #ifndef offsetof
27291 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27292 #endif
27293 typedef struct { char x; double y; } ac__type_alignof_;
27294 int
27295 main ()
27296 {
27297 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27298 test_array [0] = 0
27299
27300   ;
27301   return 0;
27302 }
27303 _ACEOF
27304 rm -f conftest.$ac_objext
27305 if { (ac_try="$ac_compile"
27306 case "(($ac_try" in
27307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27308   *) ac_try_echo=$ac_try;;
27309 esac
27310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27311 $as_echo "$ac_try_echo") >&5
27312   (eval "$ac_compile") 2>conftest.er1
27313   ac_status=$?
27314   grep -v '^ *+' conftest.er1 >conftest.err
27315   rm -f conftest.er1
27316   cat conftest.err >&5
27317   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27318   (exit $ac_status); } && {
27319          test -z "$ac_c_werror_flag" ||
27320          test ! -s conftest.err
27321        } && test -s conftest.$ac_objext; then
27322   ac_lo=0 ac_mid=0
27323   while :; do
27324     cat >conftest.$ac_ext <<_ACEOF
27325 /* confdefs.h.  */
27326 _ACEOF
27327 cat confdefs.h >>conftest.$ac_ext
27328 cat >>conftest.$ac_ext <<_ACEOF
27329 /* end confdefs.h.  */
27330 $ac_includes_default
27331 #ifndef offsetof
27332 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27333 #endif
27334 typedef struct { char x; double y; } ac__type_alignof_;
27335 int
27336 main ()
27337 {
27338 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27339 test_array [0] = 0
27340
27341   ;
27342   return 0;
27343 }
27344 _ACEOF
27345 rm -f conftest.$ac_objext
27346 if { (ac_try="$ac_compile"
27347 case "(($ac_try" in
27348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27349   *) ac_try_echo=$ac_try;;
27350 esac
27351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27352 $as_echo "$ac_try_echo") >&5
27353   (eval "$ac_compile") 2>conftest.er1
27354   ac_status=$?
27355   grep -v '^ *+' conftest.er1 >conftest.err
27356   rm -f conftest.er1
27357   cat conftest.err >&5
27358   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27359   (exit $ac_status); } && {
27360          test -z "$ac_c_werror_flag" ||
27361          test ! -s conftest.err
27362        } && test -s conftest.$ac_objext; then
27363   ac_hi=$ac_mid; break
27364 else
27365   $as_echo "$as_me: failed program was:" >&5
27366 sed 's/^/| /' conftest.$ac_ext >&5
27367
27368         ac_lo=`expr $ac_mid + 1`
27369                         if test $ac_lo -le $ac_mid; then
27370                           ac_lo= ac_hi=
27371                           break
27372                         fi
27373                         ac_mid=`expr 2 '*' $ac_mid + 1`
27374 fi
27375
27376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27377   done
27378 else
27379   $as_echo "$as_me: failed program was:" >&5
27380 sed 's/^/| /' conftest.$ac_ext >&5
27381
27382         cat >conftest.$ac_ext <<_ACEOF
27383 /* confdefs.h.  */
27384 _ACEOF
27385 cat confdefs.h >>conftest.$ac_ext
27386 cat >>conftest.$ac_ext <<_ACEOF
27387 /* end confdefs.h.  */
27388 $ac_includes_default
27389 #ifndef offsetof
27390 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27391 #endif
27392 typedef struct { char x; double y; } ac__type_alignof_;
27393 int
27394 main ()
27395 {
27396 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27397 test_array [0] = 0
27398
27399   ;
27400   return 0;
27401 }
27402 _ACEOF
27403 rm -f conftest.$ac_objext
27404 if { (ac_try="$ac_compile"
27405 case "(($ac_try" in
27406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27407   *) ac_try_echo=$ac_try;;
27408 esac
27409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27410 $as_echo "$ac_try_echo") >&5
27411   (eval "$ac_compile") 2>conftest.er1
27412   ac_status=$?
27413   grep -v '^ *+' conftest.er1 >conftest.err
27414   rm -f conftest.er1
27415   cat conftest.err >&5
27416   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27417   (exit $ac_status); } && {
27418          test -z "$ac_c_werror_flag" ||
27419          test ! -s conftest.err
27420        } && test -s conftest.$ac_objext; then
27421   ac_hi=-1 ac_mid=-1
27422   while :; do
27423     cat >conftest.$ac_ext <<_ACEOF
27424 /* confdefs.h.  */
27425 _ACEOF
27426 cat confdefs.h >>conftest.$ac_ext
27427 cat >>conftest.$ac_ext <<_ACEOF
27428 /* end confdefs.h.  */
27429 $ac_includes_default
27430 #ifndef offsetof
27431 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27432 #endif
27433 typedef struct { char x; double y; } ac__type_alignof_;
27434 int
27435 main ()
27436 {
27437 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27438 test_array [0] = 0
27439
27440   ;
27441   return 0;
27442 }
27443 _ACEOF
27444 rm -f conftest.$ac_objext
27445 if { (ac_try="$ac_compile"
27446 case "(($ac_try" in
27447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27448   *) ac_try_echo=$ac_try;;
27449 esac
27450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27451 $as_echo "$ac_try_echo") >&5
27452   (eval "$ac_compile") 2>conftest.er1
27453   ac_status=$?
27454   grep -v '^ *+' conftest.er1 >conftest.err
27455   rm -f conftest.er1
27456   cat conftest.err >&5
27457   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27458   (exit $ac_status); } && {
27459          test -z "$ac_c_werror_flag" ||
27460          test ! -s conftest.err
27461        } && test -s conftest.$ac_objext; then
27462   ac_lo=$ac_mid; break
27463 else
27464   $as_echo "$as_me: failed program was:" >&5
27465 sed 's/^/| /' conftest.$ac_ext >&5
27466
27467         ac_hi=`expr '(' $ac_mid ')' - 1`
27468                         if test $ac_mid -le $ac_hi; then
27469                           ac_lo= ac_hi=
27470                           break
27471                         fi
27472                         ac_mid=`expr 2 '*' $ac_mid`
27473 fi
27474
27475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27476   done
27477 else
27478   $as_echo "$as_me: failed program was:" >&5
27479 sed 's/^/| /' conftest.$ac_ext >&5
27480
27481         ac_lo= ac_hi=
27482 fi
27483
27484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27485 fi
27486
27487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27488 # Binary search between lo and hi bounds.
27489 while test "x$ac_lo" != "x$ac_hi"; do
27490   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27491   cat >conftest.$ac_ext <<_ACEOF
27492 /* confdefs.h.  */
27493 _ACEOF
27494 cat confdefs.h >>conftest.$ac_ext
27495 cat >>conftest.$ac_ext <<_ACEOF
27496 /* end confdefs.h.  */
27497 $ac_includes_default
27498 #ifndef offsetof
27499 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27500 #endif
27501 typedef struct { char x; double y; } ac__type_alignof_;
27502 int
27503 main ()
27504 {
27505 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27506 test_array [0] = 0
27507
27508   ;
27509   return 0;
27510 }
27511 _ACEOF
27512 rm -f conftest.$ac_objext
27513 if { (ac_try="$ac_compile"
27514 case "(($ac_try" in
27515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27516   *) ac_try_echo=$ac_try;;
27517 esac
27518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27519 $as_echo "$ac_try_echo") >&5
27520   (eval "$ac_compile") 2>conftest.er1
27521   ac_status=$?
27522   grep -v '^ *+' conftest.er1 >conftest.err
27523   rm -f conftest.er1
27524   cat conftest.err >&5
27525   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27526   (exit $ac_status); } && {
27527          test -z "$ac_c_werror_flag" ||
27528          test ! -s conftest.err
27529        } && test -s conftest.$ac_objext; then
27530   ac_hi=$ac_mid
27531 else
27532   $as_echo "$as_me: failed program was:" >&5
27533 sed 's/^/| /' conftest.$ac_ext >&5
27534
27535         ac_lo=`expr '(' $ac_mid ')' + 1`
27536 fi
27537
27538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27539 done
27540 case $ac_lo in
27541 ?*) ac_cv_alignof_double=$ac_lo;;
27542 '') if test "$ac_cv_type_double" = yes; then
27543      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27545 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27546 See \`config.log' for more details." >&5
27547 $as_echo "$as_me: error: cannot compute alignment of double
27548 See \`config.log' for more details." >&2;}
27549    { (exit 77); exit 77; }; }; }
27550    else
27551      ac_cv_alignof_double=0
27552    fi ;;
27553 esac
27554 else
27555   cat >conftest.$ac_ext <<_ACEOF
27556 /* confdefs.h.  */
27557 _ACEOF
27558 cat confdefs.h >>conftest.$ac_ext
27559 cat >>conftest.$ac_ext <<_ACEOF
27560 /* end confdefs.h.  */
27561 $ac_includes_default
27562 #ifndef offsetof
27563 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27564 #endif
27565 typedef struct { char x; double y; } ac__type_alignof_;
27566 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27567 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27568 #include <stdio.h>
27569 #include <stdlib.h>
27570 int
27571 main ()
27572 {
27573
27574   FILE *f = fopen ("conftest.val", "w");
27575   if (! f)
27576     return 1;
27577   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27578     {
27579       long int i = longval ();
27580       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27581         return 1;
27582       fprintf (f, "%ld", i);
27583     }
27584   else
27585     {
27586       unsigned long int i = ulongval ();
27587       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27588         return 1;
27589       fprintf (f, "%lu", i);
27590     }
27591   /* Do not output a trailing newline, as this causes \r\n confusion
27592      on some platforms.  */
27593   return ferror (f) || fclose (f) != 0;
27594
27595   ;
27596   return 0;
27597 }
27598 _ACEOF
27599 rm -f conftest$ac_exeext
27600 if { (ac_try="$ac_link"
27601 case "(($ac_try" in
27602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27603   *) ac_try_echo=$ac_try;;
27604 esac
27605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27606 $as_echo "$ac_try_echo") >&5
27607   (eval "$ac_link") 2>&5
27608   ac_status=$?
27609   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27610   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27611   { (case "(($ac_try" in
27612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27613   *) ac_try_echo=$ac_try;;
27614 esac
27615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27616 $as_echo "$ac_try_echo") >&5
27617   (eval "$ac_try") 2>&5
27618   ac_status=$?
27619   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27620   (exit $ac_status); }; }; then
27621   ac_cv_alignof_double=`cat conftest.val`
27622 else
27623   $as_echo "$as_me: program exited with status $ac_status" >&5
27624 $as_echo "$as_me: failed program was:" >&5
27625 sed 's/^/| /' conftest.$ac_ext >&5
27626
27627 ( exit $ac_status )
27628 if test "$ac_cv_type_double" = yes; then
27629      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27631 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27632 See \`config.log' for more details." >&5
27633 $as_echo "$as_me: error: cannot compute alignment of double
27634 See \`config.log' for more details." >&2;}
27635    { (exit 77); exit 77; }; }; }
27636    else
27637      ac_cv_alignof_double=0
27638    fi
27639 fi
27640 rm -rf conftest.dSYM
27641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27642 fi
27643 rm -f conftest.val
27644 fi
27645 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
27646 $as_echo "$ac_cv_alignof_double" >&6; }
27647
27648
27649
27650 cat >>confdefs.h <<_ACEOF
27651 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
27652 _ACEOF
27653
27654
27655
27656 # Compute maximum alignment of any basic type.
27657 # We assume long's alignment is at least as strong as char, short, or int;
27658 # but we must check long long (if it exists) and double.
27659
27660 MAX_ALIGNOF=$ac_cv_alignof_long
27661 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
27662   MAX_ALIGNOF=$ac_cv_alignof_double
27663 fi
27664 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
27665   MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
27666 fi
27667
27668 cat >>confdefs.h <<_ACEOF
27669 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
27670 _ACEOF
27671
27672
27673
27674 # Some platforms predefine the types int8, int16, etc.  Only check
27675 # a (hopefully) representative subset.
27676 { $as_echo "$as_me:$LINENO: checking for int8" >&5
27677 $as_echo_n "checking for int8... " >&6; }
27678 if test "${ac_cv_type_int8+set}" = set; then
27679   $as_echo_n "(cached) " >&6
27680 else
27681   ac_cv_type_int8=no
27682 cat >conftest.$ac_ext <<_ACEOF
27683 /* confdefs.h.  */
27684 _ACEOF
27685 cat confdefs.h >>conftest.$ac_ext
27686 cat >>conftest.$ac_ext <<_ACEOF
27687 /* end confdefs.h.  */
27688 #include <stdio.h>
27689
27690 int
27691 main ()
27692 {
27693 if (sizeof (int8))
27694        return 0;
27695   ;
27696   return 0;
27697 }
27698 _ACEOF
27699 rm -f conftest.$ac_objext
27700 if { (ac_try="$ac_compile"
27701 case "(($ac_try" in
27702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27703   *) ac_try_echo=$ac_try;;
27704 esac
27705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27706 $as_echo "$ac_try_echo") >&5
27707   (eval "$ac_compile") 2>conftest.er1
27708   ac_status=$?
27709   grep -v '^ *+' conftest.er1 >conftest.err
27710   rm -f conftest.er1
27711   cat conftest.err >&5
27712   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27713   (exit $ac_status); } && {
27714          test -z "$ac_c_werror_flag" ||
27715          test ! -s conftest.err
27716        } && test -s conftest.$ac_objext; then
27717   cat >conftest.$ac_ext <<_ACEOF
27718 /* confdefs.h.  */
27719 _ACEOF
27720 cat confdefs.h >>conftest.$ac_ext
27721 cat >>conftest.$ac_ext <<_ACEOF
27722 /* end confdefs.h.  */
27723 #include <stdio.h>
27724
27725 int
27726 main ()
27727 {
27728 if (sizeof ((int8)))
27729           return 0;
27730   ;
27731   return 0;
27732 }
27733 _ACEOF
27734 rm -f conftest.$ac_objext
27735 if { (ac_try="$ac_compile"
27736 case "(($ac_try" in
27737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27738   *) ac_try_echo=$ac_try;;
27739 esac
27740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27741 $as_echo "$ac_try_echo") >&5
27742   (eval "$ac_compile") 2>conftest.er1
27743   ac_status=$?
27744   grep -v '^ *+' conftest.er1 >conftest.err
27745   rm -f conftest.er1
27746   cat conftest.err >&5
27747   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27748   (exit $ac_status); } && {
27749          test -z "$ac_c_werror_flag" ||
27750          test ! -s conftest.err
27751        } && test -s conftest.$ac_objext; then
27752   :
27753 else
27754   $as_echo "$as_me: failed program was:" >&5
27755 sed 's/^/| /' conftest.$ac_ext >&5
27756
27757         ac_cv_type_int8=yes
27758 fi
27759
27760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27761 else
27762   $as_echo "$as_me: failed program was:" >&5
27763 sed 's/^/| /' conftest.$ac_ext >&5
27764
27765
27766 fi
27767
27768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27769 fi
27770 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
27771 $as_echo "$ac_cv_type_int8" >&6; }
27772 if test "x$ac_cv_type_int8" = x""yes; then
27773
27774 cat >>confdefs.h <<_ACEOF
27775 #define HAVE_INT8 1
27776 _ACEOF
27777
27778
27779 fi
27780 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
27781 $as_echo_n "checking for uint8... " >&6; }
27782 if test "${ac_cv_type_uint8+set}" = set; then
27783   $as_echo_n "(cached) " >&6
27784 else
27785   ac_cv_type_uint8=no
27786 cat >conftest.$ac_ext <<_ACEOF
27787 /* confdefs.h.  */
27788 _ACEOF
27789 cat confdefs.h >>conftest.$ac_ext
27790 cat >>conftest.$ac_ext <<_ACEOF
27791 /* end confdefs.h.  */
27792 #include <stdio.h>
27793
27794 int
27795 main ()
27796 {
27797 if (sizeof (uint8))
27798        return 0;
27799   ;
27800   return 0;
27801 }
27802 _ACEOF
27803 rm -f conftest.$ac_objext
27804 if { (ac_try="$ac_compile"
27805 case "(($ac_try" in
27806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27807   *) ac_try_echo=$ac_try;;
27808 esac
27809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27810 $as_echo "$ac_try_echo") >&5
27811   (eval "$ac_compile") 2>conftest.er1
27812   ac_status=$?
27813   grep -v '^ *+' conftest.er1 >conftest.err
27814   rm -f conftest.er1
27815   cat conftest.err >&5
27816   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27817   (exit $ac_status); } && {
27818          test -z "$ac_c_werror_flag" ||
27819          test ! -s conftest.err
27820        } && test -s conftest.$ac_objext; then
27821   cat >conftest.$ac_ext <<_ACEOF
27822 /* confdefs.h.  */
27823 _ACEOF
27824 cat confdefs.h >>conftest.$ac_ext
27825 cat >>conftest.$ac_ext <<_ACEOF
27826 /* end confdefs.h.  */
27827 #include <stdio.h>
27828
27829 int
27830 main ()
27831 {
27832 if (sizeof ((uint8)))
27833           return 0;
27834   ;
27835   return 0;
27836 }
27837 _ACEOF
27838 rm -f conftest.$ac_objext
27839 if { (ac_try="$ac_compile"
27840 case "(($ac_try" in
27841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27842   *) ac_try_echo=$ac_try;;
27843 esac
27844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27845 $as_echo "$ac_try_echo") >&5
27846   (eval "$ac_compile") 2>conftest.er1
27847   ac_status=$?
27848   grep -v '^ *+' conftest.er1 >conftest.err
27849   rm -f conftest.er1
27850   cat conftest.err >&5
27851   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27852   (exit $ac_status); } && {
27853          test -z "$ac_c_werror_flag" ||
27854          test ! -s conftest.err
27855        } && test -s conftest.$ac_objext; then
27856   :
27857 else
27858   $as_echo "$as_me: failed program was:" >&5
27859 sed 's/^/| /' conftest.$ac_ext >&5
27860
27861         ac_cv_type_uint8=yes
27862 fi
27863
27864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27865 else
27866   $as_echo "$as_me: failed program was:" >&5
27867 sed 's/^/| /' conftest.$ac_ext >&5
27868
27869
27870 fi
27871
27872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27873 fi
27874 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
27875 $as_echo "$ac_cv_type_uint8" >&6; }
27876 if test "x$ac_cv_type_uint8" = x""yes; then
27877
27878 cat >>confdefs.h <<_ACEOF
27879 #define HAVE_UINT8 1
27880 _ACEOF
27881
27882
27883 fi
27884 { $as_echo "$as_me:$LINENO: checking for int64" >&5
27885 $as_echo_n "checking for int64... " >&6; }
27886 if test "${ac_cv_type_int64+set}" = set; then
27887   $as_echo_n "(cached) " >&6
27888 else
27889   ac_cv_type_int64=no
27890 cat >conftest.$ac_ext <<_ACEOF
27891 /* confdefs.h.  */
27892 _ACEOF
27893 cat confdefs.h >>conftest.$ac_ext
27894 cat >>conftest.$ac_ext <<_ACEOF
27895 /* end confdefs.h.  */
27896 #include <stdio.h>
27897
27898 int
27899 main ()
27900 {
27901 if (sizeof (int64))
27902        return 0;
27903   ;
27904   return 0;
27905 }
27906 _ACEOF
27907 rm -f conftest.$ac_objext
27908 if { (ac_try="$ac_compile"
27909 case "(($ac_try" in
27910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27911   *) ac_try_echo=$ac_try;;
27912 esac
27913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27914 $as_echo "$ac_try_echo") >&5
27915   (eval "$ac_compile") 2>conftest.er1
27916   ac_status=$?
27917   grep -v '^ *+' conftest.er1 >conftest.err
27918   rm -f conftest.er1
27919   cat conftest.err >&5
27920   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27921   (exit $ac_status); } && {
27922          test -z "$ac_c_werror_flag" ||
27923          test ! -s conftest.err
27924        } && test -s conftest.$ac_objext; then
27925   cat >conftest.$ac_ext <<_ACEOF
27926 /* confdefs.h.  */
27927 _ACEOF
27928 cat confdefs.h >>conftest.$ac_ext
27929 cat >>conftest.$ac_ext <<_ACEOF
27930 /* end confdefs.h.  */
27931 #include <stdio.h>
27932
27933 int
27934 main ()
27935 {
27936 if (sizeof ((int64)))
27937           return 0;
27938   ;
27939   return 0;
27940 }
27941 _ACEOF
27942 rm -f conftest.$ac_objext
27943 if { (ac_try="$ac_compile"
27944 case "(($ac_try" in
27945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27946   *) ac_try_echo=$ac_try;;
27947 esac
27948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27949 $as_echo "$ac_try_echo") >&5
27950   (eval "$ac_compile") 2>conftest.er1
27951   ac_status=$?
27952   grep -v '^ *+' conftest.er1 >conftest.err
27953   rm -f conftest.er1
27954   cat conftest.err >&5
27955   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27956   (exit $ac_status); } && {
27957          test -z "$ac_c_werror_flag" ||
27958          test ! -s conftest.err
27959        } && test -s conftest.$ac_objext; then
27960   :
27961 else
27962   $as_echo "$as_me: failed program was:" >&5
27963 sed 's/^/| /' conftest.$ac_ext >&5
27964
27965         ac_cv_type_int64=yes
27966 fi
27967
27968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27969 else
27970   $as_echo "$as_me: failed program was:" >&5
27971 sed 's/^/| /' conftest.$ac_ext >&5
27972
27973
27974 fi
27975
27976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27977 fi
27978 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
27979 $as_echo "$ac_cv_type_int64" >&6; }
27980 if test "x$ac_cv_type_int64" = x""yes; then
27981
27982 cat >>confdefs.h <<_ACEOF
27983 #define HAVE_INT64 1
27984 _ACEOF
27985
27986
27987 fi
27988 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
27989 $as_echo_n "checking for uint64... " >&6; }
27990 if test "${ac_cv_type_uint64+set}" = set; then
27991   $as_echo_n "(cached) " >&6
27992 else
27993   ac_cv_type_uint64=no
27994 cat >conftest.$ac_ext <<_ACEOF
27995 /* confdefs.h.  */
27996 _ACEOF
27997 cat confdefs.h >>conftest.$ac_ext
27998 cat >>conftest.$ac_ext <<_ACEOF
27999 /* end confdefs.h.  */
28000 #include <stdio.h>
28001
28002 int
28003 main ()
28004 {
28005 if (sizeof (uint64))
28006        return 0;
28007   ;
28008   return 0;
28009 }
28010 _ACEOF
28011 rm -f conftest.$ac_objext
28012 if { (ac_try="$ac_compile"
28013 case "(($ac_try" in
28014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28015   *) ac_try_echo=$ac_try;;
28016 esac
28017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28018 $as_echo "$ac_try_echo") >&5
28019   (eval "$ac_compile") 2>conftest.er1
28020   ac_status=$?
28021   grep -v '^ *+' conftest.er1 >conftest.err
28022   rm -f conftest.er1
28023   cat conftest.err >&5
28024   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28025   (exit $ac_status); } && {
28026          test -z "$ac_c_werror_flag" ||
28027          test ! -s conftest.err
28028        } && test -s conftest.$ac_objext; then
28029   cat >conftest.$ac_ext <<_ACEOF
28030 /* confdefs.h.  */
28031 _ACEOF
28032 cat confdefs.h >>conftest.$ac_ext
28033 cat >>conftest.$ac_ext <<_ACEOF
28034 /* end confdefs.h.  */
28035 #include <stdio.h>
28036
28037 int
28038 main ()
28039 {
28040 if (sizeof ((uint64)))
28041           return 0;
28042   ;
28043   return 0;
28044 }
28045 _ACEOF
28046 rm -f conftest.$ac_objext
28047 if { (ac_try="$ac_compile"
28048 case "(($ac_try" in
28049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28050   *) ac_try_echo=$ac_try;;
28051 esac
28052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28053 $as_echo "$ac_try_echo") >&5
28054   (eval "$ac_compile") 2>conftest.er1
28055   ac_status=$?
28056   grep -v '^ *+' conftest.er1 >conftest.err
28057   rm -f conftest.er1
28058   cat conftest.err >&5
28059   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28060   (exit $ac_status); } && {
28061          test -z "$ac_c_werror_flag" ||
28062          test ! -s conftest.err
28063        } && test -s conftest.$ac_objext; then
28064   :
28065 else
28066   $as_echo "$as_me: failed program was:" >&5
28067 sed 's/^/| /' conftest.$ac_ext >&5
28068
28069         ac_cv_type_uint64=yes
28070 fi
28071
28072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28073 else
28074   $as_echo "$as_me: failed program was:" >&5
28075 sed 's/^/| /' conftest.$ac_ext >&5
28076
28077
28078 fi
28079
28080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28081 fi
28082 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
28083 $as_echo "$ac_cv_type_uint64" >&6; }
28084 if test "x$ac_cv_type_uint64" = x""yes; then
28085
28086 cat >>confdefs.h <<_ACEOF
28087 #define HAVE_UINT64 1
28088 _ACEOF
28089
28090
28091 fi
28092
28093
28094 # We also check for sig_atomic_t, which *should* be defined per ANSI
28095 # C, but is missing on some old platforms.
28096 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
28097 $as_echo_n "checking for sig_atomic_t... " >&6; }
28098 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
28099   $as_echo_n "(cached) " >&6
28100 else
28101   ac_cv_type_sig_atomic_t=no
28102 cat >conftest.$ac_ext <<_ACEOF
28103 /* confdefs.h.  */
28104 _ACEOF
28105 cat confdefs.h >>conftest.$ac_ext
28106 cat >>conftest.$ac_ext <<_ACEOF
28107 /* end confdefs.h.  */
28108 #include <signal.h>
28109
28110 int
28111 main ()
28112 {
28113 if (sizeof (sig_atomic_t))
28114        return 0;
28115   ;
28116   return 0;
28117 }
28118 _ACEOF
28119 rm -f conftest.$ac_objext
28120 if { (ac_try="$ac_compile"
28121 case "(($ac_try" in
28122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28123   *) ac_try_echo=$ac_try;;
28124 esac
28125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28126 $as_echo "$ac_try_echo") >&5
28127   (eval "$ac_compile") 2>conftest.er1
28128   ac_status=$?
28129   grep -v '^ *+' conftest.er1 >conftest.err
28130   rm -f conftest.er1
28131   cat conftest.err >&5
28132   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28133   (exit $ac_status); } && {
28134          test -z "$ac_c_werror_flag" ||
28135          test ! -s conftest.err
28136        } && test -s conftest.$ac_objext; then
28137   cat >conftest.$ac_ext <<_ACEOF
28138 /* confdefs.h.  */
28139 _ACEOF
28140 cat confdefs.h >>conftest.$ac_ext
28141 cat >>conftest.$ac_ext <<_ACEOF
28142 /* end confdefs.h.  */
28143 #include <signal.h>
28144
28145 int
28146 main ()
28147 {
28148 if (sizeof ((sig_atomic_t)))
28149           return 0;
28150   ;
28151   return 0;
28152 }
28153 _ACEOF
28154 rm -f conftest.$ac_objext
28155 if { (ac_try="$ac_compile"
28156 case "(($ac_try" in
28157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28158   *) ac_try_echo=$ac_try;;
28159 esac
28160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28161 $as_echo "$ac_try_echo") >&5
28162   (eval "$ac_compile") 2>conftest.er1
28163   ac_status=$?
28164   grep -v '^ *+' conftest.er1 >conftest.err
28165   rm -f conftest.er1
28166   cat conftest.err >&5
28167   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28168   (exit $ac_status); } && {
28169          test -z "$ac_c_werror_flag" ||
28170          test ! -s conftest.err
28171        } && test -s conftest.$ac_objext; then
28172   :
28173 else
28174   $as_echo "$as_me: failed program was:" >&5
28175 sed 's/^/| /' conftest.$ac_ext >&5
28176
28177         ac_cv_type_sig_atomic_t=yes
28178 fi
28179
28180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28181 else
28182   $as_echo "$as_me: failed program was:" >&5
28183 sed 's/^/| /' conftest.$ac_ext >&5
28184
28185
28186 fi
28187
28188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28189 fi
28190 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
28191 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
28192 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
28193
28194 cat >>confdefs.h <<_ACEOF
28195 #define HAVE_SIG_ATOMIC_T 1
28196 _ACEOF
28197
28198
28199 fi
28200
28201
28202
28203 if test "$PORTNAME" != "win32"
28204 then
28205 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
28206 $as_echo_n "checking for POSIX signal interface... " >&6; }
28207 if test "${pgac_cv_func_posix_signals+set}" = set; then
28208   $as_echo_n "(cached) " >&6
28209 else
28210   cat >conftest.$ac_ext <<_ACEOF
28211 /* confdefs.h.  */
28212 _ACEOF
28213 cat confdefs.h >>conftest.$ac_ext
28214 cat >>conftest.$ac_ext <<_ACEOF
28215 /* end confdefs.h.  */
28216 #include <signal.h>
28217
28218 int
28219 main ()
28220 {
28221 struct sigaction act, oact;
28222 sigemptyset(&act.sa_mask);
28223 act.sa_flags = SA_RESTART;
28224 sigaction(0, &act, &oact);
28225   ;
28226   return 0;
28227 }
28228 _ACEOF
28229 rm -f conftest.$ac_objext conftest$ac_exeext
28230 if { (ac_try="$ac_link"
28231 case "(($ac_try" in
28232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28233   *) ac_try_echo=$ac_try;;
28234 esac
28235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28236 $as_echo "$ac_try_echo") >&5
28237   (eval "$ac_link") 2>conftest.er1
28238   ac_status=$?
28239   grep -v '^ *+' conftest.er1 >conftest.err
28240   rm -f conftest.er1
28241   cat conftest.err >&5
28242   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28243   (exit $ac_status); } && {
28244          test -z "$ac_c_werror_flag" ||
28245          test ! -s conftest.err
28246        } && test -s conftest$ac_exeext && {
28247          test "$cross_compiling" = yes ||
28248          $as_test_x conftest$ac_exeext
28249        }; then
28250   pgac_cv_func_posix_signals=yes
28251 else
28252   $as_echo "$as_me: failed program was:" >&5
28253 sed 's/^/| /' conftest.$ac_ext >&5
28254
28255         pgac_cv_func_posix_signals=no
28256 fi
28257
28258 rm -rf conftest.dSYM
28259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28260       conftest$ac_exeext conftest.$ac_ext
28261 fi
28262 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
28263 $as_echo "$pgac_cv_func_posix_signals" >&6; }
28264 if test x"$pgac_cv_func_posix_signals" = xyes ; then
28265
28266 cat >>confdefs.h <<\_ACEOF
28267 #define HAVE_POSIX_SIGNALS /**/
28268 _ACEOF
28269
28270 fi
28271 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
28272
28273 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
28274   { { $as_echo "$as_me:$LINENO: error:
28275 Thread-safety requires POSIX signals, which are not supported by this
28276 operating system;  use --disable-thread-safety to disable thread safety." >&5
28277 $as_echo "$as_me: error:
28278 Thread-safety requires POSIX signals, which are not supported by this
28279 operating system;  use --disable-thread-safety to disable thread safety." >&2;}
28280    { (exit 1); exit 1; }; }
28281 fi
28282 fi
28283
28284 # SunOS doesn't handle negative byte comparisons properly with +/- return
28285 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
28286 $as_echo_n "checking for working memcmp... " >&6; }
28287 if test "${ac_cv_func_memcmp_working+set}" = set; then
28288   $as_echo_n "(cached) " >&6
28289 else
28290   if test "$cross_compiling" = yes; then
28291   ac_cv_func_memcmp_working=no
28292 else
28293   cat >conftest.$ac_ext <<_ACEOF
28294 /* confdefs.h.  */
28295 _ACEOF
28296 cat confdefs.h >>conftest.$ac_ext
28297 cat >>conftest.$ac_ext <<_ACEOF
28298 /* end confdefs.h.  */
28299 $ac_includes_default
28300 int
28301 main ()
28302 {
28303
28304   /* Some versions of memcmp are not 8-bit clean.  */
28305   char c0 = '\100', c1 = '\200', c2 = '\201';
28306   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
28307     return 1;
28308
28309   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
28310      or more and with at least one buffer not starting on a 4-byte boundary.
28311      William Lewis provided this test program.   */
28312   {
28313     char foo[21];
28314     char bar[21];
28315     int i;
28316     for (i = 0; i < 4; i++)
28317       {
28318         char *a = foo + i;
28319         char *b = bar + i;
28320         strcpy (a, "--------01111111");
28321         strcpy (b, "--------10000000");
28322         if (memcmp (a, b, 16) >= 0)
28323           return 1;
28324       }
28325     return 0;
28326   }
28327
28328   ;
28329   return 0;
28330 }
28331 _ACEOF
28332 rm -f conftest$ac_exeext
28333 if { (ac_try="$ac_link"
28334 case "(($ac_try" in
28335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28336   *) ac_try_echo=$ac_try;;
28337 esac
28338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28339 $as_echo "$ac_try_echo") >&5
28340   (eval "$ac_link") 2>&5
28341   ac_status=$?
28342   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28343   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28344   { (case "(($ac_try" in
28345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28346   *) ac_try_echo=$ac_try;;
28347 esac
28348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28349 $as_echo "$ac_try_echo") >&5
28350   (eval "$ac_try") 2>&5
28351   ac_status=$?
28352   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28353   (exit $ac_status); }; }; then
28354   ac_cv_func_memcmp_working=yes
28355 else
28356   $as_echo "$as_me: program exited with status $ac_status" >&5
28357 $as_echo "$as_me: failed program was:" >&5
28358 sed 's/^/| /' conftest.$ac_ext >&5
28359
28360 ( exit $ac_status )
28361 ac_cv_func_memcmp_working=no
28362 fi
28363 rm -rf conftest.dSYM
28364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28365 fi
28366
28367
28368 fi
28369 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
28370 $as_echo "$ac_cv_func_memcmp_working" >&6; }
28371 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
28372   *" memcmp.$ac_objext "* ) ;;
28373   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
28374  ;;
28375 esac
28376
28377
28378
28379
28380 # Select semaphore implementation type.
28381 if test "$PORTNAME" != "win32"; then
28382   if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
28383
28384 cat >>confdefs.h <<\_ACEOF
28385 #define USE_NAMED_POSIX_SEMAPHORES 1
28386 _ACEOF
28387
28388     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28389   else
28390     if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
28391
28392 cat >>confdefs.h <<\_ACEOF
28393 #define USE_UNNAMED_POSIX_SEMAPHORES 1
28394 _ACEOF
28395
28396       SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28397     else
28398
28399 cat >>confdefs.h <<\_ACEOF
28400 #define USE_SYSV_SEMAPHORES 1
28401 _ACEOF
28402
28403       SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
28404     fi
28405   fi
28406 else
28407
28408 cat >>confdefs.h <<\_ACEOF
28409 #define USE_WIN32_SEMAPHORES 1
28410 _ACEOF
28411
28412   SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
28413 fi
28414
28415
28416 # Select shared-memory implementation type.
28417 if test "$PORTNAME" != "win32"; then
28418
28419 cat >>confdefs.h <<\_ACEOF
28420 #define USE_SYSV_SHARED_MEMORY 1
28421 _ACEOF
28422
28423   SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
28424 else
28425
28426 cat >>confdefs.h <<\_ACEOF
28427 #define USE_WIN32_SHARED_MEMORY 1
28428 _ACEOF
28429
28430   SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
28431 fi
28432
28433 # Select latch implementation type.
28434 if test "$PORTNAME" != "win32"; then
28435   LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
28436 else
28437   LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
28438 fi
28439
28440 # If not set in template file, set bytes to use libc memset()
28441 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
28442   MEMSET_LOOP_LIMIT=1024
28443 fi
28444
28445 cat >>confdefs.h <<_ACEOF
28446 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
28447 _ACEOF
28448
28449
28450
28451 if test "$enable_nls" = yes ; then
28452
28453   { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
28454 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
28455 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28456   $as_echo_n "(cached) " >&6
28457 else
28458   ac_func_search_save_LIBS=$LIBS
28459 cat >conftest.$ac_ext <<_ACEOF
28460 /* confdefs.h.  */
28461 _ACEOF
28462 cat confdefs.h >>conftest.$ac_ext
28463 cat >>conftest.$ac_ext <<_ACEOF
28464 /* end confdefs.h.  */
28465
28466 /* Override any GCC internal prototype to avoid an error.
28467    Use char because int might match the return type of a GCC
28468    builtin and then its argument prototype would still apply.  */
28469 #ifdef __cplusplus
28470 extern "C"
28471 #endif
28472 char bind_textdomain_codeset ();
28473 int
28474 main ()
28475 {
28476 return bind_textdomain_codeset ();
28477   ;
28478   return 0;
28479 }
28480 _ACEOF
28481 for ac_lib in '' intl; do
28482   if test -z "$ac_lib"; then
28483     ac_res="none required"
28484   else
28485     ac_res=-l$ac_lib
28486     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28487   fi
28488   rm -f conftest.$ac_objext conftest$ac_exeext
28489 if { (ac_try="$ac_link"
28490 case "(($ac_try" in
28491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28492   *) ac_try_echo=$ac_try;;
28493 esac
28494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28495 $as_echo "$ac_try_echo") >&5
28496   (eval "$ac_link") 2>conftest.er1
28497   ac_status=$?
28498   grep -v '^ *+' conftest.er1 >conftest.err
28499   rm -f conftest.er1
28500   cat conftest.err >&5
28501   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28502   (exit $ac_status); } && {
28503          test -z "$ac_c_werror_flag" ||
28504          test ! -s conftest.err
28505        } && test -s conftest$ac_exeext && {
28506          test "$cross_compiling" = yes ||
28507          $as_test_x conftest$ac_exeext
28508        }; then
28509   ac_cv_search_bind_textdomain_codeset=$ac_res
28510 else
28511   $as_echo "$as_me: failed program was:" >&5
28512 sed 's/^/| /' conftest.$ac_ext >&5
28513
28514
28515 fi
28516
28517 rm -rf conftest.dSYM
28518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28519       conftest$ac_exeext
28520   if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28521   break
28522 fi
28523 done
28524 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28525   :
28526 else
28527   ac_cv_search_bind_textdomain_codeset=no
28528 fi
28529 rm conftest.$ac_ext
28530 LIBS=$ac_func_search_save_LIBS
28531 fi
28532 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
28533 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
28534 ac_res=$ac_cv_search_bind_textdomain_codeset
28535 if test "$ac_res" != no; then
28536   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28537
28538 else
28539   { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
28540 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
28541    { (exit 1); exit 1; }; }
28542 fi
28543
28544   if test "${ac_cv_header_libintl_h+set}" = set; then
28545   { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28546 $as_echo_n "checking for libintl.h... " >&6; }
28547 if test "${ac_cv_header_libintl_h+set}" = set; then
28548   $as_echo_n "(cached) " >&6
28549 fi
28550 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28551 $as_echo "$ac_cv_header_libintl_h" >&6; }
28552 else
28553   # Is the header compilable?
28554 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
28555 $as_echo_n "checking libintl.h usability... " >&6; }
28556 cat >conftest.$ac_ext <<_ACEOF
28557 /* confdefs.h.  */
28558 _ACEOF
28559 cat confdefs.h >>conftest.$ac_ext
28560 cat >>conftest.$ac_ext <<_ACEOF
28561 /* end confdefs.h.  */
28562 $ac_includes_default
28563 #include <libintl.h>
28564 _ACEOF
28565 rm -f conftest.$ac_objext
28566 if { (ac_try="$ac_compile"
28567 case "(($ac_try" in
28568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28569   *) ac_try_echo=$ac_try;;
28570 esac
28571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28572 $as_echo "$ac_try_echo") >&5
28573   (eval "$ac_compile") 2>conftest.er1
28574   ac_status=$?
28575   grep -v '^ *+' conftest.er1 >conftest.err
28576   rm -f conftest.er1
28577   cat conftest.err >&5
28578   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28579   (exit $ac_status); } && {
28580          test -z "$ac_c_werror_flag" ||
28581          test ! -s conftest.err
28582        } && test -s conftest.$ac_objext; then
28583   ac_header_compiler=yes
28584 else
28585   $as_echo "$as_me: failed program was:" >&5
28586 sed 's/^/| /' conftest.$ac_ext >&5
28587
28588         ac_header_compiler=no
28589 fi
28590
28591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28592 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28593 $as_echo "$ac_header_compiler" >&6; }
28594
28595 # Is the header present?
28596 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
28597 $as_echo_n "checking libintl.h presence... " >&6; }
28598 cat >conftest.$ac_ext <<_ACEOF
28599 /* confdefs.h.  */
28600 _ACEOF
28601 cat confdefs.h >>conftest.$ac_ext
28602 cat >>conftest.$ac_ext <<_ACEOF
28603 /* end confdefs.h.  */
28604 #include <libintl.h>
28605 _ACEOF
28606 if { (ac_try="$ac_cpp conftest.$ac_ext"
28607 case "(($ac_try" in
28608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28609   *) ac_try_echo=$ac_try;;
28610 esac
28611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28612 $as_echo "$ac_try_echo") >&5
28613   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28614   ac_status=$?
28615   grep -v '^ *+' conftest.er1 >conftest.err
28616   rm -f conftest.er1
28617   cat conftest.err >&5
28618   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619   (exit $ac_status); } >/dev/null && {
28620          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28621          test ! -s conftest.err
28622        }; then
28623   ac_header_preproc=yes
28624 else
28625   $as_echo "$as_me: failed program was:" >&5
28626 sed 's/^/| /' conftest.$ac_ext >&5
28627
28628   ac_header_preproc=no
28629 fi
28630
28631 rm -f conftest.err conftest.$ac_ext
28632 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28633 $as_echo "$ac_header_preproc" >&6; }
28634
28635 # So?  What about this header?
28636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28637   yes:no: )
28638     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28639 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28640     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
28641 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
28642     ac_header_preproc=yes
28643     ;;
28644   no:yes:* )
28645     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
28646 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
28647     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
28648 $as_echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
28649     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
28650 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
28651     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
28652 $as_echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28653     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
28654 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
28655     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
28656 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
28657     ( cat <<\_ASBOX
28658 ## ---------------------------------------- ##
28659 ## Report this to pgsql-bugs@postgresql.org ##
28660 ## ---------------------------------------- ##
28661 _ASBOX
28662      ) | sed "s/^/$as_me: WARNING:     /" >&2
28663     ;;
28664 esac
28665 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28666 $as_echo_n "checking for libintl.h... " >&6; }
28667 if test "${ac_cv_header_libintl_h+set}" = set; then
28668   $as_echo_n "(cached) " >&6
28669 else
28670   ac_cv_header_libintl_h=$ac_header_preproc
28671 fi
28672 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28673 $as_echo "$ac_cv_header_libintl_h" >&6; }
28674
28675 fi
28676 if test "x$ac_cv_header_libintl_h" = x""yes; then
28677   :
28678 else
28679   { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
28680 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
28681    { (exit 1); exit 1; }; }
28682 fi
28683
28684
28685   for ac_prog in msgfmt
28686 do
28687   # Extract the first word of "$ac_prog", so it can be a program name with args.
28688 set dummy $ac_prog; ac_word=$2
28689 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28690 $as_echo_n "checking for $ac_word... " >&6; }
28691 if test "${ac_cv_prog_MSGFMT+set}" = set; then
28692   $as_echo_n "(cached) " >&6
28693 else
28694   if test -n "$MSGFMT"; then
28695   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
28696 else
28697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28698 for as_dir in $PATH
28699 do
28700   IFS=$as_save_IFS
28701   test -z "$as_dir" && as_dir=.
28702   for ac_exec_ext in '' $ac_executable_extensions; do
28703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28704     ac_cv_prog_MSGFMT="$ac_prog"
28705     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28706     break 2
28707   fi
28708 done
28709 done
28710 IFS=$as_save_IFS
28711
28712 fi
28713 fi
28714 MSGFMT=$ac_cv_prog_MSGFMT
28715 if test -n "$MSGFMT"; then
28716   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
28717 $as_echo "$MSGFMT" >&6; }
28718 else
28719   { $as_echo "$as_me:$LINENO: result: no" >&5
28720 $as_echo "no" >&6; }
28721 fi
28722
28723
28724   test -n "$MSGFMT" && break
28725 done
28726
28727   if test -z "$MSGFMT"; then
28728     { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
28729 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
28730    { (exit 1); exit 1; }; }
28731   fi
28732   for ac_prog in msgmerge
28733 do
28734   # Extract the first word of "$ac_prog", so it can be a program name with args.
28735 set dummy $ac_prog; ac_word=$2
28736 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28737 $as_echo_n "checking for $ac_word... " >&6; }
28738 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
28739   $as_echo_n "(cached) " >&6
28740 else
28741   if test -n "$MSGMERGE"; then
28742   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
28743 else
28744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28745 for as_dir in $PATH
28746 do
28747   IFS=$as_save_IFS
28748   test -z "$as_dir" && as_dir=.
28749   for ac_exec_ext in '' $ac_executable_extensions; do
28750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28751     ac_cv_prog_MSGMERGE="$ac_prog"
28752     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28753     break 2
28754   fi
28755 done
28756 done
28757 IFS=$as_save_IFS
28758
28759 fi
28760 fi
28761 MSGMERGE=$ac_cv_prog_MSGMERGE
28762 if test -n "$MSGMERGE"; then
28763   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
28764 $as_echo "$MSGMERGE" >&6; }
28765 else
28766   { $as_echo "$as_me:$LINENO: result: no" >&5
28767 $as_echo "no" >&6; }
28768 fi
28769
28770
28771   test -n "$MSGMERGE" && break
28772 done
28773
28774   for ac_prog in xgettext
28775 do
28776   # Extract the first word of "$ac_prog", so it can be a program name with args.
28777 set dummy $ac_prog; ac_word=$2
28778 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28779 $as_echo_n "checking for $ac_word... " >&6; }
28780 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
28781   $as_echo_n "(cached) " >&6
28782 else
28783   if test -n "$XGETTEXT"; then
28784   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
28785 else
28786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28787 for as_dir in $PATH
28788 do
28789   IFS=$as_save_IFS
28790   test -z "$as_dir" && as_dir=.
28791   for ac_exec_ext in '' $ac_executable_extensions; do
28792   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28793     ac_cv_prog_XGETTEXT="$ac_prog"
28794     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28795     break 2
28796   fi
28797 done
28798 done
28799 IFS=$as_save_IFS
28800
28801 fi
28802 fi
28803 XGETTEXT=$ac_cv_prog_XGETTEXT
28804 if test -n "$XGETTEXT"; then
28805   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
28806 $as_echo "$XGETTEXT" >&6; }
28807 else
28808   { $as_echo "$as_me:$LINENO: result: no" >&5
28809 $as_echo "no" >&6; }
28810 fi
28811
28812
28813   test -n "$XGETTEXT" && break
28814 done
28815
28816
28817 fi
28818
28819 # Check for Tcl configuration script tclConfig.sh
28820 if test "$with_tcl" = yes; then
28821     for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
28822 do
28823   # Extract the first word of "$ac_prog", so it can be a program name with args.
28824 set dummy $ac_prog; ac_word=$2
28825 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28826 $as_echo_n "checking for $ac_word... " >&6; }
28827 if test "${ac_cv_path_TCLSH+set}" = set; then
28828   $as_echo_n "(cached) " >&6
28829 else
28830   case $TCLSH in
28831   [\\/]* | ?:[\\/]*)
28832   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
28833   ;;
28834   *)
28835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28836 for as_dir in $PATH
28837 do
28838   IFS=$as_save_IFS
28839   test -z "$as_dir" && as_dir=.
28840   for ac_exec_ext in '' $ac_executable_extensions; do
28841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28842     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
28843     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28844     break 2
28845   fi
28846 done
28847 done
28848 IFS=$as_save_IFS
28849
28850   ;;
28851 esac
28852 fi
28853 TCLSH=$ac_cv_path_TCLSH
28854 if test -n "$TCLSH"; then
28855   { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
28856 $as_echo "$TCLSH" >&6; }
28857 else
28858   { $as_echo "$as_me:$LINENO: result: no" >&5
28859 $as_echo "no" >&6; }
28860 fi
28861
28862
28863   test -n "$TCLSH" && break
28864 done
28865
28866 if test x"$TCLSH" = x""; then
28867   { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
28868 $as_echo "$as_me: error: Tcl shell not found" >&2;}
28869    { (exit 1); exit 1; }; }
28870 fi
28871
28872 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
28873 $as_echo_n "checking for tclConfig.sh... " >&6; }
28874 # Let user override test
28875 if test -z "$TCL_CONFIG_SH"; then
28876     pgac_test_dirs="$with_tclconfig"
28877
28878     set X $pgac_test_dirs; shift
28879     if test $# -eq 0; then
28880         test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
28881 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
28882    { (exit 1); exit 1; }; }
28883         set X `echo 'puts $auto_path' | $TCLSH`; shift
28884     fi
28885
28886     for pgac_dir do
28887         if test -r "$pgac_dir/tclConfig.sh"; then
28888             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
28889             break
28890         fi
28891     done
28892 fi
28893
28894 if test -z "$TCL_CONFIG_SH"; then
28895     { $as_echo "$as_me:$LINENO: result: no" >&5
28896 $as_echo "no" >&6; }
28897     { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
28898 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
28899    { (exit 1); exit 1; }; }
28900 else
28901     { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
28902 $as_echo "$TCL_CONFIG_SH" >&6; }
28903 fi
28904
28905
28906
28907     . "$TCL_CONFIG_SH"
28908 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
28909 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
28910 eval TCL_LIBS=\"$TCL_LIBS\"
28911 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
28912 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
28913
28914         # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
28915     ac_save_CPPFLAGS=$CPPFLAGS
28916     CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
28917     if test "${ac_cv_header_tcl_h+set}" = set; then
28918   { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28919 $as_echo_n "checking for tcl.h... " >&6; }
28920 if test "${ac_cv_header_tcl_h+set}" = set; then
28921   $as_echo_n "(cached) " >&6
28922 fi
28923 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28924 $as_echo "$ac_cv_header_tcl_h" >&6; }
28925 else
28926   # Is the header compilable?
28927 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
28928 $as_echo_n "checking tcl.h usability... " >&6; }
28929 cat >conftest.$ac_ext <<_ACEOF
28930 /* confdefs.h.  */
28931 _ACEOF
28932 cat confdefs.h >>conftest.$ac_ext
28933 cat >>conftest.$ac_ext <<_ACEOF
28934 /* end confdefs.h.  */
28935 $ac_includes_default
28936 #include <tcl.h>
28937 _ACEOF
28938 rm -f conftest.$ac_objext
28939 if { (ac_try="$ac_compile"
28940 case "(($ac_try" in
28941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28942   *) ac_try_echo=$ac_try;;
28943 esac
28944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28945 $as_echo "$ac_try_echo") >&5
28946   (eval "$ac_compile") 2>conftest.er1
28947   ac_status=$?
28948   grep -v '^ *+' conftest.er1 >conftest.err
28949   rm -f conftest.er1
28950   cat conftest.err >&5
28951   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28952   (exit $ac_status); } && {
28953          test -z "$ac_c_werror_flag" ||
28954          test ! -s conftest.err
28955        } && test -s conftest.$ac_objext; then
28956   ac_header_compiler=yes
28957 else
28958   $as_echo "$as_me: failed program was:" >&5
28959 sed 's/^/| /' conftest.$ac_ext >&5
28960
28961         ac_header_compiler=no
28962 fi
28963
28964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28965 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28966 $as_echo "$ac_header_compiler" >&6; }
28967
28968 # Is the header present?
28969 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
28970 $as_echo_n "checking tcl.h presence... " >&6; }
28971 cat >conftest.$ac_ext <<_ACEOF
28972 /* confdefs.h.  */
28973 _ACEOF
28974 cat confdefs.h >>conftest.$ac_ext
28975 cat >>conftest.$ac_ext <<_ACEOF
28976 /* end confdefs.h.  */
28977 #include <tcl.h>
28978 _ACEOF
28979 if { (ac_try="$ac_cpp conftest.$ac_ext"
28980 case "(($ac_try" in
28981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28982   *) ac_try_echo=$ac_try;;
28983 esac
28984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28985 $as_echo "$ac_try_echo") >&5
28986   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28987   ac_status=$?
28988   grep -v '^ *+' conftest.er1 >conftest.err
28989   rm -f conftest.er1
28990   cat conftest.err >&5
28991   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28992   (exit $ac_status); } >/dev/null && {
28993          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28994          test ! -s conftest.err
28995        }; then
28996   ac_header_preproc=yes
28997 else
28998   $as_echo "$as_me: failed program was:" >&5
28999 sed 's/^/| /' conftest.$ac_ext >&5
29000
29001   ac_header_preproc=no
29002 fi
29003
29004 rm -f conftest.err conftest.$ac_ext
29005 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29006 $as_echo "$ac_header_preproc" >&6; }
29007
29008 # So?  What about this header?
29009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29010   yes:no: )
29011     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29012 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29013     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
29014 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
29015     ac_header_preproc=yes
29016     ;;
29017   no:yes:* )
29018     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
29019 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
29020     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     check for missing prerequisite headers?" >&5
29021 $as_echo "$as_me: WARNING: tcl.h:     check for missing prerequisite headers?" >&2;}
29022     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
29023 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
29024     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
29025 $as_echo "$as_me: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29026     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
29027 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
29028     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
29029 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
29030     ( cat <<\_ASBOX
29031 ## ---------------------------------------- ##
29032 ## Report this to pgsql-bugs@postgresql.org ##
29033 ## ---------------------------------------- ##
29034 _ASBOX
29035      ) | sed "s/^/$as_me: WARNING:     /" >&2
29036     ;;
29037 esac
29038 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
29039 $as_echo_n "checking for tcl.h... " >&6; }
29040 if test "${ac_cv_header_tcl_h+set}" = set; then
29041   $as_echo_n "(cached) " >&6
29042 else
29043   ac_cv_header_tcl_h=$ac_header_preproc
29044 fi
29045 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
29046 $as_echo "$ac_cv_header_tcl_h" >&6; }
29047
29048 fi
29049 if test "x$ac_cv_header_tcl_h" = x""yes; then
29050   :
29051 else
29052   { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
29053 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
29054    { (exit 1); exit 1; }; }
29055 fi
29056
29057
29058     CPPFLAGS=$ac_save_CPPFLAGS
29059 fi
29060
29061 # check for <Python.h>
29062 if test "$with_python" = yes; then
29063   ac_save_CPPFLAGS=$CPPFLAGS
29064   CPPFLAGS="$python_includespec $CPPFLAGS"
29065   if test "${ac_cv_header_Python_h+set}" = set; then
29066   { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29067 $as_echo_n "checking for Python.h... " >&6; }
29068 if test "${ac_cv_header_Python_h+set}" = set; then
29069   $as_echo_n "(cached) " >&6
29070 fi
29071 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29072 $as_echo "$ac_cv_header_Python_h" >&6; }
29073 else
29074   # Is the header compilable?
29075 { $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
29076 $as_echo_n "checking Python.h usability... " >&6; }
29077 cat >conftest.$ac_ext <<_ACEOF
29078 /* confdefs.h.  */
29079 _ACEOF
29080 cat confdefs.h >>conftest.$ac_ext
29081 cat >>conftest.$ac_ext <<_ACEOF
29082 /* end confdefs.h.  */
29083 $ac_includes_default
29084 #include <Python.h>
29085 _ACEOF
29086 rm -f conftest.$ac_objext
29087 if { (ac_try="$ac_compile"
29088 case "(($ac_try" in
29089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29090   *) ac_try_echo=$ac_try;;
29091 esac
29092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29093 $as_echo "$ac_try_echo") >&5
29094   (eval "$ac_compile") 2>conftest.er1
29095   ac_status=$?
29096   grep -v '^ *+' conftest.er1 >conftest.err
29097   rm -f conftest.er1
29098   cat conftest.err >&5
29099   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100   (exit $ac_status); } && {
29101          test -z "$ac_c_werror_flag" ||
29102          test ! -s conftest.err
29103        } && test -s conftest.$ac_objext; then
29104   ac_header_compiler=yes
29105 else
29106   $as_echo "$as_me: failed program was:" >&5
29107 sed 's/^/| /' conftest.$ac_ext >&5
29108
29109         ac_header_compiler=no
29110 fi
29111
29112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29113 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29114 $as_echo "$ac_header_compiler" >&6; }
29115
29116 # Is the header present?
29117 { $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
29118 $as_echo_n "checking Python.h presence... " >&6; }
29119 cat >conftest.$ac_ext <<_ACEOF
29120 /* confdefs.h.  */
29121 _ACEOF
29122 cat confdefs.h >>conftest.$ac_ext
29123 cat >>conftest.$ac_ext <<_ACEOF
29124 /* end confdefs.h.  */
29125 #include <Python.h>
29126 _ACEOF
29127 if { (ac_try="$ac_cpp conftest.$ac_ext"
29128 case "(($ac_try" in
29129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29130   *) ac_try_echo=$ac_try;;
29131 esac
29132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29133 $as_echo "$ac_try_echo") >&5
29134   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29135   ac_status=$?
29136   grep -v '^ *+' conftest.er1 >conftest.err
29137   rm -f conftest.er1
29138   cat conftest.err >&5
29139   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29140   (exit $ac_status); } >/dev/null && {
29141          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29142          test ! -s conftest.err
29143        }; then
29144   ac_header_preproc=yes
29145 else
29146   $as_echo "$as_me: failed program was:" >&5
29147 sed 's/^/| /' conftest.$ac_ext >&5
29148
29149   ac_header_preproc=no
29150 fi
29151
29152 rm -f conftest.err conftest.$ac_ext
29153 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29154 $as_echo "$ac_header_preproc" >&6; }
29155
29156 # So?  What about this header?
29157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29158   yes:no: )
29159     { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
29160 $as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29161     { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
29162 $as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
29163     ac_header_preproc=yes
29164     ;;
29165   no:yes:* )
29166     { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
29167 $as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
29168     { $as_echo "$as_me:$LINENO: WARNING: Python.h:     check for missing prerequisite headers?" >&5
29169 $as_echo "$as_me: WARNING: Python.h:     check for missing prerequisite headers?" >&2;}
29170     { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
29171 $as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
29172     { $as_echo "$as_me:$LINENO: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&5
29173 $as_echo "$as_me: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29174     { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
29175 $as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
29176     { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
29177 $as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
29178     ( cat <<\_ASBOX
29179 ## ---------------------------------------- ##
29180 ## Report this to pgsql-bugs@postgresql.org ##
29181 ## ---------------------------------------- ##
29182 _ASBOX
29183      ) | sed "s/^/$as_me: WARNING:     /" >&2
29184     ;;
29185 esac
29186 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29187 $as_echo_n "checking for Python.h... " >&6; }
29188 if test "${ac_cv_header_Python_h+set}" = set; then
29189   $as_echo_n "(cached) " >&6
29190 else
29191   ac_cv_header_Python_h=$ac_header_preproc
29192 fi
29193 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29194 $as_echo "$ac_cv_header_Python_h" >&6; }
29195
29196 fi
29197 if test "x$ac_cv_header_Python_h" = x""yes; then
29198   :
29199 else
29200   { { $as_echo "$as_me:$LINENO: error: header file <Python.h> is required for Python" >&5
29201 $as_echo "$as_me: error: header file <Python.h> is required for Python" >&2;}
29202    { (exit 1); exit 1; }; }
29203 fi
29204
29205
29206   CPPFLAGS=$ac_save_CPPFLAGS
29207 fi
29208
29209 #
29210 # Check for DocBook and tools
29211 #
29212 for ac_prog in onsgmls nsgmls
29213 do
29214   # Extract the first word of "$ac_prog", so it can be a program name with args.
29215 set dummy $ac_prog; ac_word=$2
29216 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29217 $as_echo_n "checking for $ac_word... " >&6; }
29218 if test "${ac_cv_prog_NSGMLS+set}" = set; then
29219   $as_echo_n "(cached) " >&6
29220 else
29221   if test -n "$NSGMLS"; then
29222   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
29223 else
29224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29225 for as_dir in $PATH
29226 do
29227   IFS=$as_save_IFS
29228   test -z "$as_dir" && as_dir=.
29229   for ac_exec_ext in '' $ac_executable_extensions; do
29230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29231     ac_cv_prog_NSGMLS="$ac_prog"
29232     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29233     break 2
29234   fi
29235 done
29236 done
29237 IFS=$as_save_IFS
29238
29239 fi
29240 fi
29241 NSGMLS=$ac_cv_prog_NSGMLS
29242 if test -n "$NSGMLS"; then
29243   { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
29244 $as_echo "$NSGMLS" >&6; }
29245 else
29246   { $as_echo "$as_me:$LINENO: result: no" >&5
29247 $as_echo "no" >&6; }
29248 fi
29249
29250
29251   test -n "$NSGMLS" && break
29252 done
29253
29254 for ac_prog in openjade jade
29255 do
29256   # Extract the first word of "$ac_prog", so it can be a program name with args.
29257 set dummy $ac_prog; ac_word=$2
29258 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29259 $as_echo_n "checking for $ac_word... " >&6; }
29260 if test "${ac_cv_prog_JADE+set}" = set; then
29261   $as_echo_n "(cached) " >&6
29262 else
29263   if test -n "$JADE"; then
29264   ac_cv_prog_JADE="$JADE" # Let the user override the test.
29265 else
29266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29267 for as_dir in $PATH
29268 do
29269   IFS=$as_save_IFS
29270   test -z "$as_dir" && as_dir=.
29271   for ac_exec_ext in '' $ac_executable_extensions; do
29272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29273     ac_cv_prog_JADE="$ac_prog"
29274     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29275     break 2
29276   fi
29277 done
29278 done
29279 IFS=$as_save_IFS
29280
29281 fi
29282 fi
29283 JADE=$ac_cv_prog_JADE
29284 if test -n "$JADE"; then
29285   { $as_echo "$as_me:$LINENO: result: $JADE" >&5
29286 $as_echo "$JADE" >&6; }
29287 else
29288   { $as_echo "$as_me:$LINENO: result: no" >&5
29289 $as_echo "no" >&6; }
29290 fi
29291
29292
29293   test -n "$JADE" && break
29294 done
29295
29296
29297 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
29298 $as_echo_n "checking for DocBook V4.2... " >&6; }
29299 if test "${pgac_cv_check_docbook+set}" = set; then
29300   $as_echo_n "(cached) " >&6
29301 else
29302   cat >conftest.sgml <<EOF
29303 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
29304 <book>
29305  <title>test</title>
29306  <chapter>
29307   <title>random</title>
29308    <sect1>
29309     <title>testsect</title>
29310     <para>text</para>
29311   </sect1>
29312  </chapter>
29313 </book>
29314 EOF
29315
29316 pgac_cv_check_docbook=no
29317
29318 if test -n "$NSGMLS"; then
29319   $NSGMLS -s conftest.sgml 1>&5 2>&1
29320   if test $? -eq 0; then
29321     pgac_cv_check_docbook=yes
29322   fi
29323 fi
29324 rm -f conftest.sgml
29325 fi
29326 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
29327 $as_echo "$pgac_cv_check_docbook" >&6; }
29328
29329 have_docbook=$pgac_cv_check_docbook
29330
29331
29332 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
29333 $as_echo_n "checking for DocBook stylesheets... " >&6; }
29334 if test "${pgac_cv_path_stylesheets+set}" = set; then
29335   $as_echo_n "(cached) " >&6
29336 else
29337   if test -n "$DOCBOOKSTYLE"; then
29338   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
29339 else
29340   for pgac_prefix in /usr /usr/local /opt /sw; do
29341     for pgac_infix in share lib; do
29342       for pgac_postfix in \
29343         sgml/stylesheets/nwalsh-modular \
29344         sgml/stylesheets/docbook \
29345         sgml/stylesheets/dsssl/docbook \
29346         sgml/docbook-dsssl \
29347         sgml/docbook/dsssl/modular \
29348         sgml/docbook/stylesheet/dsssl/modular \
29349         sgml/docbook/dsssl-stylesheets \
29350         sgml/dsssl/docbook-dsssl-nwalsh
29351       do
29352         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
29353         if test -r "$pgac_candidate/html/docbook.dsl" \
29354            && test -r "$pgac_candidate/print/docbook.dsl"
29355         then
29356           pgac_cv_path_stylesheets=$pgac_candidate
29357           break 3
29358         fi
29359       done
29360     done
29361   done
29362 fi
29363 fi
29364
29365 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
29366
29367 if test -n "$DOCBOOKSTYLE"; then
29368   { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
29369 $as_echo "$DOCBOOKSTYLE" >&6; }
29370 else
29371   { $as_echo "$as_me:$LINENO: result: no" >&5
29372 $as_echo "no" >&6; }
29373 fi
29374 if test -n "$DOCBOOKSTYLE" -a -r "$DOCBOOKSTYLE/bin/collateindex.pl"; then
29375   COLLATEINDEX="$DOCBOOKSTYLE/bin/collateindex.pl"
29376
29377 else
29378   # Extract the first word of "collateindex.pl", so it can be a program name with args.
29379 set dummy collateindex.pl; ac_word=$2
29380 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29381 $as_echo_n "checking for $ac_word... " >&6; }
29382 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29383   $as_echo_n "(cached) " >&6
29384 else
29385   case $COLLATEINDEX in
29386   [\\/]* | ?:[\\/]*)
29387   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29388   ;;
29389   *)
29390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29391 for as_dir in $PATH
29392 do
29393   IFS=$as_save_IFS
29394   test -z "$as_dir" && as_dir=.
29395   for ac_exec_ext in '' $ac_executable_extensions; do
29396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29397     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29398     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29399     break 2
29400   fi
29401 done
29402 done
29403 IFS=$as_save_IFS
29404
29405   ;;
29406 esac
29407 fi
29408 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29409 if test -n "$COLLATEINDEX"; then
29410   { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29411 $as_echo "$COLLATEINDEX" >&6; }
29412 else
29413   { $as_echo "$as_me:$LINENO: result: no" >&5
29414 $as_echo "no" >&6; }
29415 fi
29416
29417
29418 fi
29419 for ac_prog in xsltproc
29420 do
29421   # Extract the first word of "$ac_prog", so it can be a program name with args.
29422 set dummy $ac_prog; ac_word=$2
29423 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29424 $as_echo_n "checking for $ac_word... " >&6; }
29425 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
29426   $as_echo_n "(cached) " >&6
29427 else
29428   if test -n "$XSLTPROC"; then
29429   ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
29430 else
29431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29432 for as_dir in $PATH
29433 do
29434   IFS=$as_save_IFS
29435   test -z "$as_dir" && as_dir=.
29436   for ac_exec_ext in '' $ac_executable_extensions; do
29437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29438     ac_cv_prog_XSLTPROC="$ac_prog"
29439     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29440     break 2
29441   fi
29442 done
29443 done
29444 IFS=$as_save_IFS
29445
29446 fi
29447 fi
29448 XSLTPROC=$ac_cv_prog_XSLTPROC
29449 if test -n "$XSLTPROC"; then
29450   { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
29451 $as_echo "$XSLTPROC" >&6; }
29452 else
29453   { $as_echo "$as_me:$LINENO: result: no" >&5
29454 $as_echo "no" >&6; }
29455 fi
29456
29457
29458   test -n "$XSLTPROC" && break
29459 done
29460
29461 for ac_prog in osx sgml2xml sx
29462 do
29463   # Extract the first word of "$ac_prog", so it can be a program name with args.
29464 set dummy $ac_prog; ac_word=$2
29465 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29466 $as_echo_n "checking for $ac_word... " >&6; }
29467 if test "${ac_cv_prog_OSX+set}" = set; then
29468   $as_echo_n "(cached) " >&6
29469 else
29470   if test -n "$OSX"; then
29471   ac_cv_prog_OSX="$OSX" # Let the user override the test.
29472 else
29473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29474 for as_dir in $PATH
29475 do
29476   IFS=$as_save_IFS
29477   test -z "$as_dir" && as_dir=.
29478   for ac_exec_ext in '' $ac_executable_extensions; do
29479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29480     ac_cv_prog_OSX="$ac_prog"
29481     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29482     break 2
29483   fi
29484 done
29485 done
29486 IFS=$as_save_IFS
29487
29488 fi
29489 fi
29490 OSX=$ac_cv_prog_OSX
29491 if test -n "$OSX"; then
29492   { $as_echo "$as_me:$LINENO: result: $OSX" >&5
29493 $as_echo "$OSX" >&6; }
29494 else
29495   { $as_echo "$as_me:$LINENO: result: no" >&5
29496 $as_echo "no" >&6; }
29497 fi
29498
29499
29500   test -n "$OSX" && break
29501 done
29502
29503
29504 # Thread testing
29505
29506 # We have to run the thread test near the end so we have all our symbols
29507 # defined.  Cross compiling throws a warning.
29508 #
29509 if test "$enable_thread_safety" = yes; then
29510 if test "$PORTNAME" != "win32"
29511 then
29512 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
29513 $as_echo_n "checking thread safety of required library functions... " >&6; }
29514
29515 _CFLAGS="$CFLAGS"
29516 _LIBS="$LIBS"
29517 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
29518 LIBS="$LIBS $PTHREAD_LIBS"
29519 if test "$cross_compiling" = yes; then
29520   { $as_echo "$as_me:$LINENO: result: maybe" >&5
29521 $as_echo "maybe" >&6; }
29522   { $as_echo "$as_me:$LINENO: WARNING:
29523 *** Skipping thread test program because of cross-compile build.
29524 *** Run the program in src/test/thread on the target machine.
29525 " >&5
29526 $as_echo "$as_me: WARNING:
29527 *** Skipping thread test program because of cross-compile build.
29528 *** Run the program in src/test/thread on the target machine.
29529 " >&2;}
29530 else
29531   cat >conftest.$ac_ext <<_ACEOF
29532 /* confdefs.h.  */
29533 _ACEOF
29534 cat confdefs.h >>conftest.$ac_ext
29535 cat >>conftest.$ac_ext <<_ACEOF
29536 /* end confdefs.h.  */
29537 #include "$srcdir/src/test/thread/thread_test.c"
29538 _ACEOF
29539 rm -f conftest$ac_exeext
29540 if { (ac_try="$ac_link"
29541 case "(($ac_try" in
29542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29543   *) ac_try_echo=$ac_try;;
29544 esac
29545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29546 $as_echo "$ac_try_echo") >&5
29547   (eval "$ac_link") 2>&5
29548   ac_status=$?
29549   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29550   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29551   { (case "(($ac_try" in
29552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29553   *) ac_try_echo=$ac_try;;
29554 esac
29555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29556 $as_echo "$ac_try_echo") >&5
29557   (eval "$ac_try") 2>&5
29558   ac_status=$?
29559   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29560   (exit $ac_status); }; }; then
29561   { $as_echo "$as_me:$LINENO: result: yes" >&5
29562 $as_echo "yes" >&6; }
29563 else
29564   $as_echo "$as_me: program exited with status $ac_status" >&5
29565 $as_echo "$as_me: failed program was:" >&5
29566 sed 's/^/| /' conftest.$ac_ext >&5
29567
29568 ( exit $ac_status )
29569 { $as_echo "$as_me:$LINENO: result: no" >&5
29570 $as_echo "no" >&6; }
29571   { { $as_echo "$as_me:$LINENO: error: thread test program failed
29572 This platform is not thread-safe.  Check the file 'config.log' or compile
29573 and run src/test/thread/thread_test for the exact reason.
29574 Use --disable-thread-safety to disable thread safety." >&5
29575 $as_echo "$as_me: error: thread test program failed
29576 This platform is not thread-safe.  Check the file 'config.log' or compile
29577 and run src/test/thread/thread_test for the exact reason.
29578 Use --disable-thread-safety to disable thread safety." >&2;}
29579    { (exit 1); exit 1; }; }
29580 fi
29581 rm -rf conftest.dSYM
29582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29583 fi
29584
29585
29586 CFLAGS="$_CFLAGS"
29587 LIBS="$_LIBS"
29588 else
29589 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
29590 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
29591 fi
29592 fi
29593
29594 # If compiler will take -Wl,--as-needed (or various platform-specific
29595 # spellings thereof) then add that to LDFLAGS.  This is much easier than
29596 # trying to filter LIBS to the minimum for each executable.
29597 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
29598 # libreadline; therefore we postpone testing it until we know what library
29599 # dependencies readline has.  The test code will try to link with $LIBS.
29600 if test "$with_readline" = yes; then
29601   link_test_func=readline
29602 else
29603   link_test_func=exit
29604 fi
29605
29606 if test "$PORTNAME" = "darwin"; then
29607   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
29608 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
29609 if test "${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+set}" = set; then
29610   $as_echo_n "(cached) " >&6
29611 else
29612   pgac_save_LDFLAGS=$LDFLAGS
29613 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
29614 if test "$cross_compiling" = yes; then
29615   pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
29616 else
29617   cat >conftest.$ac_ext <<_ACEOF
29618 /* confdefs.h.  */
29619 _ACEOF
29620 cat confdefs.h >>conftest.$ac_ext
29621 cat >>conftest.$ac_ext <<_ACEOF
29622 /* end confdefs.h.  */
29623 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29624 int
29625 main ()
29626 {
29627
29628   ;
29629   return 0;
29630 }
29631 _ACEOF
29632 rm -f conftest$ac_exeext
29633 if { (ac_try="$ac_link"
29634 case "(($ac_try" in
29635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29636   *) ac_try_echo=$ac_try;;
29637 esac
29638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29639 $as_echo "$ac_try_echo") >&5
29640   (eval "$ac_link") 2>&5
29641   ac_status=$?
29642   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29643   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29644   { (case "(($ac_try" in
29645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29646   *) ac_try_echo=$ac_try;;
29647 esac
29648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29649 $as_echo "$ac_try_echo") >&5
29650   (eval "$ac_try") 2>&5
29651   ac_status=$?
29652   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29653   (exit $ac_status); }; }; then
29654   pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
29655 else
29656   $as_echo "$as_me: program exited with status $ac_status" >&5
29657 $as_echo "$as_me: failed program was:" >&5
29658 sed 's/^/| /' conftest.$ac_ext >&5
29659
29660 ( exit $ac_status )
29661 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
29662 fi
29663 rm -rf conftest.dSYM
29664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29665 fi
29666
29667
29668 LDFLAGS="$pgac_save_LDFLAGS"
29669 fi
29670 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
29671 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
29672 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
29673   LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
29674 fi
29675
29676 elif test "$PORTNAME" = "openbsd"; then
29677   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-Bdynamic" >&5
29678 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
29679 if test "${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+set}" = set; then
29680   $as_echo_n "(cached) " >&6
29681 else
29682   pgac_save_LDFLAGS=$LDFLAGS
29683 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
29684 if test "$cross_compiling" = yes; then
29685   pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
29686 else
29687   cat >conftest.$ac_ext <<_ACEOF
29688 /* confdefs.h.  */
29689 _ACEOF
29690 cat confdefs.h >>conftest.$ac_ext
29691 cat >>conftest.$ac_ext <<_ACEOF
29692 /* end confdefs.h.  */
29693 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29694 int
29695 main ()
29696 {
29697
29698   ;
29699   return 0;
29700 }
29701 _ACEOF
29702 rm -f conftest$ac_exeext
29703 if { (ac_try="$ac_link"
29704 case "(($ac_try" in
29705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29706   *) ac_try_echo=$ac_try;;
29707 esac
29708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29709 $as_echo "$ac_try_echo") >&5
29710   (eval "$ac_link") 2>&5
29711   ac_status=$?
29712   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29713   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29714   { (case "(($ac_try" in
29715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29716   *) ac_try_echo=$ac_try;;
29717 esac
29718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29719 $as_echo "$ac_try_echo") >&5
29720   (eval "$ac_try") 2>&5
29721   ac_status=$?
29722   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29723   (exit $ac_status); }; }; then
29724   pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
29725 else
29726   $as_echo "$as_me: program exited with status $ac_status" >&5
29727 $as_echo "$as_me: failed program was:" >&5
29728 sed 's/^/| /' conftest.$ac_ext >&5
29729
29730 ( exit $ac_status )
29731 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
29732 fi
29733 rm -rf conftest.dSYM
29734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29735 fi
29736
29737
29738 LDFLAGS="$pgac_save_LDFLAGS"
29739 fi
29740 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
29741 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
29742 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
29743   LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
29744 fi
29745
29746 else
29747   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,--as-needed" >&5
29748 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
29749 if test "${pgac_cv_prog_cc_ldflags__Wl___as_needed+set}" = set; then
29750   $as_echo_n "(cached) " >&6
29751 else
29752   pgac_save_LDFLAGS=$LDFLAGS
29753 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
29754 if test "$cross_compiling" = yes; then
29755   pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
29756 else
29757   cat >conftest.$ac_ext <<_ACEOF
29758 /* confdefs.h.  */
29759 _ACEOF
29760 cat confdefs.h >>conftest.$ac_ext
29761 cat >>conftest.$ac_ext <<_ACEOF
29762 /* end confdefs.h.  */
29763 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29764 int
29765 main ()
29766 {
29767
29768   ;
29769   return 0;
29770 }
29771 _ACEOF
29772 rm -f conftest$ac_exeext
29773 if { (ac_try="$ac_link"
29774 case "(($ac_try" in
29775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29776   *) ac_try_echo=$ac_try;;
29777 esac
29778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29779 $as_echo "$ac_try_echo") >&5
29780   (eval "$ac_link") 2>&5
29781   ac_status=$?
29782   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29783   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29784   { (case "(($ac_try" in
29785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29786   *) ac_try_echo=$ac_try;;
29787 esac
29788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29789 $as_echo "$ac_try_echo") >&5
29790   (eval "$ac_try") 2>&5
29791   ac_status=$?
29792   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29793   (exit $ac_status); }; }; then
29794   pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
29795 else
29796   $as_echo "$as_me: program exited with status $ac_status" >&5
29797 $as_echo "$as_me: failed program was:" >&5
29798 sed 's/^/| /' conftest.$ac_ext >&5
29799
29800 ( exit $ac_status )
29801 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
29802 fi
29803 rm -rf conftest.dSYM
29804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29805 fi
29806
29807
29808 LDFLAGS="$pgac_save_LDFLAGS"
29809 fi
29810 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
29811 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
29812 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
29813   LDFLAGS="$LDFLAGS -Wl,--as-needed"
29814 fi
29815
29816 fi
29817
29818 # Create compiler version string
29819 if test x"$GCC" = x"yes" ; then
29820   cc_string=`${CC} --version | sed q`
29821   case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
29822 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
29823   cc_string=`${CC} -V 2>&1 | sed q`
29824 else
29825   cc_string=$CC
29826 fi
29827
29828
29829 cat >>confdefs.h <<_ACEOF
29830 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
29831 _ACEOF
29832
29833
29834 # Supply a numeric version string for use by 3rd party add-ons
29835 # awk -F is a regex on some platforms, and not on others, so make "." a tab
29836 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
29837 tr '.' '        ' |
29838 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
29839
29840 cat >>confdefs.h <<_ACEOF
29841 #define PG_VERSION_NUM $PG_VERSION_NUM
29842 _ACEOF
29843
29844
29845
29846 # Begin output steps
29847
29848 { $as_echo "$as_me:$LINENO: using compiler=$cc_string" >&5
29849 $as_echo "$as_me: using compiler=$cc_string" >&6;}
29850 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
29851 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
29852 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
29853 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
29854 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
29855 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
29856
29857 # prepare build tree if outside source tree
29858 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
29859 # Note 2: /bin/pwd might be better than shell's built-in at getting
29860 #         a symlink-free name.
29861 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
29862   vpath_build=no
29863 else
29864   vpath_build=yes
29865   if test "$no_create" != yes; then
29866     $as_echo_n "preparing build tree... " >&6
29867     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
29868     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
29869       || { { $as_echo "$as_me:$LINENO: error: failed" >&5
29870 $as_echo "$as_me: error: failed" >&2;}
29871    { (exit 1); exit 1; }; }
29872     { $as_echo "$as_me:$LINENO: result: done" >&5
29873 $as_echo "done" >&6; }
29874   fi
29875 fi
29876
29877
29878
29879 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
29880
29881
29882 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/backend/port/pg_latch.c:${LATCH_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}"
29883
29884
29885 if test "$PORTNAME" = "win32"; then
29886 ac_config_commands="$ac_config_commands check_win32_symlinks"
29887
29888 fi
29889
29890 ac_config_headers="$ac_config_headers src/include/pg_config.h"
29891
29892
29893 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
29894
29895
29896 cat >confcache <<\_ACEOF
29897 # This file is a shell script that caches the results of configure
29898 # tests run on this system so they can be shared between configure
29899 # scripts and configure runs, see configure's option --config-cache.
29900 # It is not useful on other systems.  If it contains results you don't
29901 # want to keep, you may remove or edit it.
29902 #
29903 # config.status only pays attention to the cache file if you give it
29904 # the --recheck option to rerun configure.
29905 #
29906 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29907 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29908 # following values.
29909
29910 _ACEOF
29911
29912 # The following way of writing the cache mishandles newlines in values,
29913 # but we know of no workaround that is simple, portable, and efficient.
29914 # So, we kill variables containing newlines.
29915 # Ultrix sh set writes to stderr and can't be redirected directly,
29916 # and sets the high bit in the cache file unless we assign to the vars.
29917 (
29918   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29919     eval ac_val=\$$ac_var
29920     case $ac_val in #(
29921     *${as_nl}*)
29922       case $ac_var in #(
29923       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
29924 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29925       esac
29926       case $ac_var in #(
29927       _ | IFS | as_nl) ;; #(
29928       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29929       *) $as_unset $ac_var ;;
29930       esac ;;
29931     esac
29932   done
29933
29934   (set) 2>&1 |
29935     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29936     *${as_nl}ac_space=\ *)
29937       # `set' does not quote correctly, so add quotes (double-quote
29938       # substitution turns \\\\ into \\, and sed turns \\ into \).
29939       sed -n \
29940         "s/'/'\\\\''/g;
29941           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29942       ;; #(
29943     *)
29944       # `set' quotes correctly as required by POSIX, so do not add quotes.
29945       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29946       ;;
29947     esac |
29948     sort
29949 ) |
29950   sed '
29951      /^ac_cv_env_/b end
29952      t clear
29953      :clear
29954      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29955      t end
29956      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29957      :end' >>confcache
29958 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29959   if test -w "$cache_file"; then
29960     test "x$cache_file" != "x/dev/null" &&
29961       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
29962 $as_echo "$as_me: updating cache $cache_file" >&6;}
29963     cat confcache >$cache_file
29964   else
29965     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29966 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29967   fi
29968 fi
29969 rm -f confcache
29970
29971 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29972 # Let make expand exec_prefix.
29973 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29974
29975 DEFS=-DHAVE_CONFIG_H
29976
29977 ac_libobjs=
29978 ac_ltlibobjs=
29979 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29980   # 1. Remove the extension, and $U if already installed.
29981   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29982   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29983   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29984   #    will be set to the directory where LIBOBJS objects are built.
29985   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29986   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29987 done
29988 LIBOBJS=$ac_libobjs
29989
29990 LTLIBOBJS=$ac_ltlibobjs
29991
29992
29993
29994
29995 : ${CONFIG_STATUS=./config.status}
29996 ac_write_fail=0
29997 ac_clean_files_save=$ac_clean_files
29998 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29999 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30000 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30001 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30002 #! $SHELL
30003 # Generated by $as_me.
30004 # Run this file to recreate the current configuration.
30005 # Compiler output produced by configure, useful for debugging
30006 # configure, is in config.log if it exists.
30007
30008 debug=false
30009 ac_cs_recheck=false
30010 ac_cs_silent=false
30011 SHELL=\${CONFIG_SHELL-$SHELL}
30012 _ACEOF
30013
30014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30015 ## --------------------- ##
30016 ## M4sh Initialization.  ##
30017 ## --------------------- ##
30018
30019 # Be more Bourne compatible
30020 DUALCASE=1; export DUALCASE # for MKS sh
30021 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30022   emulate sh
30023   NULLCMD=:
30024   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30025   # is contrary to our usage.  Disable this feature.
30026   alias -g '${1+"$@"}'='"$@"'
30027   setopt NO_GLOB_SUBST
30028 else
30029   case `(set -o) 2>/dev/null` in
30030   *posix*) set -o posix ;;
30031 esac
30032
30033 fi
30034
30035
30036
30037
30038 # PATH needs CR
30039 # Avoid depending upon Character Ranges.
30040 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30041 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30042 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30043 as_cr_digits='0123456789'
30044 as_cr_alnum=$as_cr_Letters$as_cr_digits
30045
30046 as_nl='
30047 '
30048 export as_nl
30049 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30050 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30051 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30052 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30053 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30054   as_echo='printf %s\n'
30055   as_echo_n='printf %s'
30056 else
30057   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30058     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30059     as_echo_n='/usr/ucb/echo -n'
30060   else
30061     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30062     as_echo_n_body='eval
30063       arg=$1;
30064       case $arg in
30065       *"$as_nl"*)
30066         expr "X$arg" : "X\\(.*\\)$as_nl";
30067         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30068       esac;
30069       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30070     '
30071     export as_echo_n_body
30072     as_echo_n='sh -c $as_echo_n_body as_echo'
30073   fi
30074   export as_echo_body
30075   as_echo='sh -c $as_echo_body as_echo'
30076 fi
30077
30078 # The user is always right.
30079 if test "${PATH_SEPARATOR+set}" != set; then
30080   PATH_SEPARATOR=:
30081   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30082     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30083       PATH_SEPARATOR=';'
30084   }
30085 fi
30086
30087 # Support unset when possible.
30088 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30089   as_unset=unset
30090 else
30091   as_unset=false
30092 fi
30093
30094
30095 # IFS
30096 # We need space, tab and new line, in precisely that order.  Quoting is
30097 # there to prevent editors from complaining about space-tab.
30098 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30099 # splitting by setting IFS to empty value.)
30100 IFS=" ""        $as_nl"
30101
30102 # Find who we are.  Look in the path if we contain no directory separator.
30103 case $0 in
30104   *[\\/]* ) as_myself=$0 ;;
30105   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30106 for as_dir in $PATH
30107 do
30108   IFS=$as_save_IFS
30109   test -z "$as_dir" && as_dir=.
30110   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30111 done
30112 IFS=$as_save_IFS
30113
30114      ;;
30115 esac
30116 # We did not find ourselves, most probably we were run as `sh COMMAND'
30117 # in which case we are not to be found in the path.
30118 if test "x$as_myself" = x; then
30119   as_myself=$0
30120 fi
30121 if test ! -f "$as_myself"; then
30122   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30123   { (exit 1); exit 1; }
30124 fi
30125
30126 # Work around bugs in pre-3.0 UWIN ksh.
30127 for as_var in ENV MAIL MAILPATH
30128 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30129 done
30130 PS1='$ '
30131 PS2='> '
30132 PS4='+ '
30133
30134 # NLS nuisances.
30135 LC_ALL=C
30136 export LC_ALL
30137 LANGUAGE=C
30138 export LANGUAGE
30139
30140 # Required to use basename.
30141 if expr a : '\(a\)' >/dev/null 2>&1 &&
30142    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30143   as_expr=expr
30144 else
30145   as_expr=false
30146 fi
30147
30148 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30149   as_basename=basename
30150 else
30151   as_basename=false
30152 fi
30153
30154
30155 # Name of the executable.
30156 as_me=`$as_basename -- "$0" ||
30157 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30158          X"$0" : 'X\(//\)$' \| \
30159          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30160 $as_echo X/"$0" |
30161     sed '/^.*\/\([^/][^/]*\)\/*$/{
30162             s//\1/
30163             q
30164           }
30165           /^X\/\(\/\/\)$/{
30166             s//\1/
30167             q
30168           }
30169           /^X\/\(\/\).*/{
30170             s//\1/
30171             q
30172           }
30173           s/.*/./; q'`
30174
30175 # CDPATH.
30176 $as_unset CDPATH
30177
30178
30179
30180   as_lineno_1=$LINENO
30181   as_lineno_2=$LINENO
30182   test "x$as_lineno_1" != "x$as_lineno_2" &&
30183   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30184
30185   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30186   # uniformly replaced by the line number.  The first 'sed' inserts a
30187   # line-number line after each line using $LINENO; the second 'sed'
30188   # does the real work.  The second script uses 'N' to pair each
30189   # line-number line with the line containing $LINENO, and appends
30190   # trailing '-' during substitution so that $LINENO is not a special
30191   # case at line end.
30192   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30193   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30194   # E. McMahon (1931-1989) for sed's syntax.  :-)
30195   sed -n '
30196     p
30197     /[$]LINENO/=
30198   ' <$as_myself |
30199     sed '
30200       s/[$]LINENO.*/&-/
30201       t lineno
30202       b
30203       :lineno
30204       N
30205       :loop
30206       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30207       t loop
30208       s/-\n.*//
30209     ' >$as_me.lineno &&
30210   chmod +x "$as_me.lineno" ||
30211     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30212    { (exit 1); exit 1; }; }
30213
30214   # Don't try to exec as it changes $[0], causing all sort of problems
30215   # (the dirname of $[0] is not the place where we might find the
30216   # original and so on.  Autoconf is especially sensitive to this).
30217   . "./$as_me.lineno"
30218   # Exit status is that of the last command.
30219   exit
30220 }
30221
30222
30223 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30224   as_dirname=dirname
30225 else
30226   as_dirname=false
30227 fi
30228
30229 ECHO_C= ECHO_N= ECHO_T=
30230 case `echo -n x` in
30231 -n*)
30232   case `echo 'x\c'` in
30233   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30234   *)   ECHO_C='\c';;
30235   esac;;
30236 *)
30237   ECHO_N='-n';;
30238 esac
30239 if expr a : '\(a\)' >/dev/null 2>&1 &&
30240    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30241   as_expr=expr
30242 else
30243   as_expr=false
30244 fi
30245
30246 rm -f conf$$ conf$$.exe conf$$.file
30247 if test -d conf$$.dir; then
30248   rm -f conf$$.dir/conf$$.file
30249 else
30250   rm -f conf$$.dir
30251   mkdir conf$$.dir 2>/dev/null
30252 fi
30253 if (echo >conf$$.file) 2>/dev/null; then
30254   if ln -s conf$$.file conf$$ 2>/dev/null; then
30255     as_ln_s='ln -s'
30256     # ... but there are two gotchas:
30257     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30258     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30259     # In both cases, we have to default to `cp -p'.
30260     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30261       as_ln_s='cp -p'
30262   elif ln conf$$.file conf$$ 2>/dev/null; then
30263     as_ln_s=ln
30264   else
30265     as_ln_s='cp -p'
30266   fi
30267 else
30268   as_ln_s='cp -p'
30269 fi
30270 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30271 rmdir conf$$.dir 2>/dev/null
30272
30273 if mkdir -p . 2>/dev/null; then
30274   as_mkdir_p=:
30275 else
30276   test -d ./-p && rmdir ./-p
30277   as_mkdir_p=false
30278 fi
30279
30280 if test -x / >/dev/null 2>&1; then
30281   as_test_x='test -x'
30282 else
30283   if ls -dL / >/dev/null 2>&1; then
30284     as_ls_L_option=L
30285   else
30286     as_ls_L_option=
30287   fi
30288   as_test_x='
30289     eval sh -c '\''
30290       if test -d "$1"; then
30291         test -d "$1/.";
30292       else
30293         case $1 in
30294         -*)set "./$1";;
30295         esac;
30296         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30297         ???[sx]*):;;*)false;;esac;fi
30298     '\'' sh
30299   '
30300 fi
30301 as_executable_p=$as_test_x
30302
30303 # Sed expression to map a string onto a valid CPP name.
30304 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30305
30306 # Sed expression to map a string onto a valid variable name.
30307 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30308
30309
30310 exec 6>&1
30311
30312 # Save the log message, to keep $[0] and so on meaningful, and to
30313 # report actual input values of CONFIG_FILES etc. instead of their
30314 # values after options handling.
30315 ac_log="
30316 This file was extended by PostgreSQL $as_me 9.3devel, which was
30317 generated by GNU Autoconf 2.63.  Invocation command line was
30318
30319   CONFIG_FILES    = $CONFIG_FILES
30320   CONFIG_HEADERS  = $CONFIG_HEADERS
30321   CONFIG_LINKS    = $CONFIG_LINKS
30322   CONFIG_COMMANDS = $CONFIG_COMMANDS
30323   $ $0 $@
30324
30325 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30326 "
30327
30328 _ACEOF
30329
30330 case $ac_config_files in *"
30331 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30332 esac
30333
30334 case $ac_config_headers in *"
30335 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30336 esac
30337
30338
30339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30340 # Files that config.status was made for.
30341 config_files="$ac_config_files"
30342 config_headers="$ac_config_headers"
30343 config_links="$ac_config_links"
30344 config_commands="$ac_config_commands"
30345
30346 _ACEOF
30347
30348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30349 ac_cs_usage="\
30350 \`$as_me' instantiates files from templates according to the
30351 current configuration.
30352
30353 Usage: $0 [OPTION]... [FILE]...
30354
30355   -h, --help       print this help, then exit
30356   -V, --version    print version number and configuration settings, then exit
30357   -q, --quiet, --silent
30358                    do not print progress messages
30359   -d, --debug      don't remove temporary files
30360       --recheck    update $as_me by reconfiguring in the same conditions
30361       --file=FILE[:TEMPLATE]
30362                    instantiate the configuration file FILE
30363       --header=FILE[:TEMPLATE]
30364                    instantiate the configuration header FILE
30365
30366 Configuration files:
30367 $config_files
30368
30369 Configuration headers:
30370 $config_headers
30371
30372 Configuration links:
30373 $config_links
30374
30375 Configuration commands:
30376 $config_commands
30377
30378 Report bugs to <bug-autoconf@gnu.org>."
30379
30380 _ACEOF
30381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30382 ac_cs_version="\\
30383 PostgreSQL config.status 9.3devel
30384 configured by $0, generated by GNU Autoconf 2.63,
30385   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30386
30387 Copyright (C) 2008 Free Software Foundation, Inc.
30388 This config.status script is free software; the Free Software Foundation
30389 gives unlimited permission to copy, distribute and modify it."
30390
30391 ac_pwd='$ac_pwd'
30392 srcdir='$srcdir'
30393 INSTALL='$INSTALL'
30394 MKDIR_P='$MKDIR_P'
30395 AWK='$AWK'
30396 test -n "\$AWK" || AWK=awk
30397 _ACEOF
30398
30399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30400 # The default lists apply if the user does not specify any file.
30401 ac_need_defaults=:
30402 while test $# != 0
30403 do
30404   case $1 in
30405   --*=*)
30406     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30407     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30408     ac_shift=:
30409     ;;
30410   *)
30411     ac_option=$1
30412     ac_optarg=$2
30413     ac_shift=shift
30414     ;;
30415   esac
30416
30417   case $ac_option in
30418   # Handling of the options.
30419   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30420     ac_cs_recheck=: ;;
30421   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30422     $as_echo "$ac_cs_version"; exit ;;
30423   --debug | --debu | --deb | --de | --d | -d )
30424     debug=: ;;
30425   --file | --fil | --fi | --f )
30426     $ac_shift
30427     case $ac_optarg in
30428     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30429     esac
30430     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
30431     ac_need_defaults=false;;
30432   --header | --heade | --head | --hea )
30433     $ac_shift
30434     case $ac_optarg in
30435     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30436     esac
30437     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
30438     ac_need_defaults=false;;
30439   --he | --h)
30440     # Conflict between --help and --header
30441     { $as_echo "$as_me: error: ambiguous option: $1
30442 Try \`$0 --help' for more information." >&2
30443    { (exit 1); exit 1; }; };;
30444   --help | --hel | -h )
30445     $as_echo "$ac_cs_usage"; exit ;;
30446   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30447   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30448     ac_cs_silent=: ;;
30449
30450   # This is an error.
30451   -*) { $as_echo "$as_me: error: unrecognized option: $1
30452 Try \`$0 --help' for more information." >&2
30453    { (exit 1); exit 1; }; } ;;
30454
30455   *) ac_config_targets="$ac_config_targets $1"
30456      ac_need_defaults=false ;;
30457
30458   esac
30459   shift
30460 done
30461
30462 ac_configure_extra_args=
30463
30464 if $ac_cs_silent; then
30465   exec 6>/dev/null
30466   ac_configure_extra_args="$ac_configure_extra_args --silent"
30467 fi
30468
30469 _ACEOF
30470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30471 if \$ac_cs_recheck; then
30472   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30473   shift
30474   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30475   CONFIG_SHELL='$SHELL'
30476   export CONFIG_SHELL
30477   exec "\$@"
30478 fi
30479
30480 _ACEOF
30481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30482 exec 5>>config.log
30483 {
30484   echo
30485   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30486 ## Running $as_me. ##
30487 _ASBOX
30488   $as_echo "$ac_log"
30489 } >&5
30490
30491 _ACEOF
30492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30493 _ACEOF
30494
30495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30496
30497 # Handling of arguments.
30498 for ac_config_target in $ac_config_targets
30499 do
30500   case $ac_config_target in
30501     "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
30502     "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
30503     "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
30504     "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
30505     "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
30506     "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
30507     "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
30508     "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
30509     "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
30510     "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
30511     "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
30512     "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
30513     "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
30514
30515   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30516 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30517    { (exit 1); exit 1; }; };;
30518   esac
30519 done
30520
30521
30522 # If the user did not use the arguments to specify the items to instantiate,
30523 # then the envvar interface is used.  Set only those that are not.
30524 # We use the long form for the default assignment because of an extremely
30525 # bizarre bug on SunOS 4.1.3.
30526 if $ac_need_defaults; then
30527   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30528   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30529   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30530   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30531 fi
30532
30533 # Have a temporary directory for convenience.  Make it in the build tree
30534 # simply because there is no reason against having it here, and in addition,
30535 # creating and moving files from /tmp can sometimes cause problems.
30536 # Hook for its removal unless debugging.
30537 # Note that there is a small window in which the directory will not be cleaned:
30538 # after its creation but before its name has been assigned to `$tmp'.
30539 $debug ||
30540 {
30541   tmp=
30542   trap 'exit_status=$?
30543   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30544 ' 0
30545   trap '{ (exit 1); exit 1; }' 1 2 13 15
30546 }
30547 # Create a (secure) tmp directory for tmp files.
30548
30549 {
30550   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30551   test -n "$tmp" && test -d "$tmp"
30552 }  ||
30553 {
30554   tmp=./conf$$-$RANDOM
30555   (umask 077 && mkdir "$tmp")
30556 } ||
30557 {
30558    $as_echo "$as_me: cannot create a temporary directory in ." >&2
30559    { (exit 1); exit 1; }
30560 }
30561
30562 # Set up the scripts for CONFIG_FILES section.
30563 # No need to generate them if there are no CONFIG_FILES.
30564 # This happens for instance with `./config.status config.h'.
30565 if test -n "$CONFIG_FILES"; then
30566
30567
30568 ac_cr='\r'
30569 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30570 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30571   ac_cs_awk_cr='\\r'
30572 else
30573   ac_cs_awk_cr=$ac_cr
30574 fi
30575
30576 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30577 _ACEOF
30578
30579
30580 {
30581   echo "cat >conf$$subs.awk <<_ACEOF" &&
30582   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30583   echo "_ACEOF"
30584 } >conf$$subs.sh ||
30585   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30586 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30587    { (exit 1); exit 1; }; }
30588 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30589 ac_delim='%!_!# '
30590 for ac_last_try in false false false false false :; do
30591   . ./conf$$subs.sh ||
30592     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30593 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30594    { (exit 1); exit 1; }; }
30595
30596   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30597   if test $ac_delim_n = $ac_delim_num; then
30598     break
30599   elif $ac_last_try; then
30600     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30601 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30602    { (exit 1); exit 1; }; }
30603   else
30604     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30605   fi
30606 done
30607 rm -f conf$$subs.sh
30608
30609 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30610 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30611 _ACEOF
30612 sed -n '
30613 h
30614 s/^/S["/; s/!.*/"]=/
30615 p
30616 g
30617 s/^[^!]*!//
30618 :repl
30619 t repl
30620 s/'"$ac_delim"'$//
30621 t delim
30622 :nl
30623 h
30624 s/\(.\{148\}\).*/\1/
30625 t more1
30626 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30627 p
30628 n
30629 b repl
30630 :more1
30631 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30632 p
30633 g
30634 s/.\{148\}//
30635 t nl
30636 :delim
30637 h
30638 s/\(.\{148\}\).*/\1/
30639 t more2
30640 s/["\\]/\\&/g; s/^/"/; s/$/"/
30641 p
30642 b
30643 :more2
30644 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30645 p
30646 g
30647 s/.\{148\}//
30648 t delim
30649 ' <conf$$subs.awk | sed '
30650 /^[^""]/{
30651   N
30652   s/\n//
30653 }
30654 ' >>$CONFIG_STATUS || ac_write_fail=1
30655 rm -f conf$$subs.awk
30656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30657 _ACAWK
30658 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30659   for (key in S) S_is_set[key] = 1
30660   FS = "\a"
30661
30662 }
30663 {
30664   line = $ 0
30665   nfields = split(line, field, "@")
30666   substed = 0
30667   len = length(field[1])
30668   for (i = 2; i < nfields; i++) {
30669     key = field[i]
30670     keylen = length(key)
30671     if (S_is_set[key]) {
30672       value = S[key]
30673       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30674       len += length(value) + length(field[++i])
30675       substed = 1
30676     } else
30677       len += 1 + keylen
30678   }
30679
30680   print line
30681 }
30682
30683 _ACAWK
30684 _ACEOF
30685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30686 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30687   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30688 else
30689   cat
30690 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30691   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
30692 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
30693    { (exit 1); exit 1; }; }
30694 _ACEOF
30695
30696 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30697 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30698 # trailing colons and then remove the whole line if VPATH becomes empty
30699 # (actually we leave an empty line to preserve line numbers).
30700 if test "x$srcdir" = x.; then
30701   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30702 s/:*\$(srcdir):*/:/
30703 s/:*\${srcdir}:*/:/
30704 s/:*@srcdir@:*/:/
30705 s/^\([^=]*=[     ]*\):*/\1/
30706 s/:*$//
30707 s/^[^=]*=[       ]*$//
30708 }'
30709 fi
30710
30711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30712 fi # test -n "$CONFIG_FILES"
30713
30714 # Set up the scripts for CONFIG_HEADERS section.
30715 # No need to generate them if there are no CONFIG_HEADERS.
30716 # This happens for instance with `./config.status Makefile'.
30717 if test -n "$CONFIG_HEADERS"; then
30718 cat >"$tmp/defines.awk" <<\_ACAWK ||
30719 BEGIN {
30720 _ACEOF
30721
30722 # Transform confdefs.h into an awk script `defines.awk', embedded as
30723 # here-document in config.status, that substitutes the proper values into
30724 # config.h.in to produce config.h.
30725
30726 # Create a delimiter string that does not exist in confdefs.h, to ease
30727 # handling of long lines.
30728 ac_delim='%!_!# '
30729 for ac_last_try in false false :; do
30730   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30731   if test -z "$ac_t"; then
30732     break
30733   elif $ac_last_try; then
30734     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
30735 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
30736    { (exit 1); exit 1; }; }
30737   else
30738     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30739   fi
30740 done
30741
30742 # For the awk script, D is an array of macro values keyed by name,
30743 # likewise P contains macro parameters if any.  Preserve backslash
30744 # newline sequences.
30745
30746 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30747 sed -n '
30748 s/.\{148\}/&'"$ac_delim"'/g
30749 t rset
30750 :rset
30751 s/^[     ]*#[    ]*define[       ][      ]*/ /
30752 t def
30753 d
30754 :def
30755 s/\\$//
30756 t bsnl
30757 s/["\\]/\\&/g
30758 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30759 D["\1"]=" \3"/p
30760 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
30761 d
30762 :bsnl
30763 s/["\\]/\\&/g
30764 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30765 D["\1"]=" \3\\\\\\n"\\/p
30766 t cont
30767 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30768 t cont
30769 d
30770 :cont
30771 n
30772 s/.\{148\}/&'"$ac_delim"'/g
30773 t clear
30774 :clear
30775 s/\\$//
30776 t bsnlc
30777 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30778 d
30779 :bsnlc
30780 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30781 b cont
30782 ' <confdefs.h | sed '
30783 s/'"$ac_delim"'/"\\\
30784 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30785
30786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30787   for (key in D) D_is_set[key] = 1
30788   FS = "\a"
30789 }
30790 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30791   line = \$ 0
30792   split(line, arg, " ")
30793   if (arg[1] == "#") {
30794     defundef = arg[2]
30795     mac1 = arg[3]
30796   } else {
30797     defundef = substr(arg[1], 2)
30798     mac1 = arg[2]
30799   }
30800   split(mac1, mac2, "(") #)
30801   macro = mac2[1]
30802   prefix = substr(line, 1, index(line, defundef) - 1)
30803   if (D_is_set[macro]) {
30804     # Preserve the white space surrounding the "#".
30805     print prefix "define", macro P[macro] D[macro]
30806     next
30807   } else {
30808     # Replace #undef with comments.  This is necessary, for example,
30809     # in the case of _POSIX_SOURCE, which is predefined and required
30810     # on some systems where configure will not decide to define it.
30811     if (defundef == "undef") {
30812       print "/*", prefix defundef, macro, "*/"
30813       next
30814     }
30815   }
30816 }
30817 { print }
30818 _ACAWK
30819 _ACEOF
30820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30821   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
30822 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
30823    { (exit 1); exit 1; }; }
30824 fi # test -n "$CONFIG_HEADERS"
30825
30826
30827 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
30828 shift
30829 for ac_tag
30830 do
30831   case $ac_tag in
30832   :[FHLC]) ac_mode=$ac_tag; continue;;
30833   esac
30834   case $ac_mode$ac_tag in
30835   :[FHL]*:*);;
30836   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
30837 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
30838    { (exit 1); exit 1; }; };;
30839   :[FH]-) ac_tag=-:-;;
30840   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30841   esac
30842   ac_save_IFS=$IFS
30843   IFS=:
30844   set x $ac_tag
30845   IFS=$ac_save_IFS
30846   shift
30847   ac_file=$1
30848   shift
30849
30850   case $ac_mode in
30851   :L) ac_source=$1;;
30852   :[FH])
30853     ac_file_inputs=
30854     for ac_f
30855     do
30856       case $ac_f in
30857       -) ac_f="$tmp/stdin";;
30858       *) # Look for the file first in the build tree, then in the source tree
30859          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30860          # because $ac_f cannot contain `:'.
30861          test -f "$ac_f" ||
30862            case $ac_f in
30863            [\\/$]*) false;;
30864            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30865            esac ||
30866            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30867 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30868    { (exit 1); exit 1; }; };;
30869       esac
30870       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30871       ac_file_inputs="$ac_file_inputs '$ac_f'"
30872     done
30873
30874     # Let's still pretend it is `configure' which instantiates (i.e., don't
30875     # use $as_me), people would be surprised to read:
30876     #    /* config.h.  Generated by config.status.  */
30877     configure_input='Generated from '`
30878           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30879         `' by configure.'
30880     if test x"$ac_file" != x-; then
30881       configure_input="$ac_file.  $configure_input"
30882       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
30883 $as_echo "$as_me: creating $ac_file" >&6;}
30884     fi
30885     # Neutralize special characters interpreted by sed in replacement strings.
30886     case $configure_input in #(
30887     *\&* | *\|* | *\\* )
30888        ac_sed_conf_input=`$as_echo "$configure_input" |
30889        sed 's/[\\\\&|]/\\\\&/g'`;; #(
30890     *) ac_sed_conf_input=$configure_input;;
30891     esac
30892
30893     case $ac_tag in
30894     *:-:* | *:-) cat >"$tmp/stdin" \
30895       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30896 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30897    { (exit 1); exit 1; }; } ;;
30898     esac
30899     ;;
30900   esac
30901
30902   ac_dir=`$as_dirname -- "$ac_file" ||
30903 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30904          X"$ac_file" : 'X\(//\)[^/]' \| \
30905          X"$ac_file" : 'X\(//\)$' \| \
30906          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30907 $as_echo X"$ac_file" |
30908     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30909             s//\1/
30910             q
30911           }
30912           /^X\(\/\/\)[^/].*/{
30913             s//\1/
30914             q
30915           }
30916           /^X\(\/\/\)$/{
30917             s//\1/
30918             q
30919           }
30920           /^X\(\/\).*/{
30921             s//\1/
30922             q
30923           }
30924           s/.*/./; q'`
30925   { as_dir="$ac_dir"
30926   case $as_dir in #(
30927   -*) as_dir=./$as_dir;;
30928   esac
30929   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30930     as_dirs=
30931     while :; do
30932       case $as_dir in #(
30933       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30934       *) as_qdir=$as_dir;;
30935       esac
30936       as_dirs="'$as_qdir' $as_dirs"
30937       as_dir=`$as_dirname -- "$as_dir" ||
30938 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30939          X"$as_dir" : 'X\(//\)[^/]' \| \
30940          X"$as_dir" : 'X\(//\)$' \| \
30941          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30942 $as_echo X"$as_dir" |
30943     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30944             s//\1/
30945             q
30946           }
30947           /^X\(\/\/\)[^/].*/{
30948             s//\1/
30949             q
30950           }
30951           /^X\(\/\/\)$/{
30952             s//\1/
30953             q
30954           }
30955           /^X\(\/\).*/{
30956             s//\1/
30957             q
30958           }
30959           s/.*/./; q'`
30960       test -d "$as_dir" && break
30961     done
30962     test -z "$as_dirs" || eval "mkdir $as_dirs"
30963   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30964 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
30965    { (exit 1); exit 1; }; }; }
30966   ac_builddir=.
30967
30968 case "$ac_dir" in
30969 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30970 *)
30971   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30972   # A ".." for each directory in $ac_dir_suffix.
30973   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30974   case $ac_top_builddir_sub in
30975   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30976   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30977   esac ;;
30978 esac
30979 ac_abs_top_builddir=$ac_pwd
30980 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30981 # for backward compatibility:
30982 ac_top_builddir=$ac_top_build_prefix
30983
30984 case $srcdir in
30985   .)  # We are building in place.
30986     ac_srcdir=.
30987     ac_top_srcdir=$ac_top_builddir_sub
30988     ac_abs_top_srcdir=$ac_pwd ;;
30989   [\\/]* | ?:[\\/]* )  # Absolute name.
30990     ac_srcdir=$srcdir$ac_dir_suffix;
30991     ac_top_srcdir=$srcdir
30992     ac_abs_top_srcdir=$srcdir ;;
30993   *) # Relative name.
30994     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30995     ac_top_srcdir=$ac_top_build_prefix$srcdir
30996     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30997 esac
30998 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30999
31000
31001   case $ac_mode in
31002   :F)
31003   #
31004   # CONFIG_FILE
31005   #
31006
31007   case $INSTALL in
31008   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31009   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31010   esac
31011   ac_MKDIR_P=$MKDIR_P
31012   case $MKDIR_P in
31013   [\\/$]* | ?:[\\/]* ) ;;
31014   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31015   esac
31016 _ACEOF
31017
31018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31019 # If the template does not know about datarootdir, expand it.
31020 # FIXME: This hack should be removed a few years after 2.60.
31021 ac_datarootdir_hack=; ac_datarootdir_seen=
31022
31023 ac_sed_dataroot='
31024 /datarootdir/ {
31025   p
31026   q
31027 }
31028 /@datadir@/p
31029 /@docdir@/p
31030 /@infodir@/p
31031 /@localedir@/p
31032 /@mandir@/p
31033 '
31034 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31035 *datarootdir*) ac_datarootdir_seen=yes;;
31036 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31037   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31038 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31039 _ACEOF
31040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31041   ac_datarootdir_hack='
31042   s&@datadir@&$datadir&g
31043   s&@docdir@&$docdir&g
31044   s&@infodir@&$infodir&g
31045   s&@localedir@&$localedir&g
31046   s&@mandir@&$mandir&g
31047     s&\\\${datarootdir}&$datarootdir&g' ;;
31048 esac
31049 _ACEOF
31050
31051 # Neutralize VPATH when `$srcdir' = `.'.
31052 # Shell code in configure.ac might set extrasub.
31053 # FIXME: do we really want to maintain this feature?
31054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31055 ac_sed_extra="$ac_vpsub
31056 $extrasub
31057 _ACEOF
31058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31059 :t
31060 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31061 s|@configure_input@|$ac_sed_conf_input|;t t
31062 s&@top_builddir@&$ac_top_builddir_sub&;t t
31063 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31064 s&@srcdir@&$ac_srcdir&;t t
31065 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31066 s&@top_srcdir@&$ac_top_srcdir&;t t
31067 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31068 s&@builddir@&$ac_builddir&;t t
31069 s&@abs_builddir@&$ac_abs_builddir&;t t
31070 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31071 s&@INSTALL@&$ac_INSTALL&;t t
31072 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31073 $ac_datarootdir_hack
31074 "
31075 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
31076   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31077 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31078    { (exit 1); exit 1; }; }
31079
31080 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31081   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31082   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31083   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31084 which seems to be undefined.  Please make sure it is defined." >&5
31085 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31086 which seems to be undefined.  Please make sure it is defined." >&2;}
31087
31088   rm -f "$tmp/stdin"
31089   case $ac_file in
31090   -) cat "$tmp/out" && rm -f "$tmp/out";;
31091   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31092   esac \
31093   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31094 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31095    { (exit 1); exit 1; }; }
31096  ;;
31097   :H)
31098   #
31099   # CONFIG_HEADER
31100   #
31101   if test x"$ac_file" != x-; then
31102     {
31103       $as_echo "/* $configure_input  */" \
31104       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31105     } >"$tmp/config.h" \
31106       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31107 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31108    { (exit 1); exit 1; }; }
31109     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31110       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31111 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31112     else
31113       rm -f "$ac_file"
31114       mv "$tmp/config.h" "$ac_file" \
31115         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31116 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31117    { (exit 1); exit 1; }; }
31118     fi
31119   else
31120     $as_echo "/* $configure_input  */" \
31121       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31122       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31123 $as_echo "$as_me: error: could not create -" >&2;}
31124    { (exit 1); exit 1; }; }
31125   fi
31126  ;;
31127   :L)
31128   #
31129   # CONFIG_LINK
31130   #
31131
31132   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31133     :
31134   else
31135     # Prefer the file from the source tree if names are identical.
31136     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31137       ac_source=$srcdir/$ac_source
31138     fi
31139
31140     { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
31141 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31142
31143     if test ! -r "$ac_source"; then
31144       { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
31145 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
31146    { (exit 1); exit 1; }; }
31147     fi
31148     rm -f "$ac_file"
31149
31150     # Try a relative symlink, then a hard link, then a copy.
31151     case $srcdir in
31152     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31153         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31154     esac
31155     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31156       ln "$ac_source" "$ac_file" 2>/dev/null ||
31157       cp -p "$ac_source" "$ac_file" ||
31158       { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
31159 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
31160    { (exit 1); exit 1; }; }
31161   fi
31162  ;;
31163   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31164 $as_echo "$as_me: executing $ac_file commands" >&6;}
31165  ;;
31166   esac
31167
31168
31169   case $ac_file$ac_mode in
31170     "check_win32_symlinks":C)
31171 # Links sometimes fail undetected on Mingw -
31172 # so here we detect it and warn the user
31173 for FILE in $CONFIG_LINKS
31174  do
31175         # test -e works for symlinks in the MinGW console
31176         test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
31177 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
31178  done
31179  ;;
31180     "src/include/pg_config.h":H)
31181 # Update timestamp for pg_config.h (see Makefile.global)
31182 echo >src/include/stamp-h
31183  ;;
31184     "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
31185
31186   esac
31187 done # for ac_tag
31188
31189
31190 { (exit 0); exit 0; }
31191 _ACEOF
31192 chmod +x $CONFIG_STATUS
31193 ac_clean_files=$ac_clean_files_save
31194
31195 test $ac_write_fail = 0 ||
31196   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
31197 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
31198    { (exit 1); exit 1; }; }
31199
31200
31201 # configure is writing to config.log, and then calls config.status.
31202 # config.status does its own redirection, appending to config.log.
31203 # Unfortunately, on DOS this fails, as config.log is still kept open
31204 # by configure, so config.status won't be able to write to it; its
31205 # output is simply discarded.  So we exec the FD to /dev/null,
31206 # effectively closing config.log, so it can be properly (re)opened and
31207 # appended to by config.status.  When coming back to configure, we
31208 # need to make the FD available again.
31209 if test "$no_create" != yes; then
31210   ac_cs_success=:
31211   ac_config_status_args=
31212   test "$silent" = yes &&
31213     ac_config_status_args="$ac_config_status_args --quiet"
31214   exec 5>/dev/null
31215   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31216   exec 5>>config.log
31217   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31218   # would make configure fail if this is the last instruction.
31219   $ac_cs_success || { (exit 1); exit 1; }
31220 fi
31221 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31222   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31223 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31224 fi
31225