]> granicus.if.org Git - postgresql/blob - configure
Update copyrights for 2013
[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-2013, 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 default_port
752 WANTED_LANGUAGES
753 enable_nls
754 PORTNAME
755 host_os
756 host_vendor
757 host_cpu
758 host
759 build_os
760 build_vendor
761 build_cpu
762 build
763 PG_MAJORVERSION
764 configure_args
765 target_alias
766 host_alias
767 build_alias
768 LIBS
769 ECHO_T
770 ECHO_N
771 ECHO_C
772 DEFS
773 mandir
774 localedir
775 libdir
776 psdir
777 pdfdir
778 dvidir
779 htmldir
780 infodir
781 docdir
782 oldincludedir
783 includedir
784 localstatedir
785 sharedstatedir
786 sysconfdir
787 datadir
788 datarootdir
789 libexecdir
790 sbindir
791 bindir
792 program_transform_name
793 prefix
794 exec_prefix
795 PACKAGE_BUGREPORT
796 PACKAGE_STRING
797 PACKAGE_VERSION
798 PACKAGE_TARNAME
799 PACKAGE_NAME
800 PATH_SEPARATOR
801 SHELL'
802 ac_subst_files=''
803 ac_user_opts='
804 enable_option_checking
805 with_template
806 with_includes
807 with_libraries
808 with_libs
809 enable_integer_datetimes
810 enable_nls
811 with_pgport
812 enable_rpath
813 enable_spinlocks
814 enable_debug
815 enable_profiling
816 enable_coverage
817 enable_dtrace
818 with_blocksize
819 with_segsize
820 with_wal_blocksize
821 with_wal_segsize
822 with_CC
823 enable_depend
824 enable_cassert
825 enable_thread_safety
826 with_tcl
827 with_tclconfig
828 with_perl
829 with_python
830 with_gssapi
831 with_krb5
832 with_krb_srvnam
833 with_pam
834 with_ldap
835 with_bonjour
836 with_openssl
837 with_selinux
838 with_readline
839 with_libedit_preferred
840 with_ossp_uuid
841 with_libxml
842 with_libxslt
843 with_system_tzdata
844 with_zlib
845 with_gnu_ld
846 enable_largefile
847 enable_float4_byval
848 enable_float8_byval
849 '
850       ac_precious_vars='build_alias
851 host_alias
852 target_alias
853 CC
854 CFLAGS
855 LDFLAGS
856 LIBS
857 CPPFLAGS
858 CPP
859 LDFLAGS_EX
860 LDFLAGS_SL
861 DOCBOOKSTYLE'
862
863
864 # Initialize some variables set by options.
865 ac_init_help=
866 ac_init_version=false
867 ac_unrecognized_opts=
868 ac_unrecognized_sep=
869 # The variables have the same names as the options, with
870 # dashes changed to underlines.
871 cache_file=/dev/null
872 exec_prefix=NONE
873 no_create=
874 no_recursion=
875 prefix=NONE
876 program_prefix=NONE
877 program_suffix=NONE
878 program_transform_name=s,x,x,
879 silent=
880 site=
881 srcdir=
882 verbose=
883 x_includes=NONE
884 x_libraries=NONE
885
886 # Installation directory options.
887 # These are left unexpanded so users can "make install exec_prefix=/foo"
888 # and all the variables that are supposed to be based on exec_prefix
889 # by default will actually change.
890 # Use braces instead of parens because sh, perl, etc. also accept them.
891 # (The list follows the same order as the GNU Coding Standards.)
892 bindir='${exec_prefix}/bin'
893 sbindir='${exec_prefix}/sbin'
894 libexecdir='${exec_prefix}/libexec'
895 datarootdir='${prefix}/share'
896 datadir='${datarootdir}'
897 sysconfdir='${prefix}/etc'
898 sharedstatedir='${prefix}/com'
899 localstatedir='${prefix}/var'
900 includedir='${prefix}/include'
901 oldincludedir='/usr/include'
902 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
903 infodir='${datarootdir}/info'
904 htmldir='${docdir}'
905 dvidir='${docdir}'
906 pdfdir='${docdir}'
907 psdir='${docdir}'
908 libdir='${exec_prefix}/lib'
909 localedir='${datarootdir}/locale'
910 mandir='${datarootdir}/man'
911
912 ac_prev=
913 ac_dashdash=
914 for ac_option
915 do
916   # If the previous option needs an argument, assign it.
917   if test -n "$ac_prev"; then
918     eval $ac_prev=\$ac_option
919     ac_prev=
920     continue
921   fi
922
923   case $ac_option in
924   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925   *)    ac_optarg=yes ;;
926   esac
927
928   # Accept the important Cygnus configure options, so we can diagnose typos.
929
930   case $ac_dashdash$ac_option in
931   --)
932     ac_dashdash=yes ;;
933
934   -bindir | --bindir | --bindi | --bind | --bin | --bi)
935     ac_prev=bindir ;;
936   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
937     bindir=$ac_optarg ;;
938
939   -build | --build | --buil | --bui | --bu)
940     ac_prev=build_alias ;;
941   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
942     build_alias=$ac_optarg ;;
943
944   -cache-file | --cache-file | --cache-fil | --cache-fi \
945   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
946     ac_prev=cache_file ;;
947   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
948   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
949     cache_file=$ac_optarg ;;
950
951   --config-cache | -C)
952     cache_file=config.cache ;;
953
954   -datadir | --datadir | --datadi | --datad)
955     ac_prev=datadir ;;
956   -datadir=* | --datadir=* | --datadi=* | --datad=*)
957     datadir=$ac_optarg ;;
958
959   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
960   | --dataroo | --dataro | --datar)
961     ac_prev=datarootdir ;;
962   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
963   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
964     datarootdir=$ac_optarg ;;
965
966   -disable-* | --disable-*)
967     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
968     # Reject names that are not valid shell variable names.
969     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
971    { (exit 1); exit 1; }; }
972     ac_useropt_orig=$ac_useropt
973     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974     case $ac_user_opts in
975       *"
976 "enable_$ac_useropt"
977 "*) ;;
978       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979          ac_unrecognized_sep=', ';;
980     esac
981     eval enable_$ac_useropt=no ;;
982
983   -docdir | --docdir | --docdi | --doc | --do)
984     ac_prev=docdir ;;
985   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986     docdir=$ac_optarg ;;
987
988   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989     ac_prev=dvidir ;;
990   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991     dvidir=$ac_optarg ;;
992
993   -enable-* | --enable-*)
994     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995     # Reject names that are not valid shell variable names.
996     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
998    { (exit 1); exit 1; }; }
999     ac_useropt_orig=$ac_useropt
1000     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1001     case $ac_user_opts in
1002       *"
1003 "enable_$ac_useropt"
1004 "*) ;;
1005       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1006          ac_unrecognized_sep=', ';;
1007     esac
1008     eval enable_$ac_useropt=\$ac_optarg ;;
1009
1010   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1011   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1012   | --exec | --exe | --ex)
1013     ac_prev=exec_prefix ;;
1014   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1015   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1016   | --exec=* | --exe=* | --ex=*)
1017     exec_prefix=$ac_optarg ;;
1018
1019   -gas | --gas | --ga | --g)
1020     # Obsolete; use --with-gas.
1021     with_gas=yes ;;
1022
1023   -help | --help | --hel | --he | -h)
1024     ac_init_help=long ;;
1025   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1026     ac_init_help=recursive ;;
1027   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1028     ac_init_help=short ;;
1029
1030   -host | --host | --hos | --ho)
1031     ac_prev=host_alias ;;
1032   -host=* | --host=* | --hos=* | --ho=*)
1033     host_alias=$ac_optarg ;;
1034
1035   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1036     ac_prev=htmldir ;;
1037   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1038   | --ht=*)
1039     htmldir=$ac_optarg ;;
1040
1041   -includedir | --includedir | --includedi | --included | --include \
1042   | --includ | --inclu | --incl | --inc)
1043     ac_prev=includedir ;;
1044   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1045   | --includ=* | --inclu=* | --incl=* | --inc=*)
1046     includedir=$ac_optarg ;;
1047
1048   -infodir | --infodir | --infodi | --infod | --info | --inf)
1049     ac_prev=infodir ;;
1050   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1051     infodir=$ac_optarg ;;
1052
1053   -libdir | --libdir | --libdi | --libd)
1054     ac_prev=libdir ;;
1055   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1056     libdir=$ac_optarg ;;
1057
1058   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1059   | --libexe | --libex | --libe)
1060     ac_prev=libexecdir ;;
1061   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1062   | --libexe=* | --libex=* | --libe=*)
1063     libexecdir=$ac_optarg ;;
1064
1065   -localedir | --localedir | --localedi | --localed | --locale)
1066     ac_prev=localedir ;;
1067   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1068     localedir=$ac_optarg ;;
1069
1070   -localstatedir | --localstatedir | --localstatedi | --localstated \
1071   | --localstate | --localstat | --localsta | --localst | --locals)
1072     ac_prev=localstatedir ;;
1073   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1074   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1075     localstatedir=$ac_optarg ;;
1076
1077   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1078     ac_prev=mandir ;;
1079   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1080     mandir=$ac_optarg ;;
1081
1082   -nfp | --nfp | --nf)
1083     # Obsolete; use --without-fp.
1084     with_fp=no ;;
1085
1086   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1087   | --no-cr | --no-c | -n)
1088     no_create=yes ;;
1089
1090   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1091   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1092     no_recursion=yes ;;
1093
1094   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1095   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1096   | --oldin | --oldi | --old | --ol | --o)
1097     ac_prev=oldincludedir ;;
1098   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1099   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1100   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1101     oldincludedir=$ac_optarg ;;
1102
1103   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1104     ac_prev=prefix ;;
1105   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1106     prefix=$ac_optarg ;;
1107
1108   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1109   | --program-pre | --program-pr | --program-p)
1110     ac_prev=program_prefix ;;
1111   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1112   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1113     program_prefix=$ac_optarg ;;
1114
1115   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1116   | --program-suf | --program-su | --program-s)
1117     ac_prev=program_suffix ;;
1118   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1119   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1120     program_suffix=$ac_optarg ;;
1121
1122   -program-transform-name | --program-transform-name \
1123   | --program-transform-nam | --program-transform-na \
1124   | --program-transform-n | --program-transform- \
1125   | --program-transform | --program-transfor \
1126   | --program-transfo | --program-transf \
1127   | --program-trans | --program-tran \
1128   | --progr-tra | --program-tr | --program-t)
1129     ac_prev=program_transform_name ;;
1130   -program-transform-name=* | --program-transform-name=* \
1131   | --program-transform-nam=* | --program-transform-na=* \
1132   | --program-transform-n=* | --program-transform-=* \
1133   | --program-transform=* | --program-transfor=* \
1134   | --program-transfo=* | --program-transf=* \
1135   | --program-trans=* | --program-tran=* \
1136   | --progr-tra=* | --program-tr=* | --program-t=*)
1137     program_transform_name=$ac_optarg ;;
1138
1139   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1140     ac_prev=pdfdir ;;
1141   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1142     pdfdir=$ac_optarg ;;
1143
1144   -psdir | --psdir | --psdi | --psd | --ps)
1145     ac_prev=psdir ;;
1146   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1147     psdir=$ac_optarg ;;
1148
1149   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1150   | -silent | --silent | --silen | --sile | --sil)
1151     silent=yes ;;
1152
1153   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1154     ac_prev=sbindir ;;
1155   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1156   | --sbi=* | --sb=*)
1157     sbindir=$ac_optarg ;;
1158
1159   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1160   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1161   | --sharedst | --shareds | --shared | --share | --shar \
1162   | --sha | --sh)
1163     ac_prev=sharedstatedir ;;
1164   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1165   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1166   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1167   | --sha=* | --sh=*)
1168     sharedstatedir=$ac_optarg ;;
1169
1170   -site | --site | --sit)
1171     ac_prev=site ;;
1172   -site=* | --site=* | --sit=*)
1173     site=$ac_optarg ;;
1174
1175   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1176     ac_prev=srcdir ;;
1177   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1178     srcdir=$ac_optarg ;;
1179
1180   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1181   | --syscon | --sysco | --sysc | --sys | --sy)
1182     ac_prev=sysconfdir ;;
1183   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1184   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1185     sysconfdir=$ac_optarg ;;
1186
1187   -target | --target | --targe | --targ | --tar | --ta | --t)
1188     ac_prev=target_alias ;;
1189   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1190     target_alias=$ac_optarg ;;
1191
1192   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1193     verbose=yes ;;
1194
1195   -version | --version | --versio | --versi | --vers | -V)
1196     ac_init_version=: ;;
1197
1198   -with-* | --with-*)
1199     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1200     # Reject names that are not valid shell variable names.
1201     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1203    { (exit 1); exit 1; }; }
1204     ac_useropt_orig=$ac_useropt
1205     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206     case $ac_user_opts in
1207       *"
1208 "with_$ac_useropt"
1209 "*) ;;
1210       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1211          ac_unrecognized_sep=', ';;
1212     esac
1213     eval with_$ac_useropt=\$ac_optarg ;;
1214
1215   -without-* | --without-*)
1216     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1217     # Reject names that are not valid shell variable names.
1218     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1220    { (exit 1); exit 1; }; }
1221     ac_useropt_orig=$ac_useropt
1222     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223     case $ac_user_opts in
1224       *"
1225 "with_$ac_useropt"
1226 "*) ;;
1227       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1228          ac_unrecognized_sep=', ';;
1229     esac
1230     eval with_$ac_useropt=no ;;
1231
1232   --x)
1233     # Obsolete; use --with-x.
1234     with_x=yes ;;
1235
1236   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1237   | --x-incl | --x-inc | --x-in | --x-i)
1238     ac_prev=x_includes ;;
1239   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1240   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1241     x_includes=$ac_optarg ;;
1242
1243   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1244   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1245     ac_prev=x_libraries ;;
1246   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1247   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1248     x_libraries=$ac_optarg ;;
1249
1250   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1251 Try \`$0 --help' for more information." >&2
1252    { (exit 1); exit 1; }; }
1253     ;;
1254
1255   *=*)
1256     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1257     # Reject names that are not valid shell variable names.
1258     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1259       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1260    { (exit 1); exit 1; }; }
1261     eval $ac_envvar=\$ac_optarg
1262     export $ac_envvar ;;
1263
1264   *)
1265     # FIXME: should be removed in autoconf 3.0.
1266     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1267     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1269     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1270     ;;
1271
1272   esac
1273 done
1274
1275 if test -n "$ac_prev"; then
1276   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1277   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1278    { (exit 1); exit 1; }; }
1279 fi
1280
1281 if test -n "$ac_unrecognized_opts"; then
1282   case $enable_option_checking in
1283     no) ;;
1284     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1285    { (exit 1); exit 1; }; } ;;
1286     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1287   esac
1288 fi
1289
1290 # Check all directory arguments for consistency.
1291 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1292                 datadir sysconfdir sharedstatedir localstatedir includedir \
1293                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1294                 libdir localedir mandir
1295 do
1296   eval ac_val=\$$ac_var
1297   # Remove trailing slashes.
1298   case $ac_val in
1299     */ )
1300       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1301       eval $ac_var=\$ac_val;;
1302   esac
1303   # Be sure to have absolute directory names.
1304   case $ac_val in
1305     [\\/$]* | ?:[\\/]* )  continue;;
1306     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1307   esac
1308   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1309    { (exit 1); exit 1; }; }
1310 done
1311
1312 # There might be people who depend on the old broken behavior: `$host'
1313 # used to hold the argument of --host etc.
1314 # FIXME: To remove some day.
1315 build=$build_alias
1316 host=$host_alias
1317 target=$target_alias
1318
1319 # FIXME: To remove some day.
1320 if test "x$host_alias" != x; then
1321   if test "x$build_alias" = x; then
1322     cross_compiling=maybe
1323     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1324     If a cross compiler is detected then cross compile mode will be used." >&2
1325   elif test "x$build_alias" != "x$host_alias"; then
1326     cross_compiling=yes
1327   fi
1328 fi
1329
1330 ac_tool_prefix=
1331 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332
1333 test "$silent" = yes && exec 6>/dev/null
1334
1335
1336 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1337 ac_ls_di=`ls -di .` &&
1338 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1339   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1340    { (exit 1); exit 1; }; }
1341 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1342   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1343    { (exit 1); exit 1; }; }
1344
1345
1346 # Find the source files, if location was not specified.
1347 if test -z "$srcdir"; then
1348   ac_srcdir_defaulted=yes
1349   # Try the directory containing this script, then the parent directory.
1350   ac_confdir=`$as_dirname -- "$as_myself" ||
1351 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352          X"$as_myself" : 'X\(//\)[^/]' \| \
1353          X"$as_myself" : 'X\(//\)$' \| \
1354          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1355 $as_echo X"$as_myself" |
1356     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357             s//\1/
1358             q
1359           }
1360           /^X\(\/\/\)[^/].*/{
1361             s//\1/
1362             q
1363           }
1364           /^X\(\/\/\)$/{
1365             s//\1/
1366             q
1367           }
1368           /^X\(\/\).*/{
1369             s//\1/
1370             q
1371           }
1372           s/.*/./; q'`
1373   srcdir=$ac_confdir
1374   if test ! -r "$srcdir/$ac_unique_file"; then
1375     srcdir=..
1376   fi
1377 else
1378   ac_srcdir_defaulted=no
1379 fi
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1382   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1383    { (exit 1); exit 1; }; }
1384 fi
1385 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 ac_abs_confdir=`(
1387         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1388    { (exit 1); exit 1; }; }
1389         pwd)`
1390 # When building in place, set srcdir=.
1391 if test "$ac_abs_confdir" = "$ac_pwd"; then
1392   srcdir=.
1393 fi
1394 # Remove unnecessary trailing slashes from srcdir.
1395 # Double slashes in file names in object file debugging info
1396 # mess up M-x gdb in Emacs.
1397 case $srcdir in
1398 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399 esac
1400 for ac_var in $ac_precious_vars; do
1401   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1402   eval ac_env_${ac_var}_value=\$${ac_var}
1403   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1404   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1405 done
1406
1407 #
1408 # Report the --help message.
1409 #
1410 if test "$ac_init_help" = "long"; then
1411   # Omit some internal or obsolete options to make the list less imposing.
1412   # This message is too long to be a string in the A/UX 3.1 sh.
1413   cat <<_ACEOF
1414 \`configure' configures PostgreSQL 9.3devel to adapt to many kinds of systems.
1415
1416 Usage: $0 [OPTION]... [VAR=VALUE]...
1417
1418 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1419 VAR=VALUE.  See below for descriptions of some of the useful variables.
1420
1421 Defaults for the options are specified in brackets.
1422
1423 Configuration:
1424   -h, --help              display this help and exit
1425       --help=short        display options specific to this package
1426       --help=recursive    display the short help of all the included packages
1427   -V, --version           display version information and exit
1428   -q, --quiet, --silent   do not print \`checking...' messages
1429       --cache-file=FILE   cache test results in FILE [disabled]
1430   -C, --config-cache      alias for \`--cache-file=config.cache'
1431   -n, --no-create         do not create output files
1432       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1433
1434 Installation directories:
1435   --prefix=PREFIX         install architecture-independent files in PREFIX
1436                           [$ac_default_prefix]
1437   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1438                           [PREFIX]
1439
1440 By default, \`make install' will install all the files in
1441 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1442 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1443 for instance \`--prefix=\$HOME'.
1444
1445 For better control, use the options below.
1446
1447 Fine tuning of the installation directories:
1448   --bindir=DIR            user executables [EPREFIX/bin]
1449   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1450   --libexecdir=DIR        program executables [EPREFIX/libexec]
1451   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1452   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1453   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1454   --libdir=DIR            object code libraries [EPREFIX/lib]
1455   --includedir=DIR        C header files [PREFIX/include]
1456   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1457   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1458   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1459   --infodir=DIR           info documentation [DATAROOTDIR/info]
1460   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1461   --mandir=DIR            man documentation [DATAROOTDIR/man]
1462   --docdir=DIR            documentation root [DATAROOTDIR/doc/postgresql]
1463   --htmldir=DIR           html documentation [DOCDIR]
1464   --dvidir=DIR            dvi documentation [DOCDIR]
1465   --pdfdir=DIR            pdf documentation [DOCDIR]
1466   --psdir=DIR             ps documentation [DOCDIR]
1467 _ACEOF
1468
1469   cat <<\_ACEOF
1470
1471 System types:
1472   --build=BUILD     configure for building on BUILD [guessed]
1473   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1474 _ACEOF
1475 fi
1476
1477 if test -n "$ac_init_help"; then
1478   case $ac_init_help in
1479      short | recursive ) echo "Configuration of PostgreSQL 9.3devel:";;
1480    esac
1481   cat <<\_ACEOF
1482
1483 Optional Features:
1484   --disable-option-checking  ignore unrecognized --enable/--with options
1485   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1486   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1487   --disable-integer-datetimes
1488                           disable 64-bit integer date/time support
1489   --enable-nls[=LANGUAGES]
1490                           enable Native Language Support
1491   --disable-rpath         do not embed shared library search path in
1492                           executables
1493   --disable-spinlocks     do not use spinlocks
1494   --enable-debug          build with debugging symbols (-g)
1495   --enable-profiling      build with profiling enabled
1496   --enable-coverage       build with coverage testing instrumentation
1497   --enable-dtrace         build with DTrace support
1498   --enable-depend         turn on automatic dependency tracking
1499   --enable-cassert        enable assertion checks (for debugging)
1500   --disable-thread-safety disable thread-safety in client libraries
1501   --disable-largefile     omit support for large files
1502   --disable-float4-byval  disable float4 passed by value
1503   --disable-float8-byval  disable float8 passed by value
1504
1505 Optional Packages:
1506   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1507   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1508   --with-template=NAME    override operating system template
1509   --with-includes=DIRS    look for additional header files in DIRS
1510   --with-libraries=DIRS   look for additional libraries in DIRS
1511   --with-libs=DIRS        alternative spelling of --with-libraries
1512   --with-pgport=PORTNUM   set default port number [5432]
1513   --with-blocksize=BLOCKSIZE
1514                           set table block size in kB [8]
1515   --with-segsize=SEGSIZE  set table segment size in GB [1]
1516   --with-wal-blocksize=BLOCKSIZE
1517                           set WAL block size in kB [8]
1518   --with-wal-segsize=SEGSIZE
1519                           set WAL segment size in MB [16]
1520   --with-CC=CMD           set compiler (deprecated)
1521   --with-tcl              build Tcl modules (PL/Tcl)
1522   --with-tclconfig=DIR    tclConfig.sh is in DIR
1523   --with-perl             build Perl modules (PL/Perl)
1524   --with-python           build Python modules (PL/Python)
1525   --with-gssapi           build with GSSAPI support
1526   --with-krb5             build with Kerberos 5 support
1527   --with-krb-srvnam=NAME  default service principal name in Kerberos
1528                           [postgres]
1529   --with-pam              build with PAM support
1530   --with-ldap             build with LDAP support
1531   --with-bonjour          build with Bonjour support
1532   --with-openssl          build with OpenSSL support
1533   --with-selinux          build with SELinux support
1534   --without-readline      do not use GNU Readline nor BSD Libedit for editing
1535   --with-libedit-preferred
1536                           prefer BSD Libedit over GNU Readline
1537   --with-ossp-uuid        build contrib/uuid-ossp, requires OSSP UUID library
1538   --with-libxml           build with XML support
1539   --with-libxslt          use XSLT support when building contrib/xml2
1540   --with-system-tzdata=DIR
1541                           use system time zone data in DIR
1542   --without-zlib          do not use Zlib
1543   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1544
1545 Some influential environment variables:
1546   CC          C compiler command
1547   CFLAGS      C compiler flags
1548   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1549               nonstandard directory <lib dir>
1550   LIBS        libraries to pass to the linker, e.g. -l<library>
1551   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1552               you have headers in a nonstandard directory <include dir>
1553   CPP         C preprocessor
1554   LDFLAGS_EX  extra linker flags for linking executables only
1555   LDFLAGS_SL  extra linker flags for linking shared libraries only
1556   DOCBOOKSTYLE
1557               location of DocBook stylesheets
1558
1559 Use these variables to override the choices made by `configure' or to help
1560 it to find libraries and programs with nonstandard names/locations.
1561
1562 Report bugs to <pgsql-bugs@postgresql.org>.
1563 _ACEOF
1564 ac_status=$?
1565 fi
1566
1567 if test "$ac_init_help" = "recursive"; then
1568   # If there are subdirs, report their specific --help.
1569   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1570     test -d "$ac_dir" ||
1571       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1572       continue
1573     ac_builddir=.
1574
1575 case "$ac_dir" in
1576 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1577 *)
1578   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1579   # A ".." for each directory in $ac_dir_suffix.
1580   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1581   case $ac_top_builddir_sub in
1582   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1584   esac ;;
1585 esac
1586 ac_abs_top_builddir=$ac_pwd
1587 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1588 # for backward compatibility:
1589 ac_top_builddir=$ac_top_build_prefix
1590
1591 case $srcdir in
1592   .)  # We are building in place.
1593     ac_srcdir=.
1594     ac_top_srcdir=$ac_top_builddir_sub
1595     ac_abs_top_srcdir=$ac_pwd ;;
1596   [\\/]* | ?:[\\/]* )  # Absolute name.
1597     ac_srcdir=$srcdir$ac_dir_suffix;
1598     ac_top_srcdir=$srcdir
1599     ac_abs_top_srcdir=$srcdir ;;
1600   *) # Relative name.
1601     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1602     ac_top_srcdir=$ac_top_build_prefix$srcdir
1603     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1604 esac
1605 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1606
1607     cd "$ac_dir" || { ac_status=$?; continue; }
1608     # Check for guested configure.
1609     if test -f "$ac_srcdir/configure.gnu"; then
1610       echo &&
1611       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1612     elif test -f "$ac_srcdir/configure"; then
1613       echo &&
1614       $SHELL "$ac_srcdir/configure" --help=recursive
1615     else
1616       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1617     fi || ac_status=$?
1618     cd "$ac_pwd" || { ac_status=$?; break; }
1619   done
1620 fi
1621
1622 test -n "$ac_init_help" && exit $ac_status
1623 if $ac_init_version; then
1624   cat <<\_ACEOF
1625 PostgreSQL configure 9.3devel
1626 generated by GNU Autoconf 2.63
1627
1628 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1629 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1630 This configure script is free software; the Free Software Foundation
1631 gives unlimited permission to copy, distribute and modify it.
1632
1633 Copyright (c) 1996-2013, PostgreSQL Global Development Group
1634 _ACEOF
1635   exit
1636 fi
1637 cat >config.log <<_ACEOF
1638 This file contains any messages produced by compilers while
1639 running configure, to aid debugging if configure makes a mistake.
1640
1641 It was created by PostgreSQL $as_me 9.3devel, which was
1642 generated by GNU Autoconf 2.63.  Invocation command line was
1643
1644   $ $0 $@
1645
1646 _ACEOF
1647 exec 5>>config.log
1648 {
1649 cat <<_ASUNAME
1650 ## --------- ##
1651 ## Platform. ##
1652 ## --------- ##
1653
1654 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1655 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1656 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1657 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1658 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1659
1660 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1661 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1662
1663 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1664 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1665 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1666 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1667 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1668 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1669 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1670
1671 _ASUNAME
1672
1673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674 for as_dir in $PATH
1675 do
1676   IFS=$as_save_IFS
1677   test -z "$as_dir" && as_dir=.
1678   $as_echo "PATH: $as_dir"
1679 done
1680 IFS=$as_save_IFS
1681
1682 } >&5
1683
1684 cat >&5 <<_ACEOF
1685
1686
1687 ## ----------- ##
1688 ## Core tests. ##
1689 ## ----------- ##
1690
1691 _ACEOF
1692
1693
1694 # Keep a trace of the command line.
1695 # Strip out --no-create and --no-recursion so they do not pile up.
1696 # Strip out --silent because we don't want to record it for future runs.
1697 # Also quote any args containing shell meta-characters.
1698 # Make two passes to allow for proper duplicate-argument suppression.
1699 ac_configure_args=
1700 ac_configure_args0=
1701 ac_configure_args1=
1702 ac_must_keep_next=false
1703 for ac_pass in 1 2
1704 do
1705   for ac_arg
1706   do
1707     case $ac_arg in
1708     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1709     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1710     | -silent | --silent | --silen | --sile | --sil)
1711       continue ;;
1712     *\'*)
1713       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1714     esac
1715     case $ac_pass in
1716     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1717     2)
1718       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1719       if test $ac_must_keep_next = true; then
1720         ac_must_keep_next=false # Got value, back to normal.
1721       else
1722         case $ac_arg in
1723           *=* | --config-cache | -C | -disable-* | --disable-* \
1724           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1725           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1726           | -with-* | --with-* | -without-* | --without-* | --x)
1727             case "$ac_configure_args0 " in
1728               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1729             esac
1730             ;;
1731           -* ) ac_must_keep_next=true ;;
1732         esac
1733       fi
1734       ac_configure_args="$ac_configure_args '$ac_arg'"
1735       ;;
1736     esac
1737   done
1738 done
1739 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1740 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1741
1742 # When interrupted or exit'd, cleanup temporary files, and complete
1743 # config.log.  We remove comments because anyway the quotes in there
1744 # would cause problems or look ugly.
1745 # WARNING: Use '\'' to represent an apostrophe within the trap.
1746 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1747 trap 'exit_status=$?
1748   # Save into config.log some information that might help in debugging.
1749   {
1750     echo
1751
1752     cat <<\_ASBOX
1753 ## ---------------- ##
1754 ## Cache variables. ##
1755 ## ---------------- ##
1756 _ASBOX
1757     echo
1758     # The following way of writing the cache mishandles newlines in values,
1759 (
1760   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1761     eval ac_val=\$$ac_var
1762     case $ac_val in #(
1763     *${as_nl}*)
1764       case $ac_var in #(
1765       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1766 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1767       esac
1768       case $ac_var in #(
1769       _ | IFS | as_nl) ;; #(
1770       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1771       *) $as_unset $ac_var ;;
1772       esac ;;
1773     esac
1774   done
1775   (set) 2>&1 |
1776     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1777     *${as_nl}ac_space=\ *)
1778       sed -n \
1779         "s/'\''/'\''\\\\'\'''\''/g;
1780           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1781       ;; #(
1782     *)
1783       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1784       ;;
1785     esac |
1786     sort
1787 )
1788     echo
1789
1790     cat <<\_ASBOX
1791 ## ----------------- ##
1792 ## Output variables. ##
1793 ## ----------------- ##
1794 _ASBOX
1795     echo
1796     for ac_var in $ac_subst_vars
1797     do
1798       eval ac_val=\$$ac_var
1799       case $ac_val in
1800       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1801       esac
1802       $as_echo "$ac_var='\''$ac_val'\''"
1803     done | sort
1804     echo
1805
1806     if test -n "$ac_subst_files"; then
1807       cat <<\_ASBOX
1808 ## ------------------- ##
1809 ## File substitutions. ##
1810 ## ------------------- ##
1811 _ASBOX
1812       echo
1813       for ac_var in $ac_subst_files
1814       do
1815         eval ac_val=\$$ac_var
1816         case $ac_val in
1817         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1818         esac
1819         $as_echo "$ac_var='\''$ac_val'\''"
1820       done | sort
1821       echo
1822     fi
1823
1824     if test -s confdefs.h; then
1825       cat <<\_ASBOX
1826 ## ----------- ##
1827 ## confdefs.h. ##
1828 ## ----------- ##
1829 _ASBOX
1830       echo
1831       cat confdefs.h
1832       echo
1833     fi
1834     test "$ac_signal" != 0 &&
1835       $as_echo "$as_me: caught signal $ac_signal"
1836     $as_echo "$as_me: exit $exit_status"
1837   } >&5
1838   rm -f core *.core core.conftest.* &&
1839     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1840     exit $exit_status
1841 ' 0
1842 for ac_signal in 1 2 13 15; do
1843   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1844 done
1845 ac_signal=0
1846
1847 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1848 rm -f -r conftest* confdefs.h
1849
1850 # Predefined preprocessor variables.
1851
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_NAME "$PACKAGE_NAME"
1854 _ACEOF
1855
1856
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1859 _ACEOF
1860
1861
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1864 _ACEOF
1865
1866
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_STRING "$PACKAGE_STRING"
1869 _ACEOF
1870
1871
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1874 _ACEOF
1875
1876
1877 # Let the site file select an alternate cache file if it wants to.
1878 # Prefer an explicitly selected file to automatically selected ones.
1879 ac_site_file1=NONE
1880 ac_site_file2=NONE
1881 if test -n "$CONFIG_SITE"; then
1882   ac_site_file1=$CONFIG_SITE
1883 elif test "x$prefix" != xNONE; then
1884   ac_site_file1=$prefix/share/config.site
1885   ac_site_file2=$prefix/etc/config.site
1886 else
1887   ac_site_file1=$ac_default_prefix/share/config.site
1888   ac_site_file2=$ac_default_prefix/etc/config.site
1889 fi
1890 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1891 do
1892   test "x$ac_site_file" = xNONE && continue
1893   if test -r "$ac_site_file"; then
1894     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1895 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1896     sed 's/^/| /' "$ac_site_file" >&5
1897     . "$ac_site_file"
1898   fi
1899 done
1900
1901 if test -r "$cache_file"; then
1902   # Some versions of bash will fail to source /dev/null (special
1903   # files actually), so we avoid doing that.
1904   if test -f "$cache_file"; then
1905     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1906 $as_echo "$as_me: loading cache $cache_file" >&6;}
1907     case $cache_file in
1908       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1909       *)                      . "./$cache_file";;
1910     esac
1911   fi
1912 else
1913   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1914 $as_echo "$as_me: creating cache $cache_file" >&6;}
1915   >$cache_file
1916 fi
1917
1918 # Check that the precious variables saved in the cache have kept the same
1919 # value.
1920 ac_cache_corrupted=false
1921 for ac_var in $ac_precious_vars; do
1922   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1923   eval ac_new_set=\$ac_env_${ac_var}_set
1924   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1925   eval ac_new_val=\$ac_env_${ac_var}_value
1926   case $ac_old_set,$ac_new_set in
1927     set,)
1928       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1929 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1930       ac_cache_corrupted=: ;;
1931     ,set)
1932       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1933 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1934       ac_cache_corrupted=: ;;
1935     ,);;
1936     *)
1937       if test "x$ac_old_val" != "x$ac_new_val"; then
1938         # differences in whitespace do not lead to failure.
1939         ac_old_val_w=`echo x $ac_old_val`
1940         ac_new_val_w=`echo x $ac_new_val`
1941         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1942           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1943 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1944           ac_cache_corrupted=:
1945         else
1946           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1947 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1948           eval $ac_var=\$ac_old_val
1949         fi
1950         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1951 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1952         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1953 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1954       fi;;
1955   esac
1956   # Pass precious variables to config.status.
1957   if test "$ac_new_set" = set; then
1958     case $ac_new_val in
1959     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1960     *) ac_arg=$ac_var=$ac_new_val ;;
1961     esac
1962     case " $ac_configure_args " in
1963       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1964       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1965     esac
1966   fi
1967 done
1968 if $ac_cache_corrupted; then
1969   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1971   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1972 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1973   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1974 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1975    { (exit 1); exit 1; }; }
1976 fi
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002 ac_ext=c
2003 ac_cpp='$CPP $CPPFLAGS'
2004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2007
2008
2009
2010
2011
2012
2013 ac_aux_dir=
2014 for ac_dir in config "$srcdir"/config; do
2015   if test -f "$ac_dir/install-sh"; then
2016     ac_aux_dir=$ac_dir
2017     ac_install_sh="$ac_aux_dir/install-sh -c"
2018     break
2019   elif test -f "$ac_dir/install.sh"; then
2020     ac_aux_dir=$ac_dir
2021     ac_install_sh="$ac_aux_dir/install.sh -c"
2022     break
2023   elif test -f "$ac_dir/shtool"; then
2024     ac_aux_dir=$ac_dir
2025     ac_install_sh="$ac_aux_dir/shtool install -c"
2026     break
2027   fi
2028 done
2029 if test -z "$ac_aux_dir"; then
2030   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2031 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2032    { (exit 1); exit 1; }; }
2033 fi
2034
2035 # These three variables are undocumented and unsupported,
2036 # and are intended to be withdrawn in a future Autoconf release.
2037 # They can cause serious problems if a builder's source tree is in a directory
2038 # whose full name contains unusual characters.
2039 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2040 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2041 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2042
2043
2044
2045 configure_args=$ac_configure_args
2046
2047
2048
2049 cat >>confdefs.h <<_ACEOF
2050 #define PG_VERSION "$PACKAGE_VERSION"
2051 _ACEOF
2052
2053 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2054
2055
2056 cat >>confdefs.h <<_ACEOF
2057 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2058 _ACEOF
2059
2060
2061 # Make sure we can run config.sub.
2062 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2063   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2064 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2065    { (exit 1); exit 1; }; }
2066
2067 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2068 $as_echo_n "checking build system type... " >&6; }
2069 if test "${ac_cv_build+set}" = set; then
2070   $as_echo_n "(cached) " >&6
2071 else
2072   ac_build_alias=$build_alias
2073 test "x$ac_build_alias" = x &&
2074   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2075 test "x$ac_build_alias" = x &&
2076   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2077 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2078    { (exit 1); exit 1; }; }
2079 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2080   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2081 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2082    { (exit 1); exit 1; }; }
2083
2084 fi
2085 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2086 $as_echo "$ac_cv_build" >&6; }
2087 case $ac_cv_build in
2088 *-*-*) ;;
2089 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2090 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2091    { (exit 1); exit 1; }; };;
2092 esac
2093 build=$ac_cv_build
2094 ac_save_IFS=$IFS; IFS='-'
2095 set x $ac_cv_build
2096 shift
2097 build_cpu=$1
2098 build_vendor=$2
2099 shift; shift
2100 # Remember, the first character of IFS is used to create $*,
2101 # except with old shells:
2102 build_os=$*
2103 IFS=$ac_save_IFS
2104 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2105
2106
2107 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2108 $as_echo_n "checking host system type... " >&6; }
2109 if test "${ac_cv_host+set}" = set; then
2110   $as_echo_n "(cached) " >&6
2111 else
2112   if test "x$host_alias" = x; then
2113   ac_cv_host=$ac_cv_build
2114 else
2115   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2116     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2117 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2118    { (exit 1); exit 1; }; }
2119 fi
2120
2121 fi
2122 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2123 $as_echo "$ac_cv_host" >&6; }
2124 case $ac_cv_host in
2125 *-*-*) ;;
2126 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2127 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2128    { (exit 1); exit 1; }; };;
2129 esac
2130 host=$ac_cv_host
2131 ac_save_IFS=$IFS; IFS='-'
2132 set x $ac_cv_host
2133 shift
2134 host_cpu=$1
2135 host_vendor=$2
2136 shift; shift
2137 # Remember, the first character of IFS is used to create $*,
2138 # except with old shells:
2139 host_os=$*
2140 IFS=$ac_save_IFS
2141 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2142
2143
2144
2145 template=
2146 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2147 $as_echo_n "checking which template to use... " >&6; }
2148
2149
2150
2151
2152 # Check whether --with-template was given.
2153 if test "${with_template+set}" = set; then
2154   withval=$with_template;
2155   case $withval in
2156     yes)
2157       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2158 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2159    { (exit 1); exit 1; }; }
2160       ;;
2161     no)
2162       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2163 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2164    { (exit 1); exit 1; }; }
2165       ;;
2166     *)
2167
2168   case $withval in
2169     list)   echo; ls "$srcdir/src/template"; exit;;
2170     *)      if test -f "$srcdir/src/template/$with_template" ; then
2171               template=$withval
2172             else
2173               { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2174 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2175    { (exit 1); exit 1; }; }
2176             fi;;
2177   esac
2178
2179       ;;
2180   esac
2181
2182 else
2183
2184 # --with-template not given
2185
2186 case $host_os in
2187      aix*) template=aix ;;
2188   cygwin*) template=cygwin ;;
2189   darwin*) template=darwin ;;
2190 dragonfly*) template=netbsd ;;
2191  freebsd*) template=freebsd ;;
2192     hpux*) template=hpux ;;
2193     irix*) template=irix ;;
2194  linux*|gnu*|k*bsd*-gnu)
2195            template=linux ;;
2196    mingw*) template=win32 ;;
2197   netbsd*) template=netbsd ;;
2198  openbsd*) template=openbsd ;;
2199      osf*) template=osf ;;
2200      sco*) template=sco ;;
2201  solaris*) template=solaris ;;
2202    sysv5*) template=unixware ;;
2203 esac
2204
2205   if test x"$template" = x"" ; then
2206     { { $as_echo "$as_me:$LINENO: error:
2207 *******************************************************************
2208 PostgreSQL has apparently not been ported to your platform yet.
2209 To try a manual configuration, look into the src/template directory
2210 for a similar platform and use the '--with-template=' option.
2211
2212 Please also contact <pgsql-bugs@postgresql.org> to see about
2213 rectifying this.  Include the above 'checking host system type...'
2214 line.
2215 *******************************************************************
2216 " >&5
2217 $as_echo "$as_me: error:
2218 *******************************************************************
2219 PostgreSQL has apparently not been ported to your platform yet.
2220 To try a manual configuration, look into the src/template directory
2221 for a similar platform and use the '--with-template=' option.
2222
2223 Please also contact <pgsql-bugs@postgresql.org> to see about
2224 rectifying this.  Include the above 'checking host system type...'
2225 line.
2226 *******************************************************************
2227 " >&2;}
2228    { (exit 1); exit 1; }; }
2229   fi
2230
2231
2232 fi
2233
2234
2235
2236 { $as_echo "$as_me:$LINENO: result: $template" >&5
2237 $as_echo "$template" >&6; }
2238
2239 PORTNAME=$template
2240
2241
2242 # Initialize default assumption that we do not need separate assembly code
2243 # for TAS (test-and-set).  This can be overridden by the template file
2244 # when it's executed.
2245 need_tas=no
2246 tas_file=dummy.s
2247
2248
2249
2250 ##
2251 ## Command line options
2252 ##
2253
2254 #
2255 # Add non-standard directories to the include path
2256 #
2257
2258
2259
2260 # Check whether --with-includes was given.
2261 if test "${with_includes+set}" = set; then
2262   withval=$with_includes;
2263   case $withval in
2264     yes)
2265       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2266 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2267    { (exit 1); exit 1; }; }
2268       ;;
2269     no)
2270       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2271 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2272    { (exit 1); exit 1; }; }
2273       ;;
2274     *)
2275
2276       ;;
2277   esac
2278
2279 fi
2280
2281
2282
2283
2284 #
2285 # Add non-standard directories to the library search path
2286 #
2287
2288
2289
2290 # Check whether --with-libraries was given.
2291 if test "${with_libraries+set}" = set; then
2292   withval=$with_libraries;
2293   case $withval in
2294     yes)
2295       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2296 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2297    { (exit 1); exit 1; }; }
2298       ;;
2299     no)
2300       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2301 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2302    { (exit 1); exit 1; }; }
2303       ;;
2304     *)
2305       LIBRARY_DIRS=$withval
2306       ;;
2307   esac
2308
2309 fi
2310
2311
2312
2313
2314
2315
2316 # Check whether --with-libs was given.
2317 if test "${with_libs+set}" = set; then
2318   withval=$with_libs;
2319   case $withval in
2320     yes)
2321       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2322 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2323    { (exit 1); exit 1; }; }
2324       ;;
2325     no)
2326       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2327 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2328    { (exit 1); exit 1; }; }
2329       ;;
2330     *)
2331       LIBRARY_DIRS=$withval
2332       ;;
2333   esac
2334
2335 fi
2336
2337
2338
2339
2340 #
2341 # 64-bit integer date/time storage: enabled by default.
2342 #
2343 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2344 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2345
2346
2347 # Check whether --enable-integer-datetimes was given.
2348 if test "${enable_integer_datetimes+set}" = set; then
2349   enableval=$enable_integer_datetimes;
2350   case $enableval in
2351     yes)
2352
2353 cat >>confdefs.h <<\_ACEOF
2354 #define USE_INTEGER_DATETIMES 1
2355 _ACEOF
2356
2357       ;;
2358     no)
2359       :
2360       ;;
2361     *)
2362       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2363 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2364    { (exit 1); exit 1; }; }
2365       ;;
2366   esac
2367
2368 else
2369   enable_integer_datetimes=yes
2370
2371 cat >>confdefs.h <<\_ACEOF
2372 #define USE_INTEGER_DATETIMES 1
2373 _ACEOF
2374
2375 fi
2376
2377
2378 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2379 $as_echo "$enable_integer_datetimes" >&6; }
2380
2381
2382 #
2383 # NLS
2384 #
2385 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2386 $as_echo_n "checking whether NLS is wanted... " >&6; }
2387
2388
2389 # Check whether --enable-nls was given.
2390 if test "${enable_nls+set}" = set; then
2391   enableval=$enable_nls;
2392   case $enableval in
2393     yes)
2394       :
2395       ;;
2396     no)
2397       :
2398       ;;
2399     *)
2400       enable_nls=yes
2401 WANTED_LANGUAGES=$enableval
2402       ;;
2403   esac
2404
2405 else
2406   enable_nls=no
2407 fi
2408
2409
2410
2411 if test "$enable_nls" = yes; then
2412
2413 cat >>confdefs.h <<\_ACEOF
2414 #define ENABLE_NLS 1
2415 _ACEOF
2416
2417 fi
2418
2419 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2420 $as_echo "$enable_nls" >&6; }
2421
2422
2423
2424 #
2425 # Default port number (--with-pgport), default 5432
2426 #
2427 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2428 $as_echo_n "checking for default port number... " >&6; }
2429
2430
2431
2432 # Check whether --with-pgport was given.
2433 if test "${with_pgport+set}" = set; then
2434   withval=$with_pgport;
2435   case $withval in
2436     yes)
2437       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2438 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2439    { (exit 1); exit 1; }; }
2440       ;;
2441     no)
2442       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2443 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2444    { (exit 1); exit 1; }; }
2445       ;;
2446     *)
2447       default_port=$withval
2448       ;;
2449   esac
2450
2451 else
2452   default_port=5432
2453 fi
2454
2455
2456 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2457 $as_echo "$default_port" >&6; }
2458 # Need both of these because some places want an integer and some a string
2459
2460 cat >>confdefs.h <<_ACEOF
2461 #define DEF_PGPORT ${default_port}
2462 _ACEOF
2463
2464
2465 cat >>confdefs.h <<_ACEOF
2466 #define DEF_PGPORT_STR "${default_port}"
2467 _ACEOF
2468
2469
2470
2471 #
2472 # '-rpath'-like feature can be disabled
2473 #
2474
2475
2476 # Check whether --enable-rpath was given.
2477 if test "${enable_rpath+set}" = set; then
2478   enableval=$enable_rpath;
2479   case $enableval in
2480     yes)
2481       :
2482       ;;
2483     no)
2484       :
2485       ;;
2486     *)
2487       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2488 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2489    { (exit 1); exit 1; }; }
2490       ;;
2491   esac
2492
2493 else
2494   enable_rpath=yes
2495
2496 fi
2497
2498
2499
2500
2501 #
2502 # Spinlocks
2503 #
2504
2505
2506 # Check whether --enable-spinlocks was given.
2507 if test "${enable_spinlocks+set}" = set; then
2508   enableval=$enable_spinlocks;
2509   case $enableval in
2510     yes)
2511       :
2512       ;;
2513     no)
2514       :
2515       ;;
2516     *)
2517       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2518 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2519    { (exit 1); exit 1; }; }
2520       ;;
2521   esac
2522
2523 else
2524   enable_spinlocks=yes
2525
2526 fi
2527
2528
2529
2530 #
2531 # --enable-debug adds -g to compiler flags
2532 #
2533
2534
2535 # Check whether --enable-debug was given.
2536 if test "${enable_debug+set}" = set; then
2537   enableval=$enable_debug;
2538   case $enableval in
2539     yes)
2540       :
2541       ;;
2542     no)
2543       :
2544       ;;
2545     *)
2546       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2547 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2548    { (exit 1); exit 1; }; }
2549       ;;
2550   esac
2551
2552 else
2553   enable_debug=no
2554
2555 fi
2556
2557
2558
2559
2560 #
2561 # --enable-profiling enables gcc profiling
2562 #
2563
2564
2565 # Check whether --enable-profiling was given.
2566 if test "${enable_profiling+set}" = set; then
2567   enableval=$enable_profiling;
2568   case $enableval in
2569     yes)
2570       :
2571       ;;
2572     no)
2573       :
2574       ;;
2575     *)
2576       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2577 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2578    { (exit 1); exit 1; }; }
2579       ;;
2580   esac
2581
2582 else
2583   enable_profiling=no
2584
2585 fi
2586
2587
2588
2589 #
2590 # --enable-coverage enables generation of code coverage metrics with gcov
2591 #
2592
2593
2594 # Check whether --enable-coverage was given.
2595 if test "${enable_coverage+set}" = set; then
2596   enableval=$enable_coverage;
2597   case $enableval in
2598     yes)
2599       for ac_prog in gcov
2600 do
2601   # Extract the first word of "$ac_prog", so it can be a program name with args.
2602 set dummy $ac_prog; ac_word=$2
2603 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 $as_echo_n "checking for $ac_word... " >&6; }
2605 if test "${ac_cv_prog_GCOV+set}" = set; then
2606   $as_echo_n "(cached) " >&6
2607 else
2608   if test -n "$GCOV"; then
2609   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2610 else
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH
2613 do
2614   IFS=$as_save_IFS
2615   test -z "$as_dir" && as_dir=.
2616   for ac_exec_ext in '' $ac_executable_extensions; do
2617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2618     ac_cv_prog_GCOV="$ac_prog"
2619     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620     break 2
2621   fi
2622 done
2623 done
2624 IFS=$as_save_IFS
2625
2626 fi
2627 fi
2628 GCOV=$ac_cv_prog_GCOV
2629 if test -n "$GCOV"; then
2630   { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2631 $as_echo "$GCOV" >&6; }
2632 else
2633   { $as_echo "$as_me:$LINENO: result: no" >&5
2634 $as_echo "no" >&6; }
2635 fi
2636
2637
2638   test -n "$GCOV" && break
2639 done
2640
2641 if test -z "$GCOV"; then
2642   { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2643 $as_echo "$as_me: error: gcov not found" >&2;}
2644    { (exit 1); exit 1; }; }
2645 fi
2646 for ac_prog in lcov
2647 do
2648   # Extract the first word of "$ac_prog", so it can be a program name with args.
2649 set dummy $ac_prog; ac_word=$2
2650 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2651 $as_echo_n "checking for $ac_word... " >&6; }
2652 if test "${ac_cv_prog_LCOV+set}" = set; then
2653   $as_echo_n "(cached) " >&6
2654 else
2655   if test -n "$LCOV"; then
2656   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2657 else
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659 for as_dir in $PATH
2660 do
2661   IFS=$as_save_IFS
2662   test -z "$as_dir" && as_dir=.
2663   for ac_exec_ext in '' $ac_executable_extensions; do
2664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2665     ac_cv_prog_LCOV="$ac_prog"
2666     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2667     break 2
2668   fi
2669 done
2670 done
2671 IFS=$as_save_IFS
2672
2673 fi
2674 fi
2675 LCOV=$ac_cv_prog_LCOV
2676 if test -n "$LCOV"; then
2677   { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2678 $as_echo "$LCOV" >&6; }
2679 else
2680   { $as_echo "$as_me:$LINENO: result: no" >&5
2681 $as_echo "no" >&6; }
2682 fi
2683
2684
2685   test -n "$LCOV" && break
2686 done
2687
2688 if test -z "$LCOV"; then
2689   { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2690 $as_echo "$as_me: error: lcov not found" >&2;}
2691    { (exit 1); exit 1; }; }
2692 fi
2693 for ac_prog in genhtml
2694 do
2695   # Extract the first word of "$ac_prog", so it can be a program name with args.
2696 set dummy $ac_prog; ac_word=$2
2697 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2698 $as_echo_n "checking for $ac_word... " >&6; }
2699 if test "${ac_cv_prog_GENHTML+set}" = set; then
2700   $as_echo_n "(cached) " >&6
2701 else
2702   if test -n "$GENHTML"; then
2703   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2704 else
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 for as_dir in $PATH
2707 do
2708   IFS=$as_save_IFS
2709   test -z "$as_dir" && as_dir=.
2710   for ac_exec_ext in '' $ac_executable_extensions; do
2711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2712     ac_cv_prog_GENHTML="$ac_prog"
2713     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2714     break 2
2715   fi
2716 done
2717 done
2718 IFS=$as_save_IFS
2719
2720 fi
2721 fi
2722 GENHTML=$ac_cv_prog_GENHTML
2723 if test -n "$GENHTML"; then
2724   { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2725 $as_echo "$GENHTML" >&6; }
2726 else
2727   { $as_echo "$as_me:$LINENO: result: no" >&5
2728 $as_echo "no" >&6; }
2729 fi
2730
2731
2732   test -n "$GENHTML" && break
2733 done
2734
2735 if test -z "$GENHTML"; then
2736   { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2737 $as_echo "$as_me: error: genhtml not found" >&2;}
2738    { (exit 1); exit 1; }; }
2739 fi
2740       ;;
2741     no)
2742       :
2743       ;;
2744     *)
2745       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2746 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2747    { (exit 1); exit 1; }; }
2748       ;;
2749   esac
2750
2751 else
2752   enable_coverage=no
2753
2754 fi
2755
2756
2757
2758
2759 #
2760 # DTrace
2761 #
2762
2763
2764 # Check whether --enable-dtrace was given.
2765 if test "${enable_dtrace+set}" = set; then
2766   enableval=$enable_dtrace;
2767   case $enableval in
2768     yes)
2769       for ac_prog in dtrace
2770 do
2771   # Extract the first word of "$ac_prog", so it can be a program name with args.
2772 set dummy $ac_prog; ac_word=$2
2773 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2774 $as_echo_n "checking for $ac_word... " >&6; }
2775 if test "${ac_cv_prog_DTRACE+set}" = set; then
2776   $as_echo_n "(cached) " >&6
2777 else
2778   if test -n "$DTRACE"; then
2779   ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2780 else
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2783 do
2784   IFS=$as_save_IFS
2785   test -z "$as_dir" && as_dir=.
2786   for ac_exec_ext in '' $ac_executable_extensions; do
2787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2788     ac_cv_prog_DTRACE="$ac_prog"
2789     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2790     break 2
2791   fi
2792 done
2793 done
2794 IFS=$as_save_IFS
2795
2796 fi
2797 fi
2798 DTRACE=$ac_cv_prog_DTRACE
2799 if test -n "$DTRACE"; then
2800   { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2801 $as_echo "$DTRACE" >&6; }
2802 else
2803   { $as_echo "$as_me:$LINENO: result: no" >&5
2804 $as_echo "no" >&6; }
2805 fi
2806
2807
2808   test -n "$DTRACE" && break
2809 done
2810
2811 if test -z "$DTRACE"; then
2812   { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2813 $as_echo "$as_me: error: dtrace not found" >&2;}
2814    { (exit 1); exit 1; }; }
2815 fi
2816
2817       ;;
2818     no)
2819       :
2820       ;;
2821     *)
2822       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2823 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2824    { (exit 1); exit 1; }; }
2825       ;;
2826   esac
2827
2828 else
2829   enable_dtrace=no
2830
2831 fi
2832
2833
2834
2835
2836 #
2837 # Block size
2838 #
2839 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2840 $as_echo_n "checking for block size... " >&6; }
2841
2842
2843
2844 # Check whether --with-blocksize was given.
2845 if test "${with_blocksize+set}" = set; then
2846   withval=$with_blocksize;
2847   case $withval in
2848     yes)
2849       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2850 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2851    { (exit 1); exit 1; }; }
2852       ;;
2853     no)
2854       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2855 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2856    { (exit 1); exit 1; }; }
2857       ;;
2858     *)
2859       blocksize=$withval
2860       ;;
2861   esac
2862
2863 else
2864   blocksize=8
2865 fi
2866
2867
2868 case ${blocksize} in
2869   1) BLCKSZ=1024;;
2870   2) BLCKSZ=2048;;
2871   4) BLCKSZ=4096;;
2872   8) BLCKSZ=8192;;
2873  16) BLCKSZ=16384;;
2874  32) BLCKSZ=32768;;
2875   *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2876 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2877    { (exit 1); exit 1; }; }
2878 esac
2879 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2880 $as_echo "${blocksize}kB" >&6; }
2881
2882
2883 cat >>confdefs.h <<_ACEOF
2884 #define BLCKSZ ${BLCKSZ}
2885 _ACEOF
2886
2887
2888 #
2889 # Relation segment size
2890 #
2891 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2892 $as_echo_n "checking for segment size... " >&6; }
2893
2894
2895
2896 # Check whether --with-segsize was given.
2897 if test "${with_segsize+set}" = set; then
2898   withval=$with_segsize;
2899   case $withval in
2900     yes)
2901       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2902 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2903    { (exit 1); exit 1; }; }
2904       ;;
2905     no)
2906       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2907 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2908    { (exit 1); exit 1; }; }
2909       ;;
2910     *)
2911       segsize=$withval
2912       ;;
2913   esac
2914
2915 else
2916   segsize=1
2917 fi
2918
2919
2920 # this expression is set up to avoid unnecessary integer overflow
2921 # blocksize is already guaranteed to be a factor of 1024
2922 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2923 test $? -eq 0 || exit 1
2924 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2925 $as_echo "${segsize}GB" >&6; }
2926
2927
2928 cat >>confdefs.h <<_ACEOF
2929 #define RELSEG_SIZE ${RELSEG_SIZE}
2930 _ACEOF
2931
2932
2933 #
2934 # WAL block size
2935 #
2936 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2937 $as_echo_n "checking for WAL block size... " >&6; }
2938
2939
2940
2941 # Check whether --with-wal-blocksize was given.
2942 if test "${with_wal_blocksize+set}" = set; then
2943   withval=$with_wal_blocksize;
2944   case $withval in
2945     yes)
2946       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2947 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2948    { (exit 1); exit 1; }; }
2949       ;;
2950     no)
2951       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2952 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2953    { (exit 1); exit 1; }; }
2954       ;;
2955     *)
2956       wal_blocksize=$withval
2957       ;;
2958   esac
2959
2960 else
2961   wal_blocksize=8
2962 fi
2963
2964
2965 case ${wal_blocksize} in
2966   1) XLOG_BLCKSZ=1024;;
2967   2) XLOG_BLCKSZ=2048;;
2968   4) XLOG_BLCKSZ=4096;;
2969   8) XLOG_BLCKSZ=8192;;
2970  16) XLOG_BLCKSZ=16384;;
2971  32) XLOG_BLCKSZ=32768;;
2972  64) XLOG_BLCKSZ=65536;;
2973   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2974 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2975    { (exit 1); exit 1; }; }
2976 esac
2977 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2978 $as_echo "${wal_blocksize}kB" >&6; }
2979
2980
2981 cat >>confdefs.h <<_ACEOF
2982 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2983 _ACEOF
2984
2985
2986 #
2987 # WAL segment size
2988 #
2989 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
2990 $as_echo_n "checking for WAL segment size... " >&6; }
2991
2992
2993
2994 # Check whether --with-wal-segsize was given.
2995 if test "${with_wal_segsize+set}" = set; then
2996   withval=$with_wal_segsize;
2997   case $withval in
2998     yes)
2999       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3000 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3001    { (exit 1); exit 1; }; }
3002       ;;
3003     no)
3004       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3005 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3006    { (exit 1); exit 1; }; }
3007       ;;
3008     *)
3009       wal_segsize=$withval
3010       ;;
3011   esac
3012
3013 else
3014   wal_segsize=16
3015 fi
3016
3017
3018 case ${wal_segsize} in
3019   1) ;;
3020   2) ;;
3021   4) ;;
3022   8) ;;
3023  16) ;;
3024  32) ;;
3025  64) ;;
3026   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3027 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3028    { (exit 1); exit 1; }; }
3029 esac
3030 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3031 $as_echo "${wal_segsize}MB" >&6; }
3032
3033
3034 cat >>confdefs.h <<_ACEOF
3035 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3036 _ACEOF
3037
3038
3039 #
3040 # C compiler
3041 #
3042
3043 # For historical reasons you can also use --with-CC to specify the C compiler
3044 # to use, although the standard way to do this is to set the CC environment
3045 # variable.
3046
3047
3048
3049 # Check whether --with-CC was given.
3050 if test "${with_CC+set}" = set; then
3051   withval=$with_CC;
3052   case $withval in
3053     yes)
3054       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3055 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3056    { (exit 1); exit 1; }; }
3057       ;;
3058     no)
3059       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3060 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3061    { (exit 1); exit 1; }; }
3062       ;;
3063     *)
3064       CC=$with_CC
3065       ;;
3066   esac
3067
3068 fi
3069
3070
3071
3072 case $template in
3073   aix) pgac_cc_list="gcc xlc";;
3074  irix) pgac_cc_list="cc";; # no gcc
3075     *) pgac_cc_list="gcc cc";;
3076 esac
3077
3078 ac_ext=c
3079 ac_cpp='$CPP $CPPFLAGS'
3080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3083 if test -n "$ac_tool_prefix"; then
3084   for ac_prog in $pgac_cc_list
3085   do
3086     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3087 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3088 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3089 $as_echo_n "checking for $ac_word... " >&6; }
3090 if test "${ac_cv_prog_CC+set}" = set; then
3091   $as_echo_n "(cached) " >&6
3092 else
3093   if test -n "$CC"; then
3094   ac_cv_prog_CC="$CC" # Let the user override the test.
3095 else
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 for as_dir in $PATH
3098 do
3099   IFS=$as_save_IFS
3100   test -z "$as_dir" && as_dir=.
3101   for ac_exec_ext in '' $ac_executable_extensions; do
3102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3103     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3104     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3105     break 2
3106   fi
3107 done
3108 done
3109 IFS=$as_save_IFS
3110
3111 fi
3112 fi
3113 CC=$ac_cv_prog_CC
3114 if test -n "$CC"; then
3115   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3116 $as_echo "$CC" >&6; }
3117 else
3118   { $as_echo "$as_me:$LINENO: result: no" >&5
3119 $as_echo "no" >&6; }
3120 fi
3121
3122
3123     test -n "$CC" && break
3124   done
3125 fi
3126 if test -z "$CC"; then
3127   ac_ct_CC=$CC
3128   for ac_prog in $pgac_cc_list
3129 do
3130   # Extract the first word of "$ac_prog", so it can be a program name with args.
3131 set dummy $ac_prog; ac_word=$2
3132 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3135   $as_echo_n "(cached) " >&6
3136 else
3137   if test -n "$ac_ct_CC"; then
3138   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3139 else
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 for as_dir in $PATH
3142 do
3143   IFS=$as_save_IFS
3144   test -z "$as_dir" && as_dir=.
3145   for ac_exec_ext in '' $ac_executable_extensions; do
3146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147     ac_cv_prog_ac_ct_CC="$ac_prog"
3148     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3149     break 2
3150   fi
3151 done
3152 done
3153 IFS=$as_save_IFS
3154
3155 fi
3156 fi
3157 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3158 if test -n "$ac_ct_CC"; then
3159   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3160 $as_echo "$ac_ct_CC" >&6; }
3161 else
3162   { $as_echo "$as_me:$LINENO: result: no" >&5
3163 $as_echo "no" >&6; }
3164 fi
3165
3166
3167   test -n "$ac_ct_CC" && break
3168 done
3169
3170   if test "x$ac_ct_CC" = x; then
3171     CC=""
3172   else
3173     case $cross_compiling:$ac_tool_warned in
3174 yes:)
3175 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3177 ac_tool_warned=yes ;;
3178 esac
3179     CC=$ac_ct_CC
3180   fi
3181 fi
3182
3183
3184 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3186 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3187 See \`config.log' for more details." >&5
3188 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3189 See \`config.log' for more details." >&2;}
3190    { (exit 1); exit 1; }; }; }
3191
3192 # Provide some information about the compiler.
3193 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3194 set X $ac_compile
3195 ac_compiler=$2
3196 { (ac_try="$ac_compiler --version >&5"
3197 case "(($ac_try" in
3198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199   *) ac_try_echo=$ac_try;;
3200 esac
3201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3202 $as_echo "$ac_try_echo") >&5
3203   (eval "$ac_compiler --version >&5") 2>&5
3204   ac_status=$?
3205   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206   (exit $ac_status); }
3207 { (ac_try="$ac_compiler -v >&5"
3208 case "(($ac_try" in
3209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210   *) ac_try_echo=$ac_try;;
3211 esac
3212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3213 $as_echo "$ac_try_echo") >&5
3214   (eval "$ac_compiler -v >&5") 2>&5
3215   ac_status=$?
3216   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217   (exit $ac_status); }
3218 { (ac_try="$ac_compiler -V >&5"
3219 case "(($ac_try" in
3220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221   *) ac_try_echo=$ac_try;;
3222 esac
3223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3224 $as_echo "$ac_try_echo") >&5
3225   (eval "$ac_compiler -V >&5") 2>&5
3226   ac_status=$?
3227   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228   (exit $ac_status); }
3229
3230 cat >conftest.$ac_ext <<_ACEOF
3231 /* confdefs.h.  */
3232 _ACEOF
3233 cat confdefs.h >>conftest.$ac_ext
3234 cat >>conftest.$ac_ext <<_ACEOF
3235 /* end confdefs.h.  */
3236
3237 int
3238 main ()
3239 {
3240
3241   ;
3242   return 0;
3243 }
3244 _ACEOF
3245 ac_clean_files_save=$ac_clean_files
3246 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3247 # Try to create an executable without -o first, disregard a.out.
3248 # It will help us diagnose broken compilers, and finding out an intuition
3249 # of exeext.
3250 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3251 $as_echo_n "checking for C compiler default output file name... " >&6; }
3252 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3253
3254 # The possible output files:
3255 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3256
3257 ac_rmfiles=
3258 for ac_file in $ac_files
3259 do
3260   case $ac_file in
3261     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3262     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3263   esac
3264 done
3265 rm -f $ac_rmfiles
3266
3267 if { (ac_try="$ac_link_default"
3268 case "(($ac_try" in
3269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270   *) ac_try_echo=$ac_try;;
3271 esac
3272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3273 $as_echo "$ac_try_echo") >&5
3274   (eval "$ac_link_default") 2>&5
3275   ac_status=$?
3276   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277   (exit $ac_status); }; then
3278   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3279 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3280 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3281 # so that the user can short-circuit this test for compilers unknown to
3282 # Autoconf.
3283 for ac_file in $ac_files ''
3284 do
3285   test -f "$ac_file" || continue
3286   case $ac_file in
3287     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3288         ;;
3289     [ab].out )
3290         # We found the default executable, but exeext='' is most
3291         # certainly right.
3292         break;;
3293     *.* )
3294         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3295         then :; else
3296            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3297         fi
3298         # We set ac_cv_exeext here because the later test for it is not
3299         # safe: cross compilers may not add the suffix if given an `-o'
3300         # argument, so we may need to know it at that point already.
3301         # Even if this section looks crufty: it has the advantage of
3302         # actually working.
3303         break;;
3304     * )
3305         break;;
3306   esac
3307 done
3308 test "$ac_cv_exeext" = no && ac_cv_exeext=
3309
3310 else
3311   ac_file=''
3312 fi
3313
3314 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3315 $as_echo "$ac_file" >&6; }
3316 if test -z "$ac_file"; then
3317   $as_echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3319
3320 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3322 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3323 See \`config.log' for more details." >&5
3324 $as_echo "$as_me: error: C compiler cannot create executables
3325 See \`config.log' for more details." >&2;}
3326    { (exit 77); exit 77; }; }; }
3327 fi
3328
3329 ac_exeext=$ac_cv_exeext
3330
3331 # Check that the compiler produces executables we can run.  If not, either
3332 # the compiler is broken, or we cross compile.
3333 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3334 $as_echo_n "checking whether the C compiler works... " >&6; }
3335 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3336 # If not cross compiling, check that we can run a simple program.
3337 if test "$cross_compiling" != yes; then
3338   if { ac_try='./$ac_file'
3339   { (case "(($ac_try" in
3340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341   *) ac_try_echo=$ac_try;;
3342 esac
3343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3344 $as_echo "$ac_try_echo") >&5
3345   (eval "$ac_try") 2>&5
3346   ac_status=$?
3347   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348   (exit $ac_status); }; }; then
3349     cross_compiling=no
3350   else
3351     if test "$cross_compiling" = maybe; then
3352         cross_compiling=yes
3353     else
3354         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3356 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3357 If you meant to cross compile, use \`--host'.
3358 See \`config.log' for more details." >&5
3359 $as_echo "$as_me: error: cannot run C compiled programs.
3360 If you meant to cross compile, use \`--host'.
3361 See \`config.log' for more details." >&2;}
3362    { (exit 1); exit 1; }; }; }
3363     fi
3364   fi
3365 fi
3366 { $as_echo "$as_me:$LINENO: result: yes" >&5
3367 $as_echo "yes" >&6; }
3368
3369 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3370 ac_clean_files=$ac_clean_files_save
3371 # Check that the compiler produces executables we can run.  If not, either
3372 # the compiler is broken, or we cross compile.
3373 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3374 $as_echo_n "checking whether we are cross compiling... " >&6; }
3375 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3376 $as_echo "$cross_compiling" >&6; }
3377
3378 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3379 $as_echo_n "checking for suffix of executables... " >&6; }
3380 if { (ac_try="$ac_link"
3381 case "(($ac_try" in
3382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383   *) ac_try_echo=$ac_try;;
3384 esac
3385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3386 $as_echo "$ac_try_echo") >&5
3387   (eval "$ac_link") 2>&5
3388   ac_status=$?
3389   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390   (exit $ac_status); }; then
3391   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3392 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3393 # work properly (i.e., refer to `conftest.exe'), while it won't with
3394 # `rm'.
3395 for ac_file in conftest.exe conftest conftest.*; do
3396   test -f "$ac_file" || continue
3397   case $ac_file in
3398     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3399     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3400           break;;
3401     * ) break;;
3402   esac
3403 done
3404 else
3405   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3407 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3408 See \`config.log' for more details." >&5
3409 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3410 See \`config.log' for more details." >&2;}
3411    { (exit 1); exit 1; }; }; }
3412 fi
3413
3414 rm -f conftest$ac_cv_exeext
3415 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3416 $as_echo "$ac_cv_exeext" >&6; }
3417
3418 rm -f conftest.$ac_ext
3419 EXEEXT=$ac_cv_exeext
3420 ac_exeext=$EXEEXT
3421 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3422 $as_echo_n "checking for suffix of object files... " >&6; }
3423 if test "${ac_cv_objext+set}" = set; then
3424   $as_echo_n "(cached) " >&6
3425 else
3426   cat >conftest.$ac_ext <<_ACEOF
3427 /* confdefs.h.  */
3428 _ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h.  */
3432
3433 int
3434 main ()
3435 {
3436
3437   ;
3438   return 0;
3439 }
3440 _ACEOF
3441 rm -f conftest.o conftest.obj
3442 if { (ac_try="$ac_compile"
3443 case "(($ac_try" in
3444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445   *) ac_try_echo=$ac_try;;
3446 esac
3447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3448 $as_echo "$ac_try_echo") >&5
3449   (eval "$ac_compile") 2>&5
3450   ac_status=$?
3451   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452   (exit $ac_status); }; then
3453   for ac_file in conftest.o conftest.obj conftest.*; do
3454   test -f "$ac_file" || continue;
3455   case $ac_file in
3456     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3457     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3458        break;;
3459   esac
3460 done
3461 else
3462   $as_echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3464
3465 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3467 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3468 See \`config.log' for more details." >&5
3469 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3470 See \`config.log' for more details." >&2;}
3471    { (exit 1); exit 1; }; }; }
3472 fi
3473
3474 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3475 fi
3476 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3477 $as_echo "$ac_cv_objext" >&6; }
3478 OBJEXT=$ac_cv_objext
3479 ac_objext=$OBJEXT
3480 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3481 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3482 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3483   $as_echo_n "(cached) " >&6
3484 else
3485   cat >conftest.$ac_ext <<_ACEOF
3486 /* confdefs.h.  */
3487 _ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h.  */
3491
3492 int
3493 main ()
3494 {
3495 #ifndef __GNUC__
3496        choke me
3497 #endif
3498
3499   ;
3500   return 0;
3501 }
3502 _ACEOF
3503 rm -f conftest.$ac_objext
3504 if { (ac_try="$ac_compile"
3505 case "(($ac_try" in
3506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507   *) ac_try_echo=$ac_try;;
3508 esac
3509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3510 $as_echo "$ac_try_echo") >&5
3511   (eval "$ac_compile") 2>conftest.er1
3512   ac_status=$?
3513   grep -v '^ *+' conftest.er1 >conftest.err
3514   rm -f conftest.er1
3515   cat conftest.err >&5
3516   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517   (exit $ac_status); } && {
3518          test -z "$ac_c_werror_flag" ||
3519          test ! -s conftest.err
3520        } && test -s conftest.$ac_objext; then
3521   ac_compiler_gnu=yes
3522 else
3523   $as_echo "$as_me: failed program was:" >&5
3524 sed 's/^/| /' conftest.$ac_ext >&5
3525
3526         ac_compiler_gnu=no
3527 fi
3528
3529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3530 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3531
3532 fi
3533 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3534 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3535 if test $ac_compiler_gnu = yes; then
3536   GCC=yes
3537 else
3538   GCC=
3539 fi
3540 ac_test_CFLAGS=${CFLAGS+set}
3541 ac_save_CFLAGS=$CFLAGS
3542 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3543 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3544 if test "${ac_cv_prog_cc_g+set}" = set; then
3545   $as_echo_n "(cached) " >&6
3546 else
3547   ac_save_c_werror_flag=$ac_c_werror_flag
3548    ac_c_werror_flag=yes
3549    ac_cv_prog_cc_g=no
3550    CFLAGS="-g"
3551    cat >conftest.$ac_ext <<_ACEOF
3552 /* confdefs.h.  */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h.  */
3557
3558 int
3559 main ()
3560 {
3561
3562   ;
3563   return 0;
3564 }
3565 _ACEOF
3566 rm -f conftest.$ac_objext
3567 if { (ac_try="$ac_compile"
3568 case "(($ac_try" in
3569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570   *) ac_try_echo=$ac_try;;
3571 esac
3572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3573 $as_echo "$ac_try_echo") >&5
3574   (eval "$ac_compile") 2>conftest.er1
3575   ac_status=$?
3576   grep -v '^ *+' conftest.er1 >conftest.err
3577   rm -f conftest.er1
3578   cat conftest.err >&5
3579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580   (exit $ac_status); } && {
3581          test -z "$ac_c_werror_flag" ||
3582          test ! -s conftest.err
3583        } && test -s conftest.$ac_objext; then
3584   ac_cv_prog_cc_g=yes
3585 else
3586   $as_echo "$as_me: failed program was:" >&5
3587 sed 's/^/| /' conftest.$ac_ext >&5
3588
3589         CFLAGS=""
3590       cat >conftest.$ac_ext <<_ACEOF
3591 /* confdefs.h.  */
3592 _ACEOF
3593 cat confdefs.h >>conftest.$ac_ext
3594 cat >>conftest.$ac_ext <<_ACEOF
3595 /* end confdefs.h.  */
3596
3597 int
3598 main ()
3599 {
3600
3601   ;
3602   return 0;
3603 }
3604 _ACEOF
3605 rm -f conftest.$ac_objext
3606 if { (ac_try="$ac_compile"
3607 case "(($ac_try" in
3608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609   *) ac_try_echo=$ac_try;;
3610 esac
3611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3612 $as_echo "$ac_try_echo") >&5
3613   (eval "$ac_compile") 2>conftest.er1
3614   ac_status=$?
3615   grep -v '^ *+' conftest.er1 >conftest.err
3616   rm -f conftest.er1
3617   cat conftest.err >&5
3618   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619   (exit $ac_status); } && {
3620          test -z "$ac_c_werror_flag" ||
3621          test ! -s conftest.err
3622        } && test -s conftest.$ac_objext; then
3623   :
3624 else
3625   $as_echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3627
3628         ac_c_werror_flag=$ac_save_c_werror_flag
3629          CFLAGS="-g"
3630          cat >conftest.$ac_ext <<_ACEOF
3631 /* confdefs.h.  */
3632 _ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h.  */
3636
3637 int
3638 main ()
3639 {
3640
3641   ;
3642   return 0;
3643 }
3644 _ACEOF
3645 rm -f conftest.$ac_objext
3646 if { (ac_try="$ac_compile"
3647 case "(($ac_try" in
3648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649   *) ac_try_echo=$ac_try;;
3650 esac
3651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3652 $as_echo "$ac_try_echo") >&5
3653   (eval "$ac_compile") 2>conftest.er1
3654   ac_status=$?
3655   grep -v '^ *+' conftest.er1 >conftest.err
3656   rm -f conftest.er1
3657   cat conftest.err >&5
3658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659   (exit $ac_status); } && {
3660          test -z "$ac_c_werror_flag" ||
3661          test ! -s conftest.err
3662        } && test -s conftest.$ac_objext; then
3663   ac_cv_prog_cc_g=yes
3664 else
3665   $as_echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3667
3668
3669 fi
3670
3671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3672 fi
3673
3674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3675 fi
3676
3677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3678    ac_c_werror_flag=$ac_save_c_werror_flag
3679 fi
3680 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3681 $as_echo "$ac_cv_prog_cc_g" >&6; }
3682 if test "$ac_test_CFLAGS" = set; then
3683   CFLAGS=$ac_save_CFLAGS
3684 elif test $ac_cv_prog_cc_g = yes; then
3685   if test "$GCC" = yes; then
3686     CFLAGS="-g -O2"
3687   else
3688     CFLAGS="-g"
3689   fi
3690 else
3691   if test "$GCC" = yes; then
3692     CFLAGS="-O2"
3693   else
3694     CFLAGS=
3695   fi
3696 fi
3697 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3698 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3699 if test "${ac_cv_prog_cc_c89+set}" = set; then
3700   $as_echo_n "(cached) " >&6
3701 else
3702   ac_cv_prog_cc_c89=no
3703 ac_save_CC=$CC
3704 cat >conftest.$ac_ext <<_ACEOF
3705 /* confdefs.h.  */
3706 _ACEOF
3707 cat confdefs.h >>conftest.$ac_ext
3708 cat >>conftest.$ac_ext <<_ACEOF
3709 /* end confdefs.h.  */
3710 #include <stdarg.h>
3711 #include <stdio.h>
3712 #include <sys/types.h>
3713 #include <sys/stat.h>
3714 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3715 struct buf { int x; };
3716 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3717 static char *e (p, i)
3718      char **p;
3719      int i;
3720 {
3721   return p[i];
3722 }
3723 static char *f (char * (*g) (char **, int), char **p, ...)
3724 {
3725   char *s;
3726   va_list v;
3727   va_start (v,p);
3728   s = g (p, va_arg (v,int));
3729   va_end (v);
3730   return s;
3731 }
3732
3733 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3734    function prototypes and stuff, but not '\xHH' hex character constants.
3735    These don't provoke an error unfortunately, instead are silently treated
3736    as 'x'.  The following induces an error, until -std is added to get
3737    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3738    array size at least.  It's necessary to write '\x00'==0 to get something
3739    that's true only with -std.  */
3740 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3741
3742 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3743    inside strings and character constants.  */
3744 #define FOO(x) 'x'
3745 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3746
3747 int test (int i, double x);
3748 struct s1 {int (*f) (int a);};
3749 struct s2 {int (*f) (double a);};
3750 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3751 int argc;
3752 char **argv;
3753 int
3754 main ()
3755 {
3756 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3757   ;
3758   return 0;
3759 }
3760 _ACEOF
3761 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3762         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3763 do
3764   CC="$ac_save_CC $ac_arg"
3765   rm -f conftest.$ac_objext
3766 if { (ac_try="$ac_compile"
3767 case "(($ac_try" in
3768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769   *) ac_try_echo=$ac_try;;
3770 esac
3771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3772 $as_echo "$ac_try_echo") >&5
3773   (eval "$ac_compile") 2>conftest.er1
3774   ac_status=$?
3775   grep -v '^ *+' conftest.er1 >conftest.err
3776   rm -f conftest.er1
3777   cat conftest.err >&5
3778   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779   (exit $ac_status); } && {
3780          test -z "$ac_c_werror_flag" ||
3781          test ! -s conftest.err
3782        } && test -s conftest.$ac_objext; then
3783   ac_cv_prog_cc_c89=$ac_arg
3784 else
3785   $as_echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3787
3788
3789 fi
3790
3791 rm -f core conftest.err conftest.$ac_objext
3792   test "x$ac_cv_prog_cc_c89" != "xno" && break
3793 done
3794 rm -f conftest.$ac_ext
3795 CC=$ac_save_CC
3796
3797 fi
3798 # AC_CACHE_VAL
3799 case "x$ac_cv_prog_cc_c89" in
3800   x)
3801     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3802 $as_echo "none needed" >&6; } ;;
3803   xno)
3804     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3805 $as_echo "unsupported" >&6; } ;;
3806   *)
3807     CC="$CC $ac_cv_prog_cc_c89"
3808     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3809 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3810 esac
3811
3812
3813 ac_ext=c
3814 ac_cpp='$CPP $CPPFLAGS'
3815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3818
3819
3820 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3821 # but has idiosyncrasies of its own.  We assume icc will define
3822 # __INTEL_COMPILER regardless of CFLAGS.
3823
3824 cat >conftest.$ac_ext <<_ACEOF
3825 /* confdefs.h.  */
3826 _ACEOF
3827 cat confdefs.h >>conftest.$ac_ext
3828 cat >>conftest.$ac_ext <<_ACEOF
3829 /* end confdefs.h.  */
3830
3831 int
3832 main ()
3833 {
3834 #ifndef __INTEL_COMPILER
3835 choke me
3836 #endif
3837   ;
3838   return 0;
3839 }
3840 _ACEOF
3841 rm -f conftest.$ac_objext
3842 if { (ac_try="$ac_compile"
3843 case "(($ac_try" in
3844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845   *) ac_try_echo=$ac_try;;
3846 esac
3847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3848 $as_echo "$ac_try_echo") >&5
3849   (eval "$ac_compile") 2>conftest.er1
3850   ac_status=$?
3851   grep -v '^ *+' conftest.er1 >conftest.err
3852   rm -f conftest.er1
3853   cat conftest.err >&5
3854   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855   (exit $ac_status); } && {
3856          test -z "$ac_c_werror_flag" ||
3857          test ! -s conftest.err
3858        } && test -s conftest.$ac_objext; then
3859   ICC=yes
3860 else
3861   $as_echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3863
3864         ICC=no
3865 fi
3866
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868
3869 # Check if it's Sun Studio compiler. We assume that
3870 # __SUNPRO_C will be defined for Sun Studio compilers
3871 cat >conftest.$ac_ext <<_ACEOF
3872 /* confdefs.h.  */
3873 _ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h.  */
3877
3878 int
3879 main ()
3880 {
3881 #ifndef __SUNPRO_C
3882 choke me
3883 #endif
3884   ;
3885   return 0;
3886 }
3887 _ACEOF
3888 rm -f conftest.$ac_objext
3889 if { (ac_try="$ac_compile"
3890 case "(($ac_try" in
3891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892   *) ac_try_echo=$ac_try;;
3893 esac
3894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3895 $as_echo "$ac_try_echo") >&5
3896   (eval "$ac_compile") 2>conftest.er1
3897   ac_status=$?
3898   grep -v '^ *+' conftest.er1 >conftest.err
3899   rm -f conftest.er1
3900   cat conftest.err >&5
3901   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902   (exit $ac_status); } && {
3903          test -z "$ac_c_werror_flag" ||
3904          test ! -s conftest.err
3905        } && test -s conftest.$ac_objext; then
3906   SUN_STUDIO_CC=yes
3907 else
3908   $as_echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3910
3911         SUN_STUDIO_CC=no
3912 fi
3913
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915
3916
3917
3918 unset CFLAGS
3919
3920 #
3921 # Read the template
3922 #
3923 . "$srcdir/src/template/$template" || exit
3924
3925 # CFLAGS are selected so:
3926 # If the user specifies something in the environment, that is used.
3927 # else:  If the template file set something, that is used.
3928 # else:  If coverage was enabled, don't set anything.
3929 # else:  If the compiler is GCC, then we use -O2.
3930 # else:  If the compiler is something else, then we use -O, unless debugging.
3931
3932 if test "$ac_env_CFLAGS_set" = set; then
3933   CFLAGS=$ac_env_CFLAGS_value
3934 elif test "${CFLAGS+set}" = set; then
3935   : # (keep what template set)
3936 elif test "$enable_coverage" = yes; then
3937   : # no optimization by default
3938 elif test "$GCC" = yes; then
3939   CFLAGS="-O2"
3940 else
3941   # if the user selected debug mode, don't use -O
3942   if test "$enable_debug" != yes; then
3943     CFLAGS="-O"
3944   fi
3945 fi
3946
3947 # Some versions of GCC support some additional useful warning flags.
3948 # Check whether they are supported, and add them to CFLAGS if so.
3949 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
3950 # but has its own.  Also check other compiler-specific flags here.
3951
3952 if test "$GCC" = yes -a "$ICC" = no; then
3953   CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3954   # These work in some but not all gcc versions
3955   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wdeclaration-after-statement" >&5
3956 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
3957 if test "${pgac_cv_prog_cc_cflags__Wdeclaration_after_statement+set}" = set; then
3958   $as_echo_n "(cached) " >&6
3959 else
3960   pgac_save_CFLAGS=$CFLAGS
3961 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3962 ac_save_c_werror_flag=$ac_c_werror_flag
3963 ac_c_werror_flag=yes
3964 cat >conftest.$ac_ext <<_ACEOF
3965 /* confdefs.h.  */
3966 _ACEOF
3967 cat confdefs.h >>conftest.$ac_ext
3968 cat >>conftest.$ac_ext <<_ACEOF
3969 /* end confdefs.h.  */
3970
3971 int
3972 main ()
3973 {
3974
3975   ;
3976   return 0;
3977 }
3978 _ACEOF
3979 rm -f conftest.$ac_objext
3980 if { (ac_try="$ac_compile"
3981 case "(($ac_try" in
3982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983   *) ac_try_echo=$ac_try;;
3984 esac
3985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3986 $as_echo "$ac_try_echo") >&5
3987   (eval "$ac_compile") 2>conftest.er1
3988   ac_status=$?
3989   grep -v '^ *+' conftest.er1 >conftest.err
3990   rm -f conftest.er1
3991   cat conftest.err >&5
3992   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993   (exit $ac_status); } && {
3994          test -z "$ac_c_werror_flag" ||
3995          test ! -s conftest.err
3996        } && test -s conftest.$ac_objext; then
3997   pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
3998 else
3999   $as_echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4001
4002         pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
4003 fi
4004
4005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4006 ac_c_werror_flag=$ac_save_c_werror_flag
4007 CFLAGS="$pgac_save_CFLAGS"
4008 fi
4009 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
4010 $as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
4011 if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
4012   CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4013 fi
4014
4015   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wendif-labels" >&5
4016 $as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
4017 if test "${pgac_cv_prog_cc_cflags__Wendif_labels+set}" = set; then
4018   $as_echo_n "(cached) " >&6
4019 else
4020   pgac_save_CFLAGS=$CFLAGS
4021 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4022 ac_save_c_werror_flag=$ac_c_werror_flag
4023 ac_c_werror_flag=yes
4024 cat >conftest.$ac_ext <<_ACEOF
4025 /* confdefs.h.  */
4026 _ACEOF
4027 cat confdefs.h >>conftest.$ac_ext
4028 cat >>conftest.$ac_ext <<_ACEOF
4029 /* end confdefs.h.  */
4030
4031 int
4032 main ()
4033 {
4034
4035   ;
4036   return 0;
4037 }
4038 _ACEOF
4039 rm -f conftest.$ac_objext
4040 if { (ac_try="$ac_compile"
4041 case "(($ac_try" in
4042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043   *) ac_try_echo=$ac_try;;
4044 esac
4045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4046 $as_echo "$ac_try_echo") >&5
4047   (eval "$ac_compile") 2>conftest.er1
4048   ac_status=$?
4049   grep -v '^ *+' conftest.er1 >conftest.err
4050   rm -f conftest.er1
4051   cat conftest.err >&5
4052   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053   (exit $ac_status); } && {
4054          test -z "$ac_c_werror_flag" ||
4055          test ! -s conftest.err
4056        } && test -s conftest.$ac_objext; then
4057   pgac_cv_prog_cc_cflags__Wendif_labels=yes
4058 else
4059   $as_echo "$as_me: failed program was:" >&5
4060 sed 's/^/| /' conftest.$ac_ext >&5
4061
4062         pgac_cv_prog_cc_cflags__Wendif_labels=no
4063 fi
4064
4065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 ac_c_werror_flag=$ac_save_c_werror_flag
4067 CFLAGS="$pgac_save_CFLAGS"
4068 fi
4069 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
4070 $as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
4071 if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
4072   CFLAGS="$CFLAGS -Wendif-labels"
4073 fi
4074
4075   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5
4076 $as_echo_n "checking whether $CC supports -Wmissing-format-attribute... " >&6; }
4077 if test "${pgac_cv_prog_cc_cflags__Wmissing_format_attribute+set}" = set; then
4078   $as_echo_n "(cached) " >&6
4079 else
4080   pgac_save_CFLAGS=$CFLAGS
4081 CFLAGS="$pgac_save_CFLAGS -Wmissing-format-attribute"
4082 ac_save_c_werror_flag=$ac_c_werror_flag
4083 ac_c_werror_flag=yes
4084 cat >conftest.$ac_ext <<_ACEOF
4085 /* confdefs.h.  */
4086 _ACEOF
4087 cat confdefs.h >>conftest.$ac_ext
4088 cat >>conftest.$ac_ext <<_ACEOF
4089 /* end confdefs.h.  */
4090
4091 int
4092 main ()
4093 {
4094
4095   ;
4096   return 0;
4097 }
4098 _ACEOF
4099 rm -f conftest.$ac_objext
4100 if { (ac_try="$ac_compile"
4101 case "(($ac_try" in
4102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103   *) ac_try_echo=$ac_try;;
4104 esac
4105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4106 $as_echo "$ac_try_echo") >&5
4107   (eval "$ac_compile") 2>conftest.er1
4108   ac_status=$?
4109   grep -v '^ *+' conftest.er1 >conftest.err
4110   rm -f conftest.er1
4111   cat conftest.err >&5
4112   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113   (exit $ac_status); } && {
4114          test -z "$ac_c_werror_flag" ||
4115          test ! -s conftest.err
4116        } && test -s conftest.$ac_objext; then
4117   pgac_cv_prog_cc_cflags__Wmissing_format_attribute=yes
4118 else
4119   $as_echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4121
4122         pgac_cv_prog_cc_cflags__Wmissing_format_attribute=no
4123 fi
4124
4125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4126 ac_c_werror_flag=$ac_save_c_werror_flag
4127 CFLAGS="$pgac_save_CFLAGS"
4128 fi
4129 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&5
4130 $as_echo "$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&6; }
4131 if test x"$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" = x"yes"; then
4132   CFLAGS="$CFLAGS -Wmissing-format-attribute"
4133 fi
4134
4135   # This was included in -Wall/-Wformat in older GCC versions
4136   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wformat-security" >&5
4137 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
4138 if test "${pgac_cv_prog_cc_cflags__Wformat_security+set}" = set; then
4139   $as_echo_n "(cached) " >&6
4140 else
4141   pgac_save_CFLAGS=$CFLAGS
4142 CFLAGS="$pgac_save_CFLAGS -Wformat-security"
4143 ac_save_c_werror_flag=$ac_c_werror_flag
4144 ac_c_werror_flag=yes
4145 cat >conftest.$ac_ext <<_ACEOF
4146 /* confdefs.h.  */
4147 _ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h.  */
4151
4152 int
4153 main ()
4154 {
4155
4156   ;
4157   return 0;
4158 }
4159 _ACEOF
4160 rm -f conftest.$ac_objext
4161 if { (ac_try="$ac_compile"
4162 case "(($ac_try" in
4163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164   *) ac_try_echo=$ac_try;;
4165 esac
4166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4167 $as_echo "$ac_try_echo") >&5
4168   (eval "$ac_compile") 2>conftest.er1
4169   ac_status=$?
4170   grep -v '^ *+' conftest.er1 >conftest.err
4171   rm -f conftest.er1
4172   cat conftest.err >&5
4173   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174   (exit $ac_status); } && {
4175          test -z "$ac_c_werror_flag" ||
4176          test ! -s conftest.err
4177        } && test -s conftest.$ac_objext; then
4178   pgac_cv_prog_cc_cflags__Wformat_security=yes
4179 else
4180   $as_echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4182
4183         pgac_cv_prog_cc_cflags__Wformat_security=no
4184 fi
4185
4186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4187 ac_c_werror_flag=$ac_save_c_werror_flag
4188 CFLAGS="$pgac_save_CFLAGS"
4189 fi
4190 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
4191 $as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
4192 if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
4193   CFLAGS="$CFLAGS -Wformat-security"
4194 fi
4195
4196   # Disable strict-aliasing rules; needed for gcc 3.3+
4197   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4198 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4199 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4200   $as_echo_n "(cached) " >&6
4201 else
4202   pgac_save_CFLAGS=$CFLAGS
4203 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4204 ac_save_c_werror_flag=$ac_c_werror_flag
4205 ac_c_werror_flag=yes
4206 cat >conftest.$ac_ext <<_ACEOF
4207 /* confdefs.h.  */
4208 _ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h.  */
4212
4213 int
4214 main ()
4215 {
4216
4217   ;
4218   return 0;
4219 }
4220 _ACEOF
4221 rm -f conftest.$ac_objext
4222 if { (ac_try="$ac_compile"
4223 case "(($ac_try" in
4224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225   *) ac_try_echo=$ac_try;;
4226 esac
4227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4228 $as_echo "$ac_try_echo") >&5
4229   (eval "$ac_compile") 2>conftest.er1
4230   ac_status=$?
4231   grep -v '^ *+' conftest.er1 >conftest.err
4232   rm -f conftest.er1
4233   cat conftest.err >&5
4234   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235   (exit $ac_status); } && {
4236          test -z "$ac_c_werror_flag" ||
4237          test ! -s conftest.err
4238        } && test -s conftest.$ac_objext; then
4239   pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4240 else
4241   $as_echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4243
4244         pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4245 fi
4246
4247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4248 ac_c_werror_flag=$ac_save_c_werror_flag
4249 CFLAGS="$pgac_save_CFLAGS"
4250 fi
4251 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4252 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4253 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4254   CFLAGS="$CFLAGS -fno-strict-aliasing"
4255 fi
4256
4257   # Disable optimizations that assume no overflow; needed for gcc 4.3+
4258   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fwrapv" >&5
4259 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4260 if test "${pgac_cv_prog_cc_cflags__fwrapv+set}" = set; then
4261   $as_echo_n "(cached) " >&6
4262 else
4263   pgac_save_CFLAGS=$CFLAGS
4264 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4265 ac_save_c_werror_flag=$ac_c_werror_flag
4266 ac_c_werror_flag=yes
4267 cat >conftest.$ac_ext <<_ACEOF
4268 /* confdefs.h.  */
4269 _ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h.  */
4273
4274 int
4275 main ()
4276 {
4277
4278   ;
4279   return 0;
4280 }
4281 _ACEOF
4282 rm -f conftest.$ac_objext
4283 if { (ac_try="$ac_compile"
4284 case "(($ac_try" in
4285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286   *) ac_try_echo=$ac_try;;
4287 esac
4288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4289 $as_echo "$ac_try_echo") >&5
4290   (eval "$ac_compile") 2>conftest.er1
4291   ac_status=$?
4292   grep -v '^ *+' conftest.er1 >conftest.err
4293   rm -f conftest.er1
4294   cat conftest.err >&5
4295   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296   (exit $ac_status); } && {
4297          test -z "$ac_c_werror_flag" ||
4298          test ! -s conftest.err
4299        } && test -s conftest.$ac_objext; then
4300   pgac_cv_prog_cc_cflags__fwrapv=yes
4301 else
4302   $as_echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4304
4305         pgac_cv_prog_cc_cflags__fwrapv=no
4306 fi
4307
4308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309 ac_c_werror_flag=$ac_save_c_werror_flag
4310 CFLAGS="$pgac_save_CFLAGS"
4311 fi
4312 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4313 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4314 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4315   CFLAGS="$CFLAGS -fwrapv"
4316 fi
4317
4318   # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
4319   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fexcess-precision=standard" >&5
4320 $as_echo_n "checking whether $CC supports -fexcess-precision=standard... " >&6; }
4321 if test "${pgac_cv_prog_cc_cflags__fexcess_precision_standard+set}" = set; then
4322   $as_echo_n "(cached) " >&6
4323 else
4324   pgac_save_CFLAGS=$CFLAGS
4325 CFLAGS="$pgac_save_CFLAGS -fexcess-precision=standard"
4326 ac_save_c_werror_flag=$ac_c_werror_flag
4327 ac_c_werror_flag=yes
4328 cat >conftest.$ac_ext <<_ACEOF
4329 /* confdefs.h.  */
4330 _ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h.  */
4334
4335 int
4336 main ()
4337 {
4338
4339   ;
4340   return 0;
4341 }
4342 _ACEOF
4343 rm -f conftest.$ac_objext
4344 if { (ac_try="$ac_compile"
4345 case "(($ac_try" in
4346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347   *) ac_try_echo=$ac_try;;
4348 esac
4349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4350 $as_echo "$ac_try_echo") >&5
4351   (eval "$ac_compile") 2>conftest.er1
4352   ac_status=$?
4353   grep -v '^ *+' conftest.er1 >conftest.err
4354   rm -f conftest.er1
4355   cat conftest.err >&5
4356   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357   (exit $ac_status); } && {
4358          test -z "$ac_c_werror_flag" ||
4359          test ! -s conftest.err
4360        } && test -s conftest.$ac_objext; then
4361   pgac_cv_prog_cc_cflags__fexcess_precision_standard=yes
4362 else
4363   $as_echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4365
4366         pgac_cv_prog_cc_cflags__fexcess_precision_standard=no
4367 fi
4368
4369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4370 ac_c_werror_flag=$ac_save_c_werror_flag
4371 CFLAGS="$pgac_save_CFLAGS"
4372 fi
4373 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&5
4374 $as_echo "$pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&6; }
4375 if test x"$pgac_cv_prog_cc_cflags__fexcess_precision_standard" = x"yes"; then
4376   CFLAGS="$CFLAGS -fexcess-precision=standard"
4377 fi
4378
4379 elif test "$ICC" = yes; then
4380   # Intel's compiler has a bug/misoptimization in checking for
4381   # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4382   { $as_echo "$as_me:$LINENO: checking whether $CC supports -mp1" >&5
4383 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4384 if test "${pgac_cv_prog_cc_cflags__mp1+set}" = set; then
4385   $as_echo_n "(cached) " >&6
4386 else
4387   pgac_save_CFLAGS=$CFLAGS
4388 CFLAGS="$pgac_save_CFLAGS -mp1"
4389 ac_save_c_werror_flag=$ac_c_werror_flag
4390 ac_c_werror_flag=yes
4391 cat >conftest.$ac_ext <<_ACEOF
4392 /* confdefs.h.  */
4393 _ACEOF
4394 cat confdefs.h >>conftest.$ac_ext
4395 cat >>conftest.$ac_ext <<_ACEOF
4396 /* end confdefs.h.  */
4397
4398 int
4399 main ()
4400 {
4401
4402   ;
4403   return 0;
4404 }
4405 _ACEOF
4406 rm -f conftest.$ac_objext
4407 if { (ac_try="$ac_compile"
4408 case "(($ac_try" in
4409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410   *) ac_try_echo=$ac_try;;
4411 esac
4412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4413 $as_echo "$ac_try_echo") >&5
4414   (eval "$ac_compile") 2>conftest.er1
4415   ac_status=$?
4416   grep -v '^ *+' conftest.er1 >conftest.err
4417   rm -f conftest.er1
4418   cat conftest.err >&5
4419   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420   (exit $ac_status); } && {
4421          test -z "$ac_c_werror_flag" ||
4422          test ! -s conftest.err
4423        } && test -s conftest.$ac_objext; then
4424   pgac_cv_prog_cc_cflags__mp1=yes
4425 else
4426   $as_echo "$as_me: failed program was:" >&5
4427 sed 's/^/| /' conftest.$ac_ext >&5
4428
4429         pgac_cv_prog_cc_cflags__mp1=no
4430 fi
4431
4432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4433 ac_c_werror_flag=$ac_save_c_werror_flag
4434 CFLAGS="$pgac_save_CFLAGS"
4435 fi
4436 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4437 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4438 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4439   CFLAGS="$CFLAGS -mp1"
4440 fi
4441
4442   # Make sure strict aliasing is off (though this is said to be the default)
4443   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4444 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4445 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4446   $as_echo_n "(cached) " >&6
4447 else
4448   pgac_save_CFLAGS=$CFLAGS
4449 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4450 ac_save_c_werror_flag=$ac_c_werror_flag
4451 ac_c_werror_flag=yes
4452 cat >conftest.$ac_ext <<_ACEOF
4453 /* confdefs.h.  */
4454 _ACEOF
4455 cat confdefs.h >>conftest.$ac_ext
4456 cat >>conftest.$ac_ext <<_ACEOF
4457 /* end confdefs.h.  */
4458
4459 int
4460 main ()
4461 {
4462
4463   ;
4464   return 0;
4465 }
4466 _ACEOF
4467 rm -f conftest.$ac_objext
4468 if { (ac_try="$ac_compile"
4469 case "(($ac_try" in
4470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471   *) ac_try_echo=$ac_try;;
4472 esac
4473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4474 $as_echo "$ac_try_echo") >&5
4475   (eval "$ac_compile") 2>conftest.er1
4476   ac_status=$?
4477   grep -v '^ *+' conftest.er1 >conftest.err
4478   rm -f conftest.er1
4479   cat conftest.err >&5
4480   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481   (exit $ac_status); } && {
4482          test -z "$ac_c_werror_flag" ||
4483          test ! -s conftest.err
4484        } && test -s conftest.$ac_objext; then
4485   pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4486 else
4487   $as_echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4489
4490         pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4491 fi
4492
4493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4494 ac_c_werror_flag=$ac_save_c_werror_flag
4495 CFLAGS="$pgac_save_CFLAGS"
4496 fi
4497 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4498 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4499 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4500   CFLAGS="$CFLAGS -fno-strict-aliasing"
4501 fi
4502
4503 elif test "$PORTNAME" = "aix"; then
4504   # AIX's xlc has to have strict aliasing turned off too
4505   { $as_echo "$as_me:$LINENO: checking whether $CC supports -qnoansialias" >&5
4506 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4507 if test "${pgac_cv_prog_cc_cflags__qnoansialias+set}" = set; then
4508   $as_echo_n "(cached) " >&6
4509 else
4510   pgac_save_CFLAGS=$CFLAGS
4511 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4512 ac_save_c_werror_flag=$ac_c_werror_flag
4513 ac_c_werror_flag=yes
4514 cat >conftest.$ac_ext <<_ACEOF
4515 /* confdefs.h.  */
4516 _ACEOF
4517 cat confdefs.h >>conftest.$ac_ext
4518 cat >>conftest.$ac_ext <<_ACEOF
4519 /* end confdefs.h.  */
4520
4521 int
4522 main ()
4523 {
4524
4525   ;
4526   return 0;
4527 }
4528 _ACEOF
4529 rm -f conftest.$ac_objext
4530 if { (ac_try="$ac_compile"
4531 case "(($ac_try" in
4532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4533   *) ac_try_echo=$ac_try;;
4534 esac
4535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4536 $as_echo "$ac_try_echo") >&5
4537   (eval "$ac_compile") 2>conftest.er1
4538   ac_status=$?
4539   grep -v '^ *+' conftest.er1 >conftest.err
4540   rm -f conftest.er1
4541   cat conftest.err >&5
4542   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543   (exit $ac_status); } && {
4544          test -z "$ac_c_werror_flag" ||
4545          test ! -s conftest.err
4546        } && test -s conftest.$ac_objext; then
4547   pgac_cv_prog_cc_cflags__qnoansialias=yes
4548 else
4549   $as_echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4551
4552         pgac_cv_prog_cc_cflags__qnoansialias=no
4553 fi
4554
4555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4556 ac_c_werror_flag=$ac_save_c_werror_flag
4557 CFLAGS="$pgac_save_CFLAGS"
4558 fi
4559 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4560 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4561 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4562   CFLAGS="$CFLAGS -qnoansialias"
4563 fi
4564
4565 elif test "$PORTNAME" = "hpux"; then
4566   # On some versions of HP-UX, libm functions do not set errno by default.
4567   # Fix that by using +Olibmerrno if the compiler recognizes it.
4568   { $as_echo "$as_me:$LINENO: checking whether $CC supports +Olibmerrno" >&5
4569 $as_echo_n "checking whether $CC supports +Olibmerrno... " >&6; }
4570 if test "${pgac_cv_prog_cc_cflags_pOlibmerrno+set}" = set; then
4571   $as_echo_n "(cached) " >&6
4572 else
4573   pgac_save_CFLAGS=$CFLAGS
4574 CFLAGS="$pgac_save_CFLAGS +Olibmerrno"
4575 ac_save_c_werror_flag=$ac_c_werror_flag
4576 ac_c_werror_flag=yes
4577 cat >conftest.$ac_ext <<_ACEOF
4578 /* confdefs.h.  */
4579 _ACEOF
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h.  */
4583
4584 int
4585 main ()
4586 {
4587
4588   ;
4589   return 0;
4590 }
4591 _ACEOF
4592 rm -f conftest.$ac_objext
4593 if { (ac_try="$ac_compile"
4594 case "(($ac_try" in
4595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596   *) ac_try_echo=$ac_try;;
4597 esac
4598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4599 $as_echo "$ac_try_echo") >&5
4600   (eval "$ac_compile") 2>conftest.er1
4601   ac_status=$?
4602   grep -v '^ *+' conftest.er1 >conftest.err
4603   rm -f conftest.er1
4604   cat conftest.err >&5
4605   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606   (exit $ac_status); } && {
4607          test -z "$ac_c_werror_flag" ||
4608          test ! -s conftest.err
4609        } && test -s conftest.$ac_objext; then
4610   pgac_cv_prog_cc_cflags_pOlibmerrno=yes
4611 else
4612   $as_echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.$ac_ext >&5
4614
4615         pgac_cv_prog_cc_cflags_pOlibmerrno=no
4616 fi
4617
4618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619 ac_c_werror_flag=$ac_save_c_werror_flag
4620 CFLAGS="$pgac_save_CFLAGS"
4621 fi
4622 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags_pOlibmerrno" >&5
4623 $as_echo "$pgac_cv_prog_cc_cflags_pOlibmerrno" >&6; }
4624 if test x"$pgac_cv_prog_cc_cflags_pOlibmerrno" = x"yes"; then
4625   CFLAGS="$CFLAGS +Olibmerrno"
4626 fi
4627
4628 fi
4629
4630 # supply -g if --enable-debug
4631 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4632   CFLAGS="$CFLAGS -g"
4633 fi
4634
4635 # enable code coverage if --enable-coverage
4636 if test "$enable_coverage" = yes; then
4637   if test "$GCC" = yes; then
4638     CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4639   else
4640     { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4641 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4642    { (exit 1); exit 1; }; }
4643   fi
4644 fi
4645
4646 # enable profiling if --enable-profiling
4647 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4648   if test "$GCC" = yes; then
4649
4650 cat >>confdefs.h <<\_ACEOF
4651 #define PROFILE_PID_DIR 1
4652 _ACEOF
4653
4654     CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4655   else
4656     { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4657 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4658    { (exit 1); exit 1; }; }
4659   fi
4660 fi
4661
4662 # We already have this in Makefile.win32, but configure needs it too
4663 if test "$PORTNAME" = "win32"; then
4664   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4665 fi
4666
4667 # Check if the compiler still works with the template settings
4668 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4669 $as_echo_n "checking whether the C compiler still works... " >&6; }
4670 cat >conftest.$ac_ext <<_ACEOF
4671 /* confdefs.h.  */
4672 _ACEOF
4673 cat confdefs.h >>conftest.$ac_ext
4674 cat >>conftest.$ac_ext <<_ACEOF
4675 /* end confdefs.h.  */
4676
4677 int
4678 main ()
4679 {
4680 return 0;
4681   ;
4682   return 0;
4683 }
4684 _ACEOF
4685 rm -f conftest.$ac_objext conftest$ac_exeext
4686 if { (ac_try="$ac_link"
4687 case "(($ac_try" in
4688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689   *) ac_try_echo=$ac_try;;
4690 esac
4691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4692 $as_echo "$ac_try_echo") >&5
4693   (eval "$ac_link") 2>conftest.er1
4694   ac_status=$?
4695   grep -v '^ *+' conftest.er1 >conftest.err
4696   rm -f conftest.er1
4697   cat conftest.err >&5
4698   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699   (exit $ac_status); } && {
4700          test -z "$ac_c_werror_flag" ||
4701          test ! -s conftest.err
4702        } && test -s conftest$ac_exeext && {
4703          test "$cross_compiling" = yes ||
4704          $as_test_x conftest$ac_exeext
4705        }; then
4706   { $as_echo "$as_me:$LINENO: result: yes" >&5
4707 $as_echo "yes" >&6; }
4708 else
4709   $as_echo "$as_me: failed program was:" >&5
4710 sed 's/^/| /' conftest.$ac_ext >&5
4711
4712         { $as_echo "$as_me:$LINENO: result: no" >&5
4713 $as_echo "no" >&6; }
4714    { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4715 $as_echo "$as_me: error: cannot proceed" >&2;}
4716    { (exit 1); exit 1; }; }
4717 fi
4718
4719 rm -rf conftest.dSYM
4720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4721       conftest$ac_exeext conftest.$ac_ext
4722
4723 # Defend against gcc -ffast-math
4724 if test "$GCC" = yes; then
4725 cat >conftest.$ac_ext <<_ACEOF
4726 /* confdefs.h.  */
4727 _ACEOF
4728 cat confdefs.h >>conftest.$ac_ext
4729 cat >>conftest.$ac_ext <<_ACEOF
4730 /* end confdefs.h.  */
4731
4732 int
4733 main ()
4734 {
4735 #ifdef __FAST_MATH__
4736 choke me
4737 #endif
4738   ;
4739   return 0;
4740 }
4741 _ACEOF
4742 rm -f conftest.$ac_objext
4743 if { (ac_try="$ac_compile"
4744 case "(($ac_try" in
4745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4746   *) ac_try_echo=$ac_try;;
4747 esac
4748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4749 $as_echo "$ac_try_echo") >&5
4750   (eval "$ac_compile") 2>conftest.er1
4751   ac_status=$?
4752   grep -v '^ *+' conftest.er1 >conftest.err
4753   rm -f conftest.er1
4754   cat conftest.err >&5
4755   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756   (exit $ac_status); } && {
4757          test -z "$ac_c_werror_flag" ||
4758          test ! -s conftest.err
4759        } && test -s conftest.$ac_objext; then
4760   :
4761 else
4762   $as_echo "$as_me: failed program was:" >&5
4763 sed 's/^/| /' conftest.$ac_ext >&5
4764
4765         { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4766 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4767    { (exit 1); exit 1; }; }
4768 fi
4769
4770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4771 fi
4772
4773 ac_ext=c
4774 ac_cpp='$CPP $CPPFLAGS'
4775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4778 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4779 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4780 # On Suns, sometimes $CPP names a directory.
4781 if test -n "$CPP" && test -d "$CPP"; then
4782   CPP=
4783 fi
4784 if test -z "$CPP"; then
4785   if test "${ac_cv_prog_CPP+set}" = set; then
4786   $as_echo_n "(cached) " >&6
4787 else
4788       # Double quotes because CPP needs to be expanded
4789     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4790     do
4791       ac_preproc_ok=false
4792 for ac_c_preproc_warn_flag in '' yes
4793 do
4794   # Use a header file that comes with gcc, so configuring glibc
4795   # with a fresh cross-compiler works.
4796   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4797   # <limits.h> exists even on freestanding compilers.
4798   # On the NeXT, cc -E runs the code through the compiler's parser,
4799   # not just through cpp. "Syntax error" is here to catch this case.
4800   cat >conftest.$ac_ext <<_ACEOF
4801 /* confdefs.h.  */
4802 _ACEOF
4803 cat confdefs.h >>conftest.$ac_ext
4804 cat >>conftest.$ac_ext <<_ACEOF
4805 /* end confdefs.h.  */
4806 #ifdef __STDC__
4807 # include <limits.h>
4808 #else
4809 # include <assert.h>
4810 #endif
4811                      Syntax error
4812 _ACEOF
4813 if { (ac_try="$ac_cpp conftest.$ac_ext"
4814 case "(($ac_try" in
4815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4816   *) ac_try_echo=$ac_try;;
4817 esac
4818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4819 $as_echo "$ac_try_echo") >&5
4820   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4821   ac_status=$?
4822   grep -v '^ *+' conftest.er1 >conftest.err
4823   rm -f conftest.er1
4824   cat conftest.err >&5
4825   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826   (exit $ac_status); } >/dev/null && {
4827          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4828          test ! -s conftest.err
4829        }; then
4830   :
4831 else
4832   $as_echo "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.$ac_ext >&5
4834
4835   # Broken: fails on valid input.
4836 continue
4837 fi
4838
4839 rm -f conftest.err conftest.$ac_ext
4840
4841   # OK, works on sane cases.  Now check whether nonexistent headers
4842   # can be detected and how.
4843   cat >conftest.$ac_ext <<_ACEOF
4844 /* confdefs.h.  */
4845 _ACEOF
4846 cat confdefs.h >>conftest.$ac_ext
4847 cat >>conftest.$ac_ext <<_ACEOF
4848 /* end confdefs.h.  */
4849 #include <ac_nonexistent.h>
4850 _ACEOF
4851 if { (ac_try="$ac_cpp conftest.$ac_ext"
4852 case "(($ac_try" in
4853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4854   *) ac_try_echo=$ac_try;;
4855 esac
4856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4857 $as_echo "$ac_try_echo") >&5
4858   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4859   ac_status=$?
4860   grep -v '^ *+' conftest.er1 >conftest.err
4861   rm -f conftest.er1
4862   cat conftest.err >&5
4863   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864   (exit $ac_status); } >/dev/null && {
4865          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4866          test ! -s conftest.err
4867        }; then
4868   # Broken: success on invalid input.
4869 continue
4870 else
4871   $as_echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4873
4874   # Passes both tests.
4875 ac_preproc_ok=:
4876 break
4877 fi
4878
4879 rm -f conftest.err conftest.$ac_ext
4880
4881 done
4882 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4883 rm -f conftest.err conftest.$ac_ext
4884 if $ac_preproc_ok; then
4885   break
4886 fi
4887
4888     done
4889     ac_cv_prog_CPP=$CPP
4890
4891 fi
4892   CPP=$ac_cv_prog_CPP
4893 else
4894   ac_cv_prog_CPP=$CPP
4895 fi
4896 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4897 $as_echo "$CPP" >&6; }
4898 ac_preproc_ok=false
4899 for ac_c_preproc_warn_flag in '' yes
4900 do
4901   # Use a header file that comes with gcc, so configuring glibc
4902   # with a fresh cross-compiler works.
4903   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4904   # <limits.h> exists even on freestanding compilers.
4905   # On the NeXT, cc -E runs the code through the compiler's parser,
4906   # not just through cpp. "Syntax error" is here to catch this case.
4907   cat >conftest.$ac_ext <<_ACEOF
4908 /* confdefs.h.  */
4909 _ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h.  */
4913 #ifdef __STDC__
4914 # include <limits.h>
4915 #else
4916 # include <assert.h>
4917 #endif
4918                      Syntax error
4919 _ACEOF
4920 if { (ac_try="$ac_cpp conftest.$ac_ext"
4921 case "(($ac_try" in
4922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4923   *) ac_try_echo=$ac_try;;
4924 esac
4925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4926 $as_echo "$ac_try_echo") >&5
4927   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4928   ac_status=$?
4929   grep -v '^ *+' conftest.er1 >conftest.err
4930   rm -f conftest.er1
4931   cat conftest.err >&5
4932   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933   (exit $ac_status); } >/dev/null && {
4934          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4935          test ! -s conftest.err
4936        }; then
4937   :
4938 else
4939   $as_echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.$ac_ext >&5
4941
4942   # Broken: fails on valid input.
4943 continue
4944 fi
4945
4946 rm -f conftest.err conftest.$ac_ext
4947
4948   # OK, works on sane cases.  Now check whether nonexistent headers
4949   # can be detected and how.
4950   cat >conftest.$ac_ext <<_ACEOF
4951 /* confdefs.h.  */
4952 _ACEOF
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h.  */
4956 #include <ac_nonexistent.h>
4957 _ACEOF
4958 if { (ac_try="$ac_cpp conftest.$ac_ext"
4959 case "(($ac_try" in
4960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4961   *) ac_try_echo=$ac_try;;
4962 esac
4963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4964 $as_echo "$ac_try_echo") >&5
4965   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4966   ac_status=$?
4967   grep -v '^ *+' conftest.er1 >conftest.err
4968   rm -f conftest.er1
4969   cat conftest.err >&5
4970   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971   (exit $ac_status); } >/dev/null && {
4972          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4973          test ! -s conftest.err
4974        }; then
4975   # Broken: success on invalid input.
4976 continue
4977 else
4978   $as_echo "$as_me: failed program was:" >&5
4979 sed 's/^/| /' conftest.$ac_ext >&5
4980
4981   # Passes both tests.
4982 ac_preproc_ok=:
4983 break
4984 fi
4985
4986 rm -f conftest.err conftest.$ac_ext
4987
4988 done
4989 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4990 rm -f conftest.err conftest.$ac_ext
4991 if $ac_preproc_ok; then
4992   :
4993 else
4994   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4996 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4997 See \`config.log' for more details." >&5
4998 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4999 See \`config.log' for more details." >&2;}
5000    { (exit 1); exit 1; }; }; }
5001 fi
5002
5003 ac_ext=c
5004 ac_cpp='$CPP $CPPFLAGS'
5005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5008
5009
5010
5011
5012 #
5013 # Set up TAS assembly code if needed; the template file has now had its
5014 # chance to request this.
5015 #
5016 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
5017
5018
5019 if test "$need_tas" = yes ; then
5020   TAS=tas.o
5021 else
5022   TAS=""
5023 fi
5024
5025
5026
5027 #
5028 # Automatic dependency tracking
5029 #
5030
5031
5032 # Check whether --enable-depend was given.
5033 if test "${enable_depend+set}" = set; then
5034   enableval=$enable_depend;
5035   case $enableval in
5036     yes)
5037       autodepend=yes
5038       ;;
5039     no)
5040       :
5041       ;;
5042     *)
5043       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
5044 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
5045    { (exit 1); exit 1; }; }
5046       ;;
5047   esac
5048
5049 else
5050   enable_depend=no
5051
5052 fi
5053
5054
5055
5056
5057
5058 #
5059 # Enable assert checks
5060 #
5061
5062
5063 # Check whether --enable-cassert was given.
5064 if test "${enable_cassert+set}" = set; then
5065   enableval=$enable_cassert;
5066   case $enableval in
5067     yes)
5068
5069 cat >>confdefs.h <<\_ACEOF
5070 #define USE_ASSERT_CHECKING 1
5071 _ACEOF
5072
5073       ;;
5074     no)
5075       :
5076       ;;
5077     *)
5078       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
5079 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
5080    { (exit 1); exit 1; }; }
5081       ;;
5082   esac
5083
5084 else
5085   enable_cassert=no
5086
5087 fi
5088
5089
5090
5091
5092 #
5093 # Include directories
5094 #
5095 ac_save_IFS=$IFS
5096 IFS="${IFS}${PATH_SEPARATOR}"
5097 # SRCH_INC comes from the template file
5098 for dir in $with_includes $SRCH_INC; do
5099   if test -d "$dir"; then
5100     INCLUDES="$INCLUDES -I$dir"
5101   else
5102     { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
5103 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
5104   fi
5105 done
5106 IFS=$ac_save_IFS
5107
5108
5109
5110 #
5111 # Library directories
5112 #
5113 ac_save_IFS=$IFS
5114 IFS="${IFS}${PATH_SEPARATOR}"
5115 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
5116 for dir in $LIBRARY_DIRS $SRCH_LIB; do
5117   if test -d "$dir"; then
5118     LIBDIRS="$LIBDIRS -L$dir"
5119   else
5120     { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
5121 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
5122   fi
5123 done
5124 IFS=$ac_save_IFS
5125
5126 #
5127 # Enable thread-safe client libraries
5128 #
5129 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
5130 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
5131
5132
5133 # Check whether --enable-thread-safety was given.
5134 if test "${enable_thread_safety+set}" = set; then
5135   enableval=$enable_thread_safety;
5136   case $enableval in
5137     yes)
5138       :
5139       ;;
5140     no)
5141       :
5142       ;;
5143     *)
5144       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
5145 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
5146    { (exit 1); exit 1; }; }
5147       ;;
5148   esac
5149
5150 else
5151   enable_thread_safety=yes
5152
5153 fi
5154
5155
5156 if test "$enable_thread_safety" = yes; then
5157
5158 cat >>confdefs.h <<\_ACEOF
5159 #define ENABLE_THREAD_SAFETY 1
5160 _ACEOF
5161
5162 fi
5163 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
5164 $as_echo "$enable_thread_safety" >&6; }
5165
5166
5167 #
5168 # Optionally build Tcl modules (PL/Tcl)
5169 #
5170 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
5171 $as_echo_n "checking whether to build with Tcl... " >&6; }
5172
5173
5174
5175 # Check whether --with-tcl was given.
5176 if test "${with_tcl+set}" = set; then
5177   withval=$with_tcl;
5178   case $withval in
5179     yes)
5180       :
5181       ;;
5182     no)
5183       :
5184       ;;
5185     *)
5186       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
5187 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
5188    { (exit 1); exit 1; }; }
5189       ;;
5190   esac
5191
5192 else
5193   with_tcl=no
5194
5195 fi
5196
5197
5198 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
5199 $as_echo "$with_tcl" >&6; }
5200
5201
5202 # We see if the path to the Tcl/Tk configuration scripts is specified.
5203 # This will override the use of tclsh to find the paths to search.
5204
5205
5206
5207
5208 # Check whether --with-tclconfig was given.
5209 if test "${with_tclconfig+set}" = set; then
5210   withval=$with_tclconfig;
5211   case $withval in
5212     yes)
5213       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5214 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5215    { (exit 1); exit 1; }; }
5216       ;;
5217     no)
5218       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5219 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5220    { (exit 1); exit 1; }; }
5221       ;;
5222     *)
5223
5224       ;;
5225   esac
5226
5227 fi
5228
5229
5230
5231 #
5232 # Optionally build Perl modules (PL/Perl)
5233 #
5234 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
5235 $as_echo_n "checking whether to build Perl modules... " >&6; }
5236
5237
5238
5239 # Check whether --with-perl was given.
5240 if test "${with_perl+set}" = set; then
5241   withval=$with_perl;
5242   case $withval in
5243     yes)
5244       :
5245       ;;
5246     no)
5247       :
5248       ;;
5249     *)
5250       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
5251 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
5252    { (exit 1); exit 1; }; }
5253       ;;
5254   esac
5255
5256 else
5257   with_perl=no
5258
5259 fi
5260
5261
5262 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
5263 $as_echo "$with_perl" >&6; }
5264
5265
5266 #
5267 # Optionally build Python modules (PL/Python)
5268 #
5269 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5270 $as_echo_n "checking whether to build Python modules... " >&6; }
5271
5272
5273
5274 # Check whether --with-python was given.
5275 if test "${with_python+set}" = set; then
5276   withval=$with_python;
5277   case $withval in
5278     yes)
5279       :
5280       ;;
5281     no)
5282       :
5283       ;;
5284     *)
5285       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5286 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5287    { (exit 1); exit 1; }; }
5288       ;;
5289   esac
5290
5291 else
5292   with_python=no
5293
5294 fi
5295
5296
5297 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5298 $as_echo "$with_python" >&6; }
5299
5300
5301 #
5302 # GSSAPI
5303 #
5304 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5305 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5306
5307
5308
5309 # Check whether --with-gssapi was given.
5310 if test "${with_gssapi+set}" = set; then
5311   withval=$with_gssapi;
5312   case $withval in
5313     yes)
5314
5315
5316 cat >>confdefs.h <<\_ACEOF
5317 #define ENABLE_GSS 1
5318 _ACEOF
5319
5320   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5321
5322       ;;
5323     no)
5324       :
5325       ;;
5326     *)
5327       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5328 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5329    { (exit 1); exit 1; }; }
5330       ;;
5331   esac
5332
5333 else
5334   with_gssapi=no
5335
5336 fi
5337
5338
5339 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5340 $as_echo "$with_gssapi" >&6; }
5341
5342 #
5343 # Kerberos 5
5344 #
5345 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5346 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5347
5348
5349
5350 # Check whether --with-krb5 was given.
5351 if test "${with_krb5+set}" = set; then
5352   withval=$with_krb5;
5353   case $withval in
5354     yes)
5355
5356
5357 cat >>confdefs.h <<\_ACEOF
5358 #define KRB5 1
5359 _ACEOF
5360
5361   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5362
5363       ;;
5364     no)
5365       :
5366       ;;
5367     *)
5368       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5369 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5370    { (exit 1); exit 1; }; }
5371       ;;
5372   esac
5373
5374 else
5375   with_krb5=no
5376
5377 fi
5378
5379
5380 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5381 $as_echo "$with_krb5" >&6; }
5382
5383
5384
5385
5386
5387 #
5388 # Kerberos configuration parameters
5389 #
5390
5391
5392
5393 # Check whether --with-krb-srvnam was given.
5394 if test "${with_krb_srvnam+set}" = set; then
5395   withval=$with_krb_srvnam;
5396   case $withval in
5397     yes)
5398       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5399 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5400    { (exit 1); exit 1; }; }
5401       ;;
5402     no)
5403       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5404 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5405    { (exit 1); exit 1; }; }
5406       ;;
5407     *)
5408
5409       ;;
5410   esac
5411
5412 else
5413   with_krb_srvnam="postgres"
5414 fi
5415
5416
5417
5418 cat >>confdefs.h <<_ACEOF
5419 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5420 _ACEOF
5421
5422
5423
5424 #
5425 # PAM
5426 #
5427 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5428 $as_echo_n "checking whether to build with PAM support... " >&6; }
5429
5430
5431
5432 # Check whether --with-pam was given.
5433 if test "${with_pam+set}" = set; then
5434   withval=$with_pam;
5435   case $withval in
5436     yes)
5437
5438 cat >>confdefs.h <<\_ACEOF
5439 #define USE_PAM 1
5440 _ACEOF
5441
5442       ;;
5443     no)
5444       :
5445       ;;
5446     *)
5447       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5448 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5449    { (exit 1); exit 1; }; }
5450       ;;
5451   esac
5452
5453 else
5454   with_pam=no
5455
5456 fi
5457
5458
5459 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5460 $as_echo "$with_pam" >&6; }
5461
5462
5463 #
5464 # LDAP
5465 #
5466 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5467 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5468
5469
5470
5471 # Check whether --with-ldap was given.
5472 if test "${with_ldap+set}" = set; then
5473   withval=$with_ldap;
5474   case $withval in
5475     yes)
5476
5477 cat >>confdefs.h <<\_ACEOF
5478 #define USE_LDAP 1
5479 _ACEOF
5480
5481       ;;
5482     no)
5483       :
5484       ;;
5485     *)
5486       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5487 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5488    { (exit 1); exit 1; }; }
5489       ;;
5490   esac
5491
5492 else
5493   with_ldap=no
5494
5495 fi
5496
5497
5498 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5499 $as_echo "$with_ldap" >&6; }
5500
5501
5502 #
5503 # Bonjour
5504 #
5505 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5506 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5507
5508
5509
5510 # Check whether --with-bonjour was given.
5511 if test "${with_bonjour+set}" = set; then
5512   withval=$with_bonjour;
5513   case $withval in
5514     yes)
5515
5516 cat >>confdefs.h <<\_ACEOF
5517 #define USE_BONJOUR 1
5518 _ACEOF
5519
5520       ;;
5521     no)
5522       :
5523       ;;
5524     *)
5525       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5526 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5527    { (exit 1); exit 1; }; }
5528       ;;
5529   esac
5530
5531 else
5532   with_bonjour=no
5533
5534 fi
5535
5536
5537 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5538 $as_echo "$with_bonjour" >&6; }
5539
5540
5541 #
5542 # OpenSSL
5543 #
5544 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5545 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5546
5547
5548
5549 # Check whether --with-openssl was given.
5550 if test "${with_openssl+set}" = set; then
5551   withval=$with_openssl;
5552   case $withval in
5553     yes)
5554
5555 cat >>confdefs.h <<\_ACEOF
5556 #define USE_SSL 1
5557 _ACEOF
5558
5559       ;;
5560     no)
5561       :
5562       ;;
5563     *)
5564       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5565 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5566    { (exit 1); exit 1; }; }
5567       ;;
5568   esac
5569
5570 else
5571   with_openssl=no
5572
5573 fi
5574
5575
5576 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5577 $as_echo "$with_openssl" >&6; }
5578
5579
5580 #
5581 # SELinux
5582 #
5583 { $as_echo "$as_me:$LINENO: checking whether to build with SELinux support" >&5
5584 $as_echo_n "checking whether to build with SELinux support... " >&6; }
5585
5586
5587
5588 # Check whether --with-selinux was given.
5589 if test "${with_selinux+set}" = set; then
5590   withval=$with_selinux;
5591   case $withval in
5592     yes)
5593       :
5594       ;;
5595     no)
5596       :
5597       ;;
5598     *)
5599       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-selinux option" >&5
5600 $as_echo "$as_me: error: no argument expected for --with-selinux option" >&2;}
5601    { (exit 1); exit 1; }; }
5602       ;;
5603   esac
5604
5605 else
5606   with_selinux=no
5607
5608 fi
5609
5610
5611
5612 { $as_echo "$as_me:$LINENO: result: $with_selinux" >&5
5613 $as_echo "$with_selinux" >&6; }
5614
5615 #
5616 # Readline
5617 #
5618
5619
5620
5621 # Check whether --with-readline was given.
5622 if test "${with_readline+set}" = set; then
5623   withval=$with_readline;
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-readline option" >&5
5633 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5634    { (exit 1); exit 1; }; }
5635       ;;
5636   esac
5637
5638 else
5639   with_readline=yes
5640
5641 fi
5642
5643
5644 # readline on MinGW has problems with backslashes in psql and other bugs.
5645 # This is particularly a problem with non-US code pages.
5646 # Therefore disable its use until we understand the cause. 2004-07-20
5647 if test "$PORTNAME" = "win32"; then
5648   if test "$with_readline" = yes; then
5649     { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5650 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5651     with_readline=no
5652   fi
5653 fi
5654
5655
5656 #
5657 # Prefer libedit
5658 #
5659
5660
5661
5662 # Check whether --with-libedit-preferred was given.
5663 if test "${with_libedit_preferred+set}" = set; then
5664   withval=$with_libedit_preferred;
5665   case $withval in
5666     yes)
5667       :
5668       ;;
5669     no)
5670       :
5671       ;;
5672     *)
5673       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5674 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5675    { (exit 1); exit 1; }; }
5676       ;;
5677   esac
5678
5679 else
5680   with_libedit_preferred=no
5681
5682 fi
5683
5684
5685
5686
5687 #
5688 # OSSP UUID library
5689 #
5690
5691
5692
5693 # Check whether --with-ossp-uuid was given.
5694 if test "${with_ossp_uuid+set}" = set; then
5695   withval=$with_ossp_uuid;
5696   case $withval in
5697     yes)
5698       :
5699       ;;
5700     no)
5701       :
5702       ;;
5703     *)
5704       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5705 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5706    { (exit 1); exit 1; }; }
5707       ;;
5708   esac
5709
5710 else
5711   with_ossp_uuid=no
5712
5713 fi
5714
5715
5716
5717
5718
5719 #
5720 # XML
5721 #
5722
5723
5724
5725 # Check whether --with-libxml was given.
5726 if test "${with_libxml+set}" = set; then
5727   withval=$with_libxml;
5728   case $withval in
5729     yes)
5730
5731 cat >>confdefs.h <<\_ACEOF
5732 #define USE_LIBXML 1
5733 _ACEOF
5734
5735       ;;
5736     no)
5737       :
5738       ;;
5739     *)
5740       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5741 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5742    { (exit 1); exit 1; }; }
5743       ;;
5744   esac
5745
5746 else
5747   with_libxml=no
5748
5749 fi
5750
5751
5752
5753 if test "$with_libxml" = yes ; then
5754   for ac_prog in xml2-config
5755 do
5756   # Extract the first word of "$ac_prog", so it can be a program name with args.
5757 set dummy $ac_prog; ac_word=$2
5758 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5759 $as_echo_n "checking for $ac_word... " >&6; }
5760 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5761   $as_echo_n "(cached) " >&6
5762 else
5763   if test -n "$XML2_CONFIG"; then
5764   ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5765 else
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 for as_dir in $PATH
5768 do
5769   IFS=$as_save_IFS
5770   test -z "$as_dir" && as_dir=.
5771   for ac_exec_ext in '' $ac_executable_extensions; do
5772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5773     ac_cv_prog_XML2_CONFIG="$ac_prog"
5774     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5775     break 2
5776   fi
5777 done
5778 done
5779 IFS=$as_save_IFS
5780
5781 fi
5782 fi
5783 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5784 if test -n "$XML2_CONFIG"; then
5785   { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5786 $as_echo "$XML2_CONFIG" >&6; }
5787 else
5788   { $as_echo "$as_me:$LINENO: result: no" >&5
5789 $as_echo "no" >&6; }
5790 fi
5791
5792
5793   test -n "$XML2_CONFIG" && break
5794 done
5795
5796   if test -n "$XML2_CONFIG"; then
5797     for pgac_option in `$XML2_CONFIG --cflags`; do
5798       case $pgac_option in
5799         -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5800       esac
5801     done
5802     for pgac_option in `$XML2_CONFIG --libs`; do
5803       case $pgac_option in
5804         -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5805       esac
5806     done
5807   fi
5808 fi
5809
5810
5811
5812 #
5813 # XSLT
5814 #
5815
5816
5817
5818 # Check whether --with-libxslt was given.
5819 if test "${with_libxslt+set}" = set; then
5820   withval=$with_libxslt;
5821   case $withval in
5822     yes)
5823
5824 cat >>confdefs.h <<\_ACEOF
5825 #define USE_LIBXSLT 1
5826 _ACEOF
5827
5828       ;;
5829     no)
5830       :
5831       ;;
5832     *)
5833       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5834 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5835    { (exit 1); exit 1; }; }
5836       ;;
5837   esac
5838
5839 else
5840   with_libxslt=no
5841
5842 fi
5843
5844
5845
5846
5847
5848
5849 #
5850 # tzdata
5851 #
5852
5853
5854
5855 # Check whether --with-system-tzdata was given.
5856 if test "${with_system_tzdata+set}" = set; then
5857   withval=$with_system_tzdata;
5858   case $withval in
5859     yes)
5860       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5861 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5862    { (exit 1); exit 1; }; }
5863       ;;
5864     no)
5865       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5866 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5867    { (exit 1); exit 1; }; }
5868       ;;
5869     *)
5870
5871       ;;
5872   esac
5873
5874 fi
5875
5876
5877
5878
5879 #
5880 # Zlib
5881 #
5882
5883
5884
5885 # Check whether --with-zlib was given.
5886 if test "${with_zlib+set}" = set; then
5887   withval=$with_zlib;
5888   case $withval in
5889     yes)
5890       :
5891       ;;
5892     no)
5893       :
5894       ;;
5895     *)
5896       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5897 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5898    { (exit 1); exit 1; }; }
5899       ;;
5900   esac
5901
5902 else
5903   with_zlib=yes
5904
5905 fi
5906
5907
5908
5909
5910 #
5911 # Elf
5912 #
5913
5914 # Assume system is ELF if it predefines __ELF__ as 1,
5915 # otherwise believe host_os based default.
5916 case $host_os in
5917     freebsd1*|freebsd2*) elf=no;;
5918     freebsd3*|freebsd4*) elf=yes;;
5919 esac
5920
5921
5922 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5923 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5924 if test "${ac_cv_path_GREP+set}" = set; then
5925   $as_echo_n "(cached) " >&6
5926 else
5927   if test -z "$GREP"; then
5928   ac_path_GREP_found=false
5929   # Loop through the user's path and test for each of PROGNAME-LIST
5930   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5932 do
5933   IFS=$as_save_IFS
5934   test -z "$as_dir" && as_dir=.
5935   for ac_prog in grep ggrep; do
5936     for ac_exec_ext in '' $ac_executable_extensions; do
5937       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5938       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5939 # Check for GNU ac_path_GREP and select it if it is found.
5940   # Check for GNU $ac_path_GREP
5941 case `"$ac_path_GREP" --version 2>&1` in
5942 *GNU*)
5943   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5944 *)
5945   ac_count=0
5946   $as_echo_n 0123456789 >"conftest.in"
5947   while :
5948   do
5949     cat "conftest.in" "conftest.in" >"conftest.tmp"
5950     mv "conftest.tmp" "conftest.in"
5951     cp "conftest.in" "conftest.nl"
5952     $as_echo 'GREP' >> "conftest.nl"
5953     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5954     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5955     ac_count=`expr $ac_count + 1`
5956     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5957       # Best one so far, save it but keep looking for a better one
5958       ac_cv_path_GREP="$ac_path_GREP"
5959       ac_path_GREP_max=$ac_count
5960     fi
5961     # 10*(2^10) chars as input seems more than enough
5962     test $ac_count -gt 10 && break
5963   done
5964   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5965 esac
5966
5967       $ac_path_GREP_found && break 3
5968     done
5969   done
5970 done
5971 IFS=$as_save_IFS
5972   if test -z "$ac_cv_path_GREP"; then
5973     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5974 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5975    { (exit 1); exit 1; }; }
5976   fi
5977 else
5978   ac_cv_path_GREP=$GREP
5979 fi
5980
5981 fi
5982 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5983 $as_echo "$ac_cv_path_GREP" >&6; }
5984  GREP="$ac_cv_path_GREP"
5985
5986
5987 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5988 $as_echo_n "checking for egrep... " >&6; }
5989 if test "${ac_cv_path_EGREP+set}" = set; then
5990   $as_echo_n "(cached) " >&6
5991 else
5992   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5993    then ac_cv_path_EGREP="$GREP -E"
5994    else
5995      if test -z "$EGREP"; then
5996   ac_path_EGREP_found=false
5997   # Loop through the user's path and test for each of PROGNAME-LIST
5998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6000 do
6001   IFS=$as_save_IFS
6002   test -z "$as_dir" && as_dir=.
6003   for ac_prog in egrep; do
6004     for ac_exec_ext in '' $ac_executable_extensions; do
6005       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6006       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6007 # Check for GNU ac_path_EGREP and select it if it is found.
6008   # Check for GNU $ac_path_EGREP
6009 case `"$ac_path_EGREP" --version 2>&1` in
6010 *GNU*)
6011   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6012 *)
6013   ac_count=0
6014   $as_echo_n 0123456789 >"conftest.in"
6015   while :
6016   do
6017     cat "conftest.in" "conftest.in" >"conftest.tmp"
6018     mv "conftest.tmp" "conftest.in"
6019     cp "conftest.in" "conftest.nl"
6020     $as_echo 'EGREP' >> "conftest.nl"
6021     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6022     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6023     ac_count=`expr $ac_count + 1`
6024     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6025       # Best one so far, save it but keep looking for a better one
6026       ac_cv_path_EGREP="$ac_path_EGREP"
6027       ac_path_EGREP_max=$ac_count
6028     fi
6029     # 10*(2^10) chars as input seems more than enough
6030     test $ac_count -gt 10 && break
6031   done
6032   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6033 esac
6034
6035       $ac_path_EGREP_found && break 3
6036     done
6037   done
6038 done
6039 IFS=$as_save_IFS
6040   if test -z "$ac_cv_path_EGREP"; then
6041     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6042 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6043    { (exit 1); exit 1; }; }
6044   fi
6045 else
6046   ac_cv_path_EGREP=$EGREP
6047 fi
6048
6049    fi
6050 fi
6051 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6052 $as_echo "$ac_cv_path_EGREP" >&6; }
6053  EGREP="$ac_cv_path_EGREP"
6054
6055
6056 cat >conftest.$ac_ext <<_ACEOF
6057 /* confdefs.h.  */
6058 _ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h.  */
6062 #if __ELF__
6063   yes
6064 #endif
6065
6066 _ACEOF
6067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6068   $EGREP "yes" >/dev/null 2>&1; then
6069   ELF_SYS=true
6070 else
6071   if test "X$elf" = "Xyes" ; then
6072   ELF_SYS=true
6073 else
6074   ELF_SYS=
6075 fi
6076 fi
6077 rm -f conftest*
6078
6079
6080
6081 #
6082 # Assignments
6083 #
6084
6085 CPPFLAGS="$CPPFLAGS $INCLUDES"
6086 LDFLAGS="$LDFLAGS $LIBDIRS"
6087
6088
6089
6090
6091
6092 # Check whether --with-gnu-ld was given.
6093 if test "${with_gnu_ld+set}" = set; then
6094   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6095 else
6096   with_gnu_ld=no
6097 fi
6098
6099 ac_prog=ld
6100 if test "$GCC" = yes; then
6101   # Check if gcc -print-prog-name=ld gives a path.
6102   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6103 $as_echo_n "checking for ld used by GCC... " >&6; }
6104   case $host in
6105   *-*-mingw*)
6106     # gcc leaves a trailing carriage return which upsets mingw
6107     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6108   *)
6109     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6110   esac
6111   case "$ac_prog" in
6112     # Accept absolute paths.
6113     [\\/]* | [A-Za-z]:[\\/]*)
6114       re_direlt='/[^/][^/]*/\.\./'
6115       # Canonicalize the path of ld
6116       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6117       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6118         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6119       done
6120       test -z "$LD" && LD="$ac_prog"
6121       ;;
6122   "")
6123     # If it fails, then pretend we aren't using GCC.
6124     ac_prog=ld
6125     ;;
6126   *)
6127     # If it is relative, then search for the first ld in PATH.
6128     with_gnu_ld=unknown
6129     ;;
6130   esac
6131 elif test "$with_gnu_ld" = yes; then
6132   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6133 $as_echo_n "checking for GNU ld... " >&6; }
6134 else
6135   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6136 $as_echo_n "checking for non-GNU ld... " >&6; }
6137 fi
6138 if test "${ac_cv_path_LD+set}" = set; then
6139   $as_echo_n "(cached) " >&6
6140 else
6141   if test -z "$LD"; then
6142   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6143   for ac_dir in $PATH; do
6144     test -z "$ac_dir" && ac_dir=.
6145     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6146       ac_cv_path_LD="$ac_dir/$ac_prog"
6147       # Check to see if the program is GNU ld.  I'd rather use --version,
6148       # but apparently some GNU ld's only accept -v.
6149       # Break only if it was the GNU/non-GNU ld that we prefer.
6150       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6151         test "$with_gnu_ld" != no && break
6152       else
6153         test "$with_gnu_ld" != yes && break
6154       fi
6155     fi
6156   done
6157   IFS="$ac_save_ifs"
6158 else
6159   ac_cv_path_LD="$LD" # Let the user override the test with a path.
6160 fi
6161 fi
6162
6163 LD="$ac_cv_path_LD"
6164 if test -n "$LD"; then
6165   { $as_echo "$as_me:$LINENO: result: $LD" >&5
6166 $as_echo "$LD" >&6; }
6167 else
6168   { $as_echo "$as_me:$LINENO: result: no" >&5
6169 $as_echo "no" >&6; }
6170 fi
6171 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6172 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6173    { (exit 1); exit 1; }; }
6174 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6175 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6176 if test "${ac_cv_prog_gnu_ld+set}" = set; then
6177   $as_echo_n "(cached) " >&6
6178 else
6179   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6180 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6181   ac_cv_prog_gnu_ld=yes
6182 else
6183   ac_cv_prog_gnu_ld=no
6184 fi
6185 fi
6186 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
6187 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6188 with_gnu_ld=$ac_cv_prog_gnu_ld
6189
6190
6191
6192
6193 case $host_os in sysv5*)
6194   { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
6195 $as_echo_n "checking whether ld -R works... " >&6; }
6196 if test "${pgac_cv_prog_ld_R+set}" = set; then
6197   $as_echo_n "(cached) " >&6
6198 else
6199
6200     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
6201     cat >conftest.$ac_ext <<_ACEOF
6202 /* confdefs.h.  */
6203 _ACEOF
6204 cat confdefs.h >>conftest.$ac_ext
6205 cat >>conftest.$ac_ext <<_ACEOF
6206 /* end confdefs.h.  */
6207
6208 int
6209 main ()
6210 {
6211
6212   ;
6213   return 0;
6214 }
6215 _ACEOF
6216 rm -f conftest.$ac_objext conftest$ac_exeext
6217 if { (ac_try="$ac_link"
6218 case "(($ac_try" in
6219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6220   *) ac_try_echo=$ac_try;;
6221 esac
6222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6223 $as_echo "$ac_try_echo") >&5
6224   (eval "$ac_link") 2>conftest.er1
6225   ac_status=$?
6226   grep -v '^ *+' conftest.er1 >conftest.err
6227   rm -f conftest.er1
6228   cat conftest.err >&5
6229   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230   (exit $ac_status); } && {
6231          test -z "$ac_c_werror_flag" ||
6232          test ! -s conftest.err
6233        } && test -s conftest$ac_exeext && {
6234          test "$cross_compiling" = yes ||
6235          $as_test_x conftest$ac_exeext
6236        }; then
6237   pgac_cv_prog_ld_R=yes
6238 else
6239   $as_echo "$as_me: failed program was:" >&5
6240 sed 's/^/| /' conftest.$ac_ext >&5
6241
6242         pgac_cv_prog_ld_R=no
6243 fi
6244
6245 rm -rf conftest.dSYM
6246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6247       conftest$ac_exeext conftest.$ac_ext
6248     LDFLAGS=$pgac_save_LDFLAGS
6249
6250 fi
6251 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
6252 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6253   ld_R_works=$pgac_cv_prog_ld_R
6254
6255 esac
6256 if test -n "$ac_tool_prefix"; then
6257   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6258 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6259 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6260 $as_echo_n "checking for $ac_word... " >&6; }
6261 if test "${ac_cv_prog_RANLIB+set}" = set; then
6262   $as_echo_n "(cached) " >&6
6263 else
6264   if test -n "$RANLIB"; then
6265   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6266 else
6267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268 for as_dir in $PATH
6269 do
6270   IFS=$as_save_IFS
6271   test -z "$as_dir" && as_dir=.
6272   for ac_exec_ext in '' $ac_executable_extensions; do
6273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6274     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6275     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6276     break 2
6277   fi
6278 done
6279 done
6280 IFS=$as_save_IFS
6281
6282 fi
6283 fi
6284 RANLIB=$ac_cv_prog_RANLIB
6285 if test -n "$RANLIB"; then
6286   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6287 $as_echo "$RANLIB" >&6; }
6288 else
6289   { $as_echo "$as_me:$LINENO: result: no" >&5
6290 $as_echo "no" >&6; }
6291 fi
6292
6293
6294 fi
6295 if test -z "$ac_cv_prog_RANLIB"; then
6296   ac_ct_RANLIB=$RANLIB
6297   # Extract the first word of "ranlib", so it can be a program name with args.
6298 set dummy ranlib; ac_word=$2
6299 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6300 $as_echo_n "checking for $ac_word... " >&6; }
6301 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6302   $as_echo_n "(cached) " >&6
6303 else
6304   if test -n "$ac_ct_RANLIB"; then
6305   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6306 else
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 for as_dir in $PATH
6309 do
6310   IFS=$as_save_IFS
6311   test -z "$as_dir" && as_dir=.
6312   for ac_exec_ext in '' $ac_executable_extensions; do
6313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6314     ac_cv_prog_ac_ct_RANLIB="ranlib"
6315     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6316     break 2
6317   fi
6318 done
6319 done
6320 IFS=$as_save_IFS
6321
6322 fi
6323 fi
6324 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6325 if test -n "$ac_ct_RANLIB"; then
6326   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6327 $as_echo "$ac_ct_RANLIB" >&6; }
6328 else
6329   { $as_echo "$as_me:$LINENO: result: no" >&5
6330 $as_echo "no" >&6; }
6331 fi
6332
6333   if test "x$ac_ct_RANLIB" = x; then
6334     RANLIB=":"
6335   else
6336     case $cross_compiling:$ac_tool_warned in
6337 yes:)
6338 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6340 ac_tool_warned=yes ;;
6341 esac
6342     RANLIB=$ac_ct_RANLIB
6343   fi
6344 else
6345   RANLIB="$ac_cv_prog_RANLIB"
6346 fi
6347
6348
6349   if test -n "$ac_tool_prefix"; then
6350   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6351 set dummy ${ac_tool_prefix}strip; ac_word=$2
6352 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6353 $as_echo_n "checking for $ac_word... " >&6; }
6354 if test "${ac_cv_prog_STRIP+set}" = set; then
6355   $as_echo_n "(cached) " >&6
6356 else
6357   if test -n "$STRIP"; then
6358   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6359 else
6360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361 for as_dir in $PATH
6362 do
6363   IFS=$as_save_IFS
6364   test -z "$as_dir" && as_dir=.
6365   for ac_exec_ext in '' $ac_executable_extensions; do
6366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6367     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6368     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6369     break 2
6370   fi
6371 done
6372 done
6373 IFS=$as_save_IFS
6374
6375 fi
6376 fi
6377 STRIP=$ac_cv_prog_STRIP
6378 if test -n "$STRIP"; then
6379   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6380 $as_echo "$STRIP" >&6; }
6381 else
6382   { $as_echo "$as_me:$LINENO: result: no" >&5
6383 $as_echo "no" >&6; }
6384 fi
6385
6386
6387 fi
6388 if test -z "$ac_cv_prog_STRIP"; then
6389   ac_ct_STRIP=$STRIP
6390   # Extract the first word of "strip", so it can be a program name with args.
6391 set dummy strip; ac_word=$2
6392 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6393 $as_echo_n "checking for $ac_word... " >&6; }
6394 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6395   $as_echo_n "(cached) " >&6
6396 else
6397   if test -n "$ac_ct_STRIP"; then
6398   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6399 else
6400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401 for as_dir in $PATH
6402 do
6403   IFS=$as_save_IFS
6404   test -z "$as_dir" && as_dir=.
6405   for ac_exec_ext in '' $ac_executable_extensions; do
6406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6407     ac_cv_prog_ac_ct_STRIP="strip"
6408     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6409     break 2
6410   fi
6411 done
6412 done
6413 IFS=$as_save_IFS
6414
6415 fi
6416 fi
6417 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6418 if test -n "$ac_ct_STRIP"; then
6419   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6420 $as_echo "$ac_ct_STRIP" >&6; }
6421 else
6422   { $as_echo "$as_me:$LINENO: result: no" >&5
6423 $as_echo "no" >&6; }
6424 fi
6425
6426   if test "x$ac_ct_STRIP" = x; then
6427     STRIP=":"
6428   else
6429     case $cross_compiling:$ac_tool_warned in
6430 yes:)
6431 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6433 ac_tool_warned=yes ;;
6434 esac
6435     STRIP=$ac_ct_STRIP
6436   fi
6437 else
6438   STRIP="$ac_cv_prog_STRIP"
6439 fi
6440
6441
6442   { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6443 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6444   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6445     STRIP_STATIC_LIB="$STRIP -x"
6446     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6447     { $as_echo "$as_me:$LINENO: result: yes" >&5
6448 $as_echo "yes" >&6; }
6449   else
6450     case $host_os in
6451       darwin*)
6452         STRIP="$STRIP -x"
6453         STRIP_STATIC_LIB=$STRIP
6454         STRIP_SHARED_LIB=$STRIP
6455         { $as_echo "$as_me:$LINENO: result: yes" >&5
6456 $as_echo "yes" >&6; }
6457         ;;
6458       *)
6459         STRIP_STATIC_LIB=:
6460         STRIP_SHARED_LIB=:
6461         { $as_echo "$as_me:$LINENO: result: no" >&5
6462 $as_echo "no" >&6; }
6463         ;;
6464     esac
6465   fi
6466
6467
6468
6469 if test -n "$ac_tool_prefix"; then
6470   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6471 set dummy ${ac_tool_prefix}ar; ac_word=$2
6472 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6473 $as_echo_n "checking for $ac_word... " >&6; }
6474 if test "${ac_cv_prog_AR+set}" = set; then
6475   $as_echo_n "(cached) " >&6
6476 else
6477   if test -n "$AR"; then
6478   ac_cv_prog_AR="$AR" # Let the user override the test.
6479 else
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481 for as_dir in $PATH
6482 do
6483   IFS=$as_save_IFS
6484   test -z "$as_dir" && as_dir=.
6485   for ac_exec_ext in '' $ac_executable_extensions; do
6486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6487     ac_cv_prog_AR="${ac_tool_prefix}ar"
6488     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6489     break 2
6490   fi
6491 done
6492 done
6493 IFS=$as_save_IFS
6494
6495 fi
6496 fi
6497 AR=$ac_cv_prog_AR
6498 if test -n "$AR"; then
6499   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6500 $as_echo "$AR" >&6; }
6501 else
6502   { $as_echo "$as_me:$LINENO: result: no" >&5
6503 $as_echo "no" >&6; }
6504 fi
6505
6506
6507 fi
6508 if test -z "$ac_cv_prog_AR"; then
6509   ac_ct_AR=$AR
6510   # Extract the first word of "ar", so it can be a program name with args.
6511 set dummy ar; ac_word=$2
6512 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6513 $as_echo_n "checking for $ac_word... " >&6; }
6514 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6515   $as_echo_n "(cached) " >&6
6516 else
6517   if test -n "$ac_ct_AR"; then
6518   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6519 else
6520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521 for as_dir in $PATH
6522 do
6523   IFS=$as_save_IFS
6524   test -z "$as_dir" && as_dir=.
6525   for ac_exec_ext in '' $ac_executable_extensions; do
6526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6527     ac_cv_prog_ac_ct_AR="ar"
6528     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6529     break 2
6530   fi
6531 done
6532 done
6533 IFS=$as_save_IFS
6534
6535 fi
6536 fi
6537 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6538 if test -n "$ac_ct_AR"; then
6539   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6540 $as_echo "$ac_ct_AR" >&6; }
6541 else
6542   { $as_echo "$as_me:$LINENO: result: no" >&5
6543 $as_echo "no" >&6; }
6544 fi
6545
6546   if test "x$ac_ct_AR" = x; then
6547     AR="ar"
6548   else
6549     case $cross_compiling:$ac_tool_warned in
6550 yes:)
6551 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6553 ac_tool_warned=yes ;;
6554 esac
6555     AR=$ac_ct_AR
6556   fi
6557 else
6558   AR="$ac_cv_prog_AR"
6559 fi
6560
6561 if test "$PORTNAME" = "win32"; then
6562   if test -n "$ac_tool_prefix"; then
6563   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6564 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6565 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6566 $as_echo_n "checking for $ac_word... " >&6; }
6567 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6568   $as_echo_n "(cached) " >&6
6569 else
6570   if test -n "$DLLTOOL"; then
6571   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6572 else
6573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574 for as_dir in $PATH
6575 do
6576   IFS=$as_save_IFS
6577   test -z "$as_dir" && as_dir=.
6578   for ac_exec_ext in '' $ac_executable_extensions; do
6579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6580     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6581     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6582     break 2
6583   fi
6584 done
6585 done
6586 IFS=$as_save_IFS
6587
6588 fi
6589 fi
6590 DLLTOOL=$ac_cv_prog_DLLTOOL
6591 if test -n "$DLLTOOL"; then
6592   { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6593 $as_echo "$DLLTOOL" >&6; }
6594 else
6595   { $as_echo "$as_me:$LINENO: result: no" >&5
6596 $as_echo "no" >&6; }
6597 fi
6598
6599
6600 fi
6601 if test -z "$ac_cv_prog_DLLTOOL"; then
6602   ac_ct_DLLTOOL=$DLLTOOL
6603   # Extract the first word of "dlltool", so it can be a program name with args.
6604 set dummy dlltool; ac_word=$2
6605 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6606 $as_echo_n "checking for $ac_word... " >&6; }
6607 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6608   $as_echo_n "(cached) " >&6
6609 else
6610   if test -n "$ac_ct_DLLTOOL"; then
6611   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6612 else
6613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614 for as_dir in $PATH
6615 do
6616   IFS=$as_save_IFS
6617   test -z "$as_dir" && as_dir=.
6618   for ac_exec_ext in '' $ac_executable_extensions; do
6619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6620     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6621     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6622     break 2
6623   fi
6624 done
6625 done
6626 IFS=$as_save_IFS
6627
6628 fi
6629 fi
6630 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6631 if test -n "$ac_ct_DLLTOOL"; then
6632   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6633 $as_echo "$ac_ct_DLLTOOL" >&6; }
6634 else
6635   { $as_echo "$as_me:$LINENO: result: no" >&5
6636 $as_echo "no" >&6; }
6637 fi
6638
6639   if test "x$ac_ct_DLLTOOL" = x; then
6640     DLLTOOL="dlltool"
6641   else
6642     case $cross_compiling:$ac_tool_warned in
6643 yes:)
6644 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6646 ac_tool_warned=yes ;;
6647 esac
6648     DLLTOOL=$ac_ct_DLLTOOL
6649   fi
6650 else
6651   DLLTOOL="$ac_cv_prog_DLLTOOL"
6652 fi
6653
6654   if test -n "$ac_tool_prefix"; then
6655   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6656 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6657 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6658 $as_echo_n "checking for $ac_word... " >&6; }
6659 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6660   $as_echo_n "(cached) " >&6
6661 else
6662   if test -n "$DLLWRAP"; then
6663   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6664 else
6665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666 for as_dir in $PATH
6667 do
6668   IFS=$as_save_IFS
6669   test -z "$as_dir" && as_dir=.
6670   for ac_exec_ext in '' $ac_executable_extensions; do
6671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6672     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6673     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6674     break 2
6675   fi
6676 done
6677 done
6678 IFS=$as_save_IFS
6679
6680 fi
6681 fi
6682 DLLWRAP=$ac_cv_prog_DLLWRAP
6683 if test -n "$DLLWRAP"; then
6684   { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6685 $as_echo "$DLLWRAP" >&6; }
6686 else
6687   { $as_echo "$as_me:$LINENO: result: no" >&5
6688 $as_echo "no" >&6; }
6689 fi
6690
6691
6692 fi
6693 if test -z "$ac_cv_prog_DLLWRAP"; then
6694   ac_ct_DLLWRAP=$DLLWRAP
6695   # Extract the first word of "dllwrap", so it can be a program name with args.
6696 set dummy dllwrap; ac_word=$2
6697 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6698 $as_echo_n "checking for $ac_word... " >&6; }
6699 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6700   $as_echo_n "(cached) " >&6
6701 else
6702   if test -n "$ac_ct_DLLWRAP"; then
6703   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6704 else
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 for as_dir in $PATH
6707 do
6708   IFS=$as_save_IFS
6709   test -z "$as_dir" && as_dir=.
6710   for ac_exec_ext in '' $ac_executable_extensions; do
6711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6712     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6713     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6714     break 2
6715   fi
6716 done
6717 done
6718 IFS=$as_save_IFS
6719
6720 fi
6721 fi
6722 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6723 if test -n "$ac_ct_DLLWRAP"; then
6724   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6725 $as_echo "$ac_ct_DLLWRAP" >&6; }
6726 else
6727   { $as_echo "$as_me:$LINENO: result: no" >&5
6728 $as_echo "no" >&6; }
6729 fi
6730
6731   if test "x$ac_ct_DLLWRAP" = x; then
6732     DLLWRAP="dllwrap"
6733   else
6734     case $cross_compiling:$ac_tool_warned in
6735 yes:)
6736 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6738 ac_tool_warned=yes ;;
6739 esac
6740     DLLWRAP=$ac_ct_DLLWRAP
6741   fi
6742 else
6743   DLLWRAP="$ac_cv_prog_DLLWRAP"
6744 fi
6745
6746   if test -n "$ac_tool_prefix"; then
6747   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6748 set dummy ${ac_tool_prefix}windres; ac_word=$2
6749 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6750 $as_echo_n "checking for $ac_word... " >&6; }
6751 if test "${ac_cv_prog_WINDRES+set}" = set; then
6752   $as_echo_n "(cached) " >&6
6753 else
6754   if test -n "$WINDRES"; then
6755   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6756 else
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758 for as_dir in $PATH
6759 do
6760   IFS=$as_save_IFS
6761   test -z "$as_dir" && as_dir=.
6762   for ac_exec_ext in '' $ac_executable_extensions; do
6763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6764     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6765     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6766     break 2
6767   fi
6768 done
6769 done
6770 IFS=$as_save_IFS
6771
6772 fi
6773 fi
6774 WINDRES=$ac_cv_prog_WINDRES
6775 if test -n "$WINDRES"; then
6776   { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6777 $as_echo "$WINDRES" >&6; }
6778 else
6779   { $as_echo "$as_me:$LINENO: result: no" >&5
6780 $as_echo "no" >&6; }
6781 fi
6782
6783
6784 fi
6785 if test -z "$ac_cv_prog_WINDRES"; then
6786   ac_ct_WINDRES=$WINDRES
6787   # Extract the first word of "windres", so it can be a program name with args.
6788 set dummy windres; ac_word=$2
6789 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6790 $as_echo_n "checking for $ac_word... " >&6; }
6791 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6792   $as_echo_n "(cached) " >&6
6793 else
6794   if test -n "$ac_ct_WINDRES"; then
6795   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6796 else
6797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 for as_dir in $PATH
6799 do
6800   IFS=$as_save_IFS
6801   test -z "$as_dir" && as_dir=.
6802   for ac_exec_ext in '' $ac_executable_extensions; do
6803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6804     ac_cv_prog_ac_ct_WINDRES="windres"
6805     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6806     break 2
6807   fi
6808 done
6809 done
6810 IFS=$as_save_IFS
6811
6812 fi
6813 fi
6814 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6815 if test -n "$ac_ct_WINDRES"; then
6816   { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6817 $as_echo "$ac_ct_WINDRES" >&6; }
6818 else
6819   { $as_echo "$as_me:$LINENO: result: no" >&5
6820 $as_echo "no" >&6; }
6821 fi
6822
6823   if test "x$ac_ct_WINDRES" = x; then
6824     WINDRES="windres"
6825   else
6826     case $cross_compiling:$ac_tool_warned in
6827 yes:)
6828 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6830 ac_tool_warned=yes ;;
6831 esac
6832     WINDRES=$ac_ct_WINDRES
6833   fi
6834 else
6835   WINDRES="$ac_cv_prog_WINDRES"
6836 fi
6837
6838 fi
6839
6840 # Find a good install program.  We prefer a C program (faster),
6841 # so one script is as good as another.  But avoid the broken or
6842 # incompatible versions:
6843 # SysV /etc/install, /usr/sbin/install
6844 # SunOS /usr/etc/install
6845 # IRIX /sbin/install
6846 # AIX /bin/install
6847 # AmigaOS /C/install, which installs bootblocks on floppy discs
6848 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6849 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6850 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6851 # OS/2's system install, which has a completely different semantic
6852 # ./install, which can be erroneously created by make from ./install.sh.
6853 # Reject install programs that cannot install multiple files.
6854 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6855 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6856 if test -z "$INSTALL"; then
6857 if test "${ac_cv_path_install+set}" = set; then
6858   $as_echo_n "(cached) " >&6
6859 else
6860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 for as_dir in $PATH
6862 do
6863   IFS=$as_save_IFS
6864   test -z "$as_dir" && as_dir=.
6865   # Account for people who put trailing slashes in PATH elements.
6866 case $as_dir/ in
6867   ./ | .// | /cC/* | \
6868   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6869   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6870   /usr/ucb/* ) ;;
6871   *)
6872     # OSF1 and SCO ODT 3.0 have their own names for install.
6873     # Don't use installbsd from OSF since it installs stuff as root
6874     # by default.
6875     for ac_prog in ginstall scoinst install; do
6876       for ac_exec_ext in '' $ac_executable_extensions; do
6877         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6878           if test $ac_prog = install &&
6879             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6880             # AIX install.  It has an incompatible calling convention.
6881             :
6882           elif test $ac_prog = install &&
6883             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6884             # program-specific install script used by HP pwplus--don't use.
6885             :
6886           else
6887             rm -rf conftest.one conftest.two conftest.dir
6888             echo one > conftest.one
6889             echo two > conftest.two
6890             mkdir conftest.dir
6891             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6892               test -s conftest.one && test -s conftest.two &&
6893               test -s conftest.dir/conftest.one &&
6894               test -s conftest.dir/conftest.two
6895             then
6896               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6897               break 3
6898             fi
6899           fi
6900         fi
6901       done
6902     done
6903     ;;
6904 esac
6905
6906 done
6907 IFS=$as_save_IFS
6908
6909 rm -rf conftest.one conftest.two conftest.dir
6910
6911 fi
6912   if test "${ac_cv_path_install+set}" = set; then
6913     INSTALL=$ac_cv_path_install
6914   else
6915     # As a last resort, use the slow shell script.  Don't cache a
6916     # value for INSTALL within a source directory, because that will
6917     # break other packages using the cache if that directory is
6918     # removed, or if the value is a relative name.
6919     INSTALL=$ac_install_sh
6920   fi
6921 fi
6922 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
6923 $as_echo "$INSTALL" >&6; }
6924
6925 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6926 # It thinks the first close brace ends the variable substitution.
6927 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6928
6929 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6930
6931 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6932
6933 # When Autoconf chooses install-sh as install program it tries to generate
6934 # a relative path to it in each makefile where it subsitutes it. This clashes
6935 # with our Makefile.global concept. This workaround helps.
6936 case $INSTALL in
6937   *install-sh*) install_bin='';;
6938   *) install_bin=$INSTALL;;
6939 esac
6940
6941
6942 # Extract the first word of "tar", so it can be a program name with args.
6943 set dummy tar; ac_word=$2
6944 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6945 $as_echo_n "checking for $ac_word... " >&6; }
6946 if test "${ac_cv_path_TAR+set}" = set; then
6947   $as_echo_n "(cached) " >&6
6948 else
6949   case $TAR in
6950   [\\/]* | ?:[\\/]*)
6951   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6952   ;;
6953   *)
6954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955 for as_dir in $PATH
6956 do
6957   IFS=$as_save_IFS
6958   test -z "$as_dir" && as_dir=.
6959   for ac_exec_ext in '' $ac_executable_extensions; do
6960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6961     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6962     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6963     break 2
6964   fi
6965 done
6966 done
6967 IFS=$as_save_IFS
6968
6969   ;;
6970 esac
6971 fi
6972 TAR=$ac_cv_path_TAR
6973 if test -n "$TAR"; then
6974   { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6975 $as_echo "$TAR" >&6; }
6976 else
6977   { $as_echo "$as_me:$LINENO: result: no" >&5
6978 $as_echo "no" >&6; }
6979 fi
6980
6981
6982 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6983 $as_echo_n "checking whether ln -s works... " >&6; }
6984 LN_S=$as_ln_s
6985 if test "$LN_S" = "ln -s"; then
6986   { $as_echo "$as_me:$LINENO: result: yes" >&5
6987 $as_echo "yes" >&6; }
6988 else
6989   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6990 $as_echo "no, using $LN_S" >&6; }
6991 fi
6992
6993 for ac_prog in gawk mawk nawk awk
6994 do
6995   # Extract the first word of "$ac_prog", so it can be a program name with args.
6996 set dummy $ac_prog; ac_word=$2
6997 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6998 $as_echo_n "checking for $ac_word... " >&6; }
6999 if test "${ac_cv_prog_AWK+set}" = set; then
7000   $as_echo_n "(cached) " >&6
7001 else
7002   if test -n "$AWK"; then
7003   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7004 else
7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006 for as_dir in $PATH
7007 do
7008   IFS=$as_save_IFS
7009   test -z "$as_dir" && as_dir=.
7010   for ac_exec_ext in '' $ac_executable_extensions; do
7011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7012     ac_cv_prog_AWK="$ac_prog"
7013     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7014     break 2
7015   fi
7016 done
7017 done
7018 IFS=$as_save_IFS
7019
7020 fi
7021 fi
7022 AWK=$ac_cv_prog_AWK
7023 if test -n "$AWK"; then
7024   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
7025 $as_echo "$AWK" >&6; }
7026 else
7027   { $as_echo "$as_me:$LINENO: result: no" >&5
7028 $as_echo "no" >&6; }
7029 fi
7030
7031
7032   test -n "$AWK" && break
7033 done
7034
7035 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
7036 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7037 if test -z "$MKDIR_P"; then
7038   if test "${ac_cv_path_mkdir+set}" = set; then
7039   $as_echo_n "(cached) " >&6
7040 else
7041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7043 do
7044   IFS=$as_save_IFS
7045   test -z "$as_dir" && as_dir=.
7046   for ac_prog in mkdir gmkdir; do
7047          for ac_exec_ext in '' $ac_executable_extensions; do
7048            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
7049            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7050              'mkdir (GNU coreutils) '* | \
7051              'mkdir (coreutils) '* | \
7052              'mkdir (fileutils) '4.1*)
7053                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7054                break 3;;
7055            esac
7056          done
7057        done
7058 done
7059 IFS=$as_save_IFS
7060
7061 fi
7062
7063   if test "${ac_cv_path_mkdir+set}" = set; then
7064     MKDIR_P="$ac_cv_path_mkdir -p"
7065   else
7066     # As a last resort, use the slow shell script.  Don't cache a
7067     # value for MKDIR_P within a source directory, because that will
7068     # break other packages using the cache if that directory is
7069     # removed, or if the value is a relative name.
7070     test -d ./--version && rmdir ./--version
7071     MKDIR_P="$ac_install_sh -d"
7072   fi
7073 fi
7074 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
7075 $as_echo "$MKDIR_P" >&6; }
7076
7077 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
7078 # a relative path to it in each makefile where it subsitutes it. This clashes
7079 # with our Makefile.global concept. This workaround helps.
7080 case $MKDIR_P in
7081   *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
7082 esac
7083
7084 # Let the user override the search
7085 if test -z "$BISON"; then
7086   for ac_prog in bison
7087 do
7088   # Extract the first word of "$ac_prog", so it can be a program name with args.
7089 set dummy $ac_prog; ac_word=$2
7090 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7091 $as_echo_n "checking for $ac_word... " >&6; }
7092 if test "${ac_cv_path_BISON+set}" = set; then
7093   $as_echo_n "(cached) " >&6
7094 else
7095   case $BISON in
7096   [\\/]* | ?:[\\/]*)
7097   ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
7098   ;;
7099   *)
7100   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 for as_dir in $PATH
7102 do
7103   IFS=$as_save_IFS
7104   test -z "$as_dir" && as_dir=.
7105   for ac_exec_ext in '' $ac_executable_extensions; do
7106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7107     ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
7108     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7109     break 2
7110   fi
7111 done
7112 done
7113 IFS=$as_save_IFS
7114
7115   ;;
7116 esac
7117 fi
7118 BISON=$ac_cv_path_BISON
7119 if test -n "$BISON"; then
7120   { $as_echo "$as_me:$LINENO: result: $BISON" >&5
7121 $as_echo "$BISON" >&6; }
7122 else
7123   { $as_echo "$as_me:$LINENO: result: no" >&5
7124 $as_echo "no" >&6; }
7125 fi
7126
7127
7128   test -n "$BISON" && break
7129 done
7130
7131 fi
7132
7133 if test "$BISON"; then
7134   pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
7135   { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
7136 $as_echo "$as_me: using $pgac_bison_version" >&6;}
7137   if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
7138   then
7139     { $as_echo "$as_me:$LINENO: WARNING:
7140 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7141 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
7142 $as_echo "$as_me: WARNING:
7143 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7144 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
7145     BISON=""
7146   fi
7147 fi
7148
7149 if test -z "$BISON"; then
7150   { $as_echo "$as_me:$LINENO: WARNING:
7151 *** Without Bison you will not be able to build PostgreSQL from Git nor
7152 *** change any of the parser definition files.  You can obtain Bison from
7153 *** a GNU mirror site.  (If you are using the official distribution of
7154 *** PostgreSQL then you do not need to worry about this, because the Bison
7155 *** output is pre-generated.)" >&5
7156 $as_echo "$as_me: WARNING:
7157 *** Without Bison you will not be able to build PostgreSQL from Git nor
7158 *** change any of the parser definition files.  You can obtain Bison from
7159 *** a GNU mirror site.  (If you are using the official distribution of
7160 *** PostgreSQL then you do not need to worry about this, because the Bison
7161 *** output is pre-generated.)" >&2;}
7162 fi
7163 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
7164
7165
7166 { $as_echo "$as_me:$LINENO: checking for flex" >&5
7167 $as_echo_n "checking for flex... " >&6; }
7168 if test "${pgac_cv_path_flex+set}" = set; then
7169   $as_echo_n "(cached) " >&6
7170 else
7171   # Let the user override the test
7172 if test -n "$FLEX"; then
7173   pgac_cv_path_flex=$FLEX
7174 else
7175   pgac_save_IFS=$IFS
7176   IFS=$PATH_SEPARATOR
7177   for pgac_dir in $PATH; do
7178     IFS=$pgac_save_IFS
7179     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
7180       pgac_dir=`pwd`
7181     fi
7182     for pgac_prog in flex lex; do
7183       pgac_candidate="$pgac_dir/$pgac_prog"
7184       if test -f "$pgac_candidate" \
7185         && $pgac_candidate --version </dev/null >/dev/null 2>&1
7186       then
7187         echo '%%'  > conftest.l
7188         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
7189           pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
7190           if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
7191           then
7192             pgac_cv_path_flex=$pgac_candidate
7193             break 2
7194           else
7195             { $as_echo "$as_me:$LINENO: WARNING:
7196 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7197 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
7198 $as_echo "$as_me: WARNING:
7199 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7200 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
7201           fi
7202         fi
7203       fi
7204     done
7205   done
7206   rm -f conftest.l lex.yy.c
7207   : ${pgac_cv_path_flex=no}
7208 fi
7209
7210 fi
7211 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
7212 $as_echo "$pgac_cv_path_flex" >&6; }
7213 if test x"$pgac_cv_path_flex" = x"no"; then
7214   { $as_echo "$as_me:$LINENO: WARNING:
7215 *** Without Flex you will not be able to build PostgreSQL from Git nor
7216 *** change any of the scanner definition files.  You can obtain Flex from
7217 *** a GNU mirror site.  (If you are using the official distribution of
7218 *** PostgreSQL then you do not need to worry about this because the Flex
7219 *** output is pre-generated.)" >&5
7220 $as_echo "$as_me: WARNING:
7221 *** Without Flex you will not be able to build PostgreSQL from Git nor
7222 *** change any of the scanner definition files.  You can obtain Flex from
7223 *** a GNU mirror site.  (If you are using the official distribution of
7224 *** PostgreSQL then you do not need to worry about this because the Flex
7225 *** output is pre-generated.)" >&2;}
7226
7227   FLEX=
7228 else
7229   FLEX=$pgac_cv_path_flex
7230   pgac_flex_version=`$FLEX --version 2>/dev/null`
7231   { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
7232 $as_echo "$as_me: using $pgac_flex_version" >&6;}
7233 fi
7234
7235
7236
7237
7238
7239 # Let the user override the search
7240 if test -z "$PERL"; then
7241   # Extract the first word of "perl", so it can be a program name with args.
7242 set dummy perl; ac_word=$2
7243 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7244 $as_echo_n "checking for $ac_word... " >&6; }
7245 if test "${ac_cv_path_PERL+set}" = set; then
7246   $as_echo_n "(cached) " >&6
7247 else
7248   case $PERL in
7249   [\\/]* | ?:[\\/]*)
7250   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7251   ;;
7252   *)
7253   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 for as_dir in $PATH
7255 do
7256   IFS=$as_save_IFS
7257   test -z "$as_dir" && as_dir=.
7258   for ac_exec_ext in '' $ac_executable_extensions; do
7259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7260     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7261     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7262     break 2
7263   fi
7264 done
7265 done
7266 IFS=$as_save_IFS
7267
7268   ;;
7269 esac
7270 fi
7271 PERL=$ac_cv_path_PERL
7272 if test -n "$PERL"; then
7273   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
7274 $as_echo "$PERL" >&6; }
7275 else
7276   { $as_echo "$as_me:$LINENO: result: no" >&5
7277 $as_echo "no" >&6; }
7278 fi
7279
7280
7281 fi
7282
7283 if test "$PERL"; then
7284   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'`
7285   { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
7286 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
7287   if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
7288     $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
7289   then
7290     { $as_echo "$as_me:$LINENO: WARNING:
7291 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7292 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
7293 $as_echo "$as_me: WARNING:
7294 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7295 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
7296     PERL=""
7297   fi
7298 fi
7299
7300 if test -z "$PERL"; then
7301   { $as_echo "$as_me:$LINENO: WARNING:
7302 *** Without Perl you will not be able to build PostgreSQL from Git.
7303 *** You can obtain Perl from any CPAN mirror site.
7304 *** (If you are using the official distribution of PostgreSQL then you do not
7305 *** need to worry about this, because the Perl output is pre-generated.)" >&5
7306 $as_echo "$as_me: WARNING:
7307 *** Without Perl you will not be able to build PostgreSQL from Git.
7308 *** You can obtain Perl from any CPAN mirror site.
7309 *** (If you are using the official distribution of PostgreSQL then you do not
7310 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
7311 fi
7312
7313 if test "$with_perl" = yes; then
7314   if test -z "$PERL"; then
7315     { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
7316 $as_echo "$as_me: error: Perl not found" >&2;}
7317    { (exit 1); exit 1; }; }
7318   fi
7319
7320 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
7321 $as_echo_n "checking for Perl archlibexp... " >&6; }
7322 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7323 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
7324 $as_echo "$perl_archlibexp" >&6; }
7325 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
7326 $as_echo_n "checking for Perl privlibexp... " >&6; }
7327 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7328 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
7329 $as_echo "$perl_privlibexp" >&6; }
7330 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
7331 $as_echo_n "checking for Perl useshrplib... " >&6; }
7332 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7333 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
7334 $as_echo "$perl_useshrplib" >&6; }
7335
7336 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
7337 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
7338 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7339 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7340 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7341 if test -z "$perl_embed_ldflags" ; then
7342         { $as_echo "$as_me:$LINENO: result: no" >&5
7343 $as_echo "no" >&6; }
7344         { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
7345 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7346 installed." >&5
7347 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
7348 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7349 installed." >&2;}
7350    { (exit 1); exit 1; }; }
7351 else
7352         { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
7353 $as_echo "$perl_embed_ldflags" >&6; }
7354 fi
7355
7356 fi
7357
7358 if test "$with_python" = yes; then
7359   # Extract the first word of "python", so it can be a program name with args.
7360 set dummy python; ac_word=$2
7361 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7362 $as_echo_n "checking for $ac_word... " >&6; }
7363 if test "${ac_cv_path_PYTHON+set}" = set; then
7364   $as_echo_n "(cached) " >&6
7365 else
7366   case $PYTHON in
7367   [\\/]* | ?:[\\/]*)
7368   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7369   ;;
7370   *)
7371   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 for as_dir in $PATH
7373 do
7374   IFS=$as_save_IFS
7375   test -z "$as_dir" && as_dir=.
7376   for ac_exec_ext in '' $ac_executable_extensions; do
7377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7378     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7379     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7380     break 2
7381   fi
7382 done
7383 done
7384 IFS=$as_save_IFS
7385
7386   ;;
7387 esac
7388 fi
7389 PYTHON=$ac_cv_path_PYTHON
7390 if test -n "$PYTHON"; then
7391   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
7392 $as_echo "$PYTHON" >&6; }
7393 else
7394   { $as_echo "$as_me:$LINENO: result: no" >&5
7395 $as_echo "no" >&6; }
7396 fi
7397
7398
7399 if test x"$PYTHON" = x""; then
7400   { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
7401 $as_echo "$as_me: error: Python not found" >&2;}
7402    { (exit 1); exit 1; }; }
7403 fi
7404
7405
7406 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
7407 $as_echo_n "checking for Python distutils module... " >&6; }
7408 if "${PYTHON}" -c 'import distutils' 2>&5
7409 then
7410     { $as_echo "$as_me:$LINENO: result: yes" >&5
7411 $as_echo "yes" >&6; }
7412 else
7413     { $as_echo "$as_me:$LINENO: result: no" >&5
7414 $as_echo "no" >&6; }
7415     { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7416 $as_echo "$as_me: error: distutils module not found" >&2;}
7417    { (exit 1); exit 1; }; }
7418 fi
7419 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7420 $as_echo_n "checking Python configuration directory... " >&6; }
7421 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7422 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7423 python_configdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
7424 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7425 $as_echo "$python_configdir" >&6; }
7426
7427 { $as_echo "$as_me:$LINENO: checking Python include directories" >&5
7428 $as_echo_n "checking Python include directories... " >&6; }
7429 python_includespec=`${PYTHON} -c "
7430 import distutils.sysconfig
7431 a = '-I' + distutils.sysconfig.get_python_inc(False)
7432 b = '-I' + distutils.sysconfig.get_python_inc(True)
7433 if a == b:
7434     print(a)
7435 else:
7436     print(a + ' ' + b)"`
7437 { $as_echo "$as_me:$LINENO: result: $python_includespec" >&5
7438 $as_echo "$python_includespec" >&6; }
7439
7440
7441
7442 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7443 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7444
7445 python_libdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7446 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7447 python_so=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7448 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7449
7450 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7451 then
7452         # New way: use the official shared library
7453         ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7454         python_libspec="-L${python_libdir} -l${ldlibrary}"
7455 else
7456         # Old way: use libpython from python_configdir
7457         python_libdir="${python_configdir}"
7458         # LDVERSION was introduced in Python 3.2.
7459         python_ldversion=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDVERSION'))))"`
7460         if test x"${python_ldversion}" = x""; then
7461                 python_ldversion=$python_version
7462         fi
7463         python_libspec="-L${python_libdir} -lpython${python_ldversion}"
7464 fi
7465
7466 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7467
7468 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7469 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7470
7471
7472 # threaded python is not supported on OpenBSD
7473 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7474 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7475 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7476 if test "$pythreads" = "1"; then
7477   { $as_echo "$as_me:$LINENO: result: yes" >&5
7478 $as_echo "yes" >&6; }
7479   case $host_os in
7480   openbsd*)
7481     { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7482 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7483    { (exit 1); exit 1; }; }
7484     ;;
7485   esac
7486 else
7487   { $as_echo "$as_me:$LINENO: result: no" >&5
7488 $as_echo "no" >&6; }
7489 fi
7490
7491
7492 fi
7493
7494 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7495   # Extract the first word of "zic", so it can be a program name with args.
7496 set dummy zic; ac_word=$2
7497 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7498 $as_echo_n "checking for $ac_word... " >&6; }
7499 if test "${ac_cv_path_ZIC+set}" = set; then
7500   $as_echo_n "(cached) " >&6
7501 else
7502   case $ZIC in
7503   [\\/]* | ?:[\\/]*)
7504   ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7505   ;;
7506   *)
7507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508 for as_dir in $PATH
7509 do
7510   IFS=$as_save_IFS
7511   test -z "$as_dir" && as_dir=.
7512   for ac_exec_ext in '' $ac_executable_extensions; do
7513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7514     ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7515     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7516     break 2
7517   fi
7518 done
7519 done
7520 IFS=$as_save_IFS
7521
7522   ;;
7523 esac
7524 fi
7525 ZIC=$ac_cv_path_ZIC
7526 if test -n "$ZIC"; then
7527   { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7528 $as_echo "$ZIC" >&6; }
7529 else
7530   { $as_echo "$as_me:$LINENO: result: no" >&5
7531 $as_echo "no" >&6; }
7532 fi
7533
7534
7535   if test -z "$ZIC"; then
7536     { { $as_echo "$as_me:$LINENO: error:
7537 When cross-compiling, either use the option --with-system-tzdata to use
7538 existing time-zone data, or set the environment variable ZIC to a zic
7539 program to use during the build." >&5
7540 $as_echo "$as_me: error:
7541 When cross-compiling, either use the option --with-system-tzdata to use
7542 existing time-zone data, or set the environment variable ZIC to a zic
7543 program to use during the build." >&2;}
7544    { (exit 1); exit 1; }; }
7545   fi
7546 fi
7547
7548
7549 ##
7550 ## Libraries
7551 ##
7552 ## Most libraries are included only if they demonstrably provide a function
7553 ## we need, but libm is an exception: always include it, because there are
7554 ## too many compilers that play cute optimization games that will break
7555 ## probes for standard functions such as pow().
7556 ##
7557
7558
7559 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7560 $as_echo_n "checking for main in -lm... " >&6; }
7561 if test "${ac_cv_lib_m_main+set}" = set; then
7562   $as_echo_n "(cached) " >&6
7563 else
7564   ac_check_lib_save_LIBS=$LIBS
7565 LIBS="-lm  $LIBS"
7566 cat >conftest.$ac_ext <<_ACEOF
7567 /* confdefs.h.  */
7568 _ACEOF
7569 cat confdefs.h >>conftest.$ac_ext
7570 cat >>conftest.$ac_ext <<_ACEOF
7571 /* end confdefs.h.  */
7572
7573
7574 int
7575 main ()
7576 {
7577 return main ();
7578   ;
7579   return 0;
7580 }
7581 _ACEOF
7582 rm -f conftest.$ac_objext conftest$ac_exeext
7583 if { (ac_try="$ac_link"
7584 case "(($ac_try" in
7585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7586   *) ac_try_echo=$ac_try;;
7587 esac
7588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7589 $as_echo "$ac_try_echo") >&5
7590   (eval "$ac_link") 2>conftest.er1
7591   ac_status=$?
7592   grep -v '^ *+' conftest.er1 >conftest.err
7593   rm -f conftest.er1
7594   cat conftest.err >&5
7595   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596   (exit $ac_status); } && {
7597          test -z "$ac_c_werror_flag" ||
7598          test ! -s conftest.err
7599        } && test -s conftest$ac_exeext && {
7600          test "$cross_compiling" = yes ||
7601          $as_test_x conftest$ac_exeext
7602        }; then
7603   ac_cv_lib_m_main=yes
7604 else
7605   $as_echo "$as_me: failed program was:" >&5
7606 sed 's/^/| /' conftest.$ac_ext >&5
7607
7608         ac_cv_lib_m_main=no
7609 fi
7610
7611 rm -rf conftest.dSYM
7612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7613       conftest$ac_exeext conftest.$ac_ext
7614 LIBS=$ac_check_lib_save_LIBS
7615 fi
7616 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7617 $as_echo "$ac_cv_lib_m_main" >&6; }
7618 if test "x$ac_cv_lib_m_main" = x""yes; then
7619   cat >>confdefs.h <<_ACEOF
7620 #define HAVE_LIBM 1
7621 _ACEOF
7622
7623   LIBS="-lm $LIBS"
7624
7625 fi
7626
7627 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7628 $as_echo_n "checking for library containing setproctitle... " >&6; }
7629 if test "${ac_cv_search_setproctitle+set}" = set; then
7630   $as_echo_n "(cached) " >&6
7631 else
7632   ac_func_search_save_LIBS=$LIBS
7633 cat >conftest.$ac_ext <<_ACEOF
7634 /* confdefs.h.  */
7635 _ACEOF
7636 cat confdefs.h >>conftest.$ac_ext
7637 cat >>conftest.$ac_ext <<_ACEOF
7638 /* end confdefs.h.  */
7639
7640 /* Override any GCC internal prototype to avoid an error.
7641    Use char because int might match the return type of a GCC
7642    builtin and then its argument prototype would still apply.  */
7643 #ifdef __cplusplus
7644 extern "C"
7645 #endif
7646 char setproctitle ();
7647 int
7648 main ()
7649 {
7650 return setproctitle ();
7651   ;
7652   return 0;
7653 }
7654 _ACEOF
7655 for ac_lib in '' util; do
7656   if test -z "$ac_lib"; then
7657     ac_res="none required"
7658   else
7659     ac_res=-l$ac_lib
7660     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7661   fi
7662   rm -f conftest.$ac_objext conftest$ac_exeext
7663 if { (ac_try="$ac_link"
7664 case "(($ac_try" in
7665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7666   *) ac_try_echo=$ac_try;;
7667 esac
7668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7669 $as_echo "$ac_try_echo") >&5
7670   (eval "$ac_link") 2>conftest.er1
7671   ac_status=$?
7672   grep -v '^ *+' conftest.er1 >conftest.err
7673   rm -f conftest.er1
7674   cat conftest.err >&5
7675   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676   (exit $ac_status); } && {
7677          test -z "$ac_c_werror_flag" ||
7678          test ! -s conftest.err
7679        } && test -s conftest$ac_exeext && {
7680          test "$cross_compiling" = yes ||
7681          $as_test_x conftest$ac_exeext
7682        }; then
7683   ac_cv_search_setproctitle=$ac_res
7684 else
7685   $as_echo "$as_me: failed program was:" >&5
7686 sed 's/^/| /' conftest.$ac_ext >&5
7687
7688
7689 fi
7690
7691 rm -rf conftest.dSYM
7692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7693       conftest$ac_exeext
7694   if test "${ac_cv_search_setproctitle+set}" = set; then
7695   break
7696 fi
7697 done
7698 if test "${ac_cv_search_setproctitle+set}" = set; then
7699   :
7700 else
7701   ac_cv_search_setproctitle=no
7702 fi
7703 rm conftest.$ac_ext
7704 LIBS=$ac_func_search_save_LIBS
7705 fi
7706 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7707 $as_echo "$ac_cv_search_setproctitle" >&6; }
7708 ac_res=$ac_cv_search_setproctitle
7709 if test "$ac_res" != no; then
7710   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7711
7712 fi
7713
7714 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7715 $as_echo_n "checking for library containing dlopen... " >&6; }
7716 if test "${ac_cv_search_dlopen+set}" = set; then
7717   $as_echo_n "(cached) " >&6
7718 else
7719   ac_func_search_save_LIBS=$LIBS
7720 cat >conftest.$ac_ext <<_ACEOF
7721 /* confdefs.h.  */
7722 _ACEOF
7723 cat confdefs.h >>conftest.$ac_ext
7724 cat >>conftest.$ac_ext <<_ACEOF
7725 /* end confdefs.h.  */
7726
7727 /* Override any GCC internal prototype to avoid an error.
7728    Use char because int might match the return type of a GCC
7729    builtin and then its argument prototype would still apply.  */
7730 #ifdef __cplusplus
7731 extern "C"
7732 #endif
7733 char dlopen ();
7734 int
7735 main ()
7736 {
7737 return dlopen ();
7738   ;
7739   return 0;
7740 }
7741 _ACEOF
7742 for ac_lib in '' dl; do
7743   if test -z "$ac_lib"; then
7744     ac_res="none required"
7745   else
7746     ac_res=-l$ac_lib
7747     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7748   fi
7749   rm -f conftest.$ac_objext conftest$ac_exeext
7750 if { (ac_try="$ac_link"
7751 case "(($ac_try" in
7752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7753   *) ac_try_echo=$ac_try;;
7754 esac
7755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7756 $as_echo "$ac_try_echo") >&5
7757   (eval "$ac_link") 2>conftest.er1
7758   ac_status=$?
7759   grep -v '^ *+' conftest.er1 >conftest.err
7760   rm -f conftest.er1
7761   cat conftest.err >&5
7762   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763   (exit $ac_status); } && {
7764          test -z "$ac_c_werror_flag" ||
7765          test ! -s conftest.err
7766        } && test -s conftest$ac_exeext && {
7767          test "$cross_compiling" = yes ||
7768          $as_test_x conftest$ac_exeext
7769        }; then
7770   ac_cv_search_dlopen=$ac_res
7771 else
7772   $as_echo "$as_me: failed program was:" >&5
7773 sed 's/^/| /' conftest.$ac_ext >&5
7774
7775
7776 fi
7777
7778 rm -rf conftest.dSYM
7779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7780       conftest$ac_exeext
7781   if test "${ac_cv_search_dlopen+set}" = set; then
7782   break
7783 fi
7784 done
7785 if test "${ac_cv_search_dlopen+set}" = set; then
7786   :
7787 else
7788   ac_cv_search_dlopen=no
7789 fi
7790 rm conftest.$ac_ext
7791 LIBS=$ac_func_search_save_LIBS
7792 fi
7793 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7794 $as_echo "$ac_cv_search_dlopen" >&6; }
7795 ac_res=$ac_cv_search_dlopen
7796 if test "$ac_res" != no; then
7797   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7798
7799 fi
7800
7801 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7802 $as_echo_n "checking for library containing socket... " >&6; }
7803 if test "${ac_cv_search_socket+set}" = set; then
7804   $as_echo_n "(cached) " >&6
7805 else
7806   ac_func_search_save_LIBS=$LIBS
7807 cat >conftest.$ac_ext <<_ACEOF
7808 /* confdefs.h.  */
7809 _ACEOF
7810 cat confdefs.h >>conftest.$ac_ext
7811 cat >>conftest.$ac_ext <<_ACEOF
7812 /* end confdefs.h.  */
7813
7814 /* Override any GCC internal prototype to avoid an error.
7815    Use char because int might match the return type of a GCC
7816    builtin and then its argument prototype would still apply.  */
7817 #ifdef __cplusplus
7818 extern "C"
7819 #endif
7820 char socket ();
7821 int
7822 main ()
7823 {
7824 return socket ();
7825   ;
7826   return 0;
7827 }
7828 _ACEOF
7829 for ac_lib in '' socket wsock32; do
7830   if test -z "$ac_lib"; then
7831     ac_res="none required"
7832   else
7833     ac_res=-l$ac_lib
7834     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7835   fi
7836   rm -f conftest.$ac_objext conftest$ac_exeext
7837 if { (ac_try="$ac_link"
7838 case "(($ac_try" in
7839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7840   *) ac_try_echo=$ac_try;;
7841 esac
7842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7843 $as_echo "$ac_try_echo") >&5
7844   (eval "$ac_link") 2>conftest.er1
7845   ac_status=$?
7846   grep -v '^ *+' conftest.er1 >conftest.err
7847   rm -f conftest.er1
7848   cat conftest.err >&5
7849   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850   (exit $ac_status); } && {
7851          test -z "$ac_c_werror_flag" ||
7852          test ! -s conftest.err
7853        } && test -s conftest$ac_exeext && {
7854          test "$cross_compiling" = yes ||
7855          $as_test_x conftest$ac_exeext
7856        }; then
7857   ac_cv_search_socket=$ac_res
7858 else
7859   $as_echo "$as_me: failed program was:" >&5
7860 sed 's/^/| /' conftest.$ac_ext >&5
7861
7862
7863 fi
7864
7865 rm -rf conftest.dSYM
7866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7867       conftest$ac_exeext
7868   if test "${ac_cv_search_socket+set}" = set; then
7869   break
7870 fi
7871 done
7872 if test "${ac_cv_search_socket+set}" = set; then
7873   :
7874 else
7875   ac_cv_search_socket=no
7876 fi
7877 rm conftest.$ac_ext
7878 LIBS=$ac_func_search_save_LIBS
7879 fi
7880 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7881 $as_echo "$ac_cv_search_socket" >&6; }
7882 ac_res=$ac_cv_search_socket
7883 if test "$ac_res" != no; then
7884   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7885
7886 fi
7887
7888 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7889 $as_echo_n "checking for library containing shl_load... " >&6; }
7890 if test "${ac_cv_search_shl_load+set}" = set; then
7891   $as_echo_n "(cached) " >&6
7892 else
7893   ac_func_search_save_LIBS=$LIBS
7894 cat >conftest.$ac_ext <<_ACEOF
7895 /* confdefs.h.  */
7896 _ACEOF
7897 cat confdefs.h >>conftest.$ac_ext
7898 cat >>conftest.$ac_ext <<_ACEOF
7899 /* end confdefs.h.  */
7900
7901 /* Override any GCC internal prototype to avoid an error.
7902    Use char because int might match the return type of a GCC
7903    builtin and then its argument prototype would still apply.  */
7904 #ifdef __cplusplus
7905 extern "C"
7906 #endif
7907 char shl_load ();
7908 int
7909 main ()
7910 {
7911 return shl_load ();
7912   ;
7913   return 0;
7914 }
7915 _ACEOF
7916 for ac_lib in '' dld; do
7917   if test -z "$ac_lib"; then
7918     ac_res="none required"
7919   else
7920     ac_res=-l$ac_lib
7921     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7922   fi
7923   rm -f conftest.$ac_objext conftest$ac_exeext
7924 if { (ac_try="$ac_link"
7925 case "(($ac_try" in
7926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927   *) ac_try_echo=$ac_try;;
7928 esac
7929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7930 $as_echo "$ac_try_echo") >&5
7931   (eval "$ac_link") 2>conftest.er1
7932   ac_status=$?
7933   grep -v '^ *+' conftest.er1 >conftest.err
7934   rm -f conftest.er1
7935   cat conftest.err >&5
7936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937   (exit $ac_status); } && {
7938          test -z "$ac_c_werror_flag" ||
7939          test ! -s conftest.err
7940        } && test -s conftest$ac_exeext && {
7941          test "$cross_compiling" = yes ||
7942          $as_test_x conftest$ac_exeext
7943        }; then
7944   ac_cv_search_shl_load=$ac_res
7945 else
7946   $as_echo "$as_me: failed program was:" >&5
7947 sed 's/^/| /' conftest.$ac_ext >&5
7948
7949
7950 fi
7951
7952 rm -rf conftest.dSYM
7953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7954       conftest$ac_exeext
7955   if test "${ac_cv_search_shl_load+set}" = set; then
7956   break
7957 fi
7958 done
7959 if test "${ac_cv_search_shl_load+set}" = set; then
7960   :
7961 else
7962   ac_cv_search_shl_load=no
7963 fi
7964 rm conftest.$ac_ext
7965 LIBS=$ac_func_search_save_LIBS
7966 fi
7967 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7968 $as_echo "$ac_cv_search_shl_load" >&6; }
7969 ac_res=$ac_cv_search_shl_load
7970 if test "$ac_res" != no; then
7971   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7972
7973 fi
7974
7975 # We only use libld in port/dynloader/aix.c
7976 case $host_os in
7977      aix*)
7978         { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7979 $as_echo_n "checking for library containing ldopen... " >&6; }
7980 if test "${ac_cv_search_ldopen+set}" = set; then
7981   $as_echo_n "(cached) " >&6
7982 else
7983   ac_func_search_save_LIBS=$LIBS
7984 cat >conftest.$ac_ext <<_ACEOF
7985 /* confdefs.h.  */
7986 _ACEOF
7987 cat confdefs.h >>conftest.$ac_ext
7988 cat >>conftest.$ac_ext <<_ACEOF
7989 /* end confdefs.h.  */
7990
7991 /* Override any GCC internal prototype to avoid an error.
7992    Use char because int might match the return type of a GCC
7993    builtin and then its argument prototype would still apply.  */
7994 #ifdef __cplusplus
7995 extern "C"
7996 #endif
7997 char ldopen ();
7998 int
7999 main ()
8000 {
8001 return ldopen ();
8002   ;
8003   return 0;
8004 }
8005 _ACEOF
8006 for ac_lib in '' ld; do
8007   if test -z "$ac_lib"; then
8008     ac_res="none required"
8009   else
8010     ac_res=-l$ac_lib
8011     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8012   fi
8013   rm -f conftest.$ac_objext conftest$ac_exeext
8014 if { (ac_try="$ac_link"
8015 case "(($ac_try" in
8016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8017   *) ac_try_echo=$ac_try;;
8018 esac
8019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8020 $as_echo "$ac_try_echo") >&5
8021   (eval "$ac_link") 2>conftest.er1
8022   ac_status=$?
8023   grep -v '^ *+' conftest.er1 >conftest.err
8024   rm -f conftest.er1
8025   cat conftest.err >&5
8026   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027   (exit $ac_status); } && {
8028          test -z "$ac_c_werror_flag" ||
8029          test ! -s conftest.err
8030        } && test -s conftest$ac_exeext && {
8031          test "$cross_compiling" = yes ||
8032          $as_test_x conftest$ac_exeext
8033        }; then
8034   ac_cv_search_ldopen=$ac_res
8035 else
8036   $as_echo "$as_me: failed program was:" >&5
8037 sed 's/^/| /' conftest.$ac_ext >&5
8038
8039
8040 fi
8041
8042 rm -rf conftest.dSYM
8043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8044       conftest$ac_exeext
8045   if test "${ac_cv_search_ldopen+set}" = set; then
8046   break
8047 fi
8048 done
8049 if test "${ac_cv_search_ldopen+set}" = set; then
8050   :
8051 else
8052   ac_cv_search_ldopen=no
8053 fi
8054 rm conftest.$ac_ext
8055 LIBS=$ac_func_search_save_LIBS
8056 fi
8057 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
8058 $as_echo "$ac_cv_search_ldopen" >&6; }
8059 ac_res=$ac_cv_search_ldopen
8060 if test "$ac_res" != no; then
8061   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8062
8063 fi
8064
8065         ;;
8066 esac
8067 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
8068 $as_echo_n "checking for library containing getopt_long... " >&6; }
8069 if test "${ac_cv_search_getopt_long+set}" = set; then
8070   $as_echo_n "(cached) " >&6
8071 else
8072   ac_func_search_save_LIBS=$LIBS
8073 cat >conftest.$ac_ext <<_ACEOF
8074 /* confdefs.h.  */
8075 _ACEOF
8076 cat confdefs.h >>conftest.$ac_ext
8077 cat >>conftest.$ac_ext <<_ACEOF
8078 /* end confdefs.h.  */
8079
8080 /* Override any GCC internal prototype to avoid an error.
8081    Use char because int might match the return type of a GCC
8082    builtin and then its argument prototype would still apply.  */
8083 #ifdef __cplusplus
8084 extern "C"
8085 #endif
8086 char getopt_long ();
8087 int
8088 main ()
8089 {
8090 return getopt_long ();
8091   ;
8092   return 0;
8093 }
8094 _ACEOF
8095 for ac_lib in '' getopt gnugetopt; do
8096   if test -z "$ac_lib"; then
8097     ac_res="none required"
8098   else
8099     ac_res=-l$ac_lib
8100     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8101   fi
8102   rm -f conftest.$ac_objext conftest$ac_exeext
8103 if { (ac_try="$ac_link"
8104 case "(($ac_try" in
8105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8106   *) ac_try_echo=$ac_try;;
8107 esac
8108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8109 $as_echo "$ac_try_echo") >&5
8110   (eval "$ac_link") 2>conftest.er1
8111   ac_status=$?
8112   grep -v '^ *+' conftest.er1 >conftest.err
8113   rm -f conftest.er1
8114   cat conftest.err >&5
8115   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116   (exit $ac_status); } && {
8117          test -z "$ac_c_werror_flag" ||
8118          test ! -s conftest.err
8119        } && test -s conftest$ac_exeext && {
8120          test "$cross_compiling" = yes ||
8121          $as_test_x conftest$ac_exeext
8122        }; then
8123   ac_cv_search_getopt_long=$ac_res
8124 else
8125   $as_echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8127
8128
8129 fi
8130
8131 rm -rf conftest.dSYM
8132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8133       conftest$ac_exeext
8134   if test "${ac_cv_search_getopt_long+set}" = set; then
8135   break
8136 fi
8137 done
8138 if test "${ac_cv_search_getopt_long+set}" = set; then
8139   :
8140 else
8141   ac_cv_search_getopt_long=no
8142 fi
8143 rm conftest.$ac_ext
8144 LIBS=$ac_func_search_save_LIBS
8145 fi
8146 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
8147 $as_echo "$ac_cv_search_getopt_long" >&6; }
8148 ac_res=$ac_cv_search_getopt_long
8149 if test "$ac_res" != no; then
8150   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8151
8152 fi
8153
8154 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
8155 $as_echo_n "checking for library containing crypt... " >&6; }
8156 if test "${ac_cv_search_crypt+set}" = set; then
8157   $as_echo_n "(cached) " >&6
8158 else
8159   ac_func_search_save_LIBS=$LIBS
8160 cat >conftest.$ac_ext <<_ACEOF
8161 /* confdefs.h.  */
8162 _ACEOF
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h.  */
8166
8167 /* Override any GCC internal prototype to avoid an error.
8168    Use char because int might match the return type of a GCC
8169    builtin and then its argument prototype would still apply.  */
8170 #ifdef __cplusplus
8171 extern "C"
8172 #endif
8173 char crypt ();
8174 int
8175 main ()
8176 {
8177 return crypt ();
8178   ;
8179   return 0;
8180 }
8181 _ACEOF
8182 for ac_lib in '' crypt; do
8183   if test -z "$ac_lib"; then
8184     ac_res="none required"
8185   else
8186     ac_res=-l$ac_lib
8187     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8188   fi
8189   rm -f conftest.$ac_objext conftest$ac_exeext
8190 if { (ac_try="$ac_link"
8191 case "(($ac_try" in
8192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193   *) ac_try_echo=$ac_try;;
8194 esac
8195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8196 $as_echo "$ac_try_echo") >&5
8197   (eval "$ac_link") 2>conftest.er1
8198   ac_status=$?
8199   grep -v '^ *+' conftest.er1 >conftest.err
8200   rm -f conftest.er1
8201   cat conftest.err >&5
8202   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203   (exit $ac_status); } && {
8204          test -z "$ac_c_werror_flag" ||
8205          test ! -s conftest.err
8206        } && test -s conftest$ac_exeext && {
8207          test "$cross_compiling" = yes ||
8208          $as_test_x conftest$ac_exeext
8209        }; then
8210   ac_cv_search_crypt=$ac_res
8211 else
8212   $as_echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8214
8215
8216 fi
8217
8218 rm -rf conftest.dSYM
8219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8220       conftest$ac_exeext
8221   if test "${ac_cv_search_crypt+set}" = set; then
8222   break
8223 fi
8224 done
8225 if test "${ac_cv_search_crypt+set}" = set; then
8226   :
8227 else
8228   ac_cv_search_crypt=no
8229 fi
8230 rm conftest.$ac_ext
8231 LIBS=$ac_func_search_save_LIBS
8232 fi
8233 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
8234 $as_echo "$ac_cv_search_crypt" >&6; }
8235 ac_res=$ac_cv_search_crypt
8236 if test "$ac_res" != no; then
8237   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8238
8239 fi
8240
8241 # Solaris:
8242 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
8243 $as_echo_n "checking for library containing fdatasync... " >&6; }
8244 if test "${ac_cv_search_fdatasync+set}" = set; then
8245   $as_echo_n "(cached) " >&6
8246 else
8247   ac_func_search_save_LIBS=$LIBS
8248 cat >conftest.$ac_ext <<_ACEOF
8249 /* confdefs.h.  */
8250 _ACEOF
8251 cat confdefs.h >>conftest.$ac_ext
8252 cat >>conftest.$ac_ext <<_ACEOF
8253 /* end confdefs.h.  */
8254
8255 /* Override any GCC internal prototype to avoid an error.
8256    Use char because int might match the return type of a GCC
8257    builtin and then its argument prototype would still apply.  */
8258 #ifdef __cplusplus
8259 extern "C"
8260 #endif
8261 char fdatasync ();
8262 int
8263 main ()
8264 {
8265 return fdatasync ();
8266   ;
8267   return 0;
8268 }
8269 _ACEOF
8270 for ac_lib in '' rt posix4; do
8271   if test -z "$ac_lib"; then
8272     ac_res="none required"
8273   else
8274     ac_res=-l$ac_lib
8275     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8276   fi
8277   rm -f conftest.$ac_objext conftest$ac_exeext
8278 if { (ac_try="$ac_link"
8279 case "(($ac_try" in
8280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8281   *) ac_try_echo=$ac_try;;
8282 esac
8283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8284 $as_echo "$ac_try_echo") >&5
8285   (eval "$ac_link") 2>conftest.er1
8286   ac_status=$?
8287   grep -v '^ *+' conftest.er1 >conftest.err
8288   rm -f conftest.er1
8289   cat conftest.err >&5
8290   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291   (exit $ac_status); } && {
8292          test -z "$ac_c_werror_flag" ||
8293          test ! -s conftest.err
8294        } && test -s conftest$ac_exeext && {
8295          test "$cross_compiling" = yes ||
8296          $as_test_x conftest$ac_exeext
8297        }; then
8298   ac_cv_search_fdatasync=$ac_res
8299 else
8300   $as_echo "$as_me: failed program was:" >&5
8301 sed 's/^/| /' conftest.$ac_ext >&5
8302
8303
8304 fi
8305
8306 rm -rf conftest.dSYM
8307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8308       conftest$ac_exeext
8309   if test "${ac_cv_search_fdatasync+set}" = set; then
8310   break
8311 fi
8312 done
8313 if test "${ac_cv_search_fdatasync+set}" = set; then
8314   :
8315 else
8316   ac_cv_search_fdatasync=no
8317 fi
8318 rm conftest.$ac_ext
8319 LIBS=$ac_func_search_save_LIBS
8320 fi
8321 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
8322 $as_echo "$ac_cv_search_fdatasync" >&6; }
8323 ac_res=$ac_cv_search_fdatasync
8324 if test "$ac_res" != no; then
8325   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8326
8327 fi
8328
8329 # Required for thread_test.c on Solaris 2.5:
8330 # Other ports use it too (HP-UX) so test unconditionally
8331 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
8332 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
8333 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8334   $as_echo_n "(cached) " >&6
8335 else
8336   ac_func_search_save_LIBS=$LIBS
8337 cat >conftest.$ac_ext <<_ACEOF
8338 /* confdefs.h.  */
8339 _ACEOF
8340 cat confdefs.h >>conftest.$ac_ext
8341 cat >>conftest.$ac_ext <<_ACEOF
8342 /* end confdefs.h.  */
8343
8344 /* Override any GCC internal prototype to avoid an error.
8345    Use char because int might match the return type of a GCC
8346    builtin and then its argument prototype would still apply.  */
8347 #ifdef __cplusplus
8348 extern "C"
8349 #endif
8350 char gethostbyname_r ();
8351 int
8352 main ()
8353 {
8354 return gethostbyname_r ();
8355   ;
8356   return 0;
8357 }
8358 _ACEOF
8359 for ac_lib in '' nsl; do
8360   if test -z "$ac_lib"; then
8361     ac_res="none required"
8362   else
8363     ac_res=-l$ac_lib
8364     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8365   fi
8366   rm -f conftest.$ac_objext conftest$ac_exeext
8367 if { (ac_try="$ac_link"
8368 case "(($ac_try" in
8369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370   *) ac_try_echo=$ac_try;;
8371 esac
8372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8373 $as_echo "$ac_try_echo") >&5
8374   (eval "$ac_link") 2>conftest.er1
8375   ac_status=$?
8376   grep -v '^ *+' conftest.er1 >conftest.err
8377   rm -f conftest.er1
8378   cat conftest.err >&5
8379   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380   (exit $ac_status); } && {
8381          test -z "$ac_c_werror_flag" ||
8382          test ! -s conftest.err
8383        } && test -s conftest$ac_exeext && {
8384          test "$cross_compiling" = yes ||
8385          $as_test_x conftest$ac_exeext
8386        }; then
8387   ac_cv_search_gethostbyname_r=$ac_res
8388 else
8389   $as_echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8391
8392
8393 fi
8394
8395 rm -rf conftest.dSYM
8396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8397       conftest$ac_exeext
8398   if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8399   break
8400 fi
8401 done
8402 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8403   :
8404 else
8405   ac_cv_search_gethostbyname_r=no
8406 fi
8407 rm conftest.$ac_ext
8408 LIBS=$ac_func_search_save_LIBS
8409 fi
8410 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
8411 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
8412 ac_res=$ac_cv_search_gethostbyname_r
8413 if test "$ac_res" != no; then
8414   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8415
8416 fi
8417
8418 # Cygwin:
8419 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
8420 $as_echo_n "checking for library containing shmget... " >&6; }
8421 if test "${ac_cv_search_shmget+set}" = set; then
8422   $as_echo_n "(cached) " >&6
8423 else
8424   ac_func_search_save_LIBS=$LIBS
8425 cat >conftest.$ac_ext <<_ACEOF
8426 /* confdefs.h.  */
8427 _ACEOF
8428 cat confdefs.h >>conftest.$ac_ext
8429 cat >>conftest.$ac_ext <<_ACEOF
8430 /* end confdefs.h.  */
8431
8432 /* Override any GCC internal prototype to avoid an error.
8433    Use char because int might match the return type of a GCC
8434    builtin and then its argument prototype would still apply.  */
8435 #ifdef __cplusplus
8436 extern "C"
8437 #endif
8438 char shmget ();
8439 int
8440 main ()
8441 {
8442 return shmget ();
8443   ;
8444   return 0;
8445 }
8446 _ACEOF
8447 for ac_lib in '' cygipc; do
8448   if test -z "$ac_lib"; then
8449     ac_res="none required"
8450   else
8451     ac_res=-l$ac_lib
8452     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8453   fi
8454   rm -f conftest.$ac_objext conftest$ac_exeext
8455 if { (ac_try="$ac_link"
8456 case "(($ac_try" in
8457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458   *) ac_try_echo=$ac_try;;
8459 esac
8460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8461 $as_echo "$ac_try_echo") >&5
8462   (eval "$ac_link") 2>conftest.er1
8463   ac_status=$?
8464   grep -v '^ *+' conftest.er1 >conftest.err
8465   rm -f conftest.er1
8466   cat conftest.err >&5
8467   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468   (exit $ac_status); } && {
8469          test -z "$ac_c_werror_flag" ||
8470          test ! -s conftest.err
8471        } && test -s conftest$ac_exeext && {
8472          test "$cross_compiling" = yes ||
8473          $as_test_x conftest$ac_exeext
8474        }; then
8475   ac_cv_search_shmget=$ac_res
8476 else
8477   $as_echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8479
8480
8481 fi
8482
8483 rm -rf conftest.dSYM
8484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8485       conftest$ac_exeext
8486   if test "${ac_cv_search_shmget+set}" = set; then
8487   break
8488 fi
8489 done
8490 if test "${ac_cv_search_shmget+set}" = set; then
8491   :
8492 else
8493   ac_cv_search_shmget=no
8494 fi
8495 rm conftest.$ac_ext
8496 LIBS=$ac_func_search_save_LIBS
8497 fi
8498 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8499 $as_echo "$ac_cv_search_shmget" >&6; }
8500 ac_res=$ac_cv_search_shmget
8501 if test "$ac_res" != no; then
8502   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8503
8504 fi
8505
8506
8507 if test "$with_readline" = yes; then
8508
8509
8510 { $as_echo "$as_me:$LINENO: checking for library containing readline" >&5
8511 $as_echo_n "checking for library containing readline... " >&6; }
8512 if test "${pgac_cv_check_readline+set}" = set; then
8513   $as_echo_n "(cached) " >&6
8514 else
8515   pgac_cv_check_readline=no
8516 pgac_save_LIBS=$LIBS
8517 if test x"$with_libedit_preferred" != x"yes"
8518 then    READLINE_ORDER="-lreadline -ledit"
8519 else    READLINE_ORDER="-ledit -lreadline"
8520 fi
8521 for pgac_rllib in $READLINE_ORDER ; do
8522   for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8523     LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8524     cat >conftest.$ac_ext <<_ACEOF
8525 /* confdefs.h.  */
8526 _ACEOF
8527 cat confdefs.h >>conftest.$ac_ext
8528 cat >>conftest.$ac_ext <<_ACEOF
8529 /* end confdefs.h.  */
8530
8531 /* Override any GCC internal prototype to avoid an error.
8532    Use char because int might match the return type of a GCC
8533    builtin and then its argument prototype would still apply.  */
8534 #ifdef __cplusplus
8535 extern "C"
8536 #endif
8537 char readline ();
8538 int
8539 main ()
8540 {
8541 return readline ();
8542   ;
8543   return 0;
8544 }
8545 _ACEOF
8546 rm -f conftest.$ac_objext conftest$ac_exeext
8547 if { (ac_try="$ac_link"
8548 case "(($ac_try" in
8549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8550   *) ac_try_echo=$ac_try;;
8551 esac
8552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8553 $as_echo "$ac_try_echo") >&5
8554   (eval "$ac_link") 2>conftest.er1
8555   ac_status=$?
8556   grep -v '^ *+' conftest.er1 >conftest.err
8557   rm -f conftest.er1
8558   cat conftest.err >&5
8559   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560   (exit $ac_status); } && {
8561          test -z "$ac_c_werror_flag" ||
8562          test ! -s conftest.err
8563        } && test -s conftest$ac_exeext && {
8564          test "$cross_compiling" = yes ||
8565          $as_test_x conftest$ac_exeext
8566        }; then
8567
8568       # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8569       # recognize dependent libraries; assume curses is needed if we didn't
8570       # find any dependency.
8571       case $host_os in
8572         netbsd* | openbsd* | irix*)
8573           if test x"$pgac_lib" = x"" ; then
8574             pgac_lib=" -lcurses"
8575           fi ;;
8576       esac
8577
8578       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8579       break
8580
8581 else
8582   $as_echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8584
8585
8586 fi
8587
8588 rm -rf conftest.dSYM
8589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8590       conftest$ac_exeext conftest.$ac_ext
8591   done
8592   if test "$pgac_cv_check_readline" != no ; then
8593     break
8594   fi
8595 done
8596 LIBS=$pgac_save_LIBS
8597
8598 fi
8599 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_readline" >&5
8600 $as_echo "$pgac_cv_check_readline" >&6; }
8601 if test "$pgac_cv_check_readline" != no ; then
8602   LIBS="$pgac_cv_check_readline $LIBS"
8603
8604 cat >>confdefs.h <<\_ACEOF
8605 #define HAVE_LIBREADLINE 1
8606 _ACEOF
8607
8608 fi
8609
8610
8611   if test x"$pgac_cv_check_readline" = x"no"; then
8612     { { $as_echo "$as_me:$LINENO: error: readline library not found
8613 If you have readline already installed, see config.log for details on the
8614 failure.  It is possible the compiler isn't looking in the proper directory.
8615 Use --without-readline to disable readline support." >&5
8616 $as_echo "$as_me: error: readline library not found
8617 If you have readline already installed, see config.log for details on the
8618 failure.  It is possible the compiler isn't looking in the proper directory.
8619 Use --without-readline to disable readline support." >&2;}
8620    { (exit 1); exit 1; }; }
8621   fi
8622 fi
8623
8624 if test "$with_zlib" = yes; then
8625
8626 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8627 $as_echo_n "checking for inflate in -lz... " >&6; }
8628 if test "${ac_cv_lib_z_inflate+set}" = set; then
8629   $as_echo_n "(cached) " >&6
8630 else
8631   ac_check_lib_save_LIBS=$LIBS
8632 LIBS="-lz  $LIBS"
8633 cat >conftest.$ac_ext <<_ACEOF
8634 /* confdefs.h.  */
8635 _ACEOF
8636 cat confdefs.h >>conftest.$ac_ext
8637 cat >>conftest.$ac_ext <<_ACEOF
8638 /* end confdefs.h.  */
8639
8640 /* Override any GCC internal prototype to avoid an error.
8641    Use char because int might match the return type of a GCC
8642    builtin and then its argument prototype would still apply.  */
8643 #ifdef __cplusplus
8644 extern "C"
8645 #endif
8646 char inflate ();
8647 int
8648 main ()
8649 {
8650 return inflate ();
8651   ;
8652   return 0;
8653 }
8654 _ACEOF
8655 rm -f conftest.$ac_objext conftest$ac_exeext
8656 if { (ac_try="$ac_link"
8657 case "(($ac_try" in
8658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8659   *) ac_try_echo=$ac_try;;
8660 esac
8661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8662 $as_echo "$ac_try_echo") >&5
8663   (eval "$ac_link") 2>conftest.er1
8664   ac_status=$?
8665   grep -v '^ *+' conftest.er1 >conftest.err
8666   rm -f conftest.er1
8667   cat conftest.err >&5
8668   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669   (exit $ac_status); } && {
8670          test -z "$ac_c_werror_flag" ||
8671          test ! -s conftest.err
8672        } && test -s conftest$ac_exeext && {
8673          test "$cross_compiling" = yes ||
8674          $as_test_x conftest$ac_exeext
8675        }; then
8676   ac_cv_lib_z_inflate=yes
8677 else
8678   $as_echo "$as_me: failed program was:" >&5
8679 sed 's/^/| /' conftest.$ac_ext >&5
8680
8681         ac_cv_lib_z_inflate=no
8682 fi
8683
8684 rm -rf conftest.dSYM
8685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8686       conftest$ac_exeext conftest.$ac_ext
8687 LIBS=$ac_check_lib_save_LIBS
8688 fi
8689 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8690 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8691 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8692   cat >>confdefs.h <<_ACEOF
8693 #define HAVE_LIBZ 1
8694 _ACEOF
8695
8696   LIBS="-lz $LIBS"
8697
8698 else
8699   { { $as_echo "$as_me:$LINENO: error: zlib library not found
8700 If you have zlib already installed, see config.log for details on the
8701 failure.  It is possible the compiler isn't looking in the proper directory.
8702 Use --without-zlib to disable zlib support." >&5
8703 $as_echo "$as_me: error: zlib library not found
8704 If you have zlib already installed, see config.log for details on the
8705 failure.  It is possible the compiler isn't looking in the proper directory.
8706 Use --without-zlib to disable zlib support." >&2;}
8707    { (exit 1); exit 1; }; }
8708 fi
8709
8710 fi
8711
8712 if test "$enable_spinlocks" = yes; then
8713
8714 cat >>confdefs.h <<\_ACEOF
8715 #define HAVE_SPINLOCKS 1
8716 _ACEOF
8717
8718 else
8719   { $as_echo "$as_me:$LINENO: WARNING:
8720 *** Not using spinlocks will cause poor performance." >&5
8721 $as_echo "$as_me: WARNING:
8722 *** Not using spinlocks will cause poor performance." >&2;}
8723 fi
8724
8725 if test "$with_gssapi" = yes ; then
8726   if test "$PORTNAME" != "win32"; then
8727     { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8728 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8729 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8730   $as_echo_n "(cached) " >&6
8731 else
8732   ac_func_search_save_LIBS=$LIBS
8733 cat >conftest.$ac_ext <<_ACEOF
8734 /* confdefs.h.  */
8735 _ACEOF
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h.  */
8739
8740 /* Override any GCC internal prototype to avoid an error.
8741    Use char because int might match the return type of a GCC
8742    builtin and then its argument prototype would still apply.  */
8743 #ifdef __cplusplus
8744 extern "C"
8745 #endif
8746 char gss_init_sec_context ();
8747 int
8748 main ()
8749 {
8750 return gss_init_sec_context ();
8751   ;
8752   return 0;
8753 }
8754 _ACEOF
8755 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8756   if test -z "$ac_lib"; then
8757     ac_res="none required"
8758   else
8759     ac_res=-l$ac_lib
8760     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8761   fi
8762   rm -f conftest.$ac_objext conftest$ac_exeext
8763 if { (ac_try="$ac_link"
8764 case "(($ac_try" in
8765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8766   *) ac_try_echo=$ac_try;;
8767 esac
8768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8769 $as_echo "$ac_try_echo") >&5
8770   (eval "$ac_link") 2>conftest.er1
8771   ac_status=$?
8772   grep -v '^ *+' conftest.er1 >conftest.err
8773   rm -f conftest.er1
8774   cat conftest.err >&5
8775   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776   (exit $ac_status); } && {
8777          test -z "$ac_c_werror_flag" ||
8778          test ! -s conftest.err
8779        } && test -s conftest$ac_exeext && {
8780          test "$cross_compiling" = yes ||
8781          $as_test_x conftest$ac_exeext
8782        }; then
8783   ac_cv_search_gss_init_sec_context=$ac_res
8784 else
8785   $as_echo "$as_me: failed program was:" >&5
8786 sed 's/^/| /' conftest.$ac_ext >&5
8787
8788
8789 fi
8790
8791 rm -rf conftest.dSYM
8792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8793       conftest$ac_exeext
8794   if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8795   break
8796 fi
8797 done
8798 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8799   :
8800 else
8801   ac_cv_search_gss_init_sec_context=no
8802 fi
8803 rm conftest.$ac_ext
8804 LIBS=$ac_func_search_save_LIBS
8805 fi
8806 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8807 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8808 ac_res=$ac_cv_search_gss_init_sec_context
8809 if test "$ac_res" != no; then
8810   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8811
8812 else
8813   { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8814 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8815    { (exit 1); exit 1; }; }
8816 fi
8817
8818   else
8819     LIBS="$LIBS -lgssapi32"
8820   fi
8821 fi
8822
8823 if test "$with_krb5" = yes ; then
8824   if test "$PORTNAME" != "win32"; then
8825      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8826 $as_echo_n "checking for library containing com_err... " >&6; }
8827 if test "${ac_cv_search_com_err+set}" = set; then
8828   $as_echo_n "(cached) " >&6
8829 else
8830   ac_func_search_save_LIBS=$LIBS
8831 cat >conftest.$ac_ext <<_ACEOF
8832 /* confdefs.h.  */
8833 _ACEOF
8834 cat confdefs.h >>conftest.$ac_ext
8835 cat >>conftest.$ac_ext <<_ACEOF
8836 /* end confdefs.h.  */
8837
8838 /* Override any GCC internal prototype to avoid an error.
8839    Use char because int might match the return type of a GCC
8840    builtin and then its argument prototype would still apply.  */
8841 #ifdef __cplusplus
8842 extern "C"
8843 #endif
8844 char com_err ();
8845 int
8846 main ()
8847 {
8848 return com_err ();
8849   ;
8850   return 0;
8851 }
8852 _ACEOF
8853 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8854   if test -z "$ac_lib"; then
8855     ac_res="none required"
8856   else
8857     ac_res=-l$ac_lib
8858     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8859   fi
8860   rm -f conftest.$ac_objext conftest$ac_exeext
8861 if { (ac_try="$ac_link"
8862 case "(($ac_try" in
8863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8864   *) ac_try_echo=$ac_try;;
8865 esac
8866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8867 $as_echo "$ac_try_echo") >&5
8868   (eval "$ac_link") 2>conftest.er1
8869   ac_status=$?
8870   grep -v '^ *+' conftest.er1 >conftest.err
8871   rm -f conftest.er1
8872   cat conftest.err >&5
8873   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874   (exit $ac_status); } && {
8875          test -z "$ac_c_werror_flag" ||
8876          test ! -s conftest.err
8877        } && test -s conftest$ac_exeext && {
8878          test "$cross_compiling" = yes ||
8879          $as_test_x conftest$ac_exeext
8880        }; then
8881   ac_cv_search_com_err=$ac_res
8882 else
8883   $as_echo "$as_me: failed program was:" >&5
8884 sed 's/^/| /' conftest.$ac_ext >&5
8885
8886
8887 fi
8888
8889 rm -rf conftest.dSYM
8890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8891       conftest$ac_exeext
8892   if test "${ac_cv_search_com_err+set}" = set; then
8893   break
8894 fi
8895 done
8896 if test "${ac_cv_search_com_err+set}" = set; then
8897   :
8898 else
8899   ac_cv_search_com_err=no
8900 fi
8901 rm conftest.$ac_ext
8902 LIBS=$ac_func_search_save_LIBS
8903 fi
8904 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8905 $as_echo "$ac_cv_search_com_err" >&6; }
8906 ac_res=$ac_cv_search_com_err
8907 if test "$ac_res" != no; then
8908   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8909
8910 else
8911   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8912 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8913    { (exit 1); exit 1; }; }
8914 fi
8915
8916      { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8917 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8918 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8919   $as_echo_n "(cached) " >&6
8920 else
8921   ac_func_search_save_LIBS=$LIBS
8922 cat >conftest.$ac_ext <<_ACEOF
8923 /* confdefs.h.  */
8924 _ACEOF
8925 cat confdefs.h >>conftest.$ac_ext
8926 cat >>conftest.$ac_ext <<_ACEOF
8927 /* end confdefs.h.  */
8928
8929 /* Override any GCC internal prototype to avoid an error.
8930    Use char because int might match the return type of a GCC
8931    builtin and then its argument prototype would still apply.  */
8932 #ifdef __cplusplus
8933 extern "C"
8934 #endif
8935 char krb5_sendauth ();
8936 int
8937 main ()
8938 {
8939 return krb5_sendauth ();
8940   ;
8941   return 0;
8942 }
8943 _ACEOF
8944 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8945   if test -z "$ac_lib"; then
8946     ac_res="none required"
8947   else
8948     ac_res=-l$ac_lib
8949     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8950   fi
8951   rm -f conftest.$ac_objext conftest$ac_exeext
8952 if { (ac_try="$ac_link"
8953 case "(($ac_try" in
8954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8955   *) ac_try_echo=$ac_try;;
8956 esac
8957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8958 $as_echo "$ac_try_echo") >&5
8959   (eval "$ac_link") 2>conftest.er1
8960   ac_status=$?
8961   grep -v '^ *+' conftest.er1 >conftest.err
8962   rm -f conftest.er1
8963   cat conftest.err >&5
8964   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965   (exit $ac_status); } && {
8966          test -z "$ac_c_werror_flag" ||
8967          test ! -s conftest.err
8968        } && test -s conftest$ac_exeext && {
8969          test "$cross_compiling" = yes ||
8970          $as_test_x conftest$ac_exeext
8971        }; then
8972   ac_cv_search_krb5_sendauth=$ac_res
8973 else
8974   $as_echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8976
8977
8978 fi
8979
8980 rm -rf conftest.dSYM
8981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8982       conftest$ac_exeext
8983   if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8984   break
8985 fi
8986 done
8987 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8988   :
8989 else
8990   ac_cv_search_krb5_sendauth=no
8991 fi
8992 rm conftest.$ac_ext
8993 LIBS=$ac_func_search_save_LIBS
8994 fi
8995 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8996 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
8997 ac_res=$ac_cv_search_krb5_sendauth
8998 if test "$ac_res" != no; then
8999   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9000
9001 else
9002   { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
9003 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
9004    { (exit 1); exit 1; }; }
9005 fi
9006
9007   else
9008      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
9009 $as_echo_n "checking for library containing com_err... " >&6; }
9010 if test "${ac_cv_search_com_err+set}" = set; then
9011   $as_echo_n "(cached) " >&6
9012 else
9013   ac_func_search_save_LIBS=$LIBS
9014 cat >conftest.$ac_ext <<_ACEOF
9015 /* confdefs.h.  */
9016 _ACEOF
9017 cat confdefs.h >>conftest.$ac_ext
9018 cat >>conftest.$ac_ext <<_ACEOF
9019 /* end confdefs.h.  */
9020
9021 /* Override any GCC internal prototype to avoid an error.
9022    Use char because int might match the return type of a GCC
9023    builtin and then its argument prototype would still apply.  */
9024 #ifdef __cplusplus
9025 extern "C"
9026 #endif
9027 char com_err ();
9028 int
9029 main ()
9030 {
9031 return com_err ();
9032   ;
9033   return 0;
9034 }
9035 _ACEOF
9036 for ac_lib in '' 'comerr32 -lkrb5_32'; do
9037   if test -z "$ac_lib"; then
9038     ac_res="none required"
9039   else
9040     ac_res=-l$ac_lib
9041     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9042   fi
9043   rm -f conftest.$ac_objext conftest$ac_exeext
9044 if { (ac_try="$ac_link"
9045 case "(($ac_try" in
9046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9047   *) ac_try_echo=$ac_try;;
9048 esac
9049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9050 $as_echo "$ac_try_echo") >&5
9051   (eval "$ac_link") 2>conftest.er1
9052   ac_status=$?
9053   grep -v '^ *+' conftest.er1 >conftest.err
9054   rm -f conftest.er1
9055   cat conftest.err >&5
9056   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057   (exit $ac_status); } && {
9058          test -z "$ac_c_werror_flag" ||
9059          test ! -s conftest.err
9060        } && test -s conftest$ac_exeext && {
9061          test "$cross_compiling" = yes ||
9062          $as_test_x conftest$ac_exeext
9063        }; then
9064   ac_cv_search_com_err=$ac_res
9065 else
9066   $as_echo "$as_me: failed program was:" >&5
9067 sed 's/^/| /' conftest.$ac_ext >&5
9068
9069
9070 fi
9071
9072 rm -rf conftest.dSYM
9073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9074       conftest$ac_exeext
9075   if test "${ac_cv_search_com_err+set}" = set; then
9076   break
9077 fi
9078 done
9079 if test "${ac_cv_search_com_err+set}" = set; then
9080   :
9081 else
9082   ac_cv_search_com_err=no
9083 fi
9084 rm conftest.$ac_ext
9085 LIBS=$ac_func_search_save_LIBS
9086 fi
9087 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
9088 $as_echo "$ac_cv_search_com_err" >&6; }
9089 ac_res=$ac_cv_search_com_err
9090 if test "$ac_res" != no; then
9091   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9092
9093 else
9094   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
9095 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
9096    { (exit 1); exit 1; }; }
9097 fi
9098
9099   fi
9100 fi
9101
9102 if test "$with_openssl" = yes ; then
9103     if test "$PORTNAME" != "win32"; then
9104
9105 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
9106 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
9107 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
9108   $as_echo_n "(cached) " >&6
9109 else
9110   ac_check_lib_save_LIBS=$LIBS
9111 LIBS="-lcrypto  $LIBS"
9112 cat >conftest.$ac_ext <<_ACEOF
9113 /* confdefs.h.  */
9114 _ACEOF
9115 cat confdefs.h >>conftest.$ac_ext
9116 cat >>conftest.$ac_ext <<_ACEOF
9117 /* end confdefs.h.  */
9118
9119 /* Override any GCC internal prototype to avoid an error.
9120    Use char because int might match the return type of a GCC
9121    builtin and then its argument prototype would still apply.  */
9122 #ifdef __cplusplus
9123 extern "C"
9124 #endif
9125 char CRYPTO_new_ex_data ();
9126 int
9127 main ()
9128 {
9129 return CRYPTO_new_ex_data ();
9130   ;
9131   return 0;
9132 }
9133 _ACEOF
9134 rm -f conftest.$ac_objext conftest$ac_exeext
9135 if { (ac_try="$ac_link"
9136 case "(($ac_try" in
9137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9138   *) ac_try_echo=$ac_try;;
9139 esac
9140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9141 $as_echo "$ac_try_echo") >&5
9142   (eval "$ac_link") 2>conftest.er1
9143   ac_status=$?
9144   grep -v '^ *+' conftest.er1 >conftest.err
9145   rm -f conftest.er1
9146   cat conftest.err >&5
9147   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148   (exit $ac_status); } && {
9149          test -z "$ac_c_werror_flag" ||
9150          test ! -s conftest.err
9151        } && test -s conftest$ac_exeext && {
9152          test "$cross_compiling" = yes ||
9153          $as_test_x conftest$ac_exeext
9154        }; then
9155   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
9156 else
9157   $as_echo "$as_me: failed program was:" >&5
9158 sed 's/^/| /' conftest.$ac_ext >&5
9159
9160         ac_cv_lib_crypto_CRYPTO_new_ex_data=no
9161 fi
9162
9163 rm -rf conftest.dSYM
9164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9165       conftest$ac_exeext conftest.$ac_ext
9166 LIBS=$ac_check_lib_save_LIBS
9167 fi
9168 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
9169 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
9170 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
9171   cat >>confdefs.h <<_ACEOF
9172 #define HAVE_LIBCRYPTO 1
9173 _ACEOF
9174
9175   LIBS="-lcrypto $LIBS"
9176
9177 else
9178   { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
9179 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
9180    { (exit 1); exit 1; }; }
9181 fi
9182
9183
9184 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
9185 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
9186 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
9187   $as_echo_n "(cached) " >&6
9188 else
9189   ac_check_lib_save_LIBS=$LIBS
9190 LIBS="-lssl  $LIBS"
9191 cat >conftest.$ac_ext <<_ACEOF
9192 /* confdefs.h.  */
9193 _ACEOF
9194 cat confdefs.h >>conftest.$ac_ext
9195 cat >>conftest.$ac_ext <<_ACEOF
9196 /* end confdefs.h.  */
9197
9198 /* Override any GCC internal prototype to avoid an error.
9199    Use char because int might match the return type of a GCC
9200    builtin and then its argument prototype would still apply.  */
9201 #ifdef __cplusplus
9202 extern "C"
9203 #endif
9204 char SSL_library_init ();
9205 int
9206 main ()
9207 {
9208 return SSL_library_init ();
9209   ;
9210   return 0;
9211 }
9212 _ACEOF
9213 rm -f conftest.$ac_objext conftest$ac_exeext
9214 if { (ac_try="$ac_link"
9215 case "(($ac_try" in
9216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9217   *) ac_try_echo=$ac_try;;
9218 esac
9219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9220 $as_echo "$ac_try_echo") >&5
9221   (eval "$ac_link") 2>conftest.er1
9222   ac_status=$?
9223   grep -v '^ *+' conftest.er1 >conftest.err
9224   rm -f conftest.er1
9225   cat conftest.err >&5
9226   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227   (exit $ac_status); } && {
9228          test -z "$ac_c_werror_flag" ||
9229          test ! -s conftest.err
9230        } && test -s conftest$ac_exeext && {
9231          test "$cross_compiling" = yes ||
9232          $as_test_x conftest$ac_exeext
9233        }; then
9234   ac_cv_lib_ssl_SSL_library_init=yes
9235 else
9236   $as_echo "$as_me: failed program was:" >&5
9237 sed 's/^/| /' conftest.$ac_ext >&5
9238
9239         ac_cv_lib_ssl_SSL_library_init=no
9240 fi
9241
9242 rm -rf conftest.dSYM
9243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9244       conftest$ac_exeext conftest.$ac_ext
9245 LIBS=$ac_check_lib_save_LIBS
9246 fi
9247 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
9248 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
9249 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
9250   cat >>confdefs.h <<_ACEOF
9251 #define HAVE_LIBSSL 1
9252 _ACEOF
9253
9254   LIBS="-lssl $LIBS"
9255
9256 else
9257   { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
9258 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
9259    { (exit 1); exit 1; }; }
9260 fi
9261
9262   else
9263      { $as_echo "$as_me:$LINENO: checking for library containing CRYPTO_new_ex_data" >&5
9264 $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
9265 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9266   $as_echo_n "(cached) " >&6
9267 else
9268   ac_func_search_save_LIBS=$LIBS
9269 cat >conftest.$ac_ext <<_ACEOF
9270 /* confdefs.h.  */
9271 _ACEOF
9272 cat confdefs.h >>conftest.$ac_ext
9273 cat >>conftest.$ac_ext <<_ACEOF
9274 /* end confdefs.h.  */
9275
9276 /* Override any GCC internal prototype to avoid an error.
9277    Use char because int might match the return type of a GCC
9278    builtin and then its argument prototype would still apply.  */
9279 #ifdef __cplusplus
9280 extern "C"
9281 #endif
9282 char CRYPTO_new_ex_data ();
9283 int
9284 main ()
9285 {
9286 return CRYPTO_new_ex_data ();
9287   ;
9288   return 0;
9289 }
9290 _ACEOF
9291 for ac_lib in '' eay32 crypto; do
9292   if test -z "$ac_lib"; then
9293     ac_res="none required"
9294   else
9295     ac_res=-l$ac_lib
9296     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9297   fi
9298   rm -f conftest.$ac_objext conftest$ac_exeext
9299 if { (ac_try="$ac_link"
9300 case "(($ac_try" in
9301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9302   *) ac_try_echo=$ac_try;;
9303 esac
9304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9305 $as_echo "$ac_try_echo") >&5
9306   (eval "$ac_link") 2>conftest.er1
9307   ac_status=$?
9308   grep -v '^ *+' conftest.er1 >conftest.err
9309   rm -f conftest.er1
9310   cat conftest.err >&5
9311   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312   (exit $ac_status); } && {
9313          test -z "$ac_c_werror_flag" ||
9314          test ! -s conftest.err
9315        } && test -s conftest$ac_exeext && {
9316          test "$cross_compiling" = yes ||
9317          $as_test_x conftest$ac_exeext
9318        }; then
9319   ac_cv_search_CRYPTO_new_ex_data=$ac_res
9320 else
9321   $as_echo "$as_me: failed program was:" >&5
9322 sed 's/^/| /' conftest.$ac_ext >&5
9323
9324
9325 fi
9326
9327 rm -rf conftest.dSYM
9328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9329       conftest$ac_exeext
9330   if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9331   break
9332 fi
9333 done
9334 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9335   :
9336 else
9337   ac_cv_search_CRYPTO_new_ex_data=no
9338 fi
9339 rm conftest.$ac_ext
9340 LIBS=$ac_func_search_save_LIBS
9341 fi
9342 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
9343 $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
9344 ac_res=$ac_cv_search_CRYPTO_new_ex_data
9345 if test "$ac_res" != no; then
9346   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9347
9348 else
9349   { { $as_echo "$as_me:$LINENO: error: library 'eay32' or 'crypto' is required for OpenSSL" >&5
9350 $as_echo "$as_me: error: library 'eay32' or 'crypto' is required for OpenSSL" >&2;}
9351    { (exit 1); exit 1; }; }
9352 fi
9353
9354      { $as_echo "$as_me:$LINENO: checking for library containing SSL_library_init" >&5
9355 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
9356 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9357   $as_echo_n "(cached) " >&6
9358 else
9359   ac_func_search_save_LIBS=$LIBS
9360 cat >conftest.$ac_ext <<_ACEOF
9361 /* confdefs.h.  */
9362 _ACEOF
9363 cat confdefs.h >>conftest.$ac_ext
9364 cat >>conftest.$ac_ext <<_ACEOF
9365 /* end confdefs.h.  */
9366
9367 /* Override any GCC internal prototype to avoid an error.
9368    Use char because int might match the return type of a GCC
9369    builtin and then its argument prototype would still apply.  */
9370 #ifdef __cplusplus
9371 extern "C"
9372 #endif
9373 char SSL_library_init ();
9374 int
9375 main ()
9376 {
9377 return SSL_library_init ();
9378   ;
9379   return 0;
9380 }
9381 _ACEOF
9382 for ac_lib in '' ssleay32 ssl; do
9383   if test -z "$ac_lib"; then
9384     ac_res="none required"
9385   else
9386     ac_res=-l$ac_lib
9387     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9388   fi
9389   rm -f conftest.$ac_objext conftest$ac_exeext
9390 if { (ac_try="$ac_link"
9391 case "(($ac_try" in
9392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9393   *) ac_try_echo=$ac_try;;
9394 esac
9395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9396 $as_echo "$ac_try_echo") >&5
9397   (eval "$ac_link") 2>conftest.er1
9398   ac_status=$?
9399   grep -v '^ *+' conftest.er1 >conftest.err
9400   rm -f conftest.er1
9401   cat conftest.err >&5
9402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403   (exit $ac_status); } && {
9404          test -z "$ac_c_werror_flag" ||
9405          test ! -s conftest.err
9406        } && test -s conftest$ac_exeext && {
9407          test "$cross_compiling" = yes ||
9408          $as_test_x conftest$ac_exeext
9409        }; then
9410   ac_cv_search_SSL_library_init=$ac_res
9411 else
9412   $as_echo "$as_me: failed program was:" >&5
9413 sed 's/^/| /' conftest.$ac_ext >&5
9414
9415
9416 fi
9417
9418 rm -rf conftest.dSYM
9419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9420       conftest$ac_exeext
9421   if test "${ac_cv_search_SSL_library_init+set}" = set; then
9422   break
9423 fi
9424 done
9425 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9426   :
9427 else
9428   ac_cv_search_SSL_library_init=no
9429 fi
9430 rm conftest.$ac_ext
9431 LIBS=$ac_func_search_save_LIBS
9432 fi
9433 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_SSL_library_init" >&5
9434 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
9435 ac_res=$ac_cv_search_SSL_library_init
9436 if test "$ac_res" != no; then
9437   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9438
9439 else
9440   { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' or 'ssl' is required for OpenSSL" >&5
9441 $as_echo "$as_me: error: library 'ssleay32' or 'ssl' is required for OpenSSL" >&2;}
9442    { (exit 1); exit 1; }; }
9443 fi
9444
9445   fi
9446 fi
9447
9448 if test "$with_pam" = yes ; then
9449
9450 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9451 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9452 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9453   $as_echo_n "(cached) " >&6
9454 else
9455   ac_check_lib_save_LIBS=$LIBS
9456 LIBS="-lpam  $LIBS"
9457 cat >conftest.$ac_ext <<_ACEOF
9458 /* confdefs.h.  */
9459 _ACEOF
9460 cat confdefs.h >>conftest.$ac_ext
9461 cat >>conftest.$ac_ext <<_ACEOF
9462 /* end confdefs.h.  */
9463
9464 /* Override any GCC internal prototype to avoid an error.
9465    Use char because int might match the return type of a GCC
9466    builtin and then its argument prototype would still apply.  */
9467 #ifdef __cplusplus
9468 extern "C"
9469 #endif
9470 char pam_start ();
9471 int
9472 main ()
9473 {
9474 return pam_start ();
9475   ;
9476   return 0;
9477 }
9478 _ACEOF
9479 rm -f conftest.$ac_objext conftest$ac_exeext
9480 if { (ac_try="$ac_link"
9481 case "(($ac_try" in
9482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9483   *) ac_try_echo=$ac_try;;
9484 esac
9485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9486 $as_echo "$ac_try_echo") >&5
9487   (eval "$ac_link") 2>conftest.er1
9488   ac_status=$?
9489   grep -v '^ *+' conftest.er1 >conftest.err
9490   rm -f conftest.er1
9491   cat conftest.err >&5
9492   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493   (exit $ac_status); } && {
9494          test -z "$ac_c_werror_flag" ||
9495          test ! -s conftest.err
9496        } && test -s conftest$ac_exeext && {
9497          test "$cross_compiling" = yes ||
9498          $as_test_x conftest$ac_exeext
9499        }; then
9500   ac_cv_lib_pam_pam_start=yes
9501 else
9502   $as_echo "$as_me: failed program was:" >&5
9503 sed 's/^/| /' conftest.$ac_ext >&5
9504
9505         ac_cv_lib_pam_pam_start=no
9506 fi
9507
9508 rm -rf conftest.dSYM
9509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9510       conftest$ac_exeext conftest.$ac_ext
9511 LIBS=$ac_check_lib_save_LIBS
9512 fi
9513 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9514 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9515 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9516   cat >>confdefs.h <<_ACEOF
9517 #define HAVE_LIBPAM 1
9518 _ACEOF
9519
9520   LIBS="-lpam $LIBS"
9521
9522 else
9523   { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9524 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9525    { (exit 1); exit 1; }; }
9526 fi
9527
9528 fi
9529
9530 if test "$with_libxml" = yes ; then
9531
9532 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9533 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9534 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9535   $as_echo_n "(cached) " >&6
9536 else
9537   ac_check_lib_save_LIBS=$LIBS
9538 LIBS="-lxml2  $LIBS"
9539 cat >conftest.$ac_ext <<_ACEOF
9540 /* confdefs.h.  */
9541 _ACEOF
9542 cat confdefs.h >>conftest.$ac_ext
9543 cat >>conftest.$ac_ext <<_ACEOF
9544 /* end confdefs.h.  */
9545
9546 /* Override any GCC internal prototype to avoid an error.
9547    Use char because int might match the return type of a GCC
9548    builtin and then its argument prototype would still apply.  */
9549 #ifdef __cplusplus
9550 extern "C"
9551 #endif
9552 char xmlSaveToBuffer ();
9553 int
9554 main ()
9555 {
9556 return xmlSaveToBuffer ();
9557   ;
9558   return 0;
9559 }
9560 _ACEOF
9561 rm -f conftest.$ac_objext conftest$ac_exeext
9562 if { (ac_try="$ac_link"
9563 case "(($ac_try" in
9564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9565   *) ac_try_echo=$ac_try;;
9566 esac
9567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9568 $as_echo "$ac_try_echo") >&5
9569   (eval "$ac_link") 2>conftest.er1
9570   ac_status=$?
9571   grep -v '^ *+' conftest.er1 >conftest.err
9572   rm -f conftest.er1
9573   cat conftest.err >&5
9574   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575   (exit $ac_status); } && {
9576          test -z "$ac_c_werror_flag" ||
9577          test ! -s conftest.err
9578        } && test -s conftest$ac_exeext && {
9579          test "$cross_compiling" = yes ||
9580          $as_test_x conftest$ac_exeext
9581        }; then
9582   ac_cv_lib_xml2_xmlSaveToBuffer=yes
9583 else
9584   $as_echo "$as_me: failed program was:" >&5
9585 sed 's/^/| /' conftest.$ac_ext >&5
9586
9587         ac_cv_lib_xml2_xmlSaveToBuffer=no
9588 fi
9589
9590 rm -rf conftest.dSYM
9591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9592       conftest$ac_exeext conftest.$ac_ext
9593 LIBS=$ac_check_lib_save_LIBS
9594 fi
9595 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9596 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9597 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9598   cat >>confdefs.h <<_ACEOF
9599 #define HAVE_LIBXML2 1
9600 _ACEOF
9601
9602   LIBS="-lxml2 $LIBS"
9603
9604 else
9605   { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9606 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9607    { (exit 1); exit 1; }; }
9608 fi
9609
9610 fi
9611
9612 if test "$with_libxslt" = yes ; then
9613
9614 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9615 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9616 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9617   $as_echo_n "(cached) " >&6
9618 else
9619   ac_check_lib_save_LIBS=$LIBS
9620 LIBS="-lxslt  $LIBS"
9621 cat >conftest.$ac_ext <<_ACEOF
9622 /* confdefs.h.  */
9623 _ACEOF
9624 cat confdefs.h >>conftest.$ac_ext
9625 cat >>conftest.$ac_ext <<_ACEOF
9626 /* end confdefs.h.  */
9627
9628 /* Override any GCC internal prototype to avoid an error.
9629    Use char because int might match the return type of a GCC
9630    builtin and then its argument prototype would still apply.  */
9631 #ifdef __cplusplus
9632 extern "C"
9633 #endif
9634 char xsltCleanupGlobals ();
9635 int
9636 main ()
9637 {
9638 return xsltCleanupGlobals ();
9639   ;
9640   return 0;
9641 }
9642 _ACEOF
9643 rm -f conftest.$ac_objext conftest$ac_exeext
9644 if { (ac_try="$ac_link"
9645 case "(($ac_try" in
9646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9647   *) ac_try_echo=$ac_try;;
9648 esac
9649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9650 $as_echo "$ac_try_echo") >&5
9651   (eval "$ac_link") 2>conftest.er1
9652   ac_status=$?
9653   grep -v '^ *+' conftest.er1 >conftest.err
9654   rm -f conftest.er1
9655   cat conftest.err >&5
9656   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657   (exit $ac_status); } && {
9658          test -z "$ac_c_werror_flag" ||
9659          test ! -s conftest.err
9660        } && test -s conftest$ac_exeext && {
9661          test "$cross_compiling" = yes ||
9662          $as_test_x conftest$ac_exeext
9663        }; then
9664   ac_cv_lib_xslt_xsltCleanupGlobals=yes
9665 else
9666   $as_echo "$as_me: failed program was:" >&5
9667 sed 's/^/| /' conftest.$ac_ext >&5
9668
9669         ac_cv_lib_xslt_xsltCleanupGlobals=no
9670 fi
9671
9672 rm -rf conftest.dSYM
9673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9674       conftest$ac_exeext conftest.$ac_ext
9675 LIBS=$ac_check_lib_save_LIBS
9676 fi
9677 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9678 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9679 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9680   cat >>confdefs.h <<_ACEOF
9681 #define HAVE_LIBXSLT 1
9682 _ACEOF
9683
9684   LIBS="-lxslt $LIBS"
9685
9686 else
9687   { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9688 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9689    { (exit 1); exit 1; }; }
9690 fi
9691
9692 fi
9693
9694 # for contrib/sepgsql
9695 if test "$with_selinux" = yes; then
9696
9697 { $as_echo "$as_me:$LINENO: checking for selinux_status_open in -lselinux" >&5
9698 $as_echo_n "checking for selinux_status_open in -lselinux... " >&6; }
9699 if test "${ac_cv_lib_selinux_selinux_status_open+set}" = set; then
9700   $as_echo_n "(cached) " >&6
9701 else
9702   ac_check_lib_save_LIBS=$LIBS
9703 LIBS="-lselinux  $LIBS"
9704 cat >conftest.$ac_ext <<_ACEOF
9705 /* confdefs.h.  */
9706 _ACEOF
9707 cat confdefs.h >>conftest.$ac_ext
9708 cat >>conftest.$ac_ext <<_ACEOF
9709 /* end confdefs.h.  */
9710
9711 /* Override any GCC internal prototype to avoid an error.
9712    Use char because int might match the return type of a GCC
9713    builtin and then its argument prototype would still apply.  */
9714 #ifdef __cplusplus
9715 extern "C"
9716 #endif
9717 char selinux_status_open ();
9718 int
9719 main ()
9720 {
9721 return selinux_status_open ();
9722   ;
9723   return 0;
9724 }
9725 _ACEOF
9726 rm -f conftest.$ac_objext conftest$ac_exeext
9727 if { (ac_try="$ac_link"
9728 case "(($ac_try" in
9729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9730   *) ac_try_echo=$ac_try;;
9731 esac
9732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9733 $as_echo "$ac_try_echo") >&5
9734   (eval "$ac_link") 2>conftest.er1
9735   ac_status=$?
9736   grep -v '^ *+' conftest.er1 >conftest.err
9737   rm -f conftest.er1
9738   cat conftest.err >&5
9739   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740   (exit $ac_status); } && {
9741          test -z "$ac_c_werror_flag" ||
9742          test ! -s conftest.err
9743        } && test -s conftest$ac_exeext && {
9744          test "$cross_compiling" = yes ||
9745          $as_test_x conftest$ac_exeext
9746        }; then
9747   ac_cv_lib_selinux_selinux_status_open=yes
9748 else
9749   $as_echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.$ac_ext >&5
9751
9752         ac_cv_lib_selinux_selinux_status_open=no
9753 fi
9754
9755 rm -rf conftest.dSYM
9756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9757       conftest$ac_exeext conftest.$ac_ext
9758 LIBS=$ac_check_lib_save_LIBS
9759 fi
9760 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_selinux_status_open" >&5
9761 $as_echo "$ac_cv_lib_selinux_selinux_status_open" >&6; }
9762 if test "x$ac_cv_lib_selinux_selinux_status_open" = x""yes; then
9763   cat >>confdefs.h <<_ACEOF
9764 #define HAVE_LIBSELINUX 1
9765 _ACEOF
9766
9767   LIBS="-lselinux $LIBS"
9768
9769 else
9770   { { $as_echo "$as_me:$LINENO: error: library 'libselinux', version 2.0.99 or newer, is required for SELinux support" >&5
9771 $as_echo "$as_me: error: library 'libselinux', version 2.0.99 or newer, is required for SELinux support" >&2;}
9772    { (exit 1); exit 1; }; }
9773 fi
9774
9775 fi
9776
9777 # for contrib/uuid-ossp
9778 if test "$with_ossp_uuid" = yes ; then
9779   { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9780 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9781 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9782   $as_echo_n "(cached) " >&6
9783 else
9784   ac_check_lib_save_LIBS=$LIBS
9785 LIBS="-lossp-uuid  $LIBS"
9786 cat >conftest.$ac_ext <<_ACEOF
9787 /* confdefs.h.  */
9788 _ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h.  */
9792
9793 /* Override any GCC internal prototype to avoid an error.
9794    Use char because int might match the return type of a GCC
9795    builtin and then its argument prototype would still apply.  */
9796 #ifdef __cplusplus
9797 extern "C"
9798 #endif
9799 char uuid_export ();
9800 int
9801 main ()
9802 {
9803 return uuid_export ();
9804   ;
9805   return 0;
9806 }
9807 _ACEOF
9808 rm -f conftest.$ac_objext conftest$ac_exeext
9809 if { (ac_try="$ac_link"
9810 case "(($ac_try" in
9811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9812   *) ac_try_echo=$ac_try;;
9813 esac
9814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9815 $as_echo "$ac_try_echo") >&5
9816   (eval "$ac_link") 2>conftest.er1
9817   ac_status=$?
9818   grep -v '^ *+' conftest.er1 >conftest.err
9819   rm -f conftest.er1
9820   cat conftest.err >&5
9821   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822   (exit $ac_status); } && {
9823          test -z "$ac_c_werror_flag" ||
9824          test ! -s conftest.err
9825        } && test -s conftest$ac_exeext && {
9826          test "$cross_compiling" = yes ||
9827          $as_test_x conftest$ac_exeext
9828        }; then
9829   ac_cv_lib_ossp_uuid_uuid_export=yes
9830 else
9831   $as_echo "$as_me: failed program was:" >&5
9832 sed 's/^/| /' conftest.$ac_ext >&5
9833
9834         ac_cv_lib_ossp_uuid_uuid_export=no
9835 fi
9836
9837 rm -rf conftest.dSYM
9838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9839       conftest$ac_exeext conftest.$ac_ext
9840 LIBS=$ac_check_lib_save_LIBS
9841 fi
9842 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9843 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9844 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9845   OSSP_UUID_LIBS="-lossp-uuid"
9846 else
9847   { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9848 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9849 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9850   $as_echo_n "(cached) " >&6
9851 else
9852   ac_check_lib_save_LIBS=$LIBS
9853 LIBS="-luuid  $LIBS"
9854 cat >conftest.$ac_ext <<_ACEOF
9855 /* confdefs.h.  */
9856 _ACEOF
9857 cat confdefs.h >>conftest.$ac_ext
9858 cat >>conftest.$ac_ext <<_ACEOF
9859 /* end confdefs.h.  */
9860
9861 /* Override any GCC internal prototype to avoid an error.
9862    Use char because int might match the return type of a GCC
9863    builtin and then its argument prototype would still apply.  */
9864 #ifdef __cplusplus
9865 extern "C"
9866 #endif
9867 char uuid_export ();
9868 int
9869 main ()
9870 {
9871 return uuid_export ();
9872   ;
9873   return 0;
9874 }
9875 _ACEOF
9876 rm -f conftest.$ac_objext conftest$ac_exeext
9877 if { (ac_try="$ac_link"
9878 case "(($ac_try" in
9879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880   *) ac_try_echo=$ac_try;;
9881 esac
9882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9883 $as_echo "$ac_try_echo") >&5
9884   (eval "$ac_link") 2>conftest.er1
9885   ac_status=$?
9886   grep -v '^ *+' conftest.er1 >conftest.err
9887   rm -f conftest.er1
9888   cat conftest.err >&5
9889   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890   (exit $ac_status); } && {
9891          test -z "$ac_c_werror_flag" ||
9892          test ! -s conftest.err
9893        } && test -s conftest$ac_exeext && {
9894          test "$cross_compiling" = yes ||
9895          $as_test_x conftest$ac_exeext
9896        }; then
9897   ac_cv_lib_uuid_uuid_export=yes
9898 else
9899   $as_echo "$as_me: failed program was:" >&5
9900 sed 's/^/| /' conftest.$ac_ext >&5
9901
9902         ac_cv_lib_uuid_uuid_export=no
9903 fi
9904
9905 rm -rf conftest.dSYM
9906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9907       conftest$ac_exeext conftest.$ac_ext
9908 LIBS=$ac_check_lib_save_LIBS
9909 fi
9910 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9911 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9912 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9913   OSSP_UUID_LIBS="-luuid"
9914 else
9915   { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9916 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9917    { (exit 1); exit 1; }; }
9918 fi
9919
9920 fi
9921
9922 fi
9923
9924
9925
9926 ##
9927 ## Header files
9928 ##
9929
9930 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9931 $as_echo_n "checking for ANSI C header files... " >&6; }
9932 if test "${ac_cv_header_stdc+set}" = set; then
9933   $as_echo_n "(cached) " >&6
9934 else
9935   cat >conftest.$ac_ext <<_ACEOF
9936 /* confdefs.h.  */
9937 _ACEOF
9938 cat confdefs.h >>conftest.$ac_ext
9939 cat >>conftest.$ac_ext <<_ACEOF
9940 /* end confdefs.h.  */
9941 #include <stdlib.h>
9942 #include <stdarg.h>
9943 #include <string.h>
9944 #include <float.h>
9945
9946 int
9947 main ()
9948 {
9949
9950   ;
9951   return 0;
9952 }
9953 _ACEOF
9954 rm -f conftest.$ac_objext
9955 if { (ac_try="$ac_compile"
9956 case "(($ac_try" in
9957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958   *) ac_try_echo=$ac_try;;
9959 esac
9960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9961 $as_echo "$ac_try_echo") >&5
9962   (eval "$ac_compile") 2>conftest.er1
9963   ac_status=$?
9964   grep -v '^ *+' conftest.er1 >conftest.err
9965   rm -f conftest.er1
9966   cat conftest.err >&5
9967   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968   (exit $ac_status); } && {
9969          test -z "$ac_c_werror_flag" ||
9970          test ! -s conftest.err
9971        } && test -s conftest.$ac_objext; then
9972   ac_cv_header_stdc=yes
9973 else
9974   $as_echo "$as_me: failed program was:" >&5
9975 sed 's/^/| /' conftest.$ac_ext >&5
9976
9977         ac_cv_header_stdc=no
9978 fi
9979
9980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9981
9982 if test $ac_cv_header_stdc = yes; then
9983   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9984   cat >conftest.$ac_ext <<_ACEOF
9985 /* confdefs.h.  */
9986 _ACEOF
9987 cat confdefs.h >>conftest.$ac_ext
9988 cat >>conftest.$ac_ext <<_ACEOF
9989 /* end confdefs.h.  */
9990 #include <string.h>
9991
9992 _ACEOF
9993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9994   $EGREP "memchr" >/dev/null 2>&1; then
9995   :
9996 else
9997   ac_cv_header_stdc=no
9998 fi
9999 rm -f conftest*
10000
10001 fi
10002
10003 if test $ac_cv_header_stdc = yes; then
10004   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10005   cat >conftest.$ac_ext <<_ACEOF
10006 /* confdefs.h.  */
10007 _ACEOF
10008 cat confdefs.h >>conftest.$ac_ext
10009 cat >>conftest.$ac_ext <<_ACEOF
10010 /* end confdefs.h.  */
10011 #include <stdlib.h>
10012
10013 _ACEOF
10014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10015   $EGREP "free" >/dev/null 2>&1; then
10016   :
10017 else
10018   ac_cv_header_stdc=no
10019 fi
10020 rm -f conftest*
10021
10022 fi
10023
10024 if test $ac_cv_header_stdc = yes; then
10025   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10026   if test "$cross_compiling" = yes; then
10027   :
10028 else
10029   cat >conftest.$ac_ext <<_ACEOF
10030 /* confdefs.h.  */
10031 _ACEOF
10032 cat confdefs.h >>conftest.$ac_ext
10033 cat >>conftest.$ac_ext <<_ACEOF
10034 /* end confdefs.h.  */
10035 #include <ctype.h>
10036 #include <stdlib.h>
10037 #if ((' ' & 0x0FF) == 0x020)
10038 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10039 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10040 #else
10041 # define ISLOWER(c) \
10042                    (('a' <= (c) && (c) <= 'i') \
10043                      || ('j' <= (c) && (c) <= 'r') \
10044                      || ('s' <= (c) && (c) <= 'z'))
10045 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10046 #endif
10047
10048 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10049 int
10050 main ()
10051 {
10052   int i;
10053   for (i = 0; i < 256; i++)
10054     if (XOR (islower (i), ISLOWER (i))
10055         || toupper (i) != TOUPPER (i))
10056       return 2;
10057   return 0;
10058 }
10059 _ACEOF
10060 rm -f conftest$ac_exeext
10061 if { (ac_try="$ac_link"
10062 case "(($ac_try" in
10063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10064   *) ac_try_echo=$ac_try;;
10065 esac
10066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10067 $as_echo "$ac_try_echo") >&5
10068   (eval "$ac_link") 2>&5
10069   ac_status=$?
10070   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10072   { (case "(($ac_try" in
10073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10074   *) ac_try_echo=$ac_try;;
10075 esac
10076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10077 $as_echo "$ac_try_echo") >&5
10078   (eval "$ac_try") 2>&5
10079   ac_status=$?
10080   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081   (exit $ac_status); }; }; then
10082   :
10083 else
10084   $as_echo "$as_me: program exited with status $ac_status" >&5
10085 $as_echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10087
10088 ( exit $ac_status )
10089 ac_cv_header_stdc=no
10090 fi
10091 rm -rf conftest.dSYM
10092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10093 fi
10094
10095
10096 fi
10097 fi
10098 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10099 $as_echo "$ac_cv_header_stdc" >&6; }
10100 if test $ac_cv_header_stdc = yes; then
10101
10102 cat >>confdefs.h <<\_ACEOF
10103 #define STDC_HEADERS 1
10104 _ACEOF
10105
10106 fi
10107
10108 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10119                   inttypes.h stdint.h unistd.h
10120 do
10121 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10122 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10123 $as_echo_n "checking for $ac_header... " >&6; }
10124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10125   $as_echo_n "(cached) " >&6
10126 else
10127   cat >conftest.$ac_ext <<_ACEOF
10128 /* confdefs.h.  */
10129 _ACEOF
10130 cat confdefs.h >>conftest.$ac_ext
10131 cat >>conftest.$ac_ext <<_ACEOF
10132 /* end confdefs.h.  */
10133 $ac_includes_default
10134
10135 #include <$ac_header>
10136 _ACEOF
10137 rm -f conftest.$ac_objext
10138 if { (ac_try="$ac_compile"
10139 case "(($ac_try" in
10140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141   *) ac_try_echo=$ac_try;;
10142 esac
10143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10144 $as_echo "$ac_try_echo") >&5
10145   (eval "$ac_compile") 2>conftest.er1
10146   ac_status=$?
10147   grep -v '^ *+' conftest.er1 >conftest.err
10148   rm -f conftest.er1
10149   cat conftest.err >&5
10150   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151   (exit $ac_status); } && {
10152          test -z "$ac_c_werror_flag" ||
10153          test ! -s conftest.err
10154        } && test -s conftest.$ac_objext; then
10155   eval "$as_ac_Header=yes"
10156 else
10157   $as_echo "$as_me: failed program was:" >&5
10158 sed 's/^/| /' conftest.$ac_ext >&5
10159
10160         eval "$as_ac_Header=no"
10161 fi
10162
10163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10164 fi
10165 ac_res=`eval 'as_val=${'$as_ac_Header'}
10166                  $as_echo "$as_val"'`
10167                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10168 $as_echo "$ac_res" >&6; }
10169 as_val=`eval 'as_val=${'$as_ac_Header'}
10170                  $as_echo "$as_val"'`
10171    if test "x$as_val" = x""yes; then
10172   cat >>confdefs.h <<_ACEOF
10173 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10174 _ACEOF
10175
10176 fi
10177
10178 done
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209 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
10210 do
10211 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10213   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10214 $as_echo_n "checking for $ac_header... " >&6; }
10215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10216   $as_echo_n "(cached) " >&6
10217 fi
10218 ac_res=`eval 'as_val=${'$as_ac_Header'}
10219                  $as_echo "$as_val"'`
10220                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10221 $as_echo "$ac_res" >&6; }
10222 else
10223   # Is the header compilable?
10224 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10225 $as_echo_n "checking $ac_header usability... " >&6; }
10226 cat >conftest.$ac_ext <<_ACEOF
10227 /* confdefs.h.  */
10228 _ACEOF
10229 cat confdefs.h >>conftest.$ac_ext
10230 cat >>conftest.$ac_ext <<_ACEOF
10231 /* end confdefs.h.  */
10232 $ac_includes_default
10233 #include <$ac_header>
10234 _ACEOF
10235 rm -f conftest.$ac_objext
10236 if { (ac_try="$ac_compile"
10237 case "(($ac_try" in
10238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10239   *) ac_try_echo=$ac_try;;
10240 esac
10241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10242 $as_echo "$ac_try_echo") >&5
10243   (eval "$ac_compile") 2>conftest.er1
10244   ac_status=$?
10245   grep -v '^ *+' conftest.er1 >conftest.err
10246   rm -f conftest.er1
10247   cat conftest.err >&5
10248   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249   (exit $ac_status); } && {
10250          test -z "$ac_c_werror_flag" ||
10251          test ! -s conftest.err
10252        } && test -s conftest.$ac_objext; then
10253   ac_header_compiler=yes
10254 else
10255   $as_echo "$as_me: failed program was:" >&5
10256 sed 's/^/| /' conftest.$ac_ext >&5
10257
10258         ac_header_compiler=no
10259 fi
10260
10261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10262 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10263 $as_echo "$ac_header_compiler" >&6; }
10264
10265 # Is the header present?
10266 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10267 $as_echo_n "checking $ac_header presence... " >&6; }
10268 cat >conftest.$ac_ext <<_ACEOF
10269 /* confdefs.h.  */
10270 _ACEOF
10271 cat confdefs.h >>conftest.$ac_ext
10272 cat >>conftest.$ac_ext <<_ACEOF
10273 /* end confdefs.h.  */
10274 #include <$ac_header>
10275 _ACEOF
10276 if { (ac_try="$ac_cpp conftest.$ac_ext"
10277 case "(($ac_try" in
10278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10279   *) ac_try_echo=$ac_try;;
10280 esac
10281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10282 $as_echo "$ac_try_echo") >&5
10283   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10284   ac_status=$?
10285   grep -v '^ *+' conftest.er1 >conftest.err
10286   rm -f conftest.er1
10287   cat conftest.err >&5
10288   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289   (exit $ac_status); } >/dev/null && {
10290          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10291          test ! -s conftest.err
10292        }; then
10293   ac_header_preproc=yes
10294 else
10295   $as_echo "$as_me: failed program was:" >&5
10296 sed 's/^/| /' conftest.$ac_ext >&5
10297
10298   ac_header_preproc=no
10299 fi
10300
10301 rm -f conftest.err conftest.$ac_ext
10302 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10303 $as_echo "$ac_header_preproc" >&6; }
10304
10305 # So?  What about this header?
10306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10307   yes:no: )
10308     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10309 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10310     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10311 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10312     ac_header_preproc=yes
10313     ;;
10314   no:yes:* )
10315     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10316 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10317     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10318 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10319     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10320 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10321     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10322 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10323     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10324 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10325     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10326 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10327     ( cat <<\_ASBOX
10328 ## ---------------------------------------- ##
10329 ## Report this to pgsql-bugs@postgresql.org ##
10330 ## ---------------------------------------- ##
10331 _ASBOX
10332      ) | sed "s/^/$as_me: WARNING:     /" >&2
10333     ;;
10334 esac
10335 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10336 $as_echo_n "checking for $ac_header... " >&6; }
10337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10338   $as_echo_n "(cached) " >&6
10339 else
10340   eval "$as_ac_Header=\$ac_header_preproc"
10341 fi
10342 ac_res=`eval 'as_val=${'$as_ac_Header'}
10343                  $as_echo "$as_val"'`
10344                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10345 $as_echo "$ac_res" >&6; }
10346
10347 fi
10348 as_val=`eval 'as_val=${'$as_ac_Header'}
10349                  $as_echo "$as_val"'`
10350    if test "x$as_val" = x""yes; then
10351   cat >>confdefs.h <<_ACEOF
10352 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10353 _ACEOF
10354
10355 fi
10356
10357 done
10358
10359
10360 # On BSD, cpp test for net/if.h will fail unless sys/socket.h
10361 # is included first.
10362
10363 for ac_header in net/if.h
10364 do
10365 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10366 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10367 $as_echo_n "checking for $ac_header... " >&6; }
10368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10369   $as_echo_n "(cached) " >&6
10370 else
10371   cat >conftest.$ac_ext <<_ACEOF
10372 /* confdefs.h.  */
10373 _ACEOF
10374 cat confdefs.h >>conftest.$ac_ext
10375 cat >>conftest.$ac_ext <<_ACEOF
10376 /* end confdefs.h.  */
10377 $ac_includes_default
10378 #ifdef HAVE_SYS_SOCKET_H
10379 #include <sys/socket.h>
10380 #endif
10381
10382
10383 #include <$ac_header>
10384 _ACEOF
10385 rm -f conftest.$ac_objext
10386 if { (ac_try="$ac_compile"
10387 case "(($ac_try" in
10388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10389   *) ac_try_echo=$ac_try;;
10390 esac
10391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10392 $as_echo "$ac_try_echo") >&5
10393   (eval "$ac_compile") 2>conftest.er1
10394   ac_status=$?
10395   grep -v '^ *+' conftest.er1 >conftest.err
10396   rm -f conftest.er1
10397   cat conftest.err >&5
10398   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399   (exit $ac_status); } && {
10400          test -z "$ac_c_werror_flag" ||
10401          test ! -s conftest.err
10402        } && test -s conftest.$ac_objext; then
10403   eval "$as_ac_Header=yes"
10404 else
10405   $as_echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.$ac_ext >&5
10407
10408         eval "$as_ac_Header=no"
10409 fi
10410
10411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10412 fi
10413 ac_res=`eval 'as_val=${'$as_ac_Header'}
10414                  $as_echo "$as_val"'`
10415                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10416 $as_echo "$ac_res" >&6; }
10417 as_val=`eval 'as_val=${'$as_ac_Header'}
10418                  $as_echo "$as_val"'`
10419    if test "x$as_val" = x""yes; then
10420   cat >>confdefs.h <<_ACEOF
10421 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10422 _ACEOF
10423
10424 fi
10425
10426 done
10427
10428
10429 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
10430 # netinet/in.h is included first.
10431
10432 for ac_header in netinet/in.h
10433 do
10434 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10436   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10437 $as_echo_n "checking for $ac_header... " >&6; }
10438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10439   $as_echo_n "(cached) " >&6
10440 fi
10441 ac_res=`eval 'as_val=${'$as_ac_Header'}
10442                  $as_echo "$as_val"'`
10443                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10444 $as_echo "$ac_res" >&6; }
10445 else
10446   # Is the header compilable?
10447 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10448 $as_echo_n "checking $ac_header usability... " >&6; }
10449 cat >conftest.$ac_ext <<_ACEOF
10450 /* confdefs.h.  */
10451 _ACEOF
10452 cat confdefs.h >>conftest.$ac_ext
10453 cat >>conftest.$ac_ext <<_ACEOF
10454 /* end confdefs.h.  */
10455 $ac_includes_default
10456 #include <$ac_header>
10457 _ACEOF
10458 rm -f conftest.$ac_objext
10459 if { (ac_try="$ac_compile"
10460 case "(($ac_try" in
10461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462   *) ac_try_echo=$ac_try;;
10463 esac
10464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10465 $as_echo "$ac_try_echo") >&5
10466   (eval "$ac_compile") 2>conftest.er1
10467   ac_status=$?
10468   grep -v '^ *+' conftest.er1 >conftest.err
10469   rm -f conftest.er1
10470   cat conftest.err >&5
10471   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472   (exit $ac_status); } && {
10473          test -z "$ac_c_werror_flag" ||
10474          test ! -s conftest.err
10475        } && test -s conftest.$ac_objext; then
10476   ac_header_compiler=yes
10477 else
10478   $as_echo "$as_me: failed program was:" >&5
10479 sed 's/^/| /' conftest.$ac_ext >&5
10480
10481         ac_header_compiler=no
10482 fi
10483
10484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10485 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10486 $as_echo "$ac_header_compiler" >&6; }
10487
10488 # Is the header present?
10489 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10490 $as_echo_n "checking $ac_header presence... " >&6; }
10491 cat >conftest.$ac_ext <<_ACEOF
10492 /* confdefs.h.  */
10493 _ACEOF
10494 cat confdefs.h >>conftest.$ac_ext
10495 cat >>conftest.$ac_ext <<_ACEOF
10496 /* end confdefs.h.  */
10497 #include <$ac_header>
10498 _ACEOF
10499 if { (ac_try="$ac_cpp conftest.$ac_ext"
10500 case "(($ac_try" in
10501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10502   *) ac_try_echo=$ac_try;;
10503 esac
10504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10505 $as_echo "$ac_try_echo") >&5
10506   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10507   ac_status=$?
10508   grep -v '^ *+' conftest.er1 >conftest.err
10509   rm -f conftest.er1
10510   cat conftest.err >&5
10511   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512   (exit $ac_status); } >/dev/null && {
10513          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10514          test ! -s conftest.err
10515        }; then
10516   ac_header_preproc=yes
10517 else
10518   $as_echo "$as_me: failed program was:" >&5
10519 sed 's/^/| /' conftest.$ac_ext >&5
10520
10521   ac_header_preproc=no
10522 fi
10523
10524 rm -f conftest.err conftest.$ac_ext
10525 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10526 $as_echo "$ac_header_preproc" >&6; }
10527
10528 # So?  What about this header?
10529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10530   yes:no: )
10531     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10532 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10533     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10534 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10535     ac_header_preproc=yes
10536     ;;
10537   no:yes:* )
10538     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10539 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10540     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10541 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10542     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10543 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10544     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10545 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10546     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10547 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10548     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10549 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10550     ( cat <<\_ASBOX
10551 ## ---------------------------------------- ##
10552 ## Report this to pgsql-bugs@postgresql.org ##
10553 ## ---------------------------------------- ##
10554 _ASBOX
10555      ) | sed "s/^/$as_me: WARNING:     /" >&2
10556     ;;
10557 esac
10558 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10559 $as_echo_n "checking for $ac_header... " >&6; }
10560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10561   $as_echo_n "(cached) " >&6
10562 else
10563   eval "$as_ac_Header=\$ac_header_preproc"
10564 fi
10565 ac_res=`eval 'as_val=${'$as_ac_Header'}
10566                  $as_echo "$as_val"'`
10567                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10568 $as_echo "$ac_res" >&6; }
10569
10570 fi
10571 as_val=`eval 'as_val=${'$as_ac_Header'}
10572                  $as_echo "$as_val"'`
10573    if test "x$as_val" = x""yes; then
10574   cat >>confdefs.h <<_ACEOF
10575 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10576 _ACEOF
10577
10578 fi
10579
10580 done
10581
10582
10583 for ac_header in netinet/tcp.h
10584 do
10585 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10586 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10587 $as_echo_n "checking for $ac_header... " >&6; }
10588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10589   $as_echo_n "(cached) " >&6
10590 else
10591   cat >conftest.$ac_ext <<_ACEOF
10592 /* confdefs.h.  */
10593 _ACEOF
10594 cat confdefs.h >>conftest.$ac_ext
10595 cat >>conftest.$ac_ext <<_ACEOF
10596 /* end confdefs.h.  */
10597 $ac_includes_default
10598 #ifdef HAVE_NETINET_IN_H
10599 #include <netinet/in.h>
10600 #endif
10601
10602
10603 #include <$ac_header>
10604 _ACEOF
10605 rm -f conftest.$ac_objext
10606 if { (ac_try="$ac_compile"
10607 case "(($ac_try" in
10608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10609   *) ac_try_echo=$ac_try;;
10610 esac
10611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10612 $as_echo "$ac_try_echo") >&5
10613   (eval "$ac_compile") 2>conftest.er1
10614   ac_status=$?
10615   grep -v '^ *+' conftest.er1 >conftest.err
10616   rm -f conftest.er1
10617   cat conftest.err >&5
10618   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619   (exit $ac_status); } && {
10620          test -z "$ac_c_werror_flag" ||
10621          test ! -s conftest.err
10622        } && test -s conftest.$ac_objext; then
10623   eval "$as_ac_Header=yes"
10624 else
10625   $as_echo "$as_me: failed program was:" >&5
10626 sed 's/^/| /' conftest.$ac_ext >&5
10627
10628         eval "$as_ac_Header=no"
10629 fi
10630
10631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10632 fi
10633 ac_res=`eval 'as_val=${'$as_ac_Header'}
10634                  $as_echo "$as_val"'`
10635                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10636 $as_echo "$ac_res" >&6; }
10637 as_val=`eval 'as_val=${'$as_ac_Header'}
10638                  $as_echo "$as_val"'`
10639    if test "x$as_val" = x""yes; then
10640   cat >>confdefs.h <<_ACEOF
10641 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10642 _ACEOF
10643
10644 fi
10645
10646 done
10647
10648
10649 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10650
10651 for ac_header in readline/readline.h
10652 do
10653 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10655   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10656 $as_echo_n "checking for $ac_header... " >&6; }
10657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10658   $as_echo_n "(cached) " >&6
10659 fi
10660 ac_res=`eval 'as_val=${'$as_ac_Header'}
10661                  $as_echo "$as_val"'`
10662                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10663 $as_echo "$ac_res" >&6; }
10664 else
10665   # Is the header compilable?
10666 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10667 $as_echo_n "checking $ac_header usability... " >&6; }
10668 cat >conftest.$ac_ext <<_ACEOF
10669 /* confdefs.h.  */
10670 _ACEOF
10671 cat confdefs.h >>conftest.$ac_ext
10672 cat >>conftest.$ac_ext <<_ACEOF
10673 /* end confdefs.h.  */
10674 $ac_includes_default
10675 #include <$ac_header>
10676 _ACEOF
10677 rm -f conftest.$ac_objext
10678 if { (ac_try="$ac_compile"
10679 case "(($ac_try" in
10680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681   *) ac_try_echo=$ac_try;;
10682 esac
10683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10684 $as_echo "$ac_try_echo") >&5
10685   (eval "$ac_compile") 2>conftest.er1
10686   ac_status=$?
10687   grep -v '^ *+' conftest.er1 >conftest.err
10688   rm -f conftest.er1
10689   cat conftest.err >&5
10690   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691   (exit $ac_status); } && {
10692          test -z "$ac_c_werror_flag" ||
10693          test ! -s conftest.err
10694        } && test -s conftest.$ac_objext; then
10695   ac_header_compiler=yes
10696 else
10697   $as_echo "$as_me: failed program was:" >&5
10698 sed 's/^/| /' conftest.$ac_ext >&5
10699
10700         ac_header_compiler=no
10701 fi
10702
10703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10704 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10705 $as_echo "$ac_header_compiler" >&6; }
10706
10707 # Is the header present?
10708 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10709 $as_echo_n "checking $ac_header presence... " >&6; }
10710 cat >conftest.$ac_ext <<_ACEOF
10711 /* confdefs.h.  */
10712 _ACEOF
10713 cat confdefs.h >>conftest.$ac_ext
10714 cat >>conftest.$ac_ext <<_ACEOF
10715 /* end confdefs.h.  */
10716 #include <$ac_header>
10717 _ACEOF
10718 if { (ac_try="$ac_cpp conftest.$ac_ext"
10719 case "(($ac_try" in
10720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721   *) ac_try_echo=$ac_try;;
10722 esac
10723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10724 $as_echo "$ac_try_echo") >&5
10725   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10726   ac_status=$?
10727   grep -v '^ *+' conftest.er1 >conftest.err
10728   rm -f conftest.er1
10729   cat conftest.err >&5
10730   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731   (exit $ac_status); } >/dev/null && {
10732          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10733          test ! -s conftest.err
10734        }; then
10735   ac_header_preproc=yes
10736 else
10737   $as_echo "$as_me: failed program was:" >&5
10738 sed 's/^/| /' conftest.$ac_ext >&5
10739
10740   ac_header_preproc=no
10741 fi
10742
10743 rm -f conftest.err conftest.$ac_ext
10744 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10745 $as_echo "$ac_header_preproc" >&6; }
10746
10747 # So?  What about this header?
10748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10749   yes:no: )
10750     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10751 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10752     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10753 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10754     ac_header_preproc=yes
10755     ;;
10756   no:yes:* )
10757     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10758 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10759     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10760 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10761     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10762 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10763     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10764 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10765     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10766 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10767     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10768 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10769     ( cat <<\_ASBOX
10770 ## ---------------------------------------- ##
10771 ## Report this to pgsql-bugs@postgresql.org ##
10772 ## ---------------------------------------- ##
10773 _ASBOX
10774      ) | sed "s/^/$as_me: WARNING:     /" >&2
10775     ;;
10776 esac
10777 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10778 $as_echo_n "checking for $ac_header... " >&6; }
10779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10780   $as_echo_n "(cached) " >&6
10781 else
10782   eval "$as_ac_Header=\$ac_header_preproc"
10783 fi
10784 ac_res=`eval 'as_val=${'$as_ac_Header'}
10785                  $as_echo "$as_val"'`
10786                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10787 $as_echo "$ac_res" >&6; }
10788
10789 fi
10790 as_val=`eval 'as_val=${'$as_ac_Header'}
10791                  $as_echo "$as_val"'`
10792    if test "x$as_val" = x""yes; then
10793   cat >>confdefs.h <<_ACEOF
10794 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10795 _ACEOF
10796
10797 else
10798
10799 for ac_header in readline.h
10800 do
10801 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10803   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10804 $as_echo_n "checking for $ac_header... " >&6; }
10805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10806   $as_echo_n "(cached) " >&6
10807 fi
10808 ac_res=`eval 'as_val=${'$as_ac_Header'}
10809                  $as_echo "$as_val"'`
10810                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10811 $as_echo "$ac_res" >&6; }
10812 else
10813   # Is the header compilable?
10814 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10815 $as_echo_n "checking $ac_header usability... " >&6; }
10816 cat >conftest.$ac_ext <<_ACEOF
10817 /* confdefs.h.  */
10818 _ACEOF
10819 cat confdefs.h >>conftest.$ac_ext
10820 cat >>conftest.$ac_ext <<_ACEOF
10821 /* end confdefs.h.  */
10822 $ac_includes_default
10823 #include <$ac_header>
10824 _ACEOF
10825 rm -f conftest.$ac_objext
10826 if { (ac_try="$ac_compile"
10827 case "(($ac_try" in
10828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10829   *) ac_try_echo=$ac_try;;
10830 esac
10831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10832 $as_echo "$ac_try_echo") >&5
10833   (eval "$ac_compile") 2>conftest.er1
10834   ac_status=$?
10835   grep -v '^ *+' conftest.er1 >conftest.err
10836   rm -f conftest.er1
10837   cat conftest.err >&5
10838   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839   (exit $ac_status); } && {
10840          test -z "$ac_c_werror_flag" ||
10841          test ! -s conftest.err
10842        } && test -s conftest.$ac_objext; then
10843   ac_header_compiler=yes
10844 else
10845   $as_echo "$as_me: failed program was:" >&5
10846 sed 's/^/| /' conftest.$ac_ext >&5
10847
10848         ac_header_compiler=no
10849 fi
10850
10851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10852 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10853 $as_echo "$ac_header_compiler" >&6; }
10854
10855 # Is the header present?
10856 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10857 $as_echo_n "checking $ac_header presence... " >&6; }
10858 cat >conftest.$ac_ext <<_ACEOF
10859 /* confdefs.h.  */
10860 _ACEOF
10861 cat confdefs.h >>conftest.$ac_ext
10862 cat >>conftest.$ac_ext <<_ACEOF
10863 /* end confdefs.h.  */
10864 #include <$ac_header>
10865 _ACEOF
10866 if { (ac_try="$ac_cpp conftest.$ac_ext"
10867 case "(($ac_try" in
10868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10869   *) ac_try_echo=$ac_try;;
10870 esac
10871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10872 $as_echo "$ac_try_echo") >&5
10873   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10874   ac_status=$?
10875   grep -v '^ *+' conftest.er1 >conftest.err
10876   rm -f conftest.er1
10877   cat conftest.err >&5
10878   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879   (exit $ac_status); } >/dev/null && {
10880          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10881          test ! -s conftest.err
10882        }; then
10883   ac_header_preproc=yes
10884 else
10885   $as_echo "$as_me: failed program was:" >&5
10886 sed 's/^/| /' conftest.$ac_ext >&5
10887
10888   ac_header_preproc=no
10889 fi
10890
10891 rm -f conftest.err conftest.$ac_ext
10892 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10893 $as_echo "$ac_header_preproc" >&6; }
10894
10895 # So?  What about this header?
10896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10897   yes:no: )
10898     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10899 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10900     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10901 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10902     ac_header_preproc=yes
10903     ;;
10904   no:yes:* )
10905     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10906 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10907     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10908 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10909     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10910 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10911     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10912 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10913     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10914 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10915     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10916 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10917     ( cat <<\_ASBOX
10918 ## ---------------------------------------- ##
10919 ## Report this to pgsql-bugs@postgresql.org ##
10920 ## ---------------------------------------- ##
10921 _ASBOX
10922      ) | sed "s/^/$as_me: WARNING:     /" >&2
10923     ;;
10924 esac
10925 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10926 $as_echo_n "checking for $ac_header... " >&6; }
10927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10928   $as_echo_n "(cached) " >&6
10929 else
10930   eval "$as_ac_Header=\$ac_header_preproc"
10931 fi
10932 ac_res=`eval 'as_val=${'$as_ac_Header'}
10933                  $as_echo "$as_val"'`
10934                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10935 $as_echo "$ac_res" >&6; }
10936
10937 fi
10938 as_val=`eval 'as_val=${'$as_ac_Header'}
10939                  $as_echo "$as_val"'`
10940    if test "x$as_val" = x""yes; then
10941   cat >>confdefs.h <<_ACEOF
10942 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10943 _ACEOF
10944
10945 else
10946   { { $as_echo "$as_me:$LINENO: error: readline header not found
10947 If you have readline already installed, see config.log for details on the
10948 failure.  It is possible the compiler isn't looking in the proper directory.
10949 Use --without-readline to disable readline support." >&5
10950 $as_echo "$as_me: error: readline header not found
10951 If you have readline already installed, see config.log for details on the
10952 failure.  It is possible the compiler isn't looking in the proper directory.
10953 Use --without-readline to disable readline support." >&2;}
10954    { (exit 1); exit 1; }; }
10955 fi
10956
10957 done
10958
10959 fi
10960
10961 done
10962
10963
10964 for ac_header in readline/history.h
10965 do
10966 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10968   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10969 $as_echo_n "checking for $ac_header... " >&6; }
10970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10971   $as_echo_n "(cached) " >&6
10972 fi
10973 ac_res=`eval 'as_val=${'$as_ac_Header'}
10974                  $as_echo "$as_val"'`
10975                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10976 $as_echo "$ac_res" >&6; }
10977 else
10978   # Is the header compilable?
10979 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10980 $as_echo_n "checking $ac_header usability... " >&6; }
10981 cat >conftest.$ac_ext <<_ACEOF
10982 /* confdefs.h.  */
10983 _ACEOF
10984 cat confdefs.h >>conftest.$ac_ext
10985 cat >>conftest.$ac_ext <<_ACEOF
10986 /* end confdefs.h.  */
10987 $ac_includes_default
10988 #include <$ac_header>
10989 _ACEOF
10990 rm -f conftest.$ac_objext
10991 if { (ac_try="$ac_compile"
10992 case "(($ac_try" in
10993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10994   *) ac_try_echo=$ac_try;;
10995 esac
10996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10997 $as_echo "$ac_try_echo") >&5
10998   (eval "$ac_compile") 2>conftest.er1
10999   ac_status=$?
11000   grep -v '^ *+' conftest.er1 >conftest.err
11001   rm -f conftest.er1
11002   cat conftest.err >&5
11003   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004   (exit $ac_status); } && {
11005          test -z "$ac_c_werror_flag" ||
11006          test ! -s conftest.err
11007        } && test -s conftest.$ac_objext; then
11008   ac_header_compiler=yes
11009 else
11010   $as_echo "$as_me: failed program was:" >&5
11011 sed 's/^/| /' conftest.$ac_ext >&5
11012
11013         ac_header_compiler=no
11014 fi
11015
11016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11017 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11018 $as_echo "$ac_header_compiler" >&6; }
11019
11020 # Is the header present?
11021 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11022 $as_echo_n "checking $ac_header presence... " >&6; }
11023 cat >conftest.$ac_ext <<_ACEOF
11024 /* confdefs.h.  */
11025 _ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h.  */
11029 #include <$ac_header>
11030 _ACEOF
11031 if { (ac_try="$ac_cpp conftest.$ac_ext"
11032 case "(($ac_try" in
11033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11034   *) ac_try_echo=$ac_try;;
11035 esac
11036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11037 $as_echo "$ac_try_echo") >&5
11038   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11039   ac_status=$?
11040   grep -v '^ *+' conftest.er1 >conftest.err
11041   rm -f conftest.er1
11042   cat conftest.err >&5
11043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044   (exit $ac_status); } >/dev/null && {
11045          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11046          test ! -s conftest.err
11047        }; then
11048   ac_header_preproc=yes
11049 else
11050   $as_echo "$as_me: failed program was:" >&5
11051 sed 's/^/| /' conftest.$ac_ext >&5
11052
11053   ac_header_preproc=no
11054 fi
11055
11056 rm -f conftest.err conftest.$ac_ext
11057 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11058 $as_echo "$ac_header_preproc" >&6; }
11059
11060 # So?  What about this header?
11061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11062   yes:no: )
11063     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11064 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11065     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11066 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11067     ac_header_preproc=yes
11068     ;;
11069   no:yes:* )
11070     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11071 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11072     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11073 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11074     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11075 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11076     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11077 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11078     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11079 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11080     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11081 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11082     ( cat <<\_ASBOX
11083 ## ---------------------------------------- ##
11084 ## Report this to pgsql-bugs@postgresql.org ##
11085 ## ---------------------------------------- ##
11086 _ASBOX
11087      ) | sed "s/^/$as_me: WARNING:     /" >&2
11088     ;;
11089 esac
11090 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11091 $as_echo_n "checking for $ac_header... " >&6; }
11092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11093   $as_echo_n "(cached) " >&6
11094 else
11095   eval "$as_ac_Header=\$ac_header_preproc"
11096 fi
11097 ac_res=`eval 'as_val=${'$as_ac_Header'}
11098                  $as_echo "$as_val"'`
11099                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11100 $as_echo "$ac_res" >&6; }
11101
11102 fi
11103 as_val=`eval 'as_val=${'$as_ac_Header'}
11104                  $as_echo "$as_val"'`
11105    if test "x$as_val" = x""yes; then
11106   cat >>confdefs.h <<_ACEOF
11107 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11108 _ACEOF
11109
11110 else
11111
11112 for ac_header in history.h
11113 do
11114 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11116   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11117 $as_echo_n "checking for $ac_header... " >&6; }
11118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11119   $as_echo_n "(cached) " >&6
11120 fi
11121 ac_res=`eval 'as_val=${'$as_ac_Header'}
11122                  $as_echo "$as_val"'`
11123                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11124 $as_echo "$ac_res" >&6; }
11125 else
11126   # Is the header compilable?
11127 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11128 $as_echo_n "checking $ac_header usability... " >&6; }
11129 cat >conftest.$ac_ext <<_ACEOF
11130 /* confdefs.h.  */
11131 _ACEOF
11132 cat confdefs.h >>conftest.$ac_ext
11133 cat >>conftest.$ac_ext <<_ACEOF
11134 /* end confdefs.h.  */
11135 $ac_includes_default
11136 #include <$ac_header>
11137 _ACEOF
11138 rm -f conftest.$ac_objext
11139 if { (ac_try="$ac_compile"
11140 case "(($ac_try" in
11141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11142   *) ac_try_echo=$ac_try;;
11143 esac
11144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11145 $as_echo "$ac_try_echo") >&5
11146   (eval "$ac_compile") 2>conftest.er1
11147   ac_status=$?
11148   grep -v '^ *+' conftest.er1 >conftest.err
11149   rm -f conftest.er1
11150   cat conftest.err >&5
11151   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152   (exit $ac_status); } && {
11153          test -z "$ac_c_werror_flag" ||
11154          test ! -s conftest.err
11155        } && test -s conftest.$ac_objext; then
11156   ac_header_compiler=yes
11157 else
11158   $as_echo "$as_me: failed program was:" >&5
11159 sed 's/^/| /' conftest.$ac_ext >&5
11160
11161         ac_header_compiler=no
11162 fi
11163
11164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11165 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11166 $as_echo "$ac_header_compiler" >&6; }
11167
11168 # Is the header present?
11169 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11170 $as_echo_n "checking $ac_header presence... " >&6; }
11171 cat >conftest.$ac_ext <<_ACEOF
11172 /* confdefs.h.  */
11173 _ACEOF
11174 cat confdefs.h >>conftest.$ac_ext
11175 cat >>conftest.$ac_ext <<_ACEOF
11176 /* end confdefs.h.  */
11177 #include <$ac_header>
11178 _ACEOF
11179 if { (ac_try="$ac_cpp conftest.$ac_ext"
11180 case "(($ac_try" in
11181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11182   *) ac_try_echo=$ac_try;;
11183 esac
11184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11185 $as_echo "$ac_try_echo") >&5
11186   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11187   ac_status=$?
11188   grep -v '^ *+' conftest.er1 >conftest.err
11189   rm -f conftest.er1
11190   cat conftest.err >&5
11191   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192   (exit $ac_status); } >/dev/null && {
11193          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11194          test ! -s conftest.err
11195        }; then
11196   ac_header_preproc=yes
11197 else
11198   $as_echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11200
11201   ac_header_preproc=no
11202 fi
11203
11204 rm -f conftest.err conftest.$ac_ext
11205 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11206 $as_echo "$ac_header_preproc" >&6; }
11207
11208 # So?  What about this header?
11209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11210   yes:no: )
11211     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11212 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11213     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11214 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11215     ac_header_preproc=yes
11216     ;;
11217   no:yes:* )
11218     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11219 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11220     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11221 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11222     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11223 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11224     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11225 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11226     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11227 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11228     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11229 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11230     ( cat <<\_ASBOX
11231 ## ---------------------------------------- ##
11232 ## Report this to pgsql-bugs@postgresql.org ##
11233 ## ---------------------------------------- ##
11234 _ASBOX
11235      ) | sed "s/^/$as_me: WARNING:     /" >&2
11236     ;;
11237 esac
11238 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11239 $as_echo_n "checking for $ac_header... " >&6; }
11240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11241   $as_echo_n "(cached) " >&6
11242 else
11243   eval "$as_ac_Header=\$ac_header_preproc"
11244 fi
11245 ac_res=`eval 'as_val=${'$as_ac_Header'}
11246                  $as_echo "$as_val"'`
11247                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11248 $as_echo "$ac_res" >&6; }
11249
11250 fi
11251 as_val=`eval 'as_val=${'$as_ac_Header'}
11252                  $as_echo "$as_val"'`
11253    if test "x$as_val" = x""yes; then
11254   cat >>confdefs.h <<_ACEOF
11255 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11256 _ACEOF
11257
11258 else
11259   { { $as_echo "$as_me:$LINENO: error: history header not found
11260 If you have readline already installed, see config.log for details on the
11261 failure.  It is possible the compiler isn't looking in the proper directory.
11262 Use --without-readline to disable readline support." >&5
11263 $as_echo "$as_me: error: history header not found
11264 If you have readline already installed, see config.log for details on the
11265 failure.  It is possible the compiler isn't looking in the proper directory.
11266 Use --without-readline to disable readline support." >&2;}
11267    { (exit 1); exit 1; }; }
11268 fi
11269
11270 done
11271
11272 fi
11273
11274 done
11275
11276 fi
11277
11278 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
11279 # Some installations of libedit usurp /usr/include/readline/, which seems
11280 # bad practice, since in combined installations readline will have its headers
11281 # there.  We might have to resort to AC_EGREP checks to make sure we found
11282 # the proper header...
11283
11284 for ac_header in editline/readline.h
11285 do
11286 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11288   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11289 $as_echo_n "checking for $ac_header... " >&6; }
11290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11291   $as_echo_n "(cached) " >&6
11292 fi
11293 ac_res=`eval 'as_val=${'$as_ac_Header'}
11294                  $as_echo "$as_val"'`
11295                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11296 $as_echo "$ac_res" >&6; }
11297 else
11298   # Is the header compilable?
11299 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11300 $as_echo_n "checking $ac_header usability... " >&6; }
11301 cat >conftest.$ac_ext <<_ACEOF
11302 /* confdefs.h.  */
11303 _ACEOF
11304 cat confdefs.h >>conftest.$ac_ext
11305 cat >>conftest.$ac_ext <<_ACEOF
11306 /* end confdefs.h.  */
11307 $ac_includes_default
11308 #include <$ac_header>
11309 _ACEOF
11310 rm -f conftest.$ac_objext
11311 if { (ac_try="$ac_compile"
11312 case "(($ac_try" in
11313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11314   *) ac_try_echo=$ac_try;;
11315 esac
11316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11317 $as_echo "$ac_try_echo") >&5
11318   (eval "$ac_compile") 2>conftest.er1
11319   ac_status=$?
11320   grep -v '^ *+' conftest.er1 >conftest.err
11321   rm -f conftest.er1
11322   cat conftest.err >&5
11323   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324   (exit $ac_status); } && {
11325          test -z "$ac_c_werror_flag" ||
11326          test ! -s conftest.err
11327        } && test -s conftest.$ac_objext; then
11328   ac_header_compiler=yes
11329 else
11330   $as_echo "$as_me: failed program was:" >&5
11331 sed 's/^/| /' conftest.$ac_ext >&5
11332
11333         ac_header_compiler=no
11334 fi
11335
11336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11337 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11338 $as_echo "$ac_header_compiler" >&6; }
11339
11340 # Is the header present?
11341 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11342 $as_echo_n "checking $ac_header presence... " >&6; }
11343 cat >conftest.$ac_ext <<_ACEOF
11344 /* confdefs.h.  */
11345 _ACEOF
11346 cat confdefs.h >>conftest.$ac_ext
11347 cat >>conftest.$ac_ext <<_ACEOF
11348 /* end confdefs.h.  */
11349 #include <$ac_header>
11350 _ACEOF
11351 if { (ac_try="$ac_cpp conftest.$ac_ext"
11352 case "(($ac_try" in
11353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11354   *) ac_try_echo=$ac_try;;
11355 esac
11356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11357 $as_echo "$ac_try_echo") >&5
11358   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11359   ac_status=$?
11360   grep -v '^ *+' conftest.er1 >conftest.err
11361   rm -f conftest.er1
11362   cat conftest.err >&5
11363   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364   (exit $ac_status); } >/dev/null && {
11365          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11366          test ! -s conftest.err
11367        }; then
11368   ac_header_preproc=yes
11369 else
11370   $as_echo "$as_me: failed program was:" >&5
11371 sed 's/^/| /' conftest.$ac_ext >&5
11372
11373   ac_header_preproc=no
11374 fi
11375
11376 rm -f conftest.err conftest.$ac_ext
11377 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11378 $as_echo "$ac_header_preproc" >&6; }
11379
11380 # So?  What about this header?
11381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11382   yes:no: )
11383     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11384 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11385     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11386 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11387     ac_header_preproc=yes
11388     ;;
11389   no:yes:* )
11390     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11391 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11392     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11393 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11394     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11395 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11396     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11397 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11398     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11399 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11400     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11401 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11402     ( cat <<\_ASBOX
11403 ## ---------------------------------------- ##
11404 ## Report this to pgsql-bugs@postgresql.org ##
11405 ## ---------------------------------------- ##
11406 _ASBOX
11407      ) | sed "s/^/$as_me: WARNING:     /" >&2
11408     ;;
11409 esac
11410 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11411 $as_echo_n "checking for $ac_header... " >&6; }
11412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11413   $as_echo_n "(cached) " >&6
11414 else
11415   eval "$as_ac_Header=\$ac_header_preproc"
11416 fi
11417 ac_res=`eval 'as_val=${'$as_ac_Header'}
11418                  $as_echo "$as_val"'`
11419                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11420 $as_echo "$ac_res" >&6; }
11421
11422 fi
11423 as_val=`eval 'as_val=${'$as_ac_Header'}
11424                  $as_echo "$as_val"'`
11425    if test "x$as_val" = x""yes; then
11426   cat >>confdefs.h <<_ACEOF
11427 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11428 _ACEOF
11429
11430 else
11431
11432 for ac_header in readline.h
11433 do
11434 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11436   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11437 $as_echo_n "checking for $ac_header... " >&6; }
11438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11439   $as_echo_n "(cached) " >&6
11440 fi
11441 ac_res=`eval 'as_val=${'$as_ac_Header'}
11442                  $as_echo "$as_val"'`
11443                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11444 $as_echo "$ac_res" >&6; }
11445 else
11446   # Is the header compilable?
11447 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11448 $as_echo_n "checking $ac_header usability... " >&6; }
11449 cat >conftest.$ac_ext <<_ACEOF
11450 /* confdefs.h.  */
11451 _ACEOF
11452 cat confdefs.h >>conftest.$ac_ext
11453 cat >>conftest.$ac_ext <<_ACEOF
11454 /* end confdefs.h.  */
11455 $ac_includes_default
11456 #include <$ac_header>
11457 _ACEOF
11458 rm -f conftest.$ac_objext
11459 if { (ac_try="$ac_compile"
11460 case "(($ac_try" in
11461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11462   *) ac_try_echo=$ac_try;;
11463 esac
11464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11465 $as_echo "$ac_try_echo") >&5
11466   (eval "$ac_compile") 2>conftest.er1
11467   ac_status=$?
11468   grep -v '^ *+' conftest.er1 >conftest.err
11469   rm -f conftest.er1
11470   cat conftest.err >&5
11471   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472   (exit $ac_status); } && {
11473          test -z "$ac_c_werror_flag" ||
11474          test ! -s conftest.err
11475        } && test -s conftest.$ac_objext; then
11476   ac_header_compiler=yes
11477 else
11478   $as_echo "$as_me: failed program was:" >&5
11479 sed 's/^/| /' conftest.$ac_ext >&5
11480
11481         ac_header_compiler=no
11482 fi
11483
11484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11485 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11486 $as_echo "$ac_header_compiler" >&6; }
11487
11488 # Is the header present?
11489 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11490 $as_echo_n "checking $ac_header presence... " >&6; }
11491 cat >conftest.$ac_ext <<_ACEOF
11492 /* confdefs.h.  */
11493 _ACEOF
11494 cat confdefs.h >>conftest.$ac_ext
11495 cat >>conftest.$ac_ext <<_ACEOF
11496 /* end confdefs.h.  */
11497 #include <$ac_header>
11498 _ACEOF
11499 if { (ac_try="$ac_cpp conftest.$ac_ext"
11500 case "(($ac_try" in
11501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11502   *) ac_try_echo=$ac_try;;
11503 esac
11504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11505 $as_echo "$ac_try_echo") >&5
11506   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11507   ac_status=$?
11508   grep -v '^ *+' conftest.er1 >conftest.err
11509   rm -f conftest.er1
11510   cat conftest.err >&5
11511   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512   (exit $ac_status); } >/dev/null && {
11513          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11514          test ! -s conftest.err
11515        }; then
11516   ac_header_preproc=yes
11517 else
11518   $as_echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11520
11521   ac_header_preproc=no
11522 fi
11523
11524 rm -f conftest.err conftest.$ac_ext
11525 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11526 $as_echo "$ac_header_preproc" >&6; }
11527
11528 # So?  What about this header?
11529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11530   yes:no: )
11531     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11532 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11533     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11534 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11535     ac_header_preproc=yes
11536     ;;
11537   no:yes:* )
11538     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11539 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11540     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11541 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11542     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11543 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11544     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11545 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11546     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11547 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11548     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11549 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11550     ( cat <<\_ASBOX
11551 ## ---------------------------------------- ##
11552 ## Report this to pgsql-bugs@postgresql.org ##
11553 ## ---------------------------------------- ##
11554 _ASBOX
11555      ) | sed "s/^/$as_me: WARNING:     /" >&2
11556     ;;
11557 esac
11558 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11559 $as_echo_n "checking for $ac_header... " >&6; }
11560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11561   $as_echo_n "(cached) " >&6
11562 else
11563   eval "$as_ac_Header=\$ac_header_preproc"
11564 fi
11565 ac_res=`eval 'as_val=${'$as_ac_Header'}
11566                  $as_echo "$as_val"'`
11567                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11568 $as_echo "$ac_res" >&6; }
11569
11570 fi
11571 as_val=`eval 'as_val=${'$as_ac_Header'}
11572                  $as_echo "$as_val"'`
11573    if test "x$as_val" = x""yes; then
11574   cat >>confdefs.h <<_ACEOF
11575 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11576 _ACEOF
11577
11578 else
11579
11580 for ac_header in readline/readline.h
11581 do
11582 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11584   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11585 $as_echo_n "checking for $ac_header... " >&6; }
11586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11587   $as_echo_n "(cached) " >&6
11588 fi
11589 ac_res=`eval 'as_val=${'$as_ac_Header'}
11590                  $as_echo "$as_val"'`
11591                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11592 $as_echo "$ac_res" >&6; }
11593 else
11594   # Is the header compilable?
11595 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11596 $as_echo_n "checking $ac_header usability... " >&6; }
11597 cat >conftest.$ac_ext <<_ACEOF
11598 /* confdefs.h.  */
11599 _ACEOF
11600 cat confdefs.h >>conftest.$ac_ext
11601 cat >>conftest.$ac_ext <<_ACEOF
11602 /* end confdefs.h.  */
11603 $ac_includes_default
11604 #include <$ac_header>
11605 _ACEOF
11606 rm -f conftest.$ac_objext
11607 if { (ac_try="$ac_compile"
11608 case "(($ac_try" in
11609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11610   *) ac_try_echo=$ac_try;;
11611 esac
11612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11613 $as_echo "$ac_try_echo") >&5
11614   (eval "$ac_compile") 2>conftest.er1
11615   ac_status=$?
11616   grep -v '^ *+' conftest.er1 >conftest.err
11617   rm -f conftest.er1
11618   cat conftest.err >&5
11619   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620   (exit $ac_status); } && {
11621          test -z "$ac_c_werror_flag" ||
11622          test ! -s conftest.err
11623        } && test -s conftest.$ac_objext; then
11624   ac_header_compiler=yes
11625 else
11626   $as_echo "$as_me: failed program was:" >&5
11627 sed 's/^/| /' conftest.$ac_ext >&5
11628
11629         ac_header_compiler=no
11630 fi
11631
11632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11633 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11634 $as_echo "$ac_header_compiler" >&6; }
11635
11636 # Is the header present?
11637 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11638 $as_echo_n "checking $ac_header presence... " >&6; }
11639 cat >conftest.$ac_ext <<_ACEOF
11640 /* confdefs.h.  */
11641 _ACEOF
11642 cat confdefs.h >>conftest.$ac_ext
11643 cat >>conftest.$ac_ext <<_ACEOF
11644 /* end confdefs.h.  */
11645 #include <$ac_header>
11646 _ACEOF
11647 if { (ac_try="$ac_cpp conftest.$ac_ext"
11648 case "(($ac_try" in
11649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11650   *) ac_try_echo=$ac_try;;
11651 esac
11652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11653 $as_echo "$ac_try_echo") >&5
11654   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11655   ac_status=$?
11656   grep -v '^ *+' conftest.er1 >conftest.err
11657   rm -f conftest.er1
11658   cat conftest.err >&5
11659   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660   (exit $ac_status); } >/dev/null && {
11661          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11662          test ! -s conftest.err
11663        }; then
11664   ac_header_preproc=yes
11665 else
11666   $as_echo "$as_me: failed program was:" >&5
11667 sed 's/^/| /' conftest.$ac_ext >&5
11668
11669   ac_header_preproc=no
11670 fi
11671
11672 rm -f conftest.err conftest.$ac_ext
11673 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11674 $as_echo "$ac_header_preproc" >&6; }
11675
11676 # So?  What about this header?
11677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11678   yes:no: )
11679     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11680 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11681     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11682 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11683     ac_header_preproc=yes
11684     ;;
11685   no:yes:* )
11686     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11687 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11688     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11689 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11690     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11691 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11692     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11693 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11694     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11695 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11696     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11697 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11698     ( cat <<\_ASBOX
11699 ## ---------------------------------------- ##
11700 ## Report this to pgsql-bugs@postgresql.org ##
11701 ## ---------------------------------------- ##
11702 _ASBOX
11703      ) | sed "s/^/$as_me: WARNING:     /" >&2
11704     ;;
11705 esac
11706 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11707 $as_echo_n "checking for $ac_header... " >&6; }
11708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11709   $as_echo_n "(cached) " >&6
11710 else
11711   eval "$as_ac_Header=\$ac_header_preproc"
11712 fi
11713 ac_res=`eval 'as_val=${'$as_ac_Header'}
11714                  $as_echo "$as_val"'`
11715                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11716 $as_echo "$ac_res" >&6; }
11717
11718 fi
11719 as_val=`eval 'as_val=${'$as_ac_Header'}
11720                  $as_echo "$as_val"'`
11721    if test "x$as_val" = x""yes; then
11722   cat >>confdefs.h <<_ACEOF
11723 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11724 _ACEOF
11725
11726 else
11727   { { $as_echo "$as_me:$LINENO: error: readline header not found
11728 If you have libedit already installed, see config.log for details on the
11729 failure.  It is possible the compiler isn't looking in the proper directory.
11730 Use --without-readline to disable libedit support." >&5
11731 $as_echo "$as_me: error: readline header not found
11732 If you have libedit already installed, see config.log for details on the
11733 failure.  It is possible the compiler isn't looking in the proper directory.
11734 Use --without-readline to disable libedit support." >&2;}
11735    { (exit 1); exit 1; }; }
11736 fi
11737
11738 done
11739
11740 fi
11741
11742 done
11743
11744 fi
11745
11746 done
11747
11748 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11749 # not be there at all.  Hence, don't complain if not found.  We must check
11750 # though, since in yet other versions it is an independent header.
11751
11752 for ac_header in editline/history.h
11753 do
11754 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11756   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11757 $as_echo_n "checking for $ac_header... " >&6; }
11758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11759   $as_echo_n "(cached) " >&6
11760 fi
11761 ac_res=`eval 'as_val=${'$as_ac_Header'}
11762                  $as_echo "$as_val"'`
11763                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11764 $as_echo "$ac_res" >&6; }
11765 else
11766   # Is the header compilable?
11767 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11768 $as_echo_n "checking $ac_header usability... " >&6; }
11769 cat >conftest.$ac_ext <<_ACEOF
11770 /* confdefs.h.  */
11771 _ACEOF
11772 cat confdefs.h >>conftest.$ac_ext
11773 cat >>conftest.$ac_ext <<_ACEOF
11774 /* end confdefs.h.  */
11775 $ac_includes_default
11776 #include <$ac_header>
11777 _ACEOF
11778 rm -f conftest.$ac_objext
11779 if { (ac_try="$ac_compile"
11780 case "(($ac_try" in
11781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11782   *) ac_try_echo=$ac_try;;
11783 esac
11784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11785 $as_echo "$ac_try_echo") >&5
11786   (eval "$ac_compile") 2>conftest.er1
11787   ac_status=$?
11788   grep -v '^ *+' conftest.er1 >conftest.err
11789   rm -f conftest.er1
11790   cat conftest.err >&5
11791   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792   (exit $ac_status); } && {
11793          test -z "$ac_c_werror_flag" ||
11794          test ! -s conftest.err
11795        } && test -s conftest.$ac_objext; then
11796   ac_header_compiler=yes
11797 else
11798   $as_echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11800
11801         ac_header_compiler=no
11802 fi
11803
11804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11805 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11806 $as_echo "$ac_header_compiler" >&6; }
11807
11808 # Is the header present?
11809 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11810 $as_echo_n "checking $ac_header presence... " >&6; }
11811 cat >conftest.$ac_ext <<_ACEOF
11812 /* confdefs.h.  */
11813 _ACEOF
11814 cat confdefs.h >>conftest.$ac_ext
11815 cat >>conftest.$ac_ext <<_ACEOF
11816 /* end confdefs.h.  */
11817 #include <$ac_header>
11818 _ACEOF
11819 if { (ac_try="$ac_cpp conftest.$ac_ext"
11820 case "(($ac_try" in
11821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11822   *) ac_try_echo=$ac_try;;
11823 esac
11824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11825 $as_echo "$ac_try_echo") >&5
11826   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11827   ac_status=$?
11828   grep -v '^ *+' conftest.er1 >conftest.err
11829   rm -f conftest.er1
11830   cat conftest.err >&5
11831   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832   (exit $ac_status); } >/dev/null && {
11833          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11834          test ! -s conftest.err
11835        }; then
11836   ac_header_preproc=yes
11837 else
11838   $as_echo "$as_me: failed program was:" >&5
11839 sed 's/^/| /' conftest.$ac_ext >&5
11840
11841   ac_header_preproc=no
11842 fi
11843
11844 rm -f conftest.err conftest.$ac_ext
11845 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11846 $as_echo "$ac_header_preproc" >&6; }
11847
11848 # So?  What about this header?
11849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11850   yes:no: )
11851     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11852 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11853     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11854 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11855     ac_header_preproc=yes
11856     ;;
11857   no:yes:* )
11858     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11859 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11860     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11861 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11862     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11863 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11864     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11865 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11866     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11867 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11868     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11869 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11870     ( cat <<\_ASBOX
11871 ## ---------------------------------------- ##
11872 ## Report this to pgsql-bugs@postgresql.org ##
11873 ## ---------------------------------------- ##
11874 _ASBOX
11875      ) | sed "s/^/$as_me: WARNING:     /" >&2
11876     ;;
11877 esac
11878 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11879 $as_echo_n "checking for $ac_header... " >&6; }
11880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11881   $as_echo_n "(cached) " >&6
11882 else
11883   eval "$as_ac_Header=\$ac_header_preproc"
11884 fi
11885 ac_res=`eval 'as_val=${'$as_ac_Header'}
11886                  $as_echo "$as_val"'`
11887                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11888 $as_echo "$ac_res" >&6; }
11889
11890 fi
11891 as_val=`eval 'as_val=${'$as_ac_Header'}
11892                  $as_echo "$as_val"'`
11893    if test "x$as_val" = x""yes; then
11894   cat >>confdefs.h <<_ACEOF
11895 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11896 _ACEOF
11897
11898 else
11899
11900 for ac_header in history.h
11901 do
11902 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11904   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11905 $as_echo_n "checking for $ac_header... " >&6; }
11906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11907   $as_echo_n "(cached) " >&6
11908 fi
11909 ac_res=`eval 'as_val=${'$as_ac_Header'}
11910                  $as_echo "$as_val"'`
11911                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11912 $as_echo "$ac_res" >&6; }
11913 else
11914   # Is the header compilable?
11915 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11916 $as_echo_n "checking $ac_header usability... " >&6; }
11917 cat >conftest.$ac_ext <<_ACEOF
11918 /* confdefs.h.  */
11919 _ACEOF
11920 cat confdefs.h >>conftest.$ac_ext
11921 cat >>conftest.$ac_ext <<_ACEOF
11922 /* end confdefs.h.  */
11923 $ac_includes_default
11924 #include <$ac_header>
11925 _ACEOF
11926 rm -f conftest.$ac_objext
11927 if { (ac_try="$ac_compile"
11928 case "(($ac_try" in
11929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11930   *) ac_try_echo=$ac_try;;
11931 esac
11932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11933 $as_echo "$ac_try_echo") >&5
11934   (eval "$ac_compile") 2>conftest.er1
11935   ac_status=$?
11936   grep -v '^ *+' conftest.er1 >conftest.err
11937   rm -f conftest.er1
11938   cat conftest.err >&5
11939   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940   (exit $ac_status); } && {
11941          test -z "$ac_c_werror_flag" ||
11942          test ! -s conftest.err
11943        } && test -s conftest.$ac_objext; then
11944   ac_header_compiler=yes
11945 else
11946   $as_echo "$as_me: failed program was:" >&5
11947 sed 's/^/| /' conftest.$ac_ext >&5
11948
11949         ac_header_compiler=no
11950 fi
11951
11952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11953 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11954 $as_echo "$ac_header_compiler" >&6; }
11955
11956 # Is the header present?
11957 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11958 $as_echo_n "checking $ac_header presence... " >&6; }
11959 cat >conftest.$ac_ext <<_ACEOF
11960 /* confdefs.h.  */
11961 _ACEOF
11962 cat confdefs.h >>conftest.$ac_ext
11963 cat >>conftest.$ac_ext <<_ACEOF
11964 /* end confdefs.h.  */
11965 #include <$ac_header>
11966 _ACEOF
11967 if { (ac_try="$ac_cpp conftest.$ac_ext"
11968 case "(($ac_try" in
11969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11970   *) ac_try_echo=$ac_try;;
11971 esac
11972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11973 $as_echo "$ac_try_echo") >&5
11974   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11975   ac_status=$?
11976   grep -v '^ *+' conftest.er1 >conftest.err
11977   rm -f conftest.er1
11978   cat conftest.err >&5
11979   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980   (exit $ac_status); } >/dev/null && {
11981          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11982          test ! -s conftest.err
11983        }; then
11984   ac_header_preproc=yes
11985 else
11986   $as_echo "$as_me: failed program was:" >&5
11987 sed 's/^/| /' conftest.$ac_ext >&5
11988
11989   ac_header_preproc=no
11990 fi
11991
11992 rm -f conftest.err conftest.$ac_ext
11993 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11994 $as_echo "$ac_header_preproc" >&6; }
11995
11996 # So?  What about this header?
11997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11998   yes:no: )
11999     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12000 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12001     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12002 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12003     ac_header_preproc=yes
12004     ;;
12005   no:yes:* )
12006     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12007 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12008     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12009 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12010     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12011 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12012     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12013 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12014     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12015 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12016     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12017 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12018     ( cat <<\_ASBOX
12019 ## ---------------------------------------- ##
12020 ## Report this to pgsql-bugs@postgresql.org ##
12021 ## ---------------------------------------- ##
12022 _ASBOX
12023      ) | sed "s/^/$as_me: WARNING:     /" >&2
12024     ;;
12025 esac
12026 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12027 $as_echo_n "checking for $ac_header... " >&6; }
12028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12029   $as_echo_n "(cached) " >&6
12030 else
12031   eval "$as_ac_Header=\$ac_header_preproc"
12032 fi
12033 ac_res=`eval 'as_val=${'$as_ac_Header'}
12034                  $as_echo "$as_val"'`
12035                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12036 $as_echo "$ac_res" >&6; }
12037
12038 fi
12039 as_val=`eval 'as_val=${'$as_ac_Header'}
12040                  $as_echo "$as_val"'`
12041    if test "x$as_val" = x""yes; then
12042   cat >>confdefs.h <<_ACEOF
12043 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12044 _ACEOF
12045
12046 else
12047
12048 for ac_header in readline/history.h
12049 do
12050 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12052   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12053 $as_echo_n "checking for $ac_header... " >&6; }
12054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12055   $as_echo_n "(cached) " >&6
12056 fi
12057 ac_res=`eval 'as_val=${'$as_ac_Header'}
12058                  $as_echo "$as_val"'`
12059                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12060 $as_echo "$ac_res" >&6; }
12061 else
12062   # Is the header compilable?
12063 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12064 $as_echo_n "checking $ac_header usability... " >&6; }
12065 cat >conftest.$ac_ext <<_ACEOF
12066 /* confdefs.h.  */
12067 _ACEOF
12068 cat confdefs.h >>conftest.$ac_ext
12069 cat >>conftest.$ac_ext <<_ACEOF
12070 /* end confdefs.h.  */
12071 $ac_includes_default
12072 #include <$ac_header>
12073 _ACEOF
12074 rm -f conftest.$ac_objext
12075 if { (ac_try="$ac_compile"
12076 case "(($ac_try" in
12077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12078   *) ac_try_echo=$ac_try;;
12079 esac
12080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12081 $as_echo "$ac_try_echo") >&5
12082   (eval "$ac_compile") 2>conftest.er1
12083   ac_status=$?
12084   grep -v '^ *+' conftest.er1 >conftest.err
12085   rm -f conftest.er1
12086   cat conftest.err >&5
12087   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088   (exit $ac_status); } && {
12089          test -z "$ac_c_werror_flag" ||
12090          test ! -s conftest.err
12091        } && test -s conftest.$ac_objext; then
12092   ac_header_compiler=yes
12093 else
12094   $as_echo "$as_me: failed program was:" >&5
12095 sed 's/^/| /' conftest.$ac_ext >&5
12096
12097         ac_header_compiler=no
12098 fi
12099
12100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12101 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12102 $as_echo "$ac_header_compiler" >&6; }
12103
12104 # Is the header present?
12105 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12106 $as_echo_n "checking $ac_header presence... " >&6; }
12107 cat >conftest.$ac_ext <<_ACEOF
12108 /* confdefs.h.  */
12109 _ACEOF
12110 cat confdefs.h >>conftest.$ac_ext
12111 cat >>conftest.$ac_ext <<_ACEOF
12112 /* end confdefs.h.  */
12113 #include <$ac_header>
12114 _ACEOF
12115 if { (ac_try="$ac_cpp conftest.$ac_ext"
12116 case "(($ac_try" in
12117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118   *) ac_try_echo=$ac_try;;
12119 esac
12120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12121 $as_echo "$ac_try_echo") >&5
12122   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12123   ac_status=$?
12124   grep -v '^ *+' conftest.er1 >conftest.err
12125   rm -f conftest.er1
12126   cat conftest.err >&5
12127   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128   (exit $ac_status); } >/dev/null && {
12129          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12130          test ! -s conftest.err
12131        }; then
12132   ac_header_preproc=yes
12133 else
12134   $as_echo "$as_me: failed program was:" >&5
12135 sed 's/^/| /' conftest.$ac_ext >&5
12136
12137   ac_header_preproc=no
12138 fi
12139
12140 rm -f conftest.err conftest.$ac_ext
12141 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12142 $as_echo "$ac_header_preproc" >&6; }
12143
12144 # So?  What about this header?
12145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12146   yes:no: )
12147     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12148 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12149     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12150 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12151     ac_header_preproc=yes
12152     ;;
12153   no:yes:* )
12154     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12155 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12156     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12157 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12158     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12159 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12160     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12161 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12162     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12163 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12164     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12165 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12166     ( cat <<\_ASBOX
12167 ## ---------------------------------------- ##
12168 ## Report this to pgsql-bugs@postgresql.org ##
12169 ## ---------------------------------------- ##
12170 _ASBOX
12171      ) | sed "s/^/$as_me: WARNING:     /" >&2
12172     ;;
12173 esac
12174 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12175 $as_echo_n "checking for $ac_header... " >&6; }
12176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12177   $as_echo_n "(cached) " >&6
12178 else
12179   eval "$as_ac_Header=\$ac_header_preproc"
12180 fi
12181 ac_res=`eval 'as_val=${'$as_ac_Header'}
12182                  $as_echo "$as_val"'`
12183                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12184 $as_echo "$ac_res" >&6; }
12185
12186 fi
12187 as_val=`eval 'as_val=${'$as_ac_Header'}
12188                  $as_echo "$as_val"'`
12189    if test "x$as_val" = x""yes; then
12190   cat >>confdefs.h <<_ACEOF
12191 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12192 _ACEOF
12193
12194 fi
12195
12196 done
12197
12198 fi
12199
12200 done
12201
12202 fi
12203
12204 done
12205
12206 fi
12207
12208 if test "$with_zlib" = yes; then
12209   if test "${ac_cv_header_zlib_h+set}" = set; then
12210   { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12211 $as_echo_n "checking for zlib.h... " >&6; }
12212 if test "${ac_cv_header_zlib_h+set}" = set; then
12213   $as_echo_n "(cached) " >&6
12214 fi
12215 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12216 $as_echo "$ac_cv_header_zlib_h" >&6; }
12217 else
12218   # Is the header compilable?
12219 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
12220 $as_echo_n "checking zlib.h usability... " >&6; }
12221 cat >conftest.$ac_ext <<_ACEOF
12222 /* confdefs.h.  */
12223 _ACEOF
12224 cat confdefs.h >>conftest.$ac_ext
12225 cat >>conftest.$ac_ext <<_ACEOF
12226 /* end confdefs.h.  */
12227 $ac_includes_default
12228 #include <zlib.h>
12229 _ACEOF
12230 rm -f conftest.$ac_objext
12231 if { (ac_try="$ac_compile"
12232 case "(($ac_try" in
12233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12234   *) ac_try_echo=$ac_try;;
12235 esac
12236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12237 $as_echo "$ac_try_echo") >&5
12238   (eval "$ac_compile") 2>conftest.er1
12239   ac_status=$?
12240   grep -v '^ *+' conftest.er1 >conftest.err
12241   rm -f conftest.er1
12242   cat conftest.err >&5
12243   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244   (exit $ac_status); } && {
12245          test -z "$ac_c_werror_flag" ||
12246          test ! -s conftest.err
12247        } && test -s conftest.$ac_objext; then
12248   ac_header_compiler=yes
12249 else
12250   $as_echo "$as_me: failed program was:" >&5
12251 sed 's/^/| /' conftest.$ac_ext >&5
12252
12253         ac_header_compiler=no
12254 fi
12255
12256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12257 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12258 $as_echo "$ac_header_compiler" >&6; }
12259
12260 # Is the header present?
12261 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
12262 $as_echo_n "checking zlib.h presence... " >&6; }
12263 cat >conftest.$ac_ext <<_ACEOF
12264 /* confdefs.h.  */
12265 _ACEOF
12266 cat confdefs.h >>conftest.$ac_ext
12267 cat >>conftest.$ac_ext <<_ACEOF
12268 /* end confdefs.h.  */
12269 #include <zlib.h>
12270 _ACEOF
12271 if { (ac_try="$ac_cpp conftest.$ac_ext"
12272 case "(($ac_try" in
12273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12274   *) ac_try_echo=$ac_try;;
12275 esac
12276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12277 $as_echo "$ac_try_echo") >&5
12278   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12279   ac_status=$?
12280   grep -v '^ *+' conftest.er1 >conftest.err
12281   rm -f conftest.er1
12282   cat conftest.err >&5
12283   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284   (exit $ac_status); } >/dev/null && {
12285          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12286          test ! -s conftest.err
12287        }; then
12288   ac_header_preproc=yes
12289 else
12290   $as_echo "$as_me: failed program was:" >&5
12291 sed 's/^/| /' conftest.$ac_ext >&5
12292
12293   ac_header_preproc=no
12294 fi
12295
12296 rm -f conftest.err conftest.$ac_ext
12297 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12298 $as_echo "$ac_header_preproc" >&6; }
12299
12300 # So?  What about this header?
12301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12302   yes:no: )
12303     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12304 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12305     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
12306 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
12307     ac_header_preproc=yes
12308     ;;
12309   no:yes:* )
12310     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
12311 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
12312     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
12313 $as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
12314     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
12315 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
12316     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
12317 $as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12318     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
12319 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
12320     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
12321 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
12322     ( cat <<\_ASBOX
12323 ## ---------------------------------------- ##
12324 ## Report this to pgsql-bugs@postgresql.org ##
12325 ## ---------------------------------------- ##
12326 _ASBOX
12327      ) | sed "s/^/$as_me: WARNING:     /" >&2
12328     ;;
12329 esac
12330 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12331 $as_echo_n "checking for zlib.h... " >&6; }
12332 if test "${ac_cv_header_zlib_h+set}" = set; then
12333   $as_echo_n "(cached) " >&6
12334 else
12335   ac_cv_header_zlib_h=$ac_header_preproc
12336 fi
12337 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12338 $as_echo "$ac_cv_header_zlib_h" >&6; }
12339
12340 fi
12341 if test "x$ac_cv_header_zlib_h" = x""yes; then
12342   :
12343 else
12344   { { $as_echo "$as_me:$LINENO: error: zlib header not found
12345 If you have zlib already installed, see config.log for details on the
12346 failure.  It is possible the compiler isn't looking in the proper directory.
12347 Use --without-zlib to disable zlib support." >&5
12348 $as_echo "$as_me: error: zlib header not found
12349 If you have zlib already installed, see config.log for details on the
12350 failure.  It is possible the compiler isn't looking in the proper directory.
12351 Use --without-zlib to disable zlib support." >&2;}
12352    { (exit 1); exit 1; }; }
12353 fi
12354
12355
12356 fi
12357
12358 if test "$with_gssapi" = yes ; then
12359
12360 for ac_header in gssapi/gssapi.h
12361 do
12362 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12364   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12365 $as_echo_n "checking for $ac_header... " >&6; }
12366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12367   $as_echo_n "(cached) " >&6
12368 fi
12369 ac_res=`eval 'as_val=${'$as_ac_Header'}
12370                  $as_echo "$as_val"'`
12371                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12372 $as_echo "$ac_res" >&6; }
12373 else
12374   # Is the header compilable?
12375 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12376 $as_echo_n "checking $ac_header usability... " >&6; }
12377 cat >conftest.$ac_ext <<_ACEOF
12378 /* confdefs.h.  */
12379 _ACEOF
12380 cat confdefs.h >>conftest.$ac_ext
12381 cat >>conftest.$ac_ext <<_ACEOF
12382 /* end confdefs.h.  */
12383 $ac_includes_default
12384 #include <$ac_header>
12385 _ACEOF
12386 rm -f conftest.$ac_objext
12387 if { (ac_try="$ac_compile"
12388 case "(($ac_try" in
12389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12390   *) ac_try_echo=$ac_try;;
12391 esac
12392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12393 $as_echo "$ac_try_echo") >&5
12394   (eval "$ac_compile") 2>conftest.er1
12395   ac_status=$?
12396   grep -v '^ *+' conftest.er1 >conftest.err
12397   rm -f conftest.er1
12398   cat conftest.err >&5
12399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400   (exit $ac_status); } && {
12401          test -z "$ac_c_werror_flag" ||
12402          test ! -s conftest.err
12403        } && test -s conftest.$ac_objext; then
12404   ac_header_compiler=yes
12405 else
12406   $as_echo "$as_me: failed program was:" >&5
12407 sed 's/^/| /' conftest.$ac_ext >&5
12408
12409         ac_header_compiler=no
12410 fi
12411
12412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12413 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12414 $as_echo "$ac_header_compiler" >&6; }
12415
12416 # Is the header present?
12417 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12418 $as_echo_n "checking $ac_header presence... " >&6; }
12419 cat >conftest.$ac_ext <<_ACEOF
12420 /* confdefs.h.  */
12421 _ACEOF
12422 cat confdefs.h >>conftest.$ac_ext
12423 cat >>conftest.$ac_ext <<_ACEOF
12424 /* end confdefs.h.  */
12425 #include <$ac_header>
12426 _ACEOF
12427 if { (ac_try="$ac_cpp conftest.$ac_ext"
12428 case "(($ac_try" in
12429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430   *) ac_try_echo=$ac_try;;
12431 esac
12432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12433 $as_echo "$ac_try_echo") >&5
12434   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12435   ac_status=$?
12436   grep -v '^ *+' conftest.er1 >conftest.err
12437   rm -f conftest.er1
12438   cat conftest.err >&5
12439   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440   (exit $ac_status); } >/dev/null && {
12441          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12442          test ! -s conftest.err
12443        }; then
12444   ac_header_preproc=yes
12445 else
12446   $as_echo "$as_me: failed program was:" >&5
12447 sed 's/^/| /' conftest.$ac_ext >&5
12448
12449   ac_header_preproc=no
12450 fi
12451
12452 rm -f conftest.err conftest.$ac_ext
12453 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12454 $as_echo "$ac_header_preproc" >&6; }
12455
12456 # So?  What about this header?
12457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12458   yes:no: )
12459     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12460 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12461     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12462 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12463     ac_header_preproc=yes
12464     ;;
12465   no:yes:* )
12466     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12467 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12468     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12469 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12470     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12471 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12472     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12473 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12474     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12475 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12476     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12477 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12478     ( cat <<\_ASBOX
12479 ## ---------------------------------------- ##
12480 ## Report this to pgsql-bugs@postgresql.org ##
12481 ## ---------------------------------------- ##
12482 _ASBOX
12483      ) | sed "s/^/$as_me: WARNING:     /" >&2
12484     ;;
12485 esac
12486 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12487 $as_echo_n "checking for $ac_header... " >&6; }
12488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12489   $as_echo_n "(cached) " >&6
12490 else
12491   eval "$as_ac_Header=\$ac_header_preproc"
12492 fi
12493 ac_res=`eval 'as_val=${'$as_ac_Header'}
12494                  $as_echo "$as_val"'`
12495                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12496 $as_echo "$ac_res" >&6; }
12497
12498 fi
12499 as_val=`eval 'as_val=${'$as_ac_Header'}
12500                  $as_echo "$as_val"'`
12501    if test "x$as_val" = x""yes; then
12502   cat >>confdefs.h <<_ACEOF
12503 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12504 _ACEOF
12505
12506 else
12507
12508 for ac_header in gssapi.h
12509 do
12510 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12512   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12513 $as_echo_n "checking for $ac_header... " >&6; }
12514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12515   $as_echo_n "(cached) " >&6
12516 fi
12517 ac_res=`eval 'as_val=${'$as_ac_Header'}
12518                  $as_echo "$as_val"'`
12519                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12520 $as_echo "$ac_res" >&6; }
12521 else
12522   # Is the header compilable?
12523 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12524 $as_echo_n "checking $ac_header usability... " >&6; }
12525 cat >conftest.$ac_ext <<_ACEOF
12526 /* confdefs.h.  */
12527 _ACEOF
12528 cat confdefs.h >>conftest.$ac_ext
12529 cat >>conftest.$ac_ext <<_ACEOF
12530 /* end confdefs.h.  */
12531 $ac_includes_default
12532 #include <$ac_header>
12533 _ACEOF
12534 rm -f conftest.$ac_objext
12535 if { (ac_try="$ac_compile"
12536 case "(($ac_try" in
12537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12538   *) ac_try_echo=$ac_try;;
12539 esac
12540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12541 $as_echo "$ac_try_echo") >&5
12542   (eval "$ac_compile") 2>conftest.er1
12543   ac_status=$?
12544   grep -v '^ *+' conftest.er1 >conftest.err
12545   rm -f conftest.er1
12546   cat conftest.err >&5
12547   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548   (exit $ac_status); } && {
12549          test -z "$ac_c_werror_flag" ||
12550          test ! -s conftest.err
12551        } && test -s conftest.$ac_objext; then
12552   ac_header_compiler=yes
12553 else
12554   $as_echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12556
12557         ac_header_compiler=no
12558 fi
12559
12560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12561 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12562 $as_echo "$ac_header_compiler" >&6; }
12563
12564 # Is the header present?
12565 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12566 $as_echo_n "checking $ac_header presence... " >&6; }
12567 cat >conftest.$ac_ext <<_ACEOF
12568 /* confdefs.h.  */
12569 _ACEOF
12570 cat confdefs.h >>conftest.$ac_ext
12571 cat >>conftest.$ac_ext <<_ACEOF
12572 /* end confdefs.h.  */
12573 #include <$ac_header>
12574 _ACEOF
12575 if { (ac_try="$ac_cpp conftest.$ac_ext"
12576 case "(($ac_try" in
12577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12578   *) ac_try_echo=$ac_try;;
12579 esac
12580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12581 $as_echo "$ac_try_echo") >&5
12582   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12583   ac_status=$?
12584   grep -v '^ *+' conftest.er1 >conftest.err
12585   rm -f conftest.er1
12586   cat conftest.err >&5
12587   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588   (exit $ac_status); } >/dev/null && {
12589          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12590          test ! -s conftest.err
12591        }; then
12592   ac_header_preproc=yes
12593 else
12594   $as_echo "$as_me: failed program was:" >&5
12595 sed 's/^/| /' conftest.$ac_ext >&5
12596
12597   ac_header_preproc=no
12598 fi
12599
12600 rm -f conftest.err conftest.$ac_ext
12601 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12602 $as_echo "$ac_header_preproc" >&6; }
12603
12604 # So?  What about this header?
12605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12606   yes:no: )
12607     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12608 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12609     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12610 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12611     ac_header_preproc=yes
12612     ;;
12613   no:yes:* )
12614     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12615 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12616     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12617 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12618     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12619 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12620     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12621 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12622     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12623 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12624     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12625 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12626     ( cat <<\_ASBOX
12627 ## ---------------------------------------- ##
12628 ## Report this to pgsql-bugs@postgresql.org ##
12629 ## ---------------------------------------- ##
12630 _ASBOX
12631      ) | sed "s/^/$as_me: WARNING:     /" >&2
12632     ;;
12633 esac
12634 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12635 $as_echo_n "checking for $ac_header... " >&6; }
12636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12637   $as_echo_n "(cached) " >&6
12638 else
12639   eval "$as_ac_Header=\$ac_header_preproc"
12640 fi
12641 ac_res=`eval 'as_val=${'$as_ac_Header'}
12642                  $as_echo "$as_val"'`
12643                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12644 $as_echo "$ac_res" >&6; }
12645
12646 fi
12647 as_val=`eval 'as_val=${'$as_ac_Header'}
12648                  $as_echo "$as_val"'`
12649    if test "x$as_val" = x""yes; then
12650   cat >>confdefs.h <<_ACEOF
12651 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12652 _ACEOF
12653
12654 else
12655   { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12656 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12657    { (exit 1); exit 1; }; }
12658 fi
12659
12660 done
12661
12662 fi
12663
12664 done
12665
12666 fi
12667
12668 if test "$with_krb5" = yes ; then
12669   if test "${ac_cv_header_krb5_h+set}" = set; then
12670   { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12671 $as_echo_n "checking for krb5.h... " >&6; }
12672 if test "${ac_cv_header_krb5_h+set}" = set; then
12673   $as_echo_n "(cached) " >&6
12674 fi
12675 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12676 $as_echo "$ac_cv_header_krb5_h" >&6; }
12677 else
12678   # Is the header compilable?
12679 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12680 $as_echo_n "checking krb5.h usability... " >&6; }
12681 cat >conftest.$ac_ext <<_ACEOF
12682 /* confdefs.h.  */
12683 _ACEOF
12684 cat confdefs.h >>conftest.$ac_ext
12685 cat >>conftest.$ac_ext <<_ACEOF
12686 /* end confdefs.h.  */
12687 $ac_includes_default
12688 #include <krb5.h>
12689 _ACEOF
12690 rm -f conftest.$ac_objext
12691 if { (ac_try="$ac_compile"
12692 case "(($ac_try" in
12693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12694   *) ac_try_echo=$ac_try;;
12695 esac
12696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12697 $as_echo "$ac_try_echo") >&5
12698   (eval "$ac_compile") 2>conftest.er1
12699   ac_status=$?
12700   grep -v '^ *+' conftest.er1 >conftest.err
12701   rm -f conftest.er1
12702   cat conftest.err >&5
12703   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704   (exit $ac_status); } && {
12705          test -z "$ac_c_werror_flag" ||
12706          test ! -s conftest.err
12707        } && test -s conftest.$ac_objext; then
12708   ac_header_compiler=yes
12709 else
12710   $as_echo "$as_me: failed program was:" >&5
12711 sed 's/^/| /' conftest.$ac_ext >&5
12712
12713         ac_header_compiler=no
12714 fi
12715
12716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12717 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12718 $as_echo "$ac_header_compiler" >&6; }
12719
12720 # Is the header present?
12721 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12722 $as_echo_n "checking krb5.h presence... " >&6; }
12723 cat >conftest.$ac_ext <<_ACEOF
12724 /* confdefs.h.  */
12725 _ACEOF
12726 cat confdefs.h >>conftest.$ac_ext
12727 cat >>conftest.$ac_ext <<_ACEOF
12728 /* end confdefs.h.  */
12729 #include <krb5.h>
12730 _ACEOF
12731 if { (ac_try="$ac_cpp conftest.$ac_ext"
12732 case "(($ac_try" in
12733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12734   *) ac_try_echo=$ac_try;;
12735 esac
12736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12737 $as_echo "$ac_try_echo") >&5
12738   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12739   ac_status=$?
12740   grep -v '^ *+' conftest.er1 >conftest.err
12741   rm -f conftest.er1
12742   cat conftest.err >&5
12743   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744   (exit $ac_status); } >/dev/null && {
12745          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12746          test ! -s conftest.err
12747        }; then
12748   ac_header_preproc=yes
12749 else
12750   $as_echo "$as_me: failed program was:" >&5
12751 sed 's/^/| /' conftest.$ac_ext >&5
12752
12753   ac_header_preproc=no
12754 fi
12755
12756 rm -f conftest.err conftest.$ac_ext
12757 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12758 $as_echo "$ac_header_preproc" >&6; }
12759
12760 # So?  What about this header?
12761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12762   yes:no: )
12763     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12764 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12765     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12766 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12767     ac_header_preproc=yes
12768     ;;
12769   no:yes:* )
12770     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12771 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12772     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     check for missing prerequisite headers?" >&5
12773 $as_echo "$as_me: WARNING: krb5.h:     check for missing prerequisite headers?" >&2;}
12774     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12775 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12776     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&5
12777 $as_echo "$as_me: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12778     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12779 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12780     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12781 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12782     ( cat <<\_ASBOX
12783 ## ---------------------------------------- ##
12784 ## Report this to pgsql-bugs@postgresql.org ##
12785 ## ---------------------------------------- ##
12786 _ASBOX
12787      ) | sed "s/^/$as_me: WARNING:     /" >&2
12788     ;;
12789 esac
12790 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12791 $as_echo_n "checking for krb5.h... " >&6; }
12792 if test "${ac_cv_header_krb5_h+set}" = set; then
12793   $as_echo_n "(cached) " >&6
12794 else
12795   ac_cv_header_krb5_h=$ac_header_preproc
12796 fi
12797 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12798 $as_echo "$ac_cv_header_krb5_h" >&6; }
12799
12800 fi
12801 if test "x$ac_cv_header_krb5_h" = x""yes; then
12802   :
12803 else
12804   { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12805 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12806    { (exit 1); exit 1; }; }
12807 fi
12808
12809
12810 fi
12811
12812 if test "$with_openssl" = yes ; then
12813   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12814   { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12815 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12816 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12817   $as_echo_n "(cached) " >&6
12818 fi
12819 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12820 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12821 else
12822   # Is the header compilable?
12823 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12824 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12825 cat >conftest.$ac_ext <<_ACEOF
12826 /* confdefs.h.  */
12827 _ACEOF
12828 cat confdefs.h >>conftest.$ac_ext
12829 cat >>conftest.$ac_ext <<_ACEOF
12830 /* end confdefs.h.  */
12831 $ac_includes_default
12832 #include <openssl/ssl.h>
12833 _ACEOF
12834 rm -f conftest.$ac_objext
12835 if { (ac_try="$ac_compile"
12836 case "(($ac_try" in
12837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12838   *) ac_try_echo=$ac_try;;
12839 esac
12840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12841 $as_echo "$ac_try_echo") >&5
12842   (eval "$ac_compile") 2>conftest.er1
12843   ac_status=$?
12844   grep -v '^ *+' conftest.er1 >conftest.err
12845   rm -f conftest.er1
12846   cat conftest.err >&5
12847   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848   (exit $ac_status); } && {
12849          test -z "$ac_c_werror_flag" ||
12850          test ! -s conftest.err
12851        } && test -s conftest.$ac_objext; then
12852   ac_header_compiler=yes
12853 else
12854   $as_echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.$ac_ext >&5
12856
12857         ac_header_compiler=no
12858 fi
12859
12860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12861 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12862 $as_echo "$ac_header_compiler" >&6; }
12863
12864 # Is the header present?
12865 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12866 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12867 cat >conftest.$ac_ext <<_ACEOF
12868 /* confdefs.h.  */
12869 _ACEOF
12870 cat confdefs.h >>conftest.$ac_ext
12871 cat >>conftest.$ac_ext <<_ACEOF
12872 /* end confdefs.h.  */
12873 #include <openssl/ssl.h>
12874 _ACEOF
12875 if { (ac_try="$ac_cpp conftest.$ac_ext"
12876 case "(($ac_try" in
12877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12878   *) ac_try_echo=$ac_try;;
12879 esac
12880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12881 $as_echo "$ac_try_echo") >&5
12882   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12883   ac_status=$?
12884   grep -v '^ *+' conftest.er1 >conftest.err
12885   rm -f conftest.er1
12886   cat conftest.err >&5
12887   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888   (exit $ac_status); } >/dev/null && {
12889          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12890          test ! -s conftest.err
12891        }; then
12892   ac_header_preproc=yes
12893 else
12894   $as_echo "$as_me: failed program was:" >&5
12895 sed 's/^/| /' conftest.$ac_ext >&5
12896
12897   ac_header_preproc=no
12898 fi
12899
12900 rm -f conftest.err conftest.$ac_ext
12901 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12902 $as_echo "$ac_header_preproc" >&6; }
12903
12904 # So?  What about this header?
12905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12906   yes:no: )
12907     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12908 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12909     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12910 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12911     ac_header_preproc=yes
12912     ;;
12913   no:yes:* )
12914     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12915 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12916     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&5
12917 $as_echo "$as_me: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&2;}
12918     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12919 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12920     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&5
12921 $as_echo "$as_me: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12922     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12923 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12924     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12925 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12926     ( cat <<\_ASBOX
12927 ## ---------------------------------------- ##
12928 ## Report this to pgsql-bugs@postgresql.org ##
12929 ## ---------------------------------------- ##
12930 _ASBOX
12931      ) | sed "s/^/$as_me: WARNING:     /" >&2
12932     ;;
12933 esac
12934 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12935 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12936 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12937   $as_echo_n "(cached) " >&6
12938 else
12939   ac_cv_header_openssl_ssl_h=$ac_header_preproc
12940 fi
12941 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12942 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12943
12944 fi
12945 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
12946   :
12947 else
12948   { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12949 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12950    { (exit 1); exit 1; }; }
12951 fi
12952
12953
12954   if test "${ac_cv_header_openssl_err_h+set}" = set; then
12955   { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12956 $as_echo_n "checking for openssl/err.h... " >&6; }
12957 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12958   $as_echo_n "(cached) " >&6
12959 fi
12960 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12961 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12962 else
12963   # Is the header compilable?
12964 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12965 $as_echo_n "checking openssl/err.h usability... " >&6; }
12966 cat >conftest.$ac_ext <<_ACEOF
12967 /* confdefs.h.  */
12968 _ACEOF
12969 cat confdefs.h >>conftest.$ac_ext
12970 cat >>conftest.$ac_ext <<_ACEOF
12971 /* end confdefs.h.  */
12972 $ac_includes_default
12973 #include <openssl/err.h>
12974 _ACEOF
12975 rm -f conftest.$ac_objext
12976 if { (ac_try="$ac_compile"
12977 case "(($ac_try" in
12978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12979   *) ac_try_echo=$ac_try;;
12980 esac
12981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12982 $as_echo "$ac_try_echo") >&5
12983   (eval "$ac_compile") 2>conftest.er1
12984   ac_status=$?
12985   grep -v '^ *+' conftest.er1 >conftest.err
12986   rm -f conftest.er1
12987   cat conftest.err >&5
12988   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989   (exit $ac_status); } && {
12990          test -z "$ac_c_werror_flag" ||
12991          test ! -s conftest.err
12992        } && test -s conftest.$ac_objext; then
12993   ac_header_compiler=yes
12994 else
12995   $as_echo "$as_me: failed program was:" >&5
12996 sed 's/^/| /' conftest.$ac_ext >&5
12997
12998         ac_header_compiler=no
12999 fi
13000
13001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13002 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13003 $as_echo "$ac_header_compiler" >&6; }
13004
13005 # Is the header present?
13006 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
13007 $as_echo_n "checking openssl/err.h presence... " >&6; }
13008 cat >conftest.$ac_ext <<_ACEOF
13009 /* confdefs.h.  */
13010 _ACEOF
13011 cat confdefs.h >>conftest.$ac_ext
13012 cat >>conftest.$ac_ext <<_ACEOF
13013 /* end confdefs.h.  */
13014 #include <openssl/err.h>
13015 _ACEOF
13016 if { (ac_try="$ac_cpp conftest.$ac_ext"
13017 case "(($ac_try" in
13018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13019   *) ac_try_echo=$ac_try;;
13020 esac
13021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13022 $as_echo "$ac_try_echo") >&5
13023   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13024   ac_status=$?
13025   grep -v '^ *+' conftest.er1 >conftest.err
13026   rm -f conftest.er1
13027   cat conftest.err >&5
13028   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029   (exit $ac_status); } >/dev/null && {
13030          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13031          test ! -s conftest.err
13032        }; then
13033   ac_header_preproc=yes
13034 else
13035   $as_echo "$as_me: failed program was:" >&5
13036 sed 's/^/| /' conftest.$ac_ext >&5
13037
13038   ac_header_preproc=no
13039 fi
13040
13041 rm -f conftest.err conftest.$ac_ext
13042 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13043 $as_echo "$ac_header_preproc" >&6; }
13044
13045 # So?  What about this header?
13046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13047   yes:no: )
13048     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
13049 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13050     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
13051 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
13052     ac_header_preproc=yes
13053     ;;
13054   no:yes:* )
13055     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
13056 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
13057     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&5
13058 $as_echo "$as_me: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&2;}
13059     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
13060 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
13061     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&5
13062 $as_echo "$as_me: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13063     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
13064 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
13065     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
13066 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
13067     ( cat <<\_ASBOX
13068 ## ---------------------------------------- ##
13069 ## Report this to pgsql-bugs@postgresql.org ##
13070 ## ---------------------------------------- ##
13071 _ASBOX
13072      ) | sed "s/^/$as_me: WARNING:     /" >&2
13073     ;;
13074 esac
13075 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
13076 $as_echo_n "checking for openssl/err.h... " >&6; }
13077 if test "${ac_cv_header_openssl_err_h+set}" = set; then
13078   $as_echo_n "(cached) " >&6
13079 else
13080   ac_cv_header_openssl_err_h=$ac_header_preproc
13081 fi
13082 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
13083 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
13084
13085 fi
13086 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
13087   :
13088 else
13089   { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
13090 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
13091    { (exit 1); exit 1; }; }
13092 fi
13093
13094
13095 fi
13096
13097 if test "$with_pam" = yes ; then
13098
13099 for ac_header in security/pam_appl.h
13100 do
13101 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13103   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13104 $as_echo_n "checking for $ac_header... " >&6; }
13105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13106   $as_echo_n "(cached) " >&6
13107 fi
13108 ac_res=`eval 'as_val=${'$as_ac_Header'}
13109                  $as_echo "$as_val"'`
13110                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13111 $as_echo "$ac_res" >&6; }
13112 else
13113   # Is the header compilable?
13114 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13115 $as_echo_n "checking $ac_header usability... " >&6; }
13116 cat >conftest.$ac_ext <<_ACEOF
13117 /* confdefs.h.  */
13118 _ACEOF
13119 cat confdefs.h >>conftest.$ac_ext
13120 cat >>conftest.$ac_ext <<_ACEOF
13121 /* end confdefs.h.  */
13122 $ac_includes_default
13123 #include <$ac_header>
13124 _ACEOF
13125 rm -f conftest.$ac_objext
13126 if { (ac_try="$ac_compile"
13127 case "(($ac_try" in
13128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13129   *) ac_try_echo=$ac_try;;
13130 esac
13131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13132 $as_echo "$ac_try_echo") >&5
13133   (eval "$ac_compile") 2>conftest.er1
13134   ac_status=$?
13135   grep -v '^ *+' conftest.er1 >conftest.err
13136   rm -f conftest.er1
13137   cat conftest.err >&5
13138   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139   (exit $ac_status); } && {
13140          test -z "$ac_c_werror_flag" ||
13141          test ! -s conftest.err
13142        } && test -s conftest.$ac_objext; then
13143   ac_header_compiler=yes
13144 else
13145   $as_echo "$as_me: failed program was:" >&5
13146 sed 's/^/| /' conftest.$ac_ext >&5
13147
13148         ac_header_compiler=no
13149 fi
13150
13151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13152 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13153 $as_echo "$ac_header_compiler" >&6; }
13154
13155 # Is the header present?
13156 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13157 $as_echo_n "checking $ac_header presence... " >&6; }
13158 cat >conftest.$ac_ext <<_ACEOF
13159 /* confdefs.h.  */
13160 _ACEOF
13161 cat confdefs.h >>conftest.$ac_ext
13162 cat >>conftest.$ac_ext <<_ACEOF
13163 /* end confdefs.h.  */
13164 #include <$ac_header>
13165 _ACEOF
13166 if { (ac_try="$ac_cpp conftest.$ac_ext"
13167 case "(($ac_try" in
13168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13169   *) ac_try_echo=$ac_try;;
13170 esac
13171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13172 $as_echo "$ac_try_echo") >&5
13173   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13174   ac_status=$?
13175   grep -v '^ *+' conftest.er1 >conftest.err
13176   rm -f conftest.er1
13177   cat conftest.err >&5
13178   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179   (exit $ac_status); } >/dev/null && {
13180          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13181          test ! -s conftest.err
13182        }; then
13183   ac_header_preproc=yes
13184 else
13185   $as_echo "$as_me: failed program was:" >&5
13186 sed 's/^/| /' conftest.$ac_ext >&5
13187
13188   ac_header_preproc=no
13189 fi
13190
13191 rm -f conftest.err conftest.$ac_ext
13192 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13193 $as_echo "$ac_header_preproc" >&6; }
13194
13195 # So?  What about this header?
13196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13197   yes:no: )
13198     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13199 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13200     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13201 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13202     ac_header_preproc=yes
13203     ;;
13204   no:yes:* )
13205     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13206 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13207     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13208 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13209     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13210 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13211     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13212 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13213     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13214 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13215     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13216 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13217     ( cat <<\_ASBOX
13218 ## ---------------------------------------- ##
13219 ## Report this to pgsql-bugs@postgresql.org ##
13220 ## ---------------------------------------- ##
13221 _ASBOX
13222      ) | sed "s/^/$as_me: WARNING:     /" >&2
13223     ;;
13224 esac
13225 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13226 $as_echo_n "checking for $ac_header... " >&6; }
13227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13228   $as_echo_n "(cached) " >&6
13229 else
13230   eval "$as_ac_Header=\$ac_header_preproc"
13231 fi
13232 ac_res=`eval 'as_val=${'$as_ac_Header'}
13233                  $as_echo "$as_val"'`
13234                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13235 $as_echo "$ac_res" >&6; }
13236
13237 fi
13238 as_val=`eval 'as_val=${'$as_ac_Header'}
13239                  $as_echo "$as_val"'`
13240    if test "x$as_val" = x""yes; then
13241   cat >>confdefs.h <<_ACEOF
13242 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13243 _ACEOF
13244
13245 else
13246
13247 for ac_header in pam/pam_appl.h
13248 do
13249 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13251   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13252 $as_echo_n "checking for $ac_header... " >&6; }
13253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13254   $as_echo_n "(cached) " >&6
13255 fi
13256 ac_res=`eval 'as_val=${'$as_ac_Header'}
13257                  $as_echo "$as_val"'`
13258                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13259 $as_echo "$ac_res" >&6; }
13260 else
13261   # Is the header compilable?
13262 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13263 $as_echo_n "checking $ac_header usability... " >&6; }
13264 cat >conftest.$ac_ext <<_ACEOF
13265 /* confdefs.h.  */
13266 _ACEOF
13267 cat confdefs.h >>conftest.$ac_ext
13268 cat >>conftest.$ac_ext <<_ACEOF
13269 /* end confdefs.h.  */
13270 $ac_includes_default
13271 #include <$ac_header>
13272 _ACEOF
13273 rm -f conftest.$ac_objext
13274 if { (ac_try="$ac_compile"
13275 case "(($ac_try" in
13276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13277   *) ac_try_echo=$ac_try;;
13278 esac
13279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13280 $as_echo "$ac_try_echo") >&5
13281   (eval "$ac_compile") 2>conftest.er1
13282   ac_status=$?
13283   grep -v '^ *+' conftest.er1 >conftest.err
13284   rm -f conftest.er1
13285   cat conftest.err >&5
13286   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287   (exit $ac_status); } && {
13288          test -z "$ac_c_werror_flag" ||
13289          test ! -s conftest.err
13290        } && test -s conftest.$ac_objext; then
13291   ac_header_compiler=yes
13292 else
13293   $as_echo "$as_me: failed program was:" >&5
13294 sed 's/^/| /' conftest.$ac_ext >&5
13295
13296         ac_header_compiler=no
13297 fi
13298
13299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13300 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13301 $as_echo "$ac_header_compiler" >&6; }
13302
13303 # Is the header present?
13304 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13305 $as_echo_n "checking $ac_header presence... " >&6; }
13306 cat >conftest.$ac_ext <<_ACEOF
13307 /* confdefs.h.  */
13308 _ACEOF
13309 cat confdefs.h >>conftest.$ac_ext
13310 cat >>conftest.$ac_ext <<_ACEOF
13311 /* end confdefs.h.  */
13312 #include <$ac_header>
13313 _ACEOF
13314 if { (ac_try="$ac_cpp conftest.$ac_ext"
13315 case "(($ac_try" in
13316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317   *) ac_try_echo=$ac_try;;
13318 esac
13319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13320 $as_echo "$ac_try_echo") >&5
13321   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13322   ac_status=$?
13323   grep -v '^ *+' conftest.er1 >conftest.err
13324   rm -f conftest.er1
13325   cat conftest.err >&5
13326   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327   (exit $ac_status); } >/dev/null && {
13328          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13329          test ! -s conftest.err
13330        }; then
13331   ac_header_preproc=yes
13332 else
13333   $as_echo "$as_me: failed program was:" >&5
13334 sed 's/^/| /' conftest.$ac_ext >&5
13335
13336   ac_header_preproc=no
13337 fi
13338
13339 rm -f conftest.err conftest.$ac_ext
13340 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13341 $as_echo "$ac_header_preproc" >&6; }
13342
13343 # So?  What about this header?
13344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13345   yes:no: )
13346     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13347 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13348     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13349 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13350     ac_header_preproc=yes
13351     ;;
13352   no:yes:* )
13353     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13354 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13355     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13356 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13357     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13358 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13359     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13360 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13361     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13362 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13363     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13364 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13365     ( cat <<\_ASBOX
13366 ## ---------------------------------------- ##
13367 ## Report this to pgsql-bugs@postgresql.org ##
13368 ## ---------------------------------------- ##
13369 _ASBOX
13370      ) | sed "s/^/$as_me: WARNING:     /" >&2
13371     ;;
13372 esac
13373 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13374 $as_echo_n "checking for $ac_header... " >&6; }
13375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13376   $as_echo_n "(cached) " >&6
13377 else
13378   eval "$as_ac_Header=\$ac_header_preproc"
13379 fi
13380 ac_res=`eval 'as_val=${'$as_ac_Header'}
13381                  $as_echo "$as_val"'`
13382                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13383 $as_echo "$ac_res" >&6; }
13384
13385 fi
13386 as_val=`eval 'as_val=${'$as_ac_Header'}
13387                  $as_echo "$as_val"'`
13388    if test "x$as_val" = x""yes; then
13389   cat >>confdefs.h <<_ACEOF
13390 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13391 _ACEOF
13392
13393 else
13394   { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
13395 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
13396    { (exit 1); exit 1; }; }
13397 fi
13398
13399 done
13400
13401 fi
13402
13403 done
13404
13405 fi
13406
13407 if test "$with_libxml" = yes ; then
13408   if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13409   { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13410 $as_echo_n "checking for libxml/parser.h... " >&6; }
13411 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13412   $as_echo_n "(cached) " >&6
13413 fi
13414 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13415 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13416 else
13417   # Is the header compilable?
13418 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
13419 $as_echo_n "checking libxml/parser.h usability... " >&6; }
13420 cat >conftest.$ac_ext <<_ACEOF
13421 /* confdefs.h.  */
13422 _ACEOF
13423 cat confdefs.h >>conftest.$ac_ext
13424 cat >>conftest.$ac_ext <<_ACEOF
13425 /* end confdefs.h.  */
13426 $ac_includes_default
13427 #include <libxml/parser.h>
13428 _ACEOF
13429 rm -f conftest.$ac_objext
13430 if { (ac_try="$ac_compile"
13431 case "(($ac_try" in
13432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13433   *) ac_try_echo=$ac_try;;
13434 esac
13435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13436 $as_echo "$ac_try_echo") >&5
13437   (eval "$ac_compile") 2>conftest.er1
13438   ac_status=$?
13439   grep -v '^ *+' conftest.er1 >conftest.err
13440   rm -f conftest.er1
13441   cat conftest.err >&5
13442   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443   (exit $ac_status); } && {
13444          test -z "$ac_c_werror_flag" ||
13445          test ! -s conftest.err
13446        } && test -s conftest.$ac_objext; then
13447   ac_header_compiler=yes
13448 else
13449   $as_echo "$as_me: failed program was:" >&5
13450 sed 's/^/| /' conftest.$ac_ext >&5
13451
13452         ac_header_compiler=no
13453 fi
13454
13455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13456 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13457 $as_echo "$ac_header_compiler" >&6; }
13458
13459 # Is the header present?
13460 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13461 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13462 cat >conftest.$ac_ext <<_ACEOF
13463 /* confdefs.h.  */
13464 _ACEOF
13465 cat confdefs.h >>conftest.$ac_ext
13466 cat >>conftest.$ac_ext <<_ACEOF
13467 /* end confdefs.h.  */
13468 #include <libxml/parser.h>
13469 _ACEOF
13470 if { (ac_try="$ac_cpp conftest.$ac_ext"
13471 case "(($ac_try" in
13472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13473   *) ac_try_echo=$ac_try;;
13474 esac
13475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13476 $as_echo "$ac_try_echo") >&5
13477   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13478   ac_status=$?
13479   grep -v '^ *+' conftest.er1 >conftest.err
13480   rm -f conftest.er1
13481   cat conftest.err >&5
13482   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483   (exit $ac_status); } >/dev/null && {
13484          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13485          test ! -s conftest.err
13486        }; then
13487   ac_header_preproc=yes
13488 else
13489   $as_echo "$as_me: failed program was:" >&5
13490 sed 's/^/| /' conftest.$ac_ext >&5
13491
13492   ac_header_preproc=no
13493 fi
13494
13495 rm -f conftest.err conftest.$ac_ext
13496 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13497 $as_echo "$ac_header_preproc" >&6; }
13498
13499 # So?  What about this header?
13500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13501   yes:no: )
13502     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13503 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13504     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13505 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13506     ac_header_preproc=yes
13507     ;;
13508   no:yes:* )
13509     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13510 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13511     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
13512 $as_echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
13513     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13514 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13515     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
13516 $as_echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13517     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13518 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13519     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13520 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13521     ( cat <<\_ASBOX
13522 ## ---------------------------------------- ##
13523 ## Report this to pgsql-bugs@postgresql.org ##
13524 ## ---------------------------------------- ##
13525 _ASBOX
13526      ) | sed "s/^/$as_me: WARNING:     /" >&2
13527     ;;
13528 esac
13529 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13530 $as_echo_n "checking for libxml/parser.h... " >&6; }
13531 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13532   $as_echo_n "(cached) " >&6
13533 else
13534   ac_cv_header_libxml_parser_h=$ac_header_preproc
13535 fi
13536 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13537 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13538
13539 fi
13540 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13541   :
13542 else
13543   { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13544 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13545    { (exit 1); exit 1; }; }
13546 fi
13547
13548
13549 fi
13550
13551 if test "$with_libxslt" = yes ; then
13552   if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13553   { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13554 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13555 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13556   $as_echo_n "(cached) " >&6
13557 fi
13558 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13559 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13560 else
13561   # Is the header compilable?
13562 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13563 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13564 cat >conftest.$ac_ext <<_ACEOF
13565 /* confdefs.h.  */
13566 _ACEOF
13567 cat confdefs.h >>conftest.$ac_ext
13568 cat >>conftest.$ac_ext <<_ACEOF
13569 /* end confdefs.h.  */
13570 $ac_includes_default
13571 #include <libxslt/xslt.h>
13572 _ACEOF
13573 rm -f conftest.$ac_objext
13574 if { (ac_try="$ac_compile"
13575 case "(($ac_try" in
13576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13577   *) ac_try_echo=$ac_try;;
13578 esac
13579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13580 $as_echo "$ac_try_echo") >&5
13581   (eval "$ac_compile") 2>conftest.er1
13582   ac_status=$?
13583   grep -v '^ *+' conftest.er1 >conftest.err
13584   rm -f conftest.er1
13585   cat conftest.err >&5
13586   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587   (exit $ac_status); } && {
13588          test -z "$ac_c_werror_flag" ||
13589          test ! -s conftest.err
13590        } && test -s conftest.$ac_objext; then
13591   ac_header_compiler=yes
13592 else
13593   $as_echo "$as_me: failed program was:" >&5
13594 sed 's/^/| /' conftest.$ac_ext >&5
13595
13596         ac_header_compiler=no
13597 fi
13598
13599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13600 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13601 $as_echo "$ac_header_compiler" >&6; }
13602
13603 # Is the header present?
13604 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13605 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13606 cat >conftest.$ac_ext <<_ACEOF
13607 /* confdefs.h.  */
13608 _ACEOF
13609 cat confdefs.h >>conftest.$ac_ext
13610 cat >>conftest.$ac_ext <<_ACEOF
13611 /* end confdefs.h.  */
13612 #include <libxslt/xslt.h>
13613 _ACEOF
13614 if { (ac_try="$ac_cpp conftest.$ac_ext"
13615 case "(($ac_try" in
13616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13617   *) ac_try_echo=$ac_try;;
13618 esac
13619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13620 $as_echo "$ac_try_echo") >&5
13621   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13622   ac_status=$?
13623   grep -v '^ *+' conftest.er1 >conftest.err
13624   rm -f conftest.er1
13625   cat conftest.err >&5
13626   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627   (exit $ac_status); } >/dev/null && {
13628          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13629          test ! -s conftest.err
13630        }; then
13631   ac_header_preproc=yes
13632 else
13633   $as_echo "$as_me: failed program was:" >&5
13634 sed 's/^/| /' conftest.$ac_ext >&5
13635
13636   ac_header_preproc=no
13637 fi
13638
13639 rm -f conftest.err conftest.$ac_ext
13640 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13641 $as_echo "$ac_header_preproc" >&6; }
13642
13643 # So?  What about this header?
13644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13645   yes:no: )
13646     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13647 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13648     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13649 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13650     ac_header_preproc=yes
13651     ;;
13652   no:yes:* )
13653     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13654 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13655     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&5
13656 $as_echo "$as_me: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&2;}
13657     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13658 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13659     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&5
13660 $as_echo "$as_me: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13661     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13662 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13663     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13664 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13665     ( cat <<\_ASBOX
13666 ## ---------------------------------------- ##
13667 ## Report this to pgsql-bugs@postgresql.org ##
13668 ## ---------------------------------------- ##
13669 _ASBOX
13670      ) | sed "s/^/$as_me: WARNING:     /" >&2
13671     ;;
13672 esac
13673 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13674 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13675 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13676   $as_echo_n "(cached) " >&6
13677 else
13678   ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13679 fi
13680 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13681 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13682
13683 fi
13684 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13685   :
13686 else
13687   { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13688 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13689    { (exit 1); exit 1; }; }
13690 fi
13691
13692
13693 fi
13694
13695 if test "$with_ldap" = yes ; then
13696   if test "$PORTNAME" != "win32"; then
13697
13698 for ac_header in ldap.h
13699 do
13700 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13702   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13703 $as_echo_n "checking for $ac_header... " >&6; }
13704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13705   $as_echo_n "(cached) " >&6
13706 fi
13707 ac_res=`eval 'as_val=${'$as_ac_Header'}
13708                  $as_echo "$as_val"'`
13709                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13710 $as_echo "$ac_res" >&6; }
13711 else
13712   # Is the header compilable?
13713 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13714 $as_echo_n "checking $ac_header usability... " >&6; }
13715 cat >conftest.$ac_ext <<_ACEOF
13716 /* confdefs.h.  */
13717 _ACEOF
13718 cat confdefs.h >>conftest.$ac_ext
13719 cat >>conftest.$ac_ext <<_ACEOF
13720 /* end confdefs.h.  */
13721 $ac_includes_default
13722 #include <$ac_header>
13723 _ACEOF
13724 rm -f conftest.$ac_objext
13725 if { (ac_try="$ac_compile"
13726 case "(($ac_try" in
13727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13728   *) ac_try_echo=$ac_try;;
13729 esac
13730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13731 $as_echo "$ac_try_echo") >&5
13732   (eval "$ac_compile") 2>conftest.er1
13733   ac_status=$?
13734   grep -v '^ *+' conftest.er1 >conftest.err
13735   rm -f conftest.er1
13736   cat conftest.err >&5
13737   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738   (exit $ac_status); } && {
13739          test -z "$ac_c_werror_flag" ||
13740          test ! -s conftest.err
13741        } && test -s conftest.$ac_objext; then
13742   ac_header_compiler=yes
13743 else
13744   $as_echo "$as_me: failed program was:" >&5
13745 sed 's/^/| /' conftest.$ac_ext >&5
13746
13747         ac_header_compiler=no
13748 fi
13749
13750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13751 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13752 $as_echo "$ac_header_compiler" >&6; }
13753
13754 # Is the header present?
13755 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13756 $as_echo_n "checking $ac_header presence... " >&6; }
13757 cat >conftest.$ac_ext <<_ACEOF
13758 /* confdefs.h.  */
13759 _ACEOF
13760 cat confdefs.h >>conftest.$ac_ext
13761 cat >>conftest.$ac_ext <<_ACEOF
13762 /* end confdefs.h.  */
13763 #include <$ac_header>
13764 _ACEOF
13765 if { (ac_try="$ac_cpp conftest.$ac_ext"
13766 case "(($ac_try" in
13767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13768   *) ac_try_echo=$ac_try;;
13769 esac
13770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13771 $as_echo "$ac_try_echo") >&5
13772   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13773   ac_status=$?
13774   grep -v '^ *+' conftest.er1 >conftest.err
13775   rm -f conftest.er1
13776   cat conftest.err >&5
13777   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778   (exit $ac_status); } >/dev/null && {
13779          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13780          test ! -s conftest.err
13781        }; then
13782   ac_header_preproc=yes
13783 else
13784   $as_echo "$as_me: failed program was:" >&5
13785 sed 's/^/| /' conftest.$ac_ext >&5
13786
13787   ac_header_preproc=no
13788 fi
13789
13790 rm -f conftest.err conftest.$ac_ext
13791 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13792 $as_echo "$ac_header_preproc" >&6; }
13793
13794 # So?  What about this header?
13795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13796   yes:no: )
13797     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13798 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13799     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13800 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13801     ac_header_preproc=yes
13802     ;;
13803   no:yes:* )
13804     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13805 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13806     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13807 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13808     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13809 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13810     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13811 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13812     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13813 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13814     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13815 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13816     ( cat <<\_ASBOX
13817 ## ---------------------------------------- ##
13818 ## Report this to pgsql-bugs@postgresql.org ##
13819 ## ---------------------------------------- ##
13820 _ASBOX
13821      ) | sed "s/^/$as_me: WARNING:     /" >&2
13822     ;;
13823 esac
13824 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13825 $as_echo_n "checking for $ac_header... " >&6; }
13826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13827   $as_echo_n "(cached) " >&6
13828 else
13829   eval "$as_ac_Header=\$ac_header_preproc"
13830 fi
13831 ac_res=`eval 'as_val=${'$as_ac_Header'}
13832                  $as_echo "$as_val"'`
13833                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13834 $as_echo "$ac_res" >&6; }
13835
13836 fi
13837 as_val=`eval 'as_val=${'$as_ac_Header'}
13838                  $as_echo "$as_val"'`
13839    if test "x$as_val" = x""yes; then
13840   cat >>confdefs.h <<_ACEOF
13841 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13842 _ACEOF
13843
13844 else
13845   { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13846 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13847    { (exit 1); exit 1; }; }
13848 fi
13849
13850 done
13851
13852   else
13853
13854 for ac_header in winldap.h
13855 do
13856 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13857 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13858 $as_echo_n "checking for $ac_header... " >&6; }
13859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13860   $as_echo_n "(cached) " >&6
13861 else
13862   cat >conftest.$ac_ext <<_ACEOF
13863 /* confdefs.h.  */
13864 _ACEOF
13865 cat confdefs.h >>conftest.$ac_ext
13866 cat >>conftest.$ac_ext <<_ACEOF
13867 /* end confdefs.h.  */
13868 $ac_includes_default
13869 #include <windows.h>
13870
13871
13872 #include <$ac_header>
13873 _ACEOF
13874 rm -f conftest.$ac_objext
13875 if { (ac_try="$ac_compile"
13876 case "(($ac_try" in
13877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13878   *) ac_try_echo=$ac_try;;
13879 esac
13880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13881 $as_echo "$ac_try_echo") >&5
13882   (eval "$ac_compile") 2>conftest.er1
13883   ac_status=$?
13884   grep -v '^ *+' conftest.er1 >conftest.err
13885   rm -f conftest.er1
13886   cat conftest.err >&5
13887   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888   (exit $ac_status); } && {
13889          test -z "$ac_c_werror_flag" ||
13890          test ! -s conftest.err
13891        } && test -s conftest.$ac_objext; then
13892   eval "$as_ac_Header=yes"
13893 else
13894   $as_echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13896
13897         eval "$as_ac_Header=no"
13898 fi
13899
13900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13901 fi
13902 ac_res=`eval 'as_val=${'$as_ac_Header'}
13903                  $as_echo "$as_val"'`
13904                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13905 $as_echo "$ac_res" >&6; }
13906 as_val=`eval 'as_val=${'$as_ac_Header'}
13907                  $as_echo "$as_val"'`
13908    if test "x$as_val" = x""yes; then
13909   cat >>confdefs.h <<_ACEOF
13910 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13911 _ACEOF
13912
13913 else
13914   { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13915 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13916    { (exit 1); exit 1; }; }
13917 fi
13918
13919 done
13920
13921   fi
13922 fi
13923
13924 if test "$with_bonjour" = yes ; then
13925   if test "${ac_cv_header_dns_sd_h+set}" = set; then
13926   { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13927 $as_echo_n "checking for dns_sd.h... " >&6; }
13928 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13929   $as_echo_n "(cached) " >&6
13930 fi
13931 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13932 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13933 else
13934   # Is the header compilable?
13935 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
13936 $as_echo_n "checking dns_sd.h usability... " >&6; }
13937 cat >conftest.$ac_ext <<_ACEOF
13938 /* confdefs.h.  */
13939 _ACEOF
13940 cat confdefs.h >>conftest.$ac_ext
13941 cat >>conftest.$ac_ext <<_ACEOF
13942 /* end confdefs.h.  */
13943 $ac_includes_default
13944 #include <dns_sd.h>
13945 _ACEOF
13946 rm -f conftest.$ac_objext
13947 if { (ac_try="$ac_compile"
13948 case "(($ac_try" in
13949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950   *) ac_try_echo=$ac_try;;
13951 esac
13952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13953 $as_echo "$ac_try_echo") >&5
13954   (eval "$ac_compile") 2>conftest.er1
13955   ac_status=$?
13956   grep -v '^ *+' conftest.er1 >conftest.err
13957   rm -f conftest.er1
13958   cat conftest.err >&5
13959   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960   (exit $ac_status); } && {
13961          test -z "$ac_c_werror_flag" ||
13962          test ! -s conftest.err
13963        } && test -s conftest.$ac_objext; then
13964   ac_header_compiler=yes
13965 else
13966   $as_echo "$as_me: failed program was:" >&5
13967 sed 's/^/| /' conftest.$ac_ext >&5
13968
13969         ac_header_compiler=no
13970 fi
13971
13972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13973 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13974 $as_echo "$ac_header_compiler" >&6; }
13975
13976 # Is the header present?
13977 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
13978 $as_echo_n "checking dns_sd.h presence... " >&6; }
13979 cat >conftest.$ac_ext <<_ACEOF
13980 /* confdefs.h.  */
13981 _ACEOF
13982 cat confdefs.h >>conftest.$ac_ext
13983 cat >>conftest.$ac_ext <<_ACEOF
13984 /* end confdefs.h.  */
13985 #include <dns_sd.h>
13986 _ACEOF
13987 if { (ac_try="$ac_cpp conftest.$ac_ext"
13988 case "(($ac_try" in
13989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13990   *) ac_try_echo=$ac_try;;
13991 esac
13992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13993 $as_echo "$ac_try_echo") >&5
13994   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13995   ac_status=$?
13996   grep -v '^ *+' conftest.er1 >conftest.err
13997   rm -f conftest.er1
13998   cat conftest.err >&5
13999   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000   (exit $ac_status); } >/dev/null && {
14001          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14002          test ! -s conftest.err
14003        }; then
14004   ac_header_preproc=yes
14005 else
14006   $as_echo "$as_me: failed program was:" >&5
14007 sed 's/^/| /' conftest.$ac_ext >&5
14008
14009   ac_header_preproc=no
14010 fi
14011
14012 rm -f conftest.err conftest.$ac_ext
14013 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14014 $as_echo "$ac_header_preproc" >&6; }
14015
14016 # So?  What about this header?
14017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14018   yes:no: )
14019     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
14020 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14021     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
14022 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
14023     ac_header_preproc=yes
14024     ;;
14025   no:yes:* )
14026     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
14027 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
14028     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&5
14029 $as_echo "$as_me: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&2;}
14030     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
14031 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
14032     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&5
14033 $as_echo "$as_me: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14034     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
14035 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
14036     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
14037 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
14038     ( cat <<\_ASBOX
14039 ## ---------------------------------------- ##
14040 ## Report this to pgsql-bugs@postgresql.org ##
14041 ## ---------------------------------------- ##
14042 _ASBOX
14043      ) | sed "s/^/$as_me: WARNING:     /" >&2
14044     ;;
14045 esac
14046 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
14047 $as_echo_n "checking for dns_sd.h... " >&6; }
14048 if test "${ac_cv_header_dns_sd_h+set}" = set; then
14049   $as_echo_n "(cached) " >&6
14050 else
14051   ac_cv_header_dns_sd_h=$ac_header_preproc
14052 fi
14053 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
14054 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
14055
14056 fi
14057 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
14058   :
14059 else
14060   { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
14061 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
14062    { (exit 1); exit 1; }; }
14063 fi
14064
14065
14066 fi
14067
14068 # for contrib/uuid-ossp
14069 if test "$with_ossp_uuid" = yes ; then
14070
14071 for ac_header in ossp/uuid.h
14072 do
14073 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14075   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14076 $as_echo_n "checking for $ac_header... " >&6; }
14077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14078   $as_echo_n "(cached) " >&6
14079 fi
14080 ac_res=`eval 'as_val=${'$as_ac_Header'}
14081                  $as_echo "$as_val"'`
14082                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14083 $as_echo "$ac_res" >&6; }
14084 else
14085   # Is the header compilable?
14086 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14087 $as_echo_n "checking $ac_header usability... " >&6; }
14088 cat >conftest.$ac_ext <<_ACEOF
14089 /* confdefs.h.  */
14090 _ACEOF
14091 cat confdefs.h >>conftest.$ac_ext
14092 cat >>conftest.$ac_ext <<_ACEOF
14093 /* end confdefs.h.  */
14094 $ac_includes_default
14095 #include <$ac_header>
14096 _ACEOF
14097 rm -f conftest.$ac_objext
14098 if { (ac_try="$ac_compile"
14099 case "(($ac_try" in
14100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14101   *) ac_try_echo=$ac_try;;
14102 esac
14103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14104 $as_echo "$ac_try_echo") >&5
14105   (eval "$ac_compile") 2>conftest.er1
14106   ac_status=$?
14107   grep -v '^ *+' conftest.er1 >conftest.err
14108   rm -f conftest.er1
14109   cat conftest.err >&5
14110   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111   (exit $ac_status); } && {
14112          test -z "$ac_c_werror_flag" ||
14113          test ! -s conftest.err
14114        } && test -s conftest.$ac_objext; then
14115   ac_header_compiler=yes
14116 else
14117   $as_echo "$as_me: failed program was:" >&5
14118 sed 's/^/| /' conftest.$ac_ext >&5
14119
14120         ac_header_compiler=no
14121 fi
14122
14123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14124 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14125 $as_echo "$ac_header_compiler" >&6; }
14126
14127 # Is the header present?
14128 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14129 $as_echo_n "checking $ac_header presence... " >&6; }
14130 cat >conftest.$ac_ext <<_ACEOF
14131 /* confdefs.h.  */
14132 _ACEOF
14133 cat confdefs.h >>conftest.$ac_ext
14134 cat >>conftest.$ac_ext <<_ACEOF
14135 /* end confdefs.h.  */
14136 #include <$ac_header>
14137 _ACEOF
14138 if { (ac_try="$ac_cpp conftest.$ac_ext"
14139 case "(($ac_try" in
14140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14141   *) ac_try_echo=$ac_try;;
14142 esac
14143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14144 $as_echo "$ac_try_echo") >&5
14145   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14146   ac_status=$?
14147   grep -v '^ *+' conftest.er1 >conftest.err
14148   rm -f conftest.er1
14149   cat conftest.err >&5
14150   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151   (exit $ac_status); } >/dev/null && {
14152          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14153          test ! -s conftest.err
14154        }; then
14155   ac_header_preproc=yes
14156 else
14157   $as_echo "$as_me: failed program was:" >&5
14158 sed 's/^/| /' conftest.$ac_ext >&5
14159
14160   ac_header_preproc=no
14161 fi
14162
14163 rm -f conftest.err conftest.$ac_ext
14164 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14165 $as_echo "$ac_header_preproc" >&6; }
14166
14167 # So?  What about this header?
14168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14169   yes:no: )
14170     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14171 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14172     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14173 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14174     ac_header_preproc=yes
14175     ;;
14176   no:yes:* )
14177     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14178 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14179     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14180 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14181     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14182 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14183     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14184 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14185     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14186 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14187     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14188 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14189     ( cat <<\_ASBOX
14190 ## ---------------------------------------- ##
14191 ## Report this to pgsql-bugs@postgresql.org ##
14192 ## ---------------------------------------- ##
14193 _ASBOX
14194      ) | sed "s/^/$as_me: WARNING:     /" >&2
14195     ;;
14196 esac
14197 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14198 $as_echo_n "checking for $ac_header... " >&6; }
14199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14200   $as_echo_n "(cached) " >&6
14201 else
14202   eval "$as_ac_Header=\$ac_header_preproc"
14203 fi
14204 ac_res=`eval 'as_val=${'$as_ac_Header'}
14205                  $as_echo "$as_val"'`
14206                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14207 $as_echo "$ac_res" >&6; }
14208
14209 fi
14210 as_val=`eval 'as_val=${'$as_ac_Header'}
14211                  $as_echo "$as_val"'`
14212    if test "x$as_val" = x""yes; then
14213   cat >>confdefs.h <<_ACEOF
14214 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14215 _ACEOF
14216
14217 else
14218
14219
14220 for ac_header in uuid.h
14221 do
14222 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14224   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14225 $as_echo_n "checking for $ac_header... " >&6; }
14226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14227   $as_echo_n "(cached) " >&6
14228 fi
14229 ac_res=`eval 'as_val=${'$as_ac_Header'}
14230                  $as_echo "$as_val"'`
14231                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14232 $as_echo "$ac_res" >&6; }
14233 else
14234   # Is the header compilable?
14235 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14236 $as_echo_n "checking $ac_header usability... " >&6; }
14237 cat >conftest.$ac_ext <<_ACEOF
14238 /* confdefs.h.  */
14239 _ACEOF
14240 cat confdefs.h >>conftest.$ac_ext
14241 cat >>conftest.$ac_ext <<_ACEOF
14242 /* end confdefs.h.  */
14243 $ac_includes_default
14244 #include <$ac_header>
14245 _ACEOF
14246 rm -f conftest.$ac_objext
14247 if { (ac_try="$ac_compile"
14248 case "(($ac_try" in
14249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14250   *) ac_try_echo=$ac_try;;
14251 esac
14252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14253 $as_echo "$ac_try_echo") >&5
14254   (eval "$ac_compile") 2>conftest.er1
14255   ac_status=$?
14256   grep -v '^ *+' conftest.er1 >conftest.err
14257   rm -f conftest.er1
14258   cat conftest.err >&5
14259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260   (exit $ac_status); } && {
14261          test -z "$ac_c_werror_flag" ||
14262          test ! -s conftest.err
14263        } && test -s conftest.$ac_objext; then
14264   ac_header_compiler=yes
14265 else
14266   $as_echo "$as_me: failed program was:" >&5
14267 sed 's/^/| /' conftest.$ac_ext >&5
14268
14269         ac_header_compiler=no
14270 fi
14271
14272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14273 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14274 $as_echo "$ac_header_compiler" >&6; }
14275
14276 # Is the header present?
14277 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14278 $as_echo_n "checking $ac_header presence... " >&6; }
14279 cat >conftest.$ac_ext <<_ACEOF
14280 /* confdefs.h.  */
14281 _ACEOF
14282 cat confdefs.h >>conftest.$ac_ext
14283 cat >>conftest.$ac_ext <<_ACEOF
14284 /* end confdefs.h.  */
14285 #include <$ac_header>
14286 _ACEOF
14287 if { (ac_try="$ac_cpp conftest.$ac_ext"
14288 case "(($ac_try" in
14289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14290   *) ac_try_echo=$ac_try;;
14291 esac
14292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14293 $as_echo "$ac_try_echo") >&5
14294   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14295   ac_status=$?
14296   grep -v '^ *+' conftest.er1 >conftest.err
14297   rm -f conftest.er1
14298   cat conftest.err >&5
14299   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300   (exit $ac_status); } >/dev/null && {
14301          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14302          test ! -s conftest.err
14303        }; then
14304   ac_header_preproc=yes
14305 else
14306   $as_echo "$as_me: failed program was:" >&5
14307 sed 's/^/| /' conftest.$ac_ext >&5
14308
14309   ac_header_preproc=no
14310 fi
14311
14312 rm -f conftest.err conftest.$ac_ext
14313 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14314 $as_echo "$ac_header_preproc" >&6; }
14315
14316 # So?  What about this header?
14317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14318   yes:no: )
14319     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14320 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14321     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14322 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14323     ac_header_preproc=yes
14324     ;;
14325   no:yes:* )
14326     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14327 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14328     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14329 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14330     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14331 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14332     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14333 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14334     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14335 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14336     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14337 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14338     ( cat <<\_ASBOX
14339 ## ---------------------------------------- ##
14340 ## Report this to pgsql-bugs@postgresql.org ##
14341 ## ---------------------------------------- ##
14342 _ASBOX
14343      ) | sed "s/^/$as_me: WARNING:     /" >&2
14344     ;;
14345 esac
14346 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14347 $as_echo_n "checking for $ac_header... " >&6; }
14348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14349   $as_echo_n "(cached) " >&6
14350 else
14351   eval "$as_ac_Header=\$ac_header_preproc"
14352 fi
14353 ac_res=`eval 'as_val=${'$as_ac_Header'}
14354                  $as_echo "$as_val"'`
14355                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14356 $as_echo "$ac_res" >&6; }
14357
14358 fi
14359 as_val=`eval 'as_val=${'$as_ac_Header'}
14360                  $as_echo "$as_val"'`
14361    if test "x$as_val" = x""yes; then
14362   cat >>confdefs.h <<_ACEOF
14363 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14364 _ACEOF
14365
14366 else
14367   { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
14368 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
14369    { (exit 1); exit 1; }; }
14370 fi
14371
14372 done
14373
14374 fi
14375
14376 done
14377
14378 fi
14379
14380 if test "$PORTNAME" = "win32" ; then
14381
14382 for ac_header in crtdefs.h
14383 do
14384 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14386   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14387 $as_echo_n "checking for $ac_header... " >&6; }
14388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14389   $as_echo_n "(cached) " >&6
14390 fi
14391 ac_res=`eval 'as_val=${'$as_ac_Header'}
14392                  $as_echo "$as_val"'`
14393                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14394 $as_echo "$ac_res" >&6; }
14395 else
14396   # Is the header compilable?
14397 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14398 $as_echo_n "checking $ac_header usability... " >&6; }
14399 cat >conftest.$ac_ext <<_ACEOF
14400 /* confdefs.h.  */
14401 _ACEOF
14402 cat confdefs.h >>conftest.$ac_ext
14403 cat >>conftest.$ac_ext <<_ACEOF
14404 /* end confdefs.h.  */
14405 $ac_includes_default
14406 #include <$ac_header>
14407 _ACEOF
14408 rm -f conftest.$ac_objext
14409 if { (ac_try="$ac_compile"
14410 case "(($ac_try" in
14411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412   *) ac_try_echo=$ac_try;;
14413 esac
14414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14415 $as_echo "$ac_try_echo") >&5
14416   (eval "$ac_compile") 2>conftest.er1
14417   ac_status=$?
14418   grep -v '^ *+' conftest.er1 >conftest.err
14419   rm -f conftest.er1
14420   cat conftest.err >&5
14421   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422   (exit $ac_status); } && {
14423          test -z "$ac_c_werror_flag" ||
14424          test ! -s conftest.err
14425        } && test -s conftest.$ac_objext; then
14426   ac_header_compiler=yes
14427 else
14428   $as_echo "$as_me: failed program was:" >&5
14429 sed 's/^/| /' conftest.$ac_ext >&5
14430
14431         ac_header_compiler=no
14432 fi
14433
14434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14435 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14436 $as_echo "$ac_header_compiler" >&6; }
14437
14438 # Is the header present?
14439 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14440 $as_echo_n "checking $ac_header presence... " >&6; }
14441 cat >conftest.$ac_ext <<_ACEOF
14442 /* confdefs.h.  */
14443 _ACEOF
14444 cat confdefs.h >>conftest.$ac_ext
14445 cat >>conftest.$ac_ext <<_ACEOF
14446 /* end confdefs.h.  */
14447 #include <$ac_header>
14448 _ACEOF
14449 if { (ac_try="$ac_cpp conftest.$ac_ext"
14450 case "(($ac_try" in
14451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14452   *) ac_try_echo=$ac_try;;
14453 esac
14454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14455 $as_echo "$ac_try_echo") >&5
14456   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14457   ac_status=$?
14458   grep -v '^ *+' conftest.er1 >conftest.err
14459   rm -f conftest.er1
14460   cat conftest.err >&5
14461   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462   (exit $ac_status); } >/dev/null && {
14463          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14464          test ! -s conftest.err
14465        }; then
14466   ac_header_preproc=yes
14467 else
14468   $as_echo "$as_me: failed program was:" >&5
14469 sed 's/^/| /' conftest.$ac_ext >&5
14470
14471   ac_header_preproc=no
14472 fi
14473
14474 rm -f conftest.err conftest.$ac_ext
14475 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14476 $as_echo "$ac_header_preproc" >&6; }
14477
14478 # So?  What about this header?
14479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14480   yes:no: )
14481     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14482 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14483     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14484 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14485     ac_header_preproc=yes
14486     ;;
14487   no:yes:* )
14488     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14489 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14490     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14491 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14492     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14493 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14494     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14495 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14496     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14497 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14498     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14499 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14500     ( cat <<\_ASBOX
14501 ## ---------------------------------------- ##
14502 ## Report this to pgsql-bugs@postgresql.org ##
14503 ## ---------------------------------------- ##
14504 _ASBOX
14505      ) | sed "s/^/$as_me: WARNING:     /" >&2
14506     ;;
14507 esac
14508 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14509 $as_echo_n "checking for $ac_header... " >&6; }
14510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14511   $as_echo_n "(cached) " >&6
14512 else
14513   eval "$as_ac_Header=\$ac_header_preproc"
14514 fi
14515 ac_res=`eval 'as_val=${'$as_ac_Header'}
14516                  $as_echo "$as_val"'`
14517                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14518 $as_echo "$ac_res" >&6; }
14519
14520 fi
14521 as_val=`eval 'as_val=${'$as_ac_Header'}
14522                  $as_echo "$as_val"'`
14523    if test "x$as_val" = x""yes; then
14524   cat >>confdefs.h <<_ACEOF
14525 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14526 _ACEOF
14527
14528 fi
14529
14530 done
14531
14532 fi
14533
14534 ##
14535 ## Types, structures, compiler characteristics
14536 ##
14537
14538
14539  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14540 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14541 if test "${ac_cv_c_bigendian+set}" = set; then
14542   $as_echo_n "(cached) " >&6
14543 else
14544   ac_cv_c_bigendian=unknown
14545     # See if we're dealing with a universal compiler.
14546     cat >conftest.$ac_ext <<_ACEOF
14547 /* confdefs.h.  */
14548 _ACEOF
14549 cat confdefs.h >>conftest.$ac_ext
14550 cat >>conftest.$ac_ext <<_ACEOF
14551 /* end confdefs.h.  */
14552 #ifndef __APPLE_CC__
14553                not a universal capable compiler
14554              #endif
14555              typedef int dummy;
14556
14557 _ACEOF
14558 rm -f conftest.$ac_objext
14559 if { (ac_try="$ac_compile"
14560 case "(($ac_try" in
14561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14562   *) ac_try_echo=$ac_try;;
14563 esac
14564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14565 $as_echo "$ac_try_echo") >&5
14566   (eval "$ac_compile") 2>conftest.er1
14567   ac_status=$?
14568   grep -v '^ *+' conftest.er1 >conftest.err
14569   rm -f conftest.er1
14570   cat conftest.err >&5
14571   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572   (exit $ac_status); } && {
14573          test -z "$ac_c_werror_flag" ||
14574          test ! -s conftest.err
14575        } && test -s conftest.$ac_objext; then
14576
14577         # Check for potential -arch flags.  It is not universal unless
14578         # there are some -arch flags.  Note that *ppc* also matches
14579         # ppc64.  This check is also rather less than ideal.
14580         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
14581           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14582         esac
14583 else
14584   $as_echo "$as_me: failed program was:" >&5
14585 sed 's/^/| /' conftest.$ac_ext >&5
14586
14587
14588 fi
14589
14590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14591     if test $ac_cv_c_bigendian = unknown; then
14592       # See if sys/param.h defines the BYTE_ORDER macro.
14593       cat >conftest.$ac_ext <<_ACEOF
14594 /* confdefs.h.  */
14595 _ACEOF
14596 cat confdefs.h >>conftest.$ac_ext
14597 cat >>conftest.$ac_ext <<_ACEOF
14598 /* end confdefs.h.  */
14599 #include <sys/types.h>
14600              #include <sys/param.h>
14601
14602 int
14603 main ()
14604 {
14605 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14606                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14607                      && LITTLE_ENDIAN)
14608               bogus endian macros
14609              #endif
14610
14611   ;
14612   return 0;
14613 }
14614 _ACEOF
14615 rm -f conftest.$ac_objext
14616 if { (ac_try="$ac_compile"
14617 case "(($ac_try" in
14618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14619   *) ac_try_echo=$ac_try;;
14620 esac
14621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14622 $as_echo "$ac_try_echo") >&5
14623   (eval "$ac_compile") 2>conftest.er1
14624   ac_status=$?
14625   grep -v '^ *+' conftest.er1 >conftest.err
14626   rm -f conftest.er1
14627   cat conftest.err >&5
14628   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629   (exit $ac_status); } && {
14630          test -z "$ac_c_werror_flag" ||
14631          test ! -s conftest.err
14632        } && test -s conftest.$ac_objext; then
14633   # It does; now see whether it defined to BIG_ENDIAN or not.
14634          cat >conftest.$ac_ext <<_ACEOF
14635 /* confdefs.h.  */
14636 _ACEOF
14637 cat confdefs.h >>conftest.$ac_ext
14638 cat >>conftest.$ac_ext <<_ACEOF
14639 /* end confdefs.h.  */
14640 #include <sys/types.h>
14641                 #include <sys/param.h>
14642
14643 int
14644 main ()
14645 {
14646 #if BYTE_ORDER != BIG_ENDIAN
14647                  not big endian
14648                 #endif
14649
14650   ;
14651   return 0;
14652 }
14653 _ACEOF
14654 rm -f conftest.$ac_objext
14655 if { (ac_try="$ac_compile"
14656 case "(($ac_try" in
14657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14658   *) ac_try_echo=$ac_try;;
14659 esac
14660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14661 $as_echo "$ac_try_echo") >&5
14662   (eval "$ac_compile") 2>conftest.er1
14663   ac_status=$?
14664   grep -v '^ *+' conftest.er1 >conftest.err
14665   rm -f conftest.er1
14666   cat conftest.err >&5
14667   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668   (exit $ac_status); } && {
14669          test -z "$ac_c_werror_flag" ||
14670          test ! -s conftest.err
14671        } && test -s conftest.$ac_objext; then
14672   ac_cv_c_bigendian=yes
14673 else
14674   $as_echo "$as_me: failed program was:" >&5
14675 sed 's/^/| /' conftest.$ac_ext >&5
14676
14677         ac_cv_c_bigendian=no
14678 fi
14679
14680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14681 else
14682   $as_echo "$as_me: failed program was:" >&5
14683 sed 's/^/| /' conftest.$ac_ext >&5
14684
14685
14686 fi
14687
14688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14689     fi
14690     if test $ac_cv_c_bigendian = unknown; then
14691       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14692       cat >conftest.$ac_ext <<_ACEOF
14693 /* confdefs.h.  */
14694 _ACEOF
14695 cat confdefs.h >>conftest.$ac_ext
14696 cat >>conftest.$ac_ext <<_ACEOF
14697 /* end confdefs.h.  */
14698 #include <limits.h>
14699
14700 int
14701 main ()
14702 {
14703 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14704               bogus endian macros
14705              #endif
14706
14707   ;
14708   return 0;
14709 }
14710 _ACEOF
14711 rm -f conftest.$ac_objext
14712 if { (ac_try="$ac_compile"
14713 case "(($ac_try" in
14714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14715   *) ac_try_echo=$ac_try;;
14716 esac
14717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14718 $as_echo "$ac_try_echo") >&5
14719   (eval "$ac_compile") 2>conftest.er1
14720   ac_status=$?
14721   grep -v '^ *+' conftest.er1 >conftest.err
14722   rm -f conftest.er1
14723   cat conftest.err >&5
14724   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725   (exit $ac_status); } && {
14726          test -z "$ac_c_werror_flag" ||
14727          test ! -s conftest.err
14728        } && test -s conftest.$ac_objext; then
14729   # It does; now see whether it defined to _BIG_ENDIAN or not.
14730          cat >conftest.$ac_ext <<_ACEOF
14731 /* confdefs.h.  */
14732 _ACEOF
14733 cat confdefs.h >>conftest.$ac_ext
14734 cat >>conftest.$ac_ext <<_ACEOF
14735 /* end confdefs.h.  */
14736 #include <limits.h>
14737
14738 int
14739 main ()
14740 {
14741 #ifndef _BIG_ENDIAN
14742                  not big endian
14743                 #endif
14744
14745   ;
14746   return 0;
14747 }
14748 _ACEOF
14749 rm -f conftest.$ac_objext
14750 if { (ac_try="$ac_compile"
14751 case "(($ac_try" in
14752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753   *) ac_try_echo=$ac_try;;
14754 esac
14755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14756 $as_echo "$ac_try_echo") >&5
14757   (eval "$ac_compile") 2>conftest.er1
14758   ac_status=$?
14759   grep -v '^ *+' conftest.er1 >conftest.err
14760   rm -f conftest.er1
14761   cat conftest.err >&5
14762   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763   (exit $ac_status); } && {
14764          test -z "$ac_c_werror_flag" ||
14765          test ! -s conftest.err
14766        } && test -s conftest.$ac_objext; then
14767   ac_cv_c_bigendian=yes
14768 else
14769   $as_echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14771
14772         ac_cv_c_bigendian=no
14773 fi
14774
14775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14776 else
14777   $as_echo "$as_me: failed program was:" >&5
14778 sed 's/^/| /' conftest.$ac_ext >&5
14779
14780
14781 fi
14782
14783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14784     fi
14785     if test $ac_cv_c_bigendian = unknown; then
14786       # Compile a test program.
14787       if test "$cross_compiling" = yes; then
14788   # Try to guess by grepping values from an object file.
14789          cat >conftest.$ac_ext <<_ACEOF
14790 /* confdefs.h.  */
14791 _ACEOF
14792 cat confdefs.h >>conftest.$ac_ext
14793 cat >>conftest.$ac_ext <<_ACEOF
14794 /* end confdefs.h.  */
14795 short int ascii_mm[] =
14796                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14797                 short int ascii_ii[] =
14798                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14799                 int use_ascii (int i) {
14800                   return ascii_mm[i] + ascii_ii[i];
14801                 }
14802                 short int ebcdic_ii[] =
14803                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14804                 short int ebcdic_mm[] =
14805                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14806                 int use_ebcdic (int i) {
14807                   return ebcdic_mm[i] + ebcdic_ii[i];
14808                 }
14809                 extern int foo;
14810
14811 int
14812 main ()
14813 {
14814 return use_ascii (foo) == use_ebcdic (foo);
14815   ;
14816   return 0;
14817 }
14818 _ACEOF
14819 rm -f conftest.$ac_objext
14820 if { (ac_try="$ac_compile"
14821 case "(($ac_try" in
14822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14823   *) ac_try_echo=$ac_try;;
14824 esac
14825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14826 $as_echo "$ac_try_echo") >&5
14827   (eval "$ac_compile") 2>conftest.er1
14828   ac_status=$?
14829   grep -v '^ *+' conftest.er1 >conftest.err
14830   rm -f conftest.er1
14831   cat conftest.err >&5
14832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833   (exit $ac_status); } && {
14834          test -z "$ac_c_werror_flag" ||
14835          test ! -s conftest.err
14836        } && test -s conftest.$ac_objext; then
14837   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14838               ac_cv_c_bigendian=yes
14839             fi
14840             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14841               if test "$ac_cv_c_bigendian" = unknown; then
14842                 ac_cv_c_bigendian=no
14843               else
14844                 # finding both strings is unlikely to happen, but who knows?
14845                 ac_cv_c_bigendian=unknown
14846               fi
14847             fi
14848 else
14849   $as_echo "$as_me: failed program was:" >&5
14850 sed 's/^/| /' conftest.$ac_ext >&5
14851
14852
14853 fi
14854
14855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14856 else
14857   cat >conftest.$ac_ext <<_ACEOF
14858 /* confdefs.h.  */
14859 _ACEOF
14860 cat confdefs.h >>conftest.$ac_ext
14861 cat >>conftest.$ac_ext <<_ACEOF
14862 /* end confdefs.h.  */
14863 $ac_includes_default
14864 int
14865 main ()
14866 {
14867
14868              /* Are we little or big endian?  From Harbison&Steele.  */
14869              union
14870              {
14871                long int l;
14872                char c[sizeof (long int)];
14873              } u;
14874              u.l = 1;
14875              return u.c[sizeof (long int) - 1] == 1;
14876
14877   ;
14878   return 0;
14879 }
14880 _ACEOF
14881 rm -f conftest$ac_exeext
14882 if { (ac_try="$ac_link"
14883 case "(($ac_try" in
14884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14885   *) ac_try_echo=$ac_try;;
14886 esac
14887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14888 $as_echo "$ac_try_echo") >&5
14889   (eval "$ac_link") 2>&5
14890   ac_status=$?
14891   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14893   { (case "(($ac_try" in
14894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14895   *) ac_try_echo=$ac_try;;
14896 esac
14897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14898 $as_echo "$ac_try_echo") >&5
14899   (eval "$ac_try") 2>&5
14900   ac_status=$?
14901   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902   (exit $ac_status); }; }; then
14903   ac_cv_c_bigendian=no
14904 else
14905   $as_echo "$as_me: program exited with status $ac_status" >&5
14906 $as_echo "$as_me: failed program was:" >&5
14907 sed 's/^/| /' conftest.$ac_ext >&5
14908
14909 ( exit $ac_status )
14910 ac_cv_c_bigendian=yes
14911 fi
14912 rm -rf conftest.dSYM
14913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14914 fi
14915
14916
14917     fi
14918 fi
14919 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14920 $as_echo "$ac_cv_c_bigendian" >&6; }
14921  case $ac_cv_c_bigendian in #(
14922    yes)
14923      cat >>confdefs.h <<\_ACEOF
14924 #define WORDS_BIGENDIAN 1
14925 _ACEOF
14926 ;; #(
14927    no)
14928       ;; #(
14929    universal)
14930
14931 cat >>confdefs.h <<\_ACEOF
14932 #define AC_APPLE_UNIVERSAL_BUILD 1
14933 _ACEOF
14934
14935      ;; #(
14936    *)
14937      { { $as_echo "$as_me:$LINENO: error: unknown endianness
14938  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14939 $as_echo "$as_me: error: unknown endianness
14940  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14941    { (exit 1); exit 1; }; } ;;
14942  esac
14943
14944 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14945 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14946 if test "${ac_cv_c_const+set}" = set; then
14947   $as_echo_n "(cached) " >&6
14948 else
14949   cat >conftest.$ac_ext <<_ACEOF
14950 /* confdefs.h.  */
14951 _ACEOF
14952 cat confdefs.h >>conftest.$ac_ext
14953 cat >>conftest.$ac_ext <<_ACEOF
14954 /* end confdefs.h.  */
14955
14956 int
14957 main ()
14958 {
14959 /* FIXME: Include the comments suggested by Paul. */
14960 #ifndef __cplusplus
14961   /* Ultrix mips cc rejects this.  */
14962   typedef int charset[2];
14963   const charset cs;
14964   /* SunOS 4.1.1 cc rejects this.  */
14965   char const *const *pcpcc;
14966   char **ppc;
14967   /* NEC SVR4.0.2 mips cc rejects this.  */
14968   struct point {int x, y;};
14969   static struct point const zero = {0,0};
14970   /* AIX XL C 1.02.0.0 rejects this.
14971      It does not let you subtract one const X* pointer from another in
14972      an arm of an if-expression whose if-part is not a constant
14973      expression */
14974   const char *g = "string";
14975   pcpcc = &g + (g ? g-g : 0);
14976   /* HPUX 7.0 cc rejects these. */
14977   ++pcpcc;
14978   ppc = (char**) pcpcc;
14979   pcpcc = (char const *const *) ppc;
14980   { /* SCO 3.2v4 cc rejects this.  */
14981     char *t;
14982     char const *s = 0 ? (char *) 0 : (char const *) 0;
14983
14984     *t++ = 0;
14985     if (s) return 0;
14986   }
14987   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14988     int x[] = {25, 17};
14989     const int *foo = &x[0];
14990     ++foo;
14991   }
14992   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14993     typedef const int *iptr;
14994     iptr p = 0;
14995     ++p;
14996   }
14997   { /* AIX XL C 1.02.0.0 rejects this saying
14998        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14999     struct s { int j; const int *ap[3]; };
15000     struct s *b; b->j = 5;
15001   }
15002   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15003     const int foo = 10;
15004     if (!foo) return 0;
15005   }
15006   return !cs[0] && !zero.x;
15007 #endif
15008
15009   ;
15010   return 0;
15011 }
15012 _ACEOF
15013 rm -f conftest.$ac_objext
15014 if { (ac_try="$ac_compile"
15015 case "(($ac_try" in
15016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15017   *) ac_try_echo=$ac_try;;
15018 esac
15019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15020 $as_echo "$ac_try_echo") >&5
15021   (eval "$ac_compile") 2>conftest.er1
15022   ac_status=$?
15023   grep -v '^ *+' conftest.er1 >conftest.err
15024   rm -f conftest.er1
15025   cat conftest.err >&5
15026   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027   (exit $ac_status); } && {
15028          test -z "$ac_c_werror_flag" ||
15029          test ! -s conftest.err
15030        } && test -s conftest.$ac_objext; then
15031   ac_cv_c_const=yes
15032 else
15033   $as_echo "$as_me: failed program was:" >&5
15034 sed 's/^/| /' conftest.$ac_ext >&5
15035
15036         ac_cv_c_const=no
15037 fi
15038
15039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15040 fi
15041 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15042 $as_echo "$ac_cv_c_const" >&6; }
15043 if test $ac_cv_c_const = no; then
15044
15045 cat >>confdefs.h <<\_ACEOF
15046 #define const /**/
15047 _ACEOF
15048
15049 fi
15050
15051 { $as_echo "$as_me:$LINENO: checking for inline" >&5
15052 $as_echo_n "checking for inline... " >&6; }
15053 if test "${ac_cv_c_inline+set}" = set; then
15054   $as_echo_n "(cached) " >&6
15055 else
15056   ac_cv_c_inline=no
15057 for ac_kw in inline __inline__ __inline; do
15058   cat >conftest.$ac_ext <<_ACEOF
15059 /* confdefs.h.  */
15060 _ACEOF
15061 cat confdefs.h >>conftest.$ac_ext
15062 cat >>conftest.$ac_ext <<_ACEOF
15063 /* end confdefs.h.  */
15064 #ifndef __cplusplus
15065 typedef int foo_t;
15066 static $ac_kw foo_t static_foo () {return 0; }
15067 $ac_kw foo_t foo () {return 0; }
15068 #endif
15069
15070 _ACEOF
15071 rm -f conftest.$ac_objext
15072 if { (ac_try="$ac_compile"
15073 case "(($ac_try" in
15074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15075   *) ac_try_echo=$ac_try;;
15076 esac
15077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15078 $as_echo "$ac_try_echo") >&5
15079   (eval "$ac_compile") 2>conftest.er1
15080   ac_status=$?
15081   grep -v '^ *+' conftest.er1 >conftest.err
15082   rm -f conftest.er1
15083   cat conftest.err >&5
15084   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085   (exit $ac_status); } && {
15086          test -z "$ac_c_werror_flag" ||
15087          test ! -s conftest.err
15088        } && test -s conftest.$ac_objext; then
15089   ac_cv_c_inline=$ac_kw
15090 else
15091   $as_echo "$as_me: failed program was:" >&5
15092 sed 's/^/| /' conftest.$ac_ext >&5
15093
15094
15095 fi
15096
15097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15098   test "$ac_cv_c_inline" != no && break
15099 done
15100
15101 fi
15102 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15103 $as_echo "$ac_cv_c_inline" >&6; }
15104
15105
15106 case $ac_cv_c_inline in
15107   inline | yes) ;;
15108   *)
15109     case $ac_cv_c_inline in
15110       no) ac_val=;;
15111       *) ac_val=$ac_cv_c_inline;;
15112     esac
15113     cat >>confdefs.h <<_ACEOF
15114 #ifndef __cplusplus
15115 #define inline $ac_val
15116 #endif
15117 _ACEOF
15118     ;;
15119 esac
15120
15121 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
15122 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
15123 if test "${pgac_cv_c_inline_quietly+set}" = set; then
15124   $as_echo_n "(cached) " >&6
15125 else
15126   pgac_cv_c_inline_quietly=no
15127   if test "$ac_cv_c_inline" != no; then
15128     pgac_c_inline_save_werror=$ac_c_werror_flag
15129     ac_c_werror_flag=yes
15130     cat >conftest.$ac_ext <<_ACEOF
15131 /* confdefs.h.  */
15132 _ACEOF
15133 cat confdefs.h >>conftest.$ac_ext
15134 cat >>conftest.$ac_ext <<_ACEOF
15135 /* end confdefs.h.  */
15136 static inline int fun () {return 0;}
15137 int
15138 main ()
15139 {
15140
15141   ;
15142   return 0;
15143 }
15144 _ACEOF
15145 rm -f conftest.$ac_objext conftest$ac_exeext
15146 if { (ac_try="$ac_link"
15147 case "(($ac_try" in
15148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15149   *) ac_try_echo=$ac_try;;
15150 esac
15151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15152 $as_echo "$ac_try_echo") >&5
15153   (eval "$ac_link") 2>conftest.er1
15154   ac_status=$?
15155   grep -v '^ *+' conftest.er1 >conftest.err
15156   rm -f conftest.er1
15157   cat conftest.err >&5
15158   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159   (exit $ac_status); } && {
15160          test -z "$ac_c_werror_flag" ||
15161          test ! -s conftest.err
15162        } && test -s conftest$ac_exeext && {
15163          test "$cross_compiling" = yes ||
15164          $as_test_x conftest$ac_exeext
15165        }; then
15166   pgac_cv_c_inline_quietly=yes
15167 else
15168   $as_echo "$as_me: failed program was:" >&5
15169 sed 's/^/| /' conftest.$ac_ext >&5
15170
15171
15172 fi
15173
15174 rm -rf conftest.dSYM
15175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15176       conftest$ac_exeext conftest.$ac_ext
15177     ac_c_werror_flag=$pgac_c_inline_save_werror
15178   fi
15179 fi
15180 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
15181 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
15182 if test "$pgac_cv_c_inline_quietly" != no; then
15183
15184 cat >>confdefs.h <<_ACEOF
15185 #define PG_USE_INLINE 1
15186 _ACEOF
15187
15188 fi
15189
15190 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
15191 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
15192 if test "${ac_cv_c_stringize+set}" = set; then
15193   $as_echo_n "(cached) " >&6
15194 else
15195   cat >conftest.$ac_ext <<_ACEOF
15196 /* confdefs.h.  */
15197 _ACEOF
15198 cat confdefs.h >>conftest.$ac_ext
15199 cat >>conftest.$ac_ext <<_ACEOF
15200 /* end confdefs.h.  */
15201 #define x(y) #y
15202
15203 char *s = x(teststring);
15204 _ACEOF
15205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15206   $EGREP "#teststring" >/dev/null 2>&1; then
15207   ac_cv_c_stringize=no
15208 else
15209   ac_cv_c_stringize=yes
15210 fi
15211 rm -f conftest*
15212
15213 fi
15214 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
15215 $as_echo "$ac_cv_c_stringize" >&6; }
15216 if test $ac_cv_c_stringize = yes; then
15217
15218 cat >>confdefs.h <<\_ACEOF
15219 #define HAVE_STRINGIZE 1
15220 _ACEOF
15221
15222 fi
15223
15224
15225   { $as_echo "$as_me:$LINENO: checking for flexible array members" >&5
15226 $as_echo_n "checking for flexible array members... " >&6; }
15227 if test "${ac_cv_c_flexmember+set}" = set; then
15228   $as_echo_n "(cached) " >&6
15229 else
15230   cat >conftest.$ac_ext <<_ACEOF
15231 /* confdefs.h.  */
15232 _ACEOF
15233 cat confdefs.h >>conftest.$ac_ext
15234 cat >>conftest.$ac_ext <<_ACEOF
15235 /* end confdefs.h.  */
15236 #include <stdlib.h>
15237             #include <stdio.h>
15238             #include <stddef.h>
15239             struct s { int n; double d[]; };
15240 int
15241 main ()
15242 {
15243 int m = getchar ();
15244             struct s *p = malloc (offsetof (struct s, d)
15245                                   + m * sizeof (double));
15246             p->d[0] = 0.0;
15247             return p->d != (double *) NULL;
15248   ;
15249   return 0;
15250 }
15251 _ACEOF
15252 rm -f conftest.$ac_objext
15253 if { (ac_try="$ac_compile"
15254 case "(($ac_try" in
15255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15256   *) ac_try_echo=$ac_try;;
15257 esac
15258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15259 $as_echo "$ac_try_echo") >&5
15260   (eval "$ac_compile") 2>conftest.er1
15261   ac_status=$?
15262   grep -v '^ *+' conftest.er1 >conftest.err
15263   rm -f conftest.er1
15264   cat conftest.err >&5
15265   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266   (exit $ac_status); } && {
15267          test -z "$ac_c_werror_flag" ||
15268          test ! -s conftest.err
15269        } && test -s conftest.$ac_objext; then
15270   ac_cv_c_flexmember=yes
15271 else
15272   $as_echo "$as_me: failed program was:" >&5
15273 sed 's/^/| /' conftest.$ac_ext >&5
15274
15275         ac_cv_c_flexmember=no
15276 fi
15277
15278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15279 fi
15280 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_flexmember" >&5
15281 $as_echo "$ac_cv_c_flexmember" >&6; }
15282   if test $ac_cv_c_flexmember = yes; then
15283
15284 cat >>confdefs.h <<\_ACEOF
15285 #define FLEXIBLE_ARRAY_MEMBER /**/
15286 _ACEOF
15287
15288   else
15289     cat >>confdefs.h <<\_ACEOF
15290 #define FLEXIBLE_ARRAY_MEMBER 1
15291 _ACEOF
15292
15293   fi
15294
15295 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
15296 $as_echo_n "checking for signed types... " >&6; }
15297 if test "${pgac_cv_c_signed+set}" = set; then
15298   $as_echo_n "(cached) " >&6
15299 else
15300   cat >conftest.$ac_ext <<_ACEOF
15301 /* confdefs.h.  */
15302 _ACEOF
15303 cat confdefs.h >>conftest.$ac_ext
15304 cat >>conftest.$ac_ext <<_ACEOF
15305 /* end confdefs.h.  */
15306
15307 int
15308 main ()
15309 {
15310 signed char c; signed short s; signed int i;
15311   ;
15312   return 0;
15313 }
15314 _ACEOF
15315 rm -f conftest.$ac_objext
15316 if { (ac_try="$ac_compile"
15317 case "(($ac_try" in
15318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15319   *) ac_try_echo=$ac_try;;
15320 esac
15321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15322 $as_echo "$ac_try_echo") >&5
15323   (eval "$ac_compile") 2>conftest.er1
15324   ac_status=$?
15325   grep -v '^ *+' conftest.er1 >conftest.err
15326   rm -f conftest.er1
15327   cat conftest.err >&5
15328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329   (exit $ac_status); } && {
15330          test -z "$ac_c_werror_flag" ||
15331          test ! -s conftest.err
15332        } && test -s conftest.$ac_objext; then
15333   pgac_cv_c_signed=yes
15334 else
15335   $as_echo "$as_me: failed program was:" >&5
15336 sed 's/^/| /' conftest.$ac_ext >&5
15337
15338         pgac_cv_c_signed=no
15339 fi
15340
15341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15342 fi
15343 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
15344 $as_echo "$pgac_cv_c_signed" >&6; }
15345 if test x"$pgac_cv_c_signed" = xno ; then
15346
15347 cat >>confdefs.h <<\_ACEOF
15348 #define signed /**/
15349 _ACEOF
15350
15351 fi
15352 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
15353 $as_echo_n "checking for working volatile... " >&6; }
15354 if test "${ac_cv_c_volatile+set}" = set; then
15355   $as_echo_n "(cached) " >&6
15356 else
15357   cat >conftest.$ac_ext <<_ACEOF
15358 /* confdefs.h.  */
15359 _ACEOF
15360 cat confdefs.h >>conftest.$ac_ext
15361 cat >>conftest.$ac_ext <<_ACEOF
15362 /* end confdefs.h.  */
15363
15364 int
15365 main ()
15366 {
15367
15368 volatile int x;
15369 int * volatile y = (int *) 0;
15370 return !x && !y;
15371   ;
15372   return 0;
15373 }
15374 _ACEOF
15375 rm -f conftest.$ac_objext
15376 if { (ac_try="$ac_compile"
15377 case "(($ac_try" in
15378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15379   *) ac_try_echo=$ac_try;;
15380 esac
15381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15382 $as_echo "$ac_try_echo") >&5
15383   (eval "$ac_compile") 2>conftest.er1
15384   ac_status=$?
15385   grep -v '^ *+' conftest.er1 >conftest.err
15386   rm -f conftest.er1
15387   cat conftest.err >&5
15388   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389   (exit $ac_status); } && {
15390          test -z "$ac_c_werror_flag" ||
15391          test ! -s conftest.err
15392        } && test -s conftest.$ac_objext; then
15393   ac_cv_c_volatile=yes
15394 else
15395   $as_echo "$as_me: failed program was:" >&5
15396 sed 's/^/| /' conftest.$ac_ext >&5
15397
15398         ac_cv_c_volatile=no
15399 fi
15400
15401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15402 fi
15403 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
15404 $as_echo "$ac_cv_c_volatile" >&6; }
15405 if test $ac_cv_c_volatile = no; then
15406
15407 cat >>confdefs.h <<\_ACEOF
15408 #define volatile /**/
15409 _ACEOF
15410
15411 fi
15412
15413 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
15414 $as_echo_n "checking for __func__... " >&6; }
15415 if test "${pgac_cv_funcname_func_support+set}" = set; then
15416   $as_echo_n "(cached) " >&6
15417 else
15418   cat >conftest.$ac_ext <<_ACEOF
15419 /* confdefs.h.  */
15420 _ACEOF
15421 cat confdefs.h >>conftest.$ac_ext
15422 cat >>conftest.$ac_ext <<_ACEOF
15423 /* end confdefs.h.  */
15424 #include <stdio.h>
15425 int
15426 main ()
15427 {
15428 printf("%s\n", __func__);
15429   ;
15430   return 0;
15431 }
15432 _ACEOF
15433 rm -f conftest.$ac_objext
15434 if { (ac_try="$ac_compile"
15435 case "(($ac_try" in
15436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15437   *) ac_try_echo=$ac_try;;
15438 esac
15439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15440 $as_echo "$ac_try_echo") >&5
15441   (eval "$ac_compile") 2>conftest.er1
15442   ac_status=$?
15443   grep -v '^ *+' conftest.er1 >conftest.err
15444   rm -f conftest.er1
15445   cat conftest.err >&5
15446   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447   (exit $ac_status); } && {
15448          test -z "$ac_c_werror_flag" ||
15449          test ! -s conftest.err
15450        } && test -s conftest.$ac_objext; then
15451   pgac_cv_funcname_func_support=yes
15452 else
15453   $as_echo "$as_me: failed program was:" >&5
15454 sed 's/^/| /' conftest.$ac_ext >&5
15455
15456         pgac_cv_funcname_func_support=no
15457 fi
15458
15459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15460 fi
15461 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
15462 $as_echo "$pgac_cv_funcname_func_support" >&6; }
15463 if test x"$pgac_cv_funcname_func_support" = xyes ; then
15464
15465 cat >>confdefs.h <<\_ACEOF
15466 #define HAVE_FUNCNAME__FUNC 1
15467 _ACEOF
15468
15469 else
15470 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
15471 $as_echo_n "checking for __FUNCTION__... " >&6; }
15472 if test "${pgac_cv_funcname_function_support+set}" = set; then
15473   $as_echo_n "(cached) " >&6
15474 else
15475   cat >conftest.$ac_ext <<_ACEOF
15476 /* confdefs.h.  */
15477 _ACEOF
15478 cat confdefs.h >>conftest.$ac_ext
15479 cat >>conftest.$ac_ext <<_ACEOF
15480 /* end confdefs.h.  */
15481 #include <stdio.h>
15482 int
15483 main ()
15484 {
15485 printf("%s\n", __FUNCTION__);
15486   ;
15487   return 0;
15488 }
15489 _ACEOF
15490 rm -f conftest.$ac_objext
15491 if { (ac_try="$ac_compile"
15492 case "(($ac_try" in
15493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15494   *) ac_try_echo=$ac_try;;
15495 esac
15496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15497 $as_echo "$ac_try_echo") >&5
15498   (eval "$ac_compile") 2>conftest.er1
15499   ac_status=$?
15500   grep -v '^ *+' conftest.er1 >conftest.err
15501   rm -f conftest.er1
15502   cat conftest.err >&5
15503   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504   (exit $ac_status); } && {
15505          test -z "$ac_c_werror_flag" ||
15506          test ! -s conftest.err
15507        } && test -s conftest.$ac_objext; then
15508   pgac_cv_funcname_function_support=yes
15509 else
15510   $as_echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15512
15513         pgac_cv_funcname_function_support=no
15514 fi
15515
15516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15517 fi
15518 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
15519 $as_echo "$pgac_cv_funcname_function_support" >&6; }
15520 if test x"$pgac_cv_funcname_function_support" = xyes ; then
15521
15522 cat >>confdefs.h <<\_ACEOF
15523 #define HAVE_FUNCNAME__FUNCTION 1
15524 _ACEOF
15525
15526 fi
15527 fi
15528 { $as_echo "$as_me:$LINENO: checking for _Static_assert" >&5
15529 $as_echo_n "checking for _Static_assert... " >&6; }
15530 if test "${pgac_cv__static_assert+set}" = set; then
15531   $as_echo_n "(cached) " >&6
15532 else
15533   cat >conftest.$ac_ext <<_ACEOF
15534 /* confdefs.h.  */
15535 _ACEOF
15536 cat confdefs.h >>conftest.$ac_ext
15537 cat >>conftest.$ac_ext <<_ACEOF
15538 /* end confdefs.h.  */
15539
15540 int
15541 main ()
15542 {
15543 ({ _Static_assert(1, "foo"); })
15544   ;
15545   return 0;
15546 }
15547 _ACEOF
15548 rm -f conftest.$ac_objext conftest$ac_exeext
15549 if { (ac_try="$ac_link"
15550 case "(($ac_try" in
15551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15552   *) ac_try_echo=$ac_try;;
15553 esac
15554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15555 $as_echo "$ac_try_echo") >&5
15556   (eval "$ac_link") 2>conftest.er1
15557   ac_status=$?
15558   grep -v '^ *+' conftest.er1 >conftest.err
15559   rm -f conftest.er1
15560   cat conftest.err >&5
15561   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562   (exit $ac_status); } && {
15563          test -z "$ac_c_werror_flag" ||
15564          test ! -s conftest.err
15565        } && test -s conftest$ac_exeext && {
15566          test "$cross_compiling" = yes ||
15567          $as_test_x conftest$ac_exeext
15568        }; then
15569   pgac_cv__static_assert=yes
15570 else
15571   $as_echo "$as_me: failed program was:" >&5
15572 sed 's/^/| /' conftest.$ac_ext >&5
15573
15574         pgac_cv__static_assert=no
15575 fi
15576
15577 rm -rf conftest.dSYM
15578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15579       conftest$ac_exeext conftest.$ac_ext
15580 fi
15581 { $as_echo "$as_me:$LINENO: result: $pgac_cv__static_assert" >&5
15582 $as_echo "$pgac_cv__static_assert" >&6; }
15583 if test x"$pgac_cv__static_assert" = xyes ; then
15584
15585 cat >>confdefs.h <<\_ACEOF
15586 #define HAVE__STATIC_ASSERT 1
15587 _ACEOF
15588
15589 fi
15590 { $as_echo "$as_me:$LINENO: checking for __builtin_types_compatible_p" >&5
15591 $as_echo_n "checking for __builtin_types_compatible_p... " >&6; }
15592 if test "${pgac_cv__types_compatible+set}" = set; then
15593   $as_echo_n "(cached) " >&6
15594 else
15595   cat >conftest.$ac_ext <<_ACEOF
15596 /* confdefs.h.  */
15597 _ACEOF
15598 cat confdefs.h >>conftest.$ac_ext
15599 cat >>conftest.$ac_ext <<_ACEOF
15600 /* end confdefs.h.  */
15601
15602 int
15603 main ()
15604 {
15605  int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)];
15606   ;
15607   return 0;
15608 }
15609 _ACEOF
15610 rm -f conftest.$ac_objext
15611 if { (ac_try="$ac_compile"
15612 case "(($ac_try" in
15613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15614   *) ac_try_echo=$ac_try;;
15615 esac
15616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15617 $as_echo "$ac_try_echo") >&5
15618   (eval "$ac_compile") 2>conftest.er1
15619   ac_status=$?
15620   grep -v '^ *+' conftest.er1 >conftest.err
15621   rm -f conftest.er1
15622   cat conftest.err >&5
15623   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624   (exit $ac_status); } && {
15625          test -z "$ac_c_werror_flag" ||
15626          test ! -s conftest.err
15627        } && test -s conftest.$ac_objext; then
15628   pgac_cv__types_compatible=yes
15629 else
15630   $as_echo "$as_me: failed program was:" >&5
15631 sed 's/^/| /' conftest.$ac_ext >&5
15632
15633         pgac_cv__types_compatible=no
15634 fi
15635
15636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15637 fi
15638 { $as_echo "$as_me:$LINENO: result: $pgac_cv__types_compatible" >&5
15639 $as_echo "$pgac_cv__types_compatible" >&6; }
15640 if test x"$pgac_cv__types_compatible" = xyes ; then
15641
15642 cat >>confdefs.h <<\_ACEOF
15643 #define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1
15644 _ACEOF
15645
15646 fi
15647 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
15648 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
15649 if test "${ac_cv_struct_tm+set}" = set; then
15650   $as_echo_n "(cached) " >&6
15651 else
15652   cat >conftest.$ac_ext <<_ACEOF
15653 /* confdefs.h.  */
15654 _ACEOF
15655 cat confdefs.h >>conftest.$ac_ext
15656 cat >>conftest.$ac_ext <<_ACEOF
15657 /* end confdefs.h.  */
15658 #include <sys/types.h>
15659 #include <time.h>
15660
15661 int
15662 main ()
15663 {
15664 struct tm tm;
15665                                      int *p = &tm.tm_sec;
15666                                      return !p;
15667   ;
15668   return 0;
15669 }
15670 _ACEOF
15671 rm -f conftest.$ac_objext
15672 if { (ac_try="$ac_compile"
15673 case "(($ac_try" in
15674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15675   *) ac_try_echo=$ac_try;;
15676 esac
15677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15678 $as_echo "$ac_try_echo") >&5
15679   (eval "$ac_compile") 2>conftest.er1
15680   ac_status=$?
15681   grep -v '^ *+' conftest.er1 >conftest.err
15682   rm -f conftest.er1
15683   cat conftest.err >&5
15684   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685   (exit $ac_status); } && {
15686          test -z "$ac_c_werror_flag" ||
15687          test ! -s conftest.err
15688        } && test -s conftest.$ac_objext; then
15689   ac_cv_struct_tm=time.h
15690 else
15691   $as_echo "$as_me: failed program was:" >&5
15692 sed 's/^/| /' conftest.$ac_ext >&5
15693
15694         ac_cv_struct_tm=sys/time.h
15695 fi
15696
15697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15698 fi
15699 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
15700 $as_echo "$ac_cv_struct_tm" >&6; }
15701 if test $ac_cv_struct_tm = sys/time.h; then
15702
15703 cat >>confdefs.h <<\_ACEOF
15704 #define TM_IN_SYS_TIME 1
15705 _ACEOF
15706
15707 fi
15708
15709 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
15710 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
15711 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
15712   $as_echo_n "(cached) " >&6
15713 else
15714   cat >conftest.$ac_ext <<_ACEOF
15715 /* confdefs.h.  */
15716 _ACEOF
15717 cat confdefs.h >>conftest.$ac_ext
15718 cat >>conftest.$ac_ext <<_ACEOF
15719 /* end confdefs.h.  */
15720 #include <sys/types.h>
15721 #include <$ac_cv_struct_tm>
15722
15723
15724 int
15725 main ()
15726 {
15727 static struct tm ac_aggr;
15728 if (ac_aggr.tm_zone)
15729 return 0;
15730   ;
15731   return 0;
15732 }
15733 _ACEOF
15734 rm -f conftest.$ac_objext
15735 if { (ac_try="$ac_compile"
15736 case "(($ac_try" in
15737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15738   *) ac_try_echo=$ac_try;;
15739 esac
15740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15741 $as_echo "$ac_try_echo") >&5
15742   (eval "$ac_compile") 2>conftest.er1
15743   ac_status=$?
15744   grep -v '^ *+' conftest.er1 >conftest.err
15745   rm -f conftest.er1
15746   cat conftest.err >&5
15747   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748   (exit $ac_status); } && {
15749          test -z "$ac_c_werror_flag" ||
15750          test ! -s conftest.err
15751        } && test -s conftest.$ac_objext; then
15752   ac_cv_member_struct_tm_tm_zone=yes
15753 else
15754   $as_echo "$as_me: failed program was:" >&5
15755 sed 's/^/| /' conftest.$ac_ext >&5
15756
15757         cat >conftest.$ac_ext <<_ACEOF
15758 /* confdefs.h.  */
15759 _ACEOF
15760 cat confdefs.h >>conftest.$ac_ext
15761 cat >>conftest.$ac_ext <<_ACEOF
15762 /* end confdefs.h.  */
15763 #include <sys/types.h>
15764 #include <$ac_cv_struct_tm>
15765
15766
15767 int
15768 main ()
15769 {
15770 static struct tm ac_aggr;
15771 if (sizeof ac_aggr.tm_zone)
15772 return 0;
15773   ;
15774   return 0;
15775 }
15776 _ACEOF
15777 rm -f conftest.$ac_objext
15778 if { (ac_try="$ac_compile"
15779 case "(($ac_try" in
15780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15781   *) ac_try_echo=$ac_try;;
15782 esac
15783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15784 $as_echo "$ac_try_echo") >&5
15785   (eval "$ac_compile") 2>conftest.er1
15786   ac_status=$?
15787   grep -v '^ *+' conftest.er1 >conftest.err
15788   rm -f conftest.er1
15789   cat conftest.err >&5
15790   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791   (exit $ac_status); } && {
15792          test -z "$ac_c_werror_flag" ||
15793          test ! -s conftest.err
15794        } && test -s conftest.$ac_objext; then
15795   ac_cv_member_struct_tm_tm_zone=yes
15796 else
15797   $as_echo "$as_me: failed program was:" >&5
15798 sed 's/^/| /' conftest.$ac_ext >&5
15799
15800         ac_cv_member_struct_tm_tm_zone=no
15801 fi
15802
15803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15804 fi
15805
15806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15807 fi
15808 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
15809 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
15810 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
15811
15812 cat >>confdefs.h <<_ACEOF
15813 #define HAVE_STRUCT_TM_TM_ZONE 1
15814 _ACEOF
15815
15816
15817 fi
15818
15819 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
15820
15821 cat >>confdefs.h <<\_ACEOF
15822 #define HAVE_TM_ZONE 1
15823 _ACEOF
15824
15825 fi
15826 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
15827 $as_echo_n "checking for tzname... " >&6; }
15828 if test "${ac_cv_var_tzname+set}" = set; then
15829   $as_echo_n "(cached) " >&6
15830 else
15831   cat >conftest.$ac_ext <<_ACEOF
15832 /* confdefs.h.  */
15833 _ACEOF
15834 cat confdefs.h >>conftest.$ac_ext
15835 cat >>conftest.$ac_ext <<_ACEOF
15836 /* end confdefs.h.  */
15837 #include <time.h>
15838 #ifndef tzname /* For SGI.  */
15839 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
15840 #endif
15841
15842 int
15843 main ()
15844 {
15845 atoi(*tzname);
15846   ;
15847   return 0;
15848 }
15849 _ACEOF
15850 rm -f conftest.$ac_objext conftest$ac_exeext
15851 if { (ac_try="$ac_link"
15852 case "(($ac_try" in
15853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15854   *) ac_try_echo=$ac_try;;
15855 esac
15856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15857 $as_echo "$ac_try_echo") >&5
15858   (eval "$ac_link") 2>conftest.er1
15859   ac_status=$?
15860   grep -v '^ *+' conftest.er1 >conftest.err
15861   rm -f conftest.er1
15862   cat conftest.err >&5
15863   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864   (exit $ac_status); } && {
15865          test -z "$ac_c_werror_flag" ||
15866          test ! -s conftest.err
15867        } && test -s conftest$ac_exeext && {
15868          test "$cross_compiling" = yes ||
15869          $as_test_x conftest$ac_exeext
15870        }; then
15871   ac_cv_var_tzname=yes
15872 else
15873   $as_echo "$as_me: failed program was:" >&5
15874 sed 's/^/| /' conftest.$ac_ext >&5
15875
15876         ac_cv_var_tzname=no
15877 fi
15878
15879 rm -rf conftest.dSYM
15880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15881       conftest$ac_exeext conftest.$ac_ext
15882 fi
15883 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15884 $as_echo "$ac_cv_var_tzname" >&6; }
15885 if test $ac_cv_var_tzname = yes; then
15886
15887 cat >>confdefs.h <<\_ACEOF
15888 #define HAVE_TZNAME 1
15889 _ACEOF
15890
15891 fi
15892
15893 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
15894 $as_echo_n "checking for union semun... " >&6; }
15895 if test "${ac_cv_type_union_semun+set}" = set; then
15896   $as_echo_n "(cached) " >&6
15897 else
15898   ac_cv_type_union_semun=no
15899 cat >conftest.$ac_ext <<_ACEOF
15900 /* confdefs.h.  */
15901 _ACEOF
15902 cat confdefs.h >>conftest.$ac_ext
15903 cat >>conftest.$ac_ext <<_ACEOF
15904 /* end confdefs.h.  */
15905 #include <sys/types.h>
15906 #include <sys/ipc.h>
15907 #include <sys/sem.h>
15908
15909 int
15910 main ()
15911 {
15912 if (sizeof (union semun))
15913        return 0;
15914   ;
15915   return 0;
15916 }
15917 _ACEOF
15918 rm -f conftest.$ac_objext
15919 if { (ac_try="$ac_compile"
15920 case "(($ac_try" in
15921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15922   *) ac_try_echo=$ac_try;;
15923 esac
15924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15925 $as_echo "$ac_try_echo") >&5
15926   (eval "$ac_compile") 2>conftest.er1
15927   ac_status=$?
15928   grep -v '^ *+' conftest.er1 >conftest.err
15929   rm -f conftest.er1
15930   cat conftest.err >&5
15931   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932   (exit $ac_status); } && {
15933          test -z "$ac_c_werror_flag" ||
15934          test ! -s conftest.err
15935        } && test -s conftest.$ac_objext; then
15936   cat >conftest.$ac_ext <<_ACEOF
15937 /* confdefs.h.  */
15938 _ACEOF
15939 cat confdefs.h >>conftest.$ac_ext
15940 cat >>conftest.$ac_ext <<_ACEOF
15941 /* end confdefs.h.  */
15942 #include <sys/types.h>
15943 #include <sys/ipc.h>
15944 #include <sys/sem.h>
15945
15946 int
15947 main ()
15948 {
15949 if (sizeof ((union semun)))
15950           return 0;
15951   ;
15952   return 0;
15953 }
15954 _ACEOF
15955 rm -f conftest.$ac_objext
15956 if { (ac_try="$ac_compile"
15957 case "(($ac_try" in
15958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15959   *) ac_try_echo=$ac_try;;
15960 esac
15961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15962 $as_echo "$ac_try_echo") >&5
15963   (eval "$ac_compile") 2>conftest.er1
15964   ac_status=$?
15965   grep -v '^ *+' conftest.er1 >conftest.err
15966   rm -f conftest.er1
15967   cat conftest.err >&5
15968   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969   (exit $ac_status); } && {
15970          test -z "$ac_c_werror_flag" ||
15971          test ! -s conftest.err
15972        } && test -s conftest.$ac_objext; then
15973   :
15974 else
15975   $as_echo "$as_me: failed program was:" >&5
15976 sed 's/^/| /' conftest.$ac_ext >&5
15977
15978         ac_cv_type_union_semun=yes
15979 fi
15980
15981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15982 else
15983   $as_echo "$as_me: failed program was:" >&5
15984 sed 's/^/| /' conftest.$ac_ext >&5
15985
15986
15987 fi
15988
15989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15990 fi
15991 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
15992 $as_echo "$ac_cv_type_union_semun" >&6; }
15993 if test "x$ac_cv_type_union_semun" = x""yes; then
15994
15995 cat >>confdefs.h <<_ACEOF
15996 #define HAVE_UNION_SEMUN 1
15997 _ACEOF
15998
15999
16000 fi
16001
16002 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
16003 $as_echo_n "checking for struct sockaddr_un... " >&6; }
16004 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
16005   $as_echo_n "(cached) " >&6
16006 else
16007   ac_cv_type_struct_sockaddr_un=no
16008 cat >conftest.$ac_ext <<_ACEOF
16009 /* confdefs.h.  */
16010 _ACEOF
16011 cat confdefs.h >>conftest.$ac_ext
16012 cat >>conftest.$ac_ext <<_ACEOF
16013 /* end confdefs.h.  */
16014 #include <sys/types.h>
16015 #ifdef HAVE_SYS_UN_H
16016 #include <sys/un.h>
16017 #endif
16018
16019
16020 int
16021 main ()
16022 {
16023 if (sizeof (struct sockaddr_un))
16024        return 0;
16025   ;
16026   return 0;
16027 }
16028 _ACEOF
16029 rm -f conftest.$ac_objext
16030 if { (ac_try="$ac_compile"
16031 case "(($ac_try" in
16032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16033   *) ac_try_echo=$ac_try;;
16034 esac
16035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16036 $as_echo "$ac_try_echo") >&5
16037   (eval "$ac_compile") 2>conftest.er1
16038   ac_status=$?
16039   grep -v '^ *+' conftest.er1 >conftest.err
16040   rm -f conftest.er1
16041   cat conftest.err >&5
16042   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043   (exit $ac_status); } && {
16044          test -z "$ac_c_werror_flag" ||
16045          test ! -s conftest.err
16046        } && test -s conftest.$ac_objext; then
16047   cat >conftest.$ac_ext <<_ACEOF
16048 /* confdefs.h.  */
16049 _ACEOF
16050 cat confdefs.h >>conftest.$ac_ext
16051 cat >>conftest.$ac_ext <<_ACEOF
16052 /* end confdefs.h.  */
16053 #include <sys/types.h>
16054 #ifdef HAVE_SYS_UN_H
16055 #include <sys/un.h>
16056 #endif
16057
16058
16059 int
16060 main ()
16061 {
16062 if (sizeof ((struct sockaddr_un)))
16063           return 0;
16064   ;
16065   return 0;
16066 }
16067 _ACEOF
16068 rm -f conftest.$ac_objext
16069 if { (ac_try="$ac_compile"
16070 case "(($ac_try" in
16071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072   *) ac_try_echo=$ac_try;;
16073 esac
16074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16075 $as_echo "$ac_try_echo") >&5
16076   (eval "$ac_compile") 2>conftest.er1
16077   ac_status=$?
16078   grep -v '^ *+' conftest.er1 >conftest.err
16079   rm -f conftest.er1
16080   cat conftest.err >&5
16081   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082   (exit $ac_status); } && {
16083          test -z "$ac_c_werror_flag" ||
16084          test ! -s conftest.err
16085        } && test -s conftest.$ac_objext; then
16086   :
16087 else
16088   $as_echo "$as_me: failed program was:" >&5
16089 sed 's/^/| /' conftest.$ac_ext >&5
16090
16091         ac_cv_type_struct_sockaddr_un=yes
16092 fi
16093
16094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16095 else
16096   $as_echo "$as_me: failed program was:" >&5
16097 sed 's/^/| /' conftest.$ac_ext >&5
16098
16099
16100 fi
16101
16102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16103 fi
16104 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
16105 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
16106 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
16107
16108 cat >>confdefs.h <<\_ACEOF
16109 #define HAVE_UNIX_SOCKETS 1
16110 _ACEOF
16111
16112 fi
16113
16114 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
16115 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
16116 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
16117   $as_echo_n "(cached) " >&6
16118 else
16119   ac_cv_type_struct_sockaddr_storage=no
16120 cat >conftest.$ac_ext <<_ACEOF
16121 /* confdefs.h.  */
16122 _ACEOF
16123 cat confdefs.h >>conftest.$ac_ext
16124 cat >>conftest.$ac_ext <<_ACEOF
16125 /* end confdefs.h.  */
16126 #include <sys/types.h>
16127 #ifdef HAVE_SYS_SOCKET_H
16128 #include <sys/socket.h>
16129 #endif
16130
16131
16132 int
16133 main ()
16134 {
16135 if (sizeof (struct sockaddr_storage))
16136        return 0;
16137   ;
16138   return 0;
16139 }
16140 _ACEOF
16141 rm -f conftest.$ac_objext
16142 if { (ac_try="$ac_compile"
16143 case "(($ac_try" in
16144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16145   *) ac_try_echo=$ac_try;;
16146 esac
16147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16148 $as_echo "$ac_try_echo") >&5
16149   (eval "$ac_compile") 2>conftest.er1
16150   ac_status=$?
16151   grep -v '^ *+' conftest.er1 >conftest.err
16152   rm -f conftest.er1
16153   cat conftest.err >&5
16154   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155   (exit $ac_status); } && {
16156          test -z "$ac_c_werror_flag" ||
16157          test ! -s conftest.err
16158        } && test -s conftest.$ac_objext; then
16159   cat >conftest.$ac_ext <<_ACEOF
16160 /* confdefs.h.  */
16161 _ACEOF
16162 cat confdefs.h >>conftest.$ac_ext
16163 cat >>conftest.$ac_ext <<_ACEOF
16164 /* end confdefs.h.  */
16165 #include <sys/types.h>
16166 #ifdef HAVE_SYS_SOCKET_H
16167 #include <sys/socket.h>
16168 #endif
16169
16170
16171 int
16172 main ()
16173 {
16174 if (sizeof ((struct sockaddr_storage)))
16175           return 0;
16176   ;
16177   return 0;
16178 }
16179 _ACEOF
16180 rm -f conftest.$ac_objext
16181 if { (ac_try="$ac_compile"
16182 case "(($ac_try" in
16183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184   *) ac_try_echo=$ac_try;;
16185 esac
16186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16187 $as_echo "$ac_try_echo") >&5
16188   (eval "$ac_compile") 2>conftest.er1
16189   ac_status=$?
16190   grep -v '^ *+' conftest.er1 >conftest.err
16191   rm -f conftest.er1
16192   cat conftest.err >&5
16193   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194   (exit $ac_status); } && {
16195          test -z "$ac_c_werror_flag" ||
16196          test ! -s conftest.err
16197        } && test -s conftest.$ac_objext; then
16198   :
16199 else
16200   $as_echo "$as_me: failed program was:" >&5
16201 sed 's/^/| /' conftest.$ac_ext >&5
16202
16203         ac_cv_type_struct_sockaddr_storage=yes
16204 fi
16205
16206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16207 else
16208   $as_echo "$as_me: failed program was:" >&5
16209 sed 's/^/| /' conftest.$ac_ext >&5
16210
16211
16212 fi
16213
16214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16215 fi
16216 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
16217 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
16218 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
16219
16220 cat >>confdefs.h <<_ACEOF
16221 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
16222 _ACEOF
16223
16224
16225 fi
16226
16227 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
16228 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
16229 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
16230   $as_echo_n "(cached) " >&6
16231 else
16232   cat >conftest.$ac_ext <<_ACEOF
16233 /* confdefs.h.  */
16234 _ACEOF
16235 cat confdefs.h >>conftest.$ac_ext
16236 cat >>conftest.$ac_ext <<_ACEOF
16237 /* end confdefs.h.  */
16238 #include <sys/types.h>
16239 #ifdef HAVE_SYS_SOCKET_H
16240 #include <sys/socket.h>
16241 #endif
16242
16243
16244 int
16245 main ()
16246 {
16247 static struct sockaddr_storage ac_aggr;
16248 if (ac_aggr.ss_family)
16249 return 0;
16250   ;
16251   return 0;
16252 }
16253 _ACEOF
16254 rm -f conftest.$ac_objext
16255 if { (ac_try="$ac_compile"
16256 case "(($ac_try" in
16257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258   *) ac_try_echo=$ac_try;;
16259 esac
16260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16261 $as_echo "$ac_try_echo") >&5
16262   (eval "$ac_compile") 2>conftest.er1
16263   ac_status=$?
16264   grep -v '^ *+' conftest.er1 >conftest.err
16265   rm -f conftest.er1
16266   cat conftest.err >&5
16267   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268   (exit $ac_status); } && {
16269          test -z "$ac_c_werror_flag" ||
16270          test ! -s conftest.err
16271        } && test -s conftest.$ac_objext; then
16272   ac_cv_member_struct_sockaddr_storage_ss_family=yes
16273 else
16274   $as_echo "$as_me: failed program was:" >&5
16275 sed 's/^/| /' conftest.$ac_ext >&5
16276
16277         cat >conftest.$ac_ext <<_ACEOF
16278 /* confdefs.h.  */
16279 _ACEOF
16280 cat confdefs.h >>conftest.$ac_ext
16281 cat >>conftest.$ac_ext <<_ACEOF
16282 /* end confdefs.h.  */
16283 #include <sys/types.h>
16284 #ifdef HAVE_SYS_SOCKET_H
16285 #include <sys/socket.h>
16286 #endif
16287
16288
16289 int
16290 main ()
16291 {
16292 static struct sockaddr_storage ac_aggr;
16293 if (sizeof ac_aggr.ss_family)
16294 return 0;
16295   ;
16296   return 0;
16297 }
16298 _ACEOF
16299 rm -f conftest.$ac_objext
16300 if { (ac_try="$ac_compile"
16301 case "(($ac_try" in
16302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16303   *) ac_try_echo=$ac_try;;
16304 esac
16305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16306 $as_echo "$ac_try_echo") >&5
16307   (eval "$ac_compile") 2>conftest.er1
16308   ac_status=$?
16309   grep -v '^ *+' conftest.er1 >conftest.err
16310   rm -f conftest.er1
16311   cat conftest.err >&5
16312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313   (exit $ac_status); } && {
16314          test -z "$ac_c_werror_flag" ||
16315          test ! -s conftest.err
16316        } && test -s conftest.$ac_objext; then
16317   ac_cv_member_struct_sockaddr_storage_ss_family=yes
16318 else
16319   $as_echo "$as_me: failed program was:" >&5
16320 sed 's/^/| /' conftest.$ac_ext >&5
16321
16322         ac_cv_member_struct_sockaddr_storage_ss_family=no
16323 fi
16324
16325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16326 fi
16327
16328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16329 fi
16330 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
16331 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
16332 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
16333
16334 cat >>confdefs.h <<_ACEOF
16335 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
16336 _ACEOF
16337
16338
16339 fi
16340 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
16341 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
16342 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
16343   $as_echo_n "(cached) " >&6
16344 else
16345   cat >conftest.$ac_ext <<_ACEOF
16346 /* confdefs.h.  */
16347 _ACEOF
16348 cat confdefs.h >>conftest.$ac_ext
16349 cat >>conftest.$ac_ext <<_ACEOF
16350 /* end confdefs.h.  */
16351 #include <sys/types.h>
16352 #ifdef HAVE_SYS_SOCKET_H
16353 #include <sys/socket.h>
16354 #endif
16355
16356
16357 int
16358 main ()
16359 {
16360 static struct sockaddr_storage ac_aggr;
16361 if (ac_aggr.__ss_family)
16362 return 0;
16363   ;
16364   return 0;
16365 }
16366 _ACEOF
16367 rm -f conftest.$ac_objext
16368 if { (ac_try="$ac_compile"
16369 case "(($ac_try" in
16370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16371   *) ac_try_echo=$ac_try;;
16372 esac
16373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16374 $as_echo "$ac_try_echo") >&5
16375   (eval "$ac_compile") 2>conftest.er1
16376   ac_status=$?
16377   grep -v '^ *+' conftest.er1 >conftest.err
16378   rm -f conftest.er1
16379   cat conftest.err >&5
16380   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381   (exit $ac_status); } && {
16382          test -z "$ac_c_werror_flag" ||
16383          test ! -s conftest.err
16384        } && test -s conftest.$ac_objext; then
16385   ac_cv_member_struct_sockaddr_storage___ss_family=yes
16386 else
16387   $as_echo "$as_me: failed program was:" >&5
16388 sed 's/^/| /' conftest.$ac_ext >&5
16389
16390         cat >conftest.$ac_ext <<_ACEOF
16391 /* confdefs.h.  */
16392 _ACEOF
16393 cat confdefs.h >>conftest.$ac_ext
16394 cat >>conftest.$ac_ext <<_ACEOF
16395 /* end confdefs.h.  */
16396 #include <sys/types.h>
16397 #ifdef HAVE_SYS_SOCKET_H
16398 #include <sys/socket.h>
16399 #endif
16400
16401
16402 int
16403 main ()
16404 {
16405 static struct sockaddr_storage ac_aggr;
16406 if (sizeof ac_aggr.__ss_family)
16407 return 0;
16408   ;
16409   return 0;
16410 }
16411 _ACEOF
16412 rm -f conftest.$ac_objext
16413 if { (ac_try="$ac_compile"
16414 case "(($ac_try" in
16415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16416   *) ac_try_echo=$ac_try;;
16417 esac
16418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16419 $as_echo "$ac_try_echo") >&5
16420   (eval "$ac_compile") 2>conftest.er1
16421   ac_status=$?
16422   grep -v '^ *+' conftest.er1 >conftest.err
16423   rm -f conftest.er1
16424   cat conftest.err >&5
16425   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426   (exit $ac_status); } && {
16427          test -z "$ac_c_werror_flag" ||
16428          test ! -s conftest.err
16429        } && test -s conftest.$ac_objext; then
16430   ac_cv_member_struct_sockaddr_storage___ss_family=yes
16431 else
16432   $as_echo "$as_me: failed program was:" >&5
16433 sed 's/^/| /' conftest.$ac_ext >&5
16434
16435         ac_cv_member_struct_sockaddr_storage___ss_family=no
16436 fi
16437
16438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16439 fi
16440
16441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16442 fi
16443 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
16444 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
16445 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
16446
16447 cat >>confdefs.h <<_ACEOF
16448 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
16449 _ACEOF
16450
16451
16452 fi
16453 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
16454 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
16455 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
16456   $as_echo_n "(cached) " >&6
16457 else
16458   cat >conftest.$ac_ext <<_ACEOF
16459 /* confdefs.h.  */
16460 _ACEOF
16461 cat confdefs.h >>conftest.$ac_ext
16462 cat >>conftest.$ac_ext <<_ACEOF
16463 /* end confdefs.h.  */
16464 #include <sys/types.h>
16465 #ifdef HAVE_SYS_SOCKET_H
16466 #include <sys/socket.h>
16467 #endif
16468
16469
16470 int
16471 main ()
16472 {
16473 static struct sockaddr_storage ac_aggr;
16474 if (ac_aggr.ss_len)
16475 return 0;
16476   ;
16477   return 0;
16478 }
16479 _ACEOF
16480 rm -f conftest.$ac_objext
16481 if { (ac_try="$ac_compile"
16482 case "(($ac_try" in
16483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16484   *) ac_try_echo=$ac_try;;
16485 esac
16486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16487 $as_echo "$ac_try_echo") >&5
16488   (eval "$ac_compile") 2>conftest.er1
16489   ac_status=$?
16490   grep -v '^ *+' conftest.er1 >conftest.err
16491   rm -f conftest.er1
16492   cat conftest.err >&5
16493   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494   (exit $ac_status); } && {
16495          test -z "$ac_c_werror_flag" ||
16496          test ! -s conftest.err
16497        } && test -s conftest.$ac_objext; then
16498   ac_cv_member_struct_sockaddr_storage_ss_len=yes
16499 else
16500   $as_echo "$as_me: failed program was:" >&5
16501 sed 's/^/| /' conftest.$ac_ext >&5
16502
16503         cat >conftest.$ac_ext <<_ACEOF
16504 /* confdefs.h.  */
16505 _ACEOF
16506 cat confdefs.h >>conftest.$ac_ext
16507 cat >>conftest.$ac_ext <<_ACEOF
16508 /* end confdefs.h.  */
16509 #include <sys/types.h>
16510 #ifdef HAVE_SYS_SOCKET_H
16511 #include <sys/socket.h>
16512 #endif
16513
16514
16515 int
16516 main ()
16517 {
16518 static struct sockaddr_storage ac_aggr;
16519 if (sizeof ac_aggr.ss_len)
16520 return 0;
16521   ;
16522   return 0;
16523 }
16524 _ACEOF
16525 rm -f conftest.$ac_objext
16526 if { (ac_try="$ac_compile"
16527 case "(($ac_try" in
16528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16529   *) ac_try_echo=$ac_try;;
16530 esac
16531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16532 $as_echo "$ac_try_echo") >&5
16533   (eval "$ac_compile") 2>conftest.er1
16534   ac_status=$?
16535   grep -v '^ *+' conftest.er1 >conftest.err
16536   rm -f conftest.er1
16537   cat conftest.err >&5
16538   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539   (exit $ac_status); } && {
16540          test -z "$ac_c_werror_flag" ||
16541          test ! -s conftest.err
16542        } && test -s conftest.$ac_objext; then
16543   ac_cv_member_struct_sockaddr_storage_ss_len=yes
16544 else
16545   $as_echo "$as_me: failed program was:" >&5
16546 sed 's/^/| /' conftest.$ac_ext >&5
16547
16548         ac_cv_member_struct_sockaddr_storage_ss_len=no
16549 fi
16550
16551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16552 fi
16553
16554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16555 fi
16556 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
16557 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
16558 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
16559
16560 cat >>confdefs.h <<_ACEOF
16561 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
16562 _ACEOF
16563
16564
16565 fi
16566 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
16567 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
16568 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
16569   $as_echo_n "(cached) " >&6
16570 else
16571   cat >conftest.$ac_ext <<_ACEOF
16572 /* confdefs.h.  */
16573 _ACEOF
16574 cat confdefs.h >>conftest.$ac_ext
16575 cat >>conftest.$ac_ext <<_ACEOF
16576 /* end confdefs.h.  */
16577 #include <sys/types.h>
16578 #ifdef HAVE_SYS_SOCKET_H
16579 #include <sys/socket.h>
16580 #endif
16581
16582
16583 int
16584 main ()
16585 {
16586 static struct sockaddr_storage ac_aggr;
16587 if (ac_aggr.__ss_len)
16588 return 0;
16589   ;
16590   return 0;
16591 }
16592 _ACEOF
16593 rm -f conftest.$ac_objext
16594 if { (ac_try="$ac_compile"
16595 case "(($ac_try" in
16596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16597   *) ac_try_echo=$ac_try;;
16598 esac
16599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16600 $as_echo "$ac_try_echo") >&5
16601   (eval "$ac_compile") 2>conftest.er1
16602   ac_status=$?
16603   grep -v '^ *+' conftest.er1 >conftest.err
16604   rm -f conftest.er1
16605   cat conftest.err >&5
16606   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607   (exit $ac_status); } && {
16608          test -z "$ac_c_werror_flag" ||
16609          test ! -s conftest.err
16610        } && test -s conftest.$ac_objext; then
16611   ac_cv_member_struct_sockaddr_storage___ss_len=yes
16612 else
16613   $as_echo "$as_me: failed program was:" >&5
16614 sed 's/^/| /' conftest.$ac_ext >&5
16615
16616         cat >conftest.$ac_ext <<_ACEOF
16617 /* confdefs.h.  */
16618 _ACEOF
16619 cat confdefs.h >>conftest.$ac_ext
16620 cat >>conftest.$ac_ext <<_ACEOF
16621 /* end confdefs.h.  */
16622 #include <sys/types.h>
16623 #ifdef HAVE_SYS_SOCKET_H
16624 #include <sys/socket.h>
16625 #endif
16626
16627
16628 int
16629 main ()
16630 {
16631 static struct sockaddr_storage ac_aggr;
16632 if (sizeof ac_aggr.__ss_len)
16633 return 0;
16634   ;
16635   return 0;
16636 }
16637 _ACEOF
16638 rm -f conftest.$ac_objext
16639 if { (ac_try="$ac_compile"
16640 case "(($ac_try" in
16641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16642   *) ac_try_echo=$ac_try;;
16643 esac
16644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16645 $as_echo "$ac_try_echo") >&5
16646   (eval "$ac_compile") 2>conftest.er1
16647   ac_status=$?
16648   grep -v '^ *+' conftest.er1 >conftest.err
16649   rm -f conftest.er1
16650   cat conftest.err >&5
16651   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652   (exit $ac_status); } && {
16653          test -z "$ac_c_werror_flag" ||
16654          test ! -s conftest.err
16655        } && test -s conftest.$ac_objext; then
16656   ac_cv_member_struct_sockaddr_storage___ss_len=yes
16657 else
16658   $as_echo "$as_me: failed program was:" >&5
16659 sed 's/^/| /' conftest.$ac_ext >&5
16660
16661         ac_cv_member_struct_sockaddr_storage___ss_len=no
16662 fi
16663
16664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16665 fi
16666
16667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16668 fi
16669 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
16670 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
16671 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
16672
16673 cat >>confdefs.h <<_ACEOF
16674 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
16675 _ACEOF
16676
16677
16678 fi
16679 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
16680 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
16681 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
16682   $as_echo_n "(cached) " >&6
16683 else
16684   cat >conftest.$ac_ext <<_ACEOF
16685 /* confdefs.h.  */
16686 _ACEOF
16687 cat confdefs.h >>conftest.$ac_ext
16688 cat >>conftest.$ac_ext <<_ACEOF
16689 /* end confdefs.h.  */
16690 #include <sys/types.h>
16691 #ifdef HAVE_SYS_SOCKET_H
16692 #include <sys/socket.h>
16693 #endif
16694
16695
16696 int
16697 main ()
16698 {
16699 static struct sockaddr ac_aggr;
16700 if (ac_aggr.sa_len)
16701 return 0;
16702   ;
16703   return 0;
16704 }
16705 _ACEOF
16706 rm -f conftest.$ac_objext
16707 if { (ac_try="$ac_compile"
16708 case "(($ac_try" in
16709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16710   *) ac_try_echo=$ac_try;;
16711 esac
16712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16713 $as_echo "$ac_try_echo") >&5
16714   (eval "$ac_compile") 2>conftest.er1
16715   ac_status=$?
16716   grep -v '^ *+' conftest.er1 >conftest.err
16717   rm -f conftest.er1
16718   cat conftest.err >&5
16719   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720   (exit $ac_status); } && {
16721          test -z "$ac_c_werror_flag" ||
16722          test ! -s conftest.err
16723        } && test -s conftest.$ac_objext; then
16724   ac_cv_member_struct_sockaddr_sa_len=yes
16725 else
16726   $as_echo "$as_me: failed program was:" >&5
16727 sed 's/^/| /' conftest.$ac_ext >&5
16728
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 #ifdef HAVE_SYS_SOCKET_H
16737 #include <sys/socket.h>
16738 #endif
16739
16740
16741 int
16742 main ()
16743 {
16744 static struct sockaddr ac_aggr;
16745 if (sizeof ac_aggr.sa_len)
16746 return 0;
16747   ;
16748   return 0;
16749 }
16750 _ACEOF
16751 rm -f conftest.$ac_objext
16752 if { (ac_try="$ac_compile"
16753 case "(($ac_try" in
16754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755   *) ac_try_echo=$ac_try;;
16756 esac
16757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16758 $as_echo "$ac_try_echo") >&5
16759   (eval "$ac_compile") 2>conftest.er1
16760   ac_status=$?
16761   grep -v '^ *+' conftest.er1 >conftest.err
16762   rm -f conftest.er1
16763   cat conftest.err >&5
16764   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765   (exit $ac_status); } && {
16766          test -z "$ac_c_werror_flag" ||
16767          test ! -s conftest.err
16768        } && test -s conftest.$ac_objext; then
16769   ac_cv_member_struct_sockaddr_sa_len=yes
16770 else
16771   $as_echo "$as_me: failed program was:" >&5
16772 sed 's/^/| /' conftest.$ac_ext >&5
16773
16774         ac_cv_member_struct_sockaddr_sa_len=no
16775 fi
16776
16777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16778 fi
16779
16780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16781 fi
16782 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16783 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
16784 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
16785
16786 cat >>confdefs.h <<_ACEOF
16787 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16788 _ACEOF
16789
16790
16791 fi
16792
16793 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
16794 $as_echo_n "checking for struct addrinfo... " >&6; }
16795 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
16796   $as_echo_n "(cached) " >&6
16797 else
16798   ac_cv_type_struct_addrinfo=no
16799 cat >conftest.$ac_ext <<_ACEOF
16800 /* confdefs.h.  */
16801 _ACEOF
16802 cat confdefs.h >>conftest.$ac_ext
16803 cat >>conftest.$ac_ext <<_ACEOF
16804 /* end confdefs.h.  */
16805 #include <sys/types.h>
16806 #include <sys/socket.h>
16807 #include <netdb.h>
16808
16809
16810 int
16811 main ()
16812 {
16813 if (sizeof (struct addrinfo))
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 #include <sys/types.h>
16844 #include <sys/socket.h>
16845 #include <netdb.h>
16846
16847
16848 int
16849 main ()
16850 {
16851 if (sizeof ((struct addrinfo)))
16852           return 0;
16853   ;
16854   return 0;
16855 }
16856 _ACEOF
16857 rm -f conftest.$ac_objext
16858 if { (ac_try="$ac_compile"
16859 case "(($ac_try" in
16860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16861   *) ac_try_echo=$ac_try;;
16862 esac
16863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16864 $as_echo "$ac_try_echo") >&5
16865   (eval "$ac_compile") 2>conftest.er1
16866   ac_status=$?
16867   grep -v '^ *+' conftest.er1 >conftest.err
16868   rm -f conftest.er1
16869   cat conftest.err >&5
16870   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871   (exit $ac_status); } && {
16872          test -z "$ac_c_werror_flag" ||
16873          test ! -s conftest.err
16874        } && test -s conftest.$ac_objext; then
16875   :
16876 else
16877   $as_echo "$as_me: failed program was:" >&5
16878 sed 's/^/| /' conftest.$ac_ext >&5
16879
16880         ac_cv_type_struct_addrinfo=yes
16881 fi
16882
16883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16884 else
16885   $as_echo "$as_me: failed program was:" >&5
16886 sed 's/^/| /' conftest.$ac_ext >&5
16887
16888
16889 fi
16890
16891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16892 fi
16893 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
16894 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
16895 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
16896
16897 cat >>confdefs.h <<_ACEOF
16898 #define HAVE_STRUCT_ADDRINFO 1
16899 _ACEOF
16900
16901
16902 fi
16903
16904
16905   { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
16906 $as_echo_n "checking for intptr_t... " >&6; }
16907 if test "${ac_cv_type_intptr_t+set}" = set; then
16908   $as_echo_n "(cached) " >&6
16909 else
16910   ac_cv_type_intptr_t=no
16911 cat >conftest.$ac_ext <<_ACEOF
16912 /* confdefs.h.  */
16913 _ACEOF
16914 cat confdefs.h >>conftest.$ac_ext
16915 cat >>conftest.$ac_ext <<_ACEOF
16916 /* end confdefs.h.  */
16917 $ac_includes_default
16918 int
16919 main ()
16920 {
16921 if (sizeof (intptr_t))
16922        return 0;
16923   ;
16924   return 0;
16925 }
16926 _ACEOF
16927 rm -f conftest.$ac_objext
16928 if { (ac_try="$ac_compile"
16929 case "(($ac_try" in
16930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931   *) ac_try_echo=$ac_try;;
16932 esac
16933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16934 $as_echo "$ac_try_echo") >&5
16935   (eval "$ac_compile") 2>conftest.er1
16936   ac_status=$?
16937   grep -v '^ *+' conftest.er1 >conftest.err
16938   rm -f conftest.er1
16939   cat conftest.err >&5
16940   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941   (exit $ac_status); } && {
16942          test -z "$ac_c_werror_flag" ||
16943          test ! -s conftest.err
16944        } && test -s conftest.$ac_objext; then
16945   cat >conftest.$ac_ext <<_ACEOF
16946 /* confdefs.h.  */
16947 _ACEOF
16948 cat confdefs.h >>conftest.$ac_ext
16949 cat >>conftest.$ac_ext <<_ACEOF
16950 /* end confdefs.h.  */
16951 $ac_includes_default
16952 int
16953 main ()
16954 {
16955 if (sizeof ((intptr_t)))
16956           return 0;
16957   ;
16958   return 0;
16959 }
16960 _ACEOF
16961 rm -f conftest.$ac_objext
16962 if { (ac_try="$ac_compile"
16963 case "(($ac_try" in
16964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16965   *) ac_try_echo=$ac_try;;
16966 esac
16967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16968 $as_echo "$ac_try_echo") >&5
16969   (eval "$ac_compile") 2>conftest.er1
16970   ac_status=$?
16971   grep -v '^ *+' conftest.er1 >conftest.err
16972   rm -f conftest.er1
16973   cat conftest.err >&5
16974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975   (exit $ac_status); } && {
16976          test -z "$ac_c_werror_flag" ||
16977          test ! -s conftest.err
16978        } && test -s conftest.$ac_objext; then
16979   :
16980 else
16981   $as_echo "$as_me: failed program was:" >&5
16982 sed 's/^/| /' conftest.$ac_ext >&5
16983
16984         ac_cv_type_intptr_t=yes
16985 fi
16986
16987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16988 else
16989   $as_echo "$as_me: failed program was:" >&5
16990 sed 's/^/| /' conftest.$ac_ext >&5
16991
16992
16993 fi
16994
16995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16996 fi
16997 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
16998 $as_echo "$ac_cv_type_intptr_t" >&6; }
16999 if test "x$ac_cv_type_intptr_t" = x""yes; then
17000
17001 cat >>confdefs.h <<\_ACEOF
17002 #define HAVE_INTPTR_T 1
17003 _ACEOF
17004
17005 else
17006   for ac_type in 'int' 'long int' 'long long int'; do
17007        cat >conftest.$ac_ext <<_ACEOF
17008 /* confdefs.h.  */
17009 _ACEOF
17010 cat confdefs.h >>conftest.$ac_ext
17011 cat >>conftest.$ac_ext <<_ACEOF
17012 /* end confdefs.h.  */
17013 $ac_includes_default
17014 int
17015 main ()
17016 {
17017 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17018 test_array [0] = 0
17019
17020   ;
17021   return 0;
17022 }
17023 _ACEOF
17024 rm -f conftest.$ac_objext
17025 if { (ac_try="$ac_compile"
17026 case "(($ac_try" in
17027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028   *) ac_try_echo=$ac_try;;
17029 esac
17030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17031 $as_echo "$ac_try_echo") >&5
17032   (eval "$ac_compile") 2>conftest.er1
17033   ac_status=$?
17034   grep -v '^ *+' conftest.er1 >conftest.err
17035   rm -f conftest.er1
17036   cat conftest.err >&5
17037   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038   (exit $ac_status); } && {
17039          test -z "$ac_c_werror_flag" ||
17040          test ! -s conftest.err
17041        } && test -s conftest.$ac_objext; then
17042
17043 cat >>confdefs.h <<_ACEOF
17044 #define intptr_t $ac_type
17045 _ACEOF
17046
17047           ac_type=
17048 else
17049   $as_echo "$as_me: failed program was:" >&5
17050 sed 's/^/| /' conftest.$ac_ext >&5
17051
17052
17053 fi
17054
17055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17056        test -z "$ac_type" && break
17057      done
17058 fi
17059
17060
17061
17062   { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
17063 $as_echo_n "checking for uintptr_t... " >&6; }
17064 if test "${ac_cv_type_uintptr_t+set}" = set; then
17065   $as_echo_n "(cached) " >&6
17066 else
17067   ac_cv_type_uintptr_t=no
17068 cat >conftest.$ac_ext <<_ACEOF
17069 /* confdefs.h.  */
17070 _ACEOF
17071 cat confdefs.h >>conftest.$ac_ext
17072 cat >>conftest.$ac_ext <<_ACEOF
17073 /* end confdefs.h.  */
17074 $ac_includes_default
17075 int
17076 main ()
17077 {
17078 if (sizeof (uintptr_t))
17079        return 0;
17080   ;
17081   return 0;
17082 }
17083 _ACEOF
17084 rm -f conftest.$ac_objext
17085 if { (ac_try="$ac_compile"
17086 case "(($ac_try" in
17087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088   *) ac_try_echo=$ac_try;;
17089 esac
17090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17091 $as_echo "$ac_try_echo") >&5
17092   (eval "$ac_compile") 2>conftest.er1
17093   ac_status=$?
17094   grep -v '^ *+' conftest.er1 >conftest.err
17095   rm -f conftest.er1
17096   cat conftest.err >&5
17097   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098   (exit $ac_status); } && {
17099          test -z "$ac_c_werror_flag" ||
17100          test ! -s conftest.err
17101        } && test -s conftest.$ac_objext; then
17102   cat >conftest.$ac_ext <<_ACEOF
17103 /* confdefs.h.  */
17104 _ACEOF
17105 cat confdefs.h >>conftest.$ac_ext
17106 cat >>conftest.$ac_ext <<_ACEOF
17107 /* end confdefs.h.  */
17108 $ac_includes_default
17109 int
17110 main ()
17111 {
17112 if (sizeof ((uintptr_t)))
17113           return 0;
17114   ;
17115   return 0;
17116 }
17117 _ACEOF
17118 rm -f conftest.$ac_objext
17119 if { (ac_try="$ac_compile"
17120 case "(($ac_try" in
17121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17122   *) ac_try_echo=$ac_try;;
17123 esac
17124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17125 $as_echo "$ac_try_echo") >&5
17126   (eval "$ac_compile") 2>conftest.er1
17127   ac_status=$?
17128   grep -v '^ *+' conftest.er1 >conftest.err
17129   rm -f conftest.er1
17130   cat conftest.err >&5
17131   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132   (exit $ac_status); } && {
17133          test -z "$ac_c_werror_flag" ||
17134          test ! -s conftest.err
17135        } && test -s conftest.$ac_objext; then
17136   :
17137 else
17138   $as_echo "$as_me: failed program was:" >&5
17139 sed 's/^/| /' conftest.$ac_ext >&5
17140
17141         ac_cv_type_uintptr_t=yes
17142 fi
17143
17144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17145 else
17146   $as_echo "$as_me: failed program was:" >&5
17147 sed 's/^/| /' conftest.$ac_ext >&5
17148
17149
17150 fi
17151
17152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17153 fi
17154 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
17155 $as_echo "$ac_cv_type_uintptr_t" >&6; }
17156 if test "x$ac_cv_type_uintptr_t" = x""yes; then
17157
17158 cat >>confdefs.h <<\_ACEOF
17159 #define HAVE_UINTPTR_T 1
17160 _ACEOF
17161
17162 else
17163   for ac_type in 'unsigned int' 'unsigned long int' \
17164         'unsigned long long int'; do
17165        cat >conftest.$ac_ext <<_ACEOF
17166 /* confdefs.h.  */
17167 _ACEOF
17168 cat confdefs.h >>conftest.$ac_ext
17169 cat >>conftest.$ac_ext <<_ACEOF
17170 /* end confdefs.h.  */
17171 $ac_includes_default
17172 int
17173 main ()
17174 {
17175 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17176 test_array [0] = 0
17177
17178   ;
17179   return 0;
17180 }
17181 _ACEOF
17182 rm -f conftest.$ac_objext
17183 if { (ac_try="$ac_compile"
17184 case "(($ac_try" in
17185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17186   *) ac_try_echo=$ac_try;;
17187 esac
17188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17189 $as_echo "$ac_try_echo") >&5
17190   (eval "$ac_compile") 2>conftest.er1
17191   ac_status=$?
17192   grep -v '^ *+' conftest.er1 >conftest.err
17193   rm -f conftest.er1
17194   cat conftest.err >&5
17195   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196   (exit $ac_status); } && {
17197          test -z "$ac_c_werror_flag" ||
17198          test ! -s conftest.err
17199        } && test -s conftest.$ac_objext; then
17200
17201 cat >>confdefs.h <<_ACEOF
17202 #define uintptr_t $ac_type
17203 _ACEOF
17204
17205           ac_type=
17206 else
17207   $as_echo "$as_me: failed program was:" >&5
17208 sed 's/^/| /' conftest.$ac_ext >&5
17209
17210
17211 fi
17212
17213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17214        test -z "$ac_type" && break
17215      done
17216 fi
17217
17218
17219
17220   { $as_echo "$as_me:$LINENO: checking for long long int" >&5
17221 $as_echo_n "checking for long long int... " >&6; }
17222 if test "${ac_cv_type_long_long_int+set}" = set; then
17223   $as_echo_n "(cached) " >&6
17224 else
17225   cat >conftest.$ac_ext <<_ACEOF
17226
17227   /* confdefs.h.  */
17228 _ACEOF
17229 cat confdefs.h >>conftest.$ac_ext
17230 cat >>conftest.$ac_ext <<_ACEOF
17231 /* end confdefs.h.  */
17232 /* For now, do not test the preprocessor; as of 2007 there are too many
17233          implementations with broken preprocessors.  Perhaps this can
17234          be revisited in 2012.  In the meantime, code should not expect
17235          #if to work with literals wider than 32 bits.  */
17236       /* Test literals.  */
17237       long long int ll = 9223372036854775807ll;
17238       long long int nll = -9223372036854775807LL;
17239       unsigned long long int ull = 18446744073709551615ULL;
17240       /* Test constant expressions.   */
17241       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17242                      ? 1 : -1)];
17243       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17244                      ? 1 : -1)];
17245       int i = 63;
17246 int
17247 main ()
17248 {
17249 /* Test availability of runtime routines for shift and division.  */
17250       long long int llmax = 9223372036854775807ll;
17251       unsigned long long int ullmax = 18446744073709551615ull;
17252       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17253               | (llmax / ll) | (llmax % ll)
17254               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17255               | (ullmax / ull) | (ullmax % ull));
17256   ;
17257   return 0;
17258 }
17259
17260 _ACEOF
17261 rm -f conftest.$ac_objext conftest$ac_exeext
17262 if { (ac_try="$ac_link"
17263 case "(($ac_try" in
17264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265   *) ac_try_echo=$ac_try;;
17266 esac
17267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17268 $as_echo "$ac_try_echo") >&5
17269   (eval "$ac_link") 2>conftest.er1
17270   ac_status=$?
17271   grep -v '^ *+' conftest.er1 >conftest.err
17272   rm -f conftest.er1
17273   cat conftest.err >&5
17274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275   (exit $ac_status); } && {
17276          test -z "$ac_c_werror_flag" ||
17277          test ! -s conftest.err
17278        } && test -s conftest$ac_exeext && {
17279          test "$cross_compiling" = yes ||
17280          $as_test_x conftest$ac_exeext
17281        }; then
17282                         if test "$cross_compiling" = yes; then
17283   ac_cv_type_long_long_int=yes
17284 else
17285   cat >conftest.$ac_ext <<_ACEOF
17286 /* confdefs.h.  */
17287 _ACEOF
17288 cat confdefs.h >>conftest.$ac_ext
17289 cat >>conftest.$ac_ext <<_ACEOF
17290 /* end confdefs.h.  */
17291 #include <limits.h>
17292                #ifndef LLONG_MAX
17293                # define HALF \
17294                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17295                # define LLONG_MAX (HALF - 1 + HALF)
17296                #endif
17297 int
17298 main ()
17299 {
17300 long long int n = 1;
17301                int i;
17302                for (i = 0; ; i++)
17303                  {
17304                    long long int m = n << i;
17305                    if (m >> i != n)
17306                      return 1;
17307                    if (LLONG_MAX / 2 < m)
17308                      break;
17309                  }
17310                return 0;
17311   ;
17312   return 0;
17313 }
17314 _ACEOF
17315 rm -f conftest$ac_exeext
17316 if { (ac_try="$ac_link"
17317 case "(($ac_try" in
17318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17319   *) ac_try_echo=$ac_try;;
17320 esac
17321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17322 $as_echo "$ac_try_echo") >&5
17323   (eval "$ac_link") 2>&5
17324   ac_status=$?
17325   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
17334   ac_status=$?
17335   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336   (exit $ac_status); }; }; then
17337   ac_cv_type_long_long_int=yes
17338 else
17339   $as_echo "$as_me: program exited with status $ac_status" >&5
17340 $as_echo "$as_me: failed program was:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17342
17343 ( exit $ac_status )
17344 ac_cv_type_long_long_int=no
17345 fi
17346 rm -rf conftest.dSYM
17347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17348 fi
17349
17350
17351 else
17352   $as_echo "$as_me: failed program was:" >&5
17353 sed 's/^/| /' conftest.$ac_ext >&5
17354
17355         ac_cv_type_long_long_int=no
17356 fi
17357
17358 rm -rf conftest.dSYM
17359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17360       conftest$ac_exeext conftest.$ac_ext
17361 fi
17362 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
17363 $as_echo "$ac_cv_type_long_long_int" >&6; }
17364   if test $ac_cv_type_long_long_int = yes; then
17365
17366 cat >>confdefs.h <<\_ACEOF
17367 #define HAVE_LONG_LONG_INT 1
17368 _ACEOF
17369
17370   fi
17371
17372
17373 { $as_echo "$as_me:$LINENO: checking for locale_t" >&5
17374 $as_echo_n "checking for locale_t... " >&6; }
17375 if test "${pgac_cv_type_locale_t+set}" = set; then
17376   $as_echo_n "(cached) " >&6
17377 else
17378   cat >conftest.$ac_ext <<_ACEOF
17379 /* confdefs.h.  */
17380 _ACEOF
17381 cat confdefs.h >>conftest.$ac_ext
17382 cat >>conftest.$ac_ext <<_ACEOF
17383 /* end confdefs.h.  */
17384 #include <locale.h>
17385 locale_t x;
17386 int
17387 main ()
17388 {
17389
17390   ;
17391   return 0;
17392 }
17393 _ACEOF
17394 rm -f conftest.$ac_objext
17395 if { (ac_try="$ac_compile"
17396 case "(($ac_try" in
17397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17398   *) ac_try_echo=$ac_try;;
17399 esac
17400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17401 $as_echo "$ac_try_echo") >&5
17402   (eval "$ac_compile") 2>conftest.er1
17403   ac_status=$?
17404   grep -v '^ *+' conftest.er1 >conftest.err
17405   rm -f conftest.er1
17406   cat conftest.err >&5
17407   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408   (exit $ac_status); } && {
17409          test -z "$ac_c_werror_flag" ||
17410          test ! -s conftest.err
17411        } && test -s conftest.$ac_objext; then
17412   pgac_cv_type_locale_t=yes
17413 else
17414   $as_echo "$as_me: failed program was:" >&5
17415 sed 's/^/| /' conftest.$ac_ext >&5
17416
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 <xlocale.h>
17424 locale_t x;
17425 int
17426 main ()
17427 {
17428
17429   ;
17430   return 0;
17431 }
17432 _ACEOF
17433 rm -f conftest.$ac_objext
17434 if { (ac_try="$ac_compile"
17435 case "(($ac_try" in
17436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17437   *) ac_try_echo=$ac_try;;
17438 esac
17439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17440 $as_echo "$ac_try_echo") >&5
17441   (eval "$ac_compile") 2>conftest.er1
17442   ac_status=$?
17443   grep -v '^ *+' conftest.er1 >conftest.err
17444   rm -f conftest.er1
17445   cat conftest.err >&5
17446   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447   (exit $ac_status); } && {
17448          test -z "$ac_c_werror_flag" ||
17449          test ! -s conftest.err
17450        } && test -s conftest.$ac_objext; then
17451   pgac_cv_type_locale_t='yes (in xlocale.h)'
17452 else
17453   $as_echo "$as_me: failed program was:" >&5
17454 sed 's/^/| /' conftest.$ac_ext >&5
17455
17456         pgac_cv_type_locale_t=no
17457 fi
17458
17459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17460 fi
17461
17462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17463 fi
17464 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_locale_t" >&5
17465 $as_echo "$pgac_cv_type_locale_t" >&6; }
17466 if test "$pgac_cv_type_locale_t" != no; then
17467
17468 cat >>confdefs.h <<\_ACEOF
17469 #define HAVE_LOCALE_T 1
17470 _ACEOF
17471
17472 fi
17473 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
17474
17475 cat >>confdefs.h <<\_ACEOF
17476 #define LOCALE_T_IN_XLOCALE 1
17477 _ACEOF
17478
17479 fi
17480
17481 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
17482 $as_echo_n "checking for struct cmsgcred... " >&6; }
17483 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
17484   $as_echo_n "(cached) " >&6
17485 else
17486   ac_cv_type_struct_cmsgcred=no
17487 cat >conftest.$ac_ext <<_ACEOF
17488 /* confdefs.h.  */
17489 _ACEOF
17490 cat confdefs.h >>conftest.$ac_ext
17491 cat >>conftest.$ac_ext <<_ACEOF
17492 /* end confdefs.h.  */
17493 #include <sys/socket.h>
17494 #ifdef HAVE_SYS_UCRED_H
17495 #include <sys/ucred.h>
17496 #endif
17497
17498 int
17499 main ()
17500 {
17501 if (sizeof (struct cmsgcred))
17502        return 0;
17503   ;
17504   return 0;
17505 }
17506 _ACEOF
17507 rm -f conftest.$ac_objext
17508 if { (ac_try="$ac_compile"
17509 case "(($ac_try" in
17510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17511   *) ac_try_echo=$ac_try;;
17512 esac
17513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17514 $as_echo "$ac_try_echo") >&5
17515   (eval "$ac_compile") 2>conftest.er1
17516   ac_status=$?
17517   grep -v '^ *+' conftest.er1 >conftest.err
17518   rm -f conftest.er1
17519   cat conftest.err >&5
17520   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521   (exit $ac_status); } && {
17522          test -z "$ac_c_werror_flag" ||
17523          test ! -s conftest.err
17524        } && test -s conftest.$ac_objext; then
17525   cat >conftest.$ac_ext <<_ACEOF
17526 /* confdefs.h.  */
17527 _ACEOF
17528 cat confdefs.h >>conftest.$ac_ext
17529 cat >>conftest.$ac_ext <<_ACEOF
17530 /* end confdefs.h.  */
17531 #include <sys/socket.h>
17532 #ifdef HAVE_SYS_UCRED_H
17533 #include <sys/ucred.h>
17534 #endif
17535
17536 int
17537 main ()
17538 {
17539 if (sizeof ((struct cmsgcred)))
17540           return 0;
17541   ;
17542   return 0;
17543 }
17544 _ACEOF
17545 rm -f conftest.$ac_objext
17546 if { (ac_try="$ac_compile"
17547 case "(($ac_try" in
17548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17549   *) ac_try_echo=$ac_try;;
17550 esac
17551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17552 $as_echo "$ac_try_echo") >&5
17553   (eval "$ac_compile") 2>conftest.er1
17554   ac_status=$?
17555   grep -v '^ *+' conftest.er1 >conftest.err
17556   rm -f conftest.er1
17557   cat conftest.err >&5
17558   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559   (exit $ac_status); } && {
17560          test -z "$ac_c_werror_flag" ||
17561          test ! -s conftest.err
17562        } && test -s conftest.$ac_objext; then
17563   :
17564 else
17565   $as_echo "$as_me: failed program was:" >&5
17566 sed 's/^/| /' conftest.$ac_ext >&5
17567
17568         ac_cv_type_struct_cmsgcred=yes
17569 fi
17570
17571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17572 else
17573   $as_echo "$as_me: failed program was:" >&5
17574 sed 's/^/| /' conftest.$ac_ext >&5
17575
17576
17577 fi
17578
17579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17580 fi
17581 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
17582 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
17583 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
17584
17585 cat >>confdefs.h <<_ACEOF
17586 #define HAVE_STRUCT_CMSGCRED 1
17587 _ACEOF
17588
17589
17590 fi
17591
17592
17593 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
17594 $as_echo_n "checking for struct option... " >&6; }
17595 if test "${ac_cv_type_struct_option+set}" = set; then
17596   $as_echo_n "(cached) " >&6
17597 else
17598   ac_cv_type_struct_option=no
17599 cat >conftest.$ac_ext <<_ACEOF
17600 /* confdefs.h.  */
17601 _ACEOF
17602 cat confdefs.h >>conftest.$ac_ext
17603 cat >>conftest.$ac_ext <<_ACEOF
17604 /* end confdefs.h.  */
17605 #ifdef HAVE_GETOPT_H
17606 #include <getopt.h>
17607 #endif
17608
17609 int
17610 main ()
17611 {
17612 if (sizeof (struct option))
17613        return 0;
17614   ;
17615   return 0;
17616 }
17617 _ACEOF
17618 rm -f conftest.$ac_objext
17619 if { (ac_try="$ac_compile"
17620 case "(($ac_try" in
17621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17622   *) ac_try_echo=$ac_try;;
17623 esac
17624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17625 $as_echo "$ac_try_echo") >&5
17626   (eval "$ac_compile") 2>conftest.er1
17627   ac_status=$?
17628   grep -v '^ *+' conftest.er1 >conftest.err
17629   rm -f conftest.er1
17630   cat conftest.err >&5
17631   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632   (exit $ac_status); } && {
17633          test -z "$ac_c_werror_flag" ||
17634          test ! -s conftest.err
17635        } && test -s conftest.$ac_objext; then
17636   cat >conftest.$ac_ext <<_ACEOF
17637 /* confdefs.h.  */
17638 _ACEOF
17639 cat confdefs.h >>conftest.$ac_ext
17640 cat >>conftest.$ac_ext <<_ACEOF
17641 /* end confdefs.h.  */
17642 #ifdef HAVE_GETOPT_H
17643 #include <getopt.h>
17644 #endif
17645
17646 int
17647 main ()
17648 {
17649 if (sizeof ((struct option)))
17650           return 0;
17651   ;
17652   return 0;
17653 }
17654 _ACEOF
17655 rm -f conftest.$ac_objext
17656 if { (ac_try="$ac_compile"
17657 case "(($ac_try" in
17658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17659   *) ac_try_echo=$ac_try;;
17660 esac
17661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17662 $as_echo "$ac_try_echo") >&5
17663   (eval "$ac_compile") 2>conftest.er1
17664   ac_status=$?
17665   grep -v '^ *+' conftest.er1 >conftest.err
17666   rm -f conftest.er1
17667   cat conftest.err >&5
17668   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669   (exit $ac_status); } && {
17670          test -z "$ac_c_werror_flag" ||
17671          test ! -s conftest.err
17672        } && test -s conftest.$ac_objext; then
17673   :
17674 else
17675   $as_echo "$as_me: failed program was:" >&5
17676 sed 's/^/| /' conftest.$ac_ext >&5
17677
17678         ac_cv_type_struct_option=yes
17679 fi
17680
17681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17682 else
17683   $as_echo "$as_me: failed program was:" >&5
17684 sed 's/^/| /' conftest.$ac_ext >&5
17685
17686
17687 fi
17688
17689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17690 fi
17691 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
17692 $as_echo "$ac_cv_type_struct_option" >&6; }
17693 if test "x$ac_cv_type_struct_option" = x""yes; then
17694
17695 cat >>confdefs.h <<_ACEOF
17696 #define HAVE_STRUCT_OPTION 1
17697 _ACEOF
17698
17699
17700 fi
17701
17702
17703 if test "$with_zlib" = yes; then
17704   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
17705   # did not).  While we could work around the lack of z_streamp, it
17706   # seems unwise to encourage people to use such old zlib versions...
17707   { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
17708 $as_echo_n "checking for z_streamp... " >&6; }
17709 if test "${ac_cv_type_z_streamp+set}" = set; then
17710   $as_echo_n "(cached) " >&6
17711 else
17712   ac_cv_type_z_streamp=no
17713 cat >conftest.$ac_ext <<_ACEOF
17714 /* confdefs.h.  */
17715 _ACEOF
17716 cat confdefs.h >>conftest.$ac_ext
17717 cat >>conftest.$ac_ext <<_ACEOF
17718 /* end confdefs.h.  */
17719 #include <zlib.h>
17720
17721 int
17722 main ()
17723 {
17724 if (sizeof (z_streamp))
17725        return 0;
17726   ;
17727   return 0;
17728 }
17729 _ACEOF
17730 rm -f conftest.$ac_objext
17731 if { (ac_try="$ac_compile"
17732 case "(($ac_try" in
17733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17734   *) ac_try_echo=$ac_try;;
17735 esac
17736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17737 $as_echo "$ac_try_echo") >&5
17738   (eval "$ac_compile") 2>conftest.er1
17739   ac_status=$?
17740   grep -v '^ *+' conftest.er1 >conftest.err
17741   rm -f conftest.er1
17742   cat conftest.err >&5
17743   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744   (exit $ac_status); } && {
17745          test -z "$ac_c_werror_flag" ||
17746          test ! -s conftest.err
17747        } && test -s conftest.$ac_objext; then
17748   cat >conftest.$ac_ext <<_ACEOF
17749 /* confdefs.h.  */
17750 _ACEOF
17751 cat confdefs.h >>conftest.$ac_ext
17752 cat >>conftest.$ac_ext <<_ACEOF
17753 /* end confdefs.h.  */
17754 #include <zlib.h>
17755
17756 int
17757 main ()
17758 {
17759 if (sizeof ((z_streamp)))
17760           return 0;
17761   ;
17762   return 0;
17763 }
17764 _ACEOF
17765 rm -f conftest.$ac_objext
17766 if { (ac_try="$ac_compile"
17767 case "(($ac_try" in
17768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17769   *) ac_try_echo=$ac_try;;
17770 esac
17771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17772 $as_echo "$ac_try_echo") >&5
17773   (eval "$ac_compile") 2>conftest.er1
17774   ac_status=$?
17775   grep -v '^ *+' conftest.er1 >conftest.err
17776   rm -f conftest.er1
17777   cat conftest.err >&5
17778   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779   (exit $ac_status); } && {
17780          test -z "$ac_c_werror_flag" ||
17781          test ! -s conftest.err
17782        } && test -s conftest.$ac_objext; then
17783   :
17784 else
17785   $as_echo "$as_me: failed program was:" >&5
17786 sed 's/^/| /' conftest.$ac_ext >&5
17787
17788         ac_cv_type_z_streamp=yes
17789 fi
17790
17791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17792 else
17793   $as_echo "$as_me: failed program was:" >&5
17794 sed 's/^/| /' conftest.$ac_ext >&5
17795
17796
17797 fi
17798
17799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17800 fi
17801 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
17802 $as_echo "$ac_cv_type_z_streamp" >&6; }
17803 if test "x$ac_cv_type_z_streamp" = x""yes; then
17804   :
17805 else
17806   { { $as_echo "$as_me:$LINENO: error: zlib version is too old
17807 Use --without-zlib to disable zlib support." >&5
17808 $as_echo "$as_me: error: zlib version is too old
17809 Use --without-zlib to disable zlib support." >&2;}
17810    { (exit 1); exit 1; }; }
17811 fi
17812
17813 fi
17814
17815 if test "$with_krb5" = yes; then
17816 # Check for differences between MIT and Heimdal (KTH) releases
17817   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
17818 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
17819 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
17820   $as_echo_n "(cached) " >&6
17821 else
17822   cat >conftest.$ac_ext <<_ACEOF
17823 /* confdefs.h.  */
17824 _ACEOF
17825 cat confdefs.h >>conftest.$ac_ext
17826 cat >>conftest.$ac_ext <<_ACEOF
17827 /* end confdefs.h.  */
17828 #include <krb5.h>
17829
17830 int
17831 main ()
17832 {
17833 static krb5_ticket ac_aggr;
17834 if (ac_aggr.enc_part2)
17835 return 0;
17836   ;
17837   return 0;
17838 }
17839 _ACEOF
17840 rm -f conftest.$ac_objext
17841 if { (ac_try="$ac_compile"
17842 case "(($ac_try" in
17843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17844   *) ac_try_echo=$ac_try;;
17845 esac
17846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17847 $as_echo "$ac_try_echo") >&5
17848   (eval "$ac_compile") 2>conftest.er1
17849   ac_status=$?
17850   grep -v '^ *+' conftest.er1 >conftest.err
17851   rm -f conftest.er1
17852   cat conftest.err >&5
17853   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854   (exit $ac_status); } && {
17855          test -z "$ac_c_werror_flag" ||
17856          test ! -s conftest.err
17857        } && test -s conftest.$ac_objext; then
17858   ac_cv_member_krb5_ticket_enc_part2=yes
17859 else
17860   $as_echo "$as_me: failed program was:" >&5
17861 sed 's/^/| /' conftest.$ac_ext >&5
17862
17863         cat >conftest.$ac_ext <<_ACEOF
17864 /* confdefs.h.  */
17865 _ACEOF
17866 cat confdefs.h >>conftest.$ac_ext
17867 cat >>conftest.$ac_ext <<_ACEOF
17868 /* end confdefs.h.  */
17869 #include <krb5.h>
17870
17871 int
17872 main ()
17873 {
17874 static krb5_ticket ac_aggr;
17875 if (sizeof ac_aggr.enc_part2)
17876 return 0;
17877   ;
17878   return 0;
17879 }
17880 _ACEOF
17881 rm -f conftest.$ac_objext
17882 if { (ac_try="$ac_compile"
17883 case "(($ac_try" in
17884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17885   *) ac_try_echo=$ac_try;;
17886 esac
17887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17888 $as_echo "$ac_try_echo") >&5
17889   (eval "$ac_compile") 2>conftest.er1
17890   ac_status=$?
17891   grep -v '^ *+' conftest.er1 >conftest.err
17892   rm -f conftest.er1
17893   cat conftest.err >&5
17894   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895   (exit $ac_status); } && {
17896          test -z "$ac_c_werror_flag" ||
17897          test ! -s conftest.err
17898        } && test -s conftest.$ac_objext; then
17899   ac_cv_member_krb5_ticket_enc_part2=yes
17900 else
17901   $as_echo "$as_me: failed program was:" >&5
17902 sed 's/^/| /' conftest.$ac_ext >&5
17903
17904         ac_cv_member_krb5_ticket_enc_part2=no
17905 fi
17906
17907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17908 fi
17909
17910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17911 fi
17912 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
17913 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
17914 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
17915
17916 cat >>confdefs.h <<_ACEOF
17917 #define HAVE_KRB5_TICKET_ENC_PART2 1
17918 _ACEOF
17919
17920
17921 else
17922   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
17923 $as_echo_n "checking for krb5_ticket.client... " >&6; }
17924 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
17925   $as_echo_n "(cached) " >&6
17926 else
17927   cat >conftest.$ac_ext <<_ACEOF
17928 /* confdefs.h.  */
17929 _ACEOF
17930 cat confdefs.h >>conftest.$ac_ext
17931 cat >>conftest.$ac_ext <<_ACEOF
17932 /* end confdefs.h.  */
17933 #include <krb5.h>
17934
17935 int
17936 main ()
17937 {
17938 static krb5_ticket ac_aggr;
17939 if (ac_aggr.client)
17940 return 0;
17941   ;
17942   return 0;
17943 }
17944 _ACEOF
17945 rm -f conftest.$ac_objext
17946 if { (ac_try="$ac_compile"
17947 case "(($ac_try" in
17948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17949   *) ac_try_echo=$ac_try;;
17950 esac
17951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17952 $as_echo "$ac_try_echo") >&5
17953   (eval "$ac_compile") 2>conftest.er1
17954   ac_status=$?
17955   grep -v '^ *+' conftest.er1 >conftest.err
17956   rm -f conftest.er1
17957   cat conftest.err >&5
17958   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959   (exit $ac_status); } && {
17960          test -z "$ac_c_werror_flag" ||
17961          test ! -s conftest.err
17962        } && test -s conftest.$ac_objext; then
17963   ac_cv_member_krb5_ticket_client=yes
17964 else
17965   $as_echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17967
17968         cat >conftest.$ac_ext <<_ACEOF
17969 /* confdefs.h.  */
17970 _ACEOF
17971 cat confdefs.h >>conftest.$ac_ext
17972 cat >>conftest.$ac_ext <<_ACEOF
17973 /* end confdefs.h.  */
17974 #include <krb5.h>
17975
17976 int
17977 main ()
17978 {
17979 static krb5_ticket ac_aggr;
17980 if (sizeof ac_aggr.client)
17981 return 0;
17982   ;
17983   return 0;
17984 }
17985 _ACEOF
17986 rm -f conftest.$ac_objext
17987 if { (ac_try="$ac_compile"
17988 case "(($ac_try" in
17989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17990   *) ac_try_echo=$ac_try;;
17991 esac
17992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17993 $as_echo "$ac_try_echo") >&5
17994   (eval "$ac_compile") 2>conftest.er1
17995   ac_status=$?
17996   grep -v '^ *+' conftest.er1 >conftest.err
17997   rm -f conftest.er1
17998   cat conftest.err >&5
17999   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000   (exit $ac_status); } && {
18001          test -z "$ac_c_werror_flag" ||
18002          test ! -s conftest.err
18003        } && test -s conftest.$ac_objext; then
18004   ac_cv_member_krb5_ticket_client=yes
18005 else
18006   $as_echo "$as_me: failed program was:" >&5
18007 sed 's/^/| /' conftest.$ac_ext >&5
18008
18009         ac_cv_member_krb5_ticket_client=no
18010 fi
18011
18012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18013 fi
18014
18015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18016 fi
18017 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
18018 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
18019 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
18020
18021 cat >>confdefs.h <<_ACEOF
18022 #define HAVE_KRB5_TICKET_CLIENT 1
18023 _ACEOF
18024
18025
18026 else
18027   { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
18028 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
18029    { (exit 1); exit 1; }; }
18030 fi
18031
18032 fi
18033
18034   { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
18035 $as_echo_n "checking for krb5_error.text.data... " >&6; }
18036 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
18037   $as_echo_n "(cached) " >&6
18038 else
18039   cat >conftest.$ac_ext <<_ACEOF
18040 /* confdefs.h.  */
18041 _ACEOF
18042 cat confdefs.h >>conftest.$ac_ext
18043 cat >>conftest.$ac_ext <<_ACEOF
18044 /* end confdefs.h.  */
18045 #include <krb5.h>
18046
18047 int
18048 main ()
18049 {
18050 static krb5_error ac_aggr;
18051 if (ac_aggr.text.data)
18052 return 0;
18053   ;
18054   return 0;
18055 }
18056 _ACEOF
18057 rm -f conftest.$ac_objext
18058 if { (ac_try="$ac_compile"
18059 case "(($ac_try" in
18060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18061   *) ac_try_echo=$ac_try;;
18062 esac
18063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18064 $as_echo "$ac_try_echo") >&5
18065   (eval "$ac_compile") 2>conftest.er1
18066   ac_status=$?
18067   grep -v '^ *+' conftest.er1 >conftest.err
18068   rm -f conftest.er1
18069   cat conftest.err >&5
18070   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071   (exit $ac_status); } && {
18072          test -z "$ac_c_werror_flag" ||
18073          test ! -s conftest.err
18074        } && test -s conftest.$ac_objext; then
18075   ac_cv_member_krb5_error_text_data=yes
18076 else
18077   $as_echo "$as_me: failed program was:" >&5
18078 sed 's/^/| /' conftest.$ac_ext >&5
18079
18080         cat >conftest.$ac_ext <<_ACEOF
18081 /* confdefs.h.  */
18082 _ACEOF
18083 cat confdefs.h >>conftest.$ac_ext
18084 cat >>conftest.$ac_ext <<_ACEOF
18085 /* end confdefs.h.  */
18086 #include <krb5.h>
18087
18088 int
18089 main ()
18090 {
18091 static krb5_error ac_aggr;
18092 if (sizeof ac_aggr.text.data)
18093 return 0;
18094   ;
18095   return 0;
18096 }
18097 _ACEOF
18098 rm -f conftest.$ac_objext
18099 if { (ac_try="$ac_compile"
18100 case "(($ac_try" in
18101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18102   *) ac_try_echo=$ac_try;;
18103 esac
18104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18105 $as_echo "$ac_try_echo") >&5
18106   (eval "$ac_compile") 2>conftest.er1
18107   ac_status=$?
18108   grep -v '^ *+' conftest.er1 >conftest.err
18109   rm -f conftest.er1
18110   cat conftest.err >&5
18111   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112   (exit $ac_status); } && {
18113          test -z "$ac_c_werror_flag" ||
18114          test ! -s conftest.err
18115        } && test -s conftest.$ac_objext; then
18116   ac_cv_member_krb5_error_text_data=yes
18117 else
18118   $as_echo "$as_me: failed program was:" >&5
18119 sed 's/^/| /' conftest.$ac_ext >&5
18120
18121         ac_cv_member_krb5_error_text_data=no
18122 fi
18123
18124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18125 fi
18126
18127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18128 fi
18129 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
18130 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
18131 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
18132
18133 cat >>confdefs.h <<_ACEOF
18134 #define HAVE_KRB5_ERROR_TEXT_DATA 1
18135 _ACEOF
18136
18137
18138 else
18139   { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
18140 $as_echo_n "checking for krb5_error.e_data... " >&6; }
18141 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
18142   $as_echo_n "(cached) " >&6
18143 else
18144   cat >conftest.$ac_ext <<_ACEOF
18145 /* confdefs.h.  */
18146 _ACEOF
18147 cat confdefs.h >>conftest.$ac_ext
18148 cat >>conftest.$ac_ext <<_ACEOF
18149 /* end confdefs.h.  */
18150 #include <krb5.h>
18151
18152 int
18153 main ()
18154 {
18155 static krb5_error ac_aggr;
18156 if (ac_aggr.e_data)
18157 return 0;
18158   ;
18159   return 0;
18160 }
18161 _ACEOF
18162 rm -f conftest.$ac_objext
18163 if { (ac_try="$ac_compile"
18164 case "(($ac_try" in
18165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166   *) ac_try_echo=$ac_try;;
18167 esac
18168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18169 $as_echo "$ac_try_echo") >&5
18170   (eval "$ac_compile") 2>conftest.er1
18171   ac_status=$?
18172   grep -v '^ *+' conftest.er1 >conftest.err
18173   rm -f conftest.er1
18174   cat conftest.err >&5
18175   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176   (exit $ac_status); } && {
18177          test -z "$ac_c_werror_flag" ||
18178          test ! -s conftest.err
18179        } && test -s conftest.$ac_objext; then
18180   ac_cv_member_krb5_error_e_data=yes
18181 else
18182   $as_echo "$as_me: failed program was:" >&5
18183 sed 's/^/| /' conftest.$ac_ext >&5
18184
18185         cat >conftest.$ac_ext <<_ACEOF
18186 /* confdefs.h.  */
18187 _ACEOF
18188 cat confdefs.h >>conftest.$ac_ext
18189 cat >>conftest.$ac_ext <<_ACEOF
18190 /* end confdefs.h.  */
18191 #include <krb5.h>
18192
18193 int
18194 main ()
18195 {
18196 static krb5_error ac_aggr;
18197 if (sizeof ac_aggr.e_data)
18198 return 0;
18199   ;
18200   return 0;
18201 }
18202 _ACEOF
18203 rm -f conftest.$ac_objext
18204 if { (ac_try="$ac_compile"
18205 case "(($ac_try" in
18206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18207   *) ac_try_echo=$ac_try;;
18208 esac
18209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18210 $as_echo "$ac_try_echo") >&5
18211   (eval "$ac_compile") 2>conftest.er1
18212   ac_status=$?
18213   grep -v '^ *+' conftest.er1 >conftest.err
18214   rm -f conftest.er1
18215   cat conftest.err >&5
18216   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217   (exit $ac_status); } && {
18218          test -z "$ac_c_werror_flag" ||
18219          test ! -s conftest.err
18220        } && test -s conftest.$ac_objext; then
18221   ac_cv_member_krb5_error_e_data=yes
18222 else
18223   $as_echo "$as_me: failed program was:" >&5
18224 sed 's/^/| /' conftest.$ac_ext >&5
18225
18226         ac_cv_member_krb5_error_e_data=no
18227 fi
18228
18229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18230 fi
18231
18232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18233 fi
18234 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
18235 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
18236 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
18237
18238 cat >>confdefs.h <<_ACEOF
18239 #define HAVE_KRB5_ERROR_E_DATA 1
18240 _ACEOF
18241
18242
18243 else
18244   { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
18245 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
18246    { (exit 1); exit 1; }; }
18247 fi
18248
18249 fi
18250
18251
18252 # Win32 requires headers to be loaded for __stdcall, so can't use
18253 # AC_CHECK_FUNCS here.
18254   { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
18255 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
18256   cat >conftest.$ac_ext <<_ACEOF
18257 /* confdefs.h.  */
18258 _ACEOF
18259 cat confdefs.h >>conftest.$ac_ext
18260 cat >>conftest.$ac_ext <<_ACEOF
18261 /* end confdefs.h.  */
18262 #include <krb5.h>
18263 int
18264 main ()
18265 {
18266 krb5_free_unparsed_name(NULL,NULL);
18267   ;
18268   return 0;
18269 }
18270 _ACEOF
18271 rm -f conftest.$ac_objext conftest$ac_exeext
18272 if { (ac_try="$ac_link"
18273 case "(($ac_try" in
18274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18275   *) ac_try_echo=$ac_try;;
18276 esac
18277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18278 $as_echo "$ac_try_echo") >&5
18279   (eval "$ac_link") 2>conftest.er1
18280   ac_status=$?
18281   grep -v '^ *+' conftest.er1 >conftest.err
18282   rm -f conftest.er1
18283   cat conftest.err >&5
18284   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285   (exit $ac_status); } && {
18286          test -z "$ac_c_werror_flag" ||
18287          test ! -s conftest.err
18288        } && test -s conftest$ac_exeext && {
18289          test "$cross_compiling" = yes ||
18290          $as_test_x conftest$ac_exeext
18291        }; then
18292
18293 cat >>confdefs.h <<\_ACEOF
18294 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
18295 _ACEOF
18296
18297 { $as_echo "$as_me:$LINENO: result: yes" >&5
18298 $as_echo "yes" >&6; }
18299 else
18300   $as_echo "$as_me: failed program was:" >&5
18301 sed 's/^/| /' conftest.$ac_ext >&5
18302
18303         { $as_echo "$as_me:$LINENO: result: no" >&5
18304 $as_echo "no" >&6; }
18305 fi
18306
18307 rm -rf conftest.dSYM
18308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18309       conftest$ac_exeext conftest.$ac_ext
18310 fi
18311
18312 # On PPC, check if assembler supports LWARX instruction's mutex hint bit
18313 case $host_cpu in
18314   ppc*|powerpc*)
18315     { $as_echo "$as_me:$LINENO: checking whether assembler supports lwarx hint bit" >&5
18316 $as_echo_n "checking whether assembler supports lwarx hint bit... " >&6; }
18317     cat >conftest.$ac_ext <<_ACEOF
18318 /* confdefs.h.  */
18319 _ACEOF
18320 cat confdefs.h >>conftest.$ac_ext
18321 cat >>conftest.$ac_ext <<_ACEOF
18322 /* end confdefs.h.  */
18323
18324 int
18325 main ()
18326 {
18327 int a = 0; int *p = &a; int r;
18328          __asm__ __volatile__ (" lwarx %0,0,%1,1\n" : "=&r"(r) : "r"(p));
18329   ;
18330   return 0;
18331 }
18332 _ACEOF
18333 rm -f conftest.$ac_objext
18334 if { (ac_try="$ac_compile"
18335 case "(($ac_try" in
18336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18337   *) ac_try_echo=$ac_try;;
18338 esac
18339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18340 $as_echo "$ac_try_echo") >&5
18341   (eval "$ac_compile") 2>conftest.er1
18342   ac_status=$?
18343   grep -v '^ *+' conftest.er1 >conftest.err
18344   rm -f conftest.er1
18345   cat conftest.err >&5
18346   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347   (exit $ac_status); } && {
18348          test -z "$ac_c_werror_flag" ||
18349          test ! -s conftest.err
18350        } && test -s conftest.$ac_objext; then
18351   pgac_cv_have_ppc_mutex_hint=yes
18352 else
18353   $as_echo "$as_me: failed program was:" >&5
18354 sed 's/^/| /' conftest.$ac_ext >&5
18355
18356         pgac_cv_have_ppc_mutex_hint=no
18357 fi
18358
18359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18360     { $as_echo "$as_me:$LINENO: result: $pgac_cv_have_ppc_mutex_hint" >&5
18361 $as_echo "$pgac_cv_have_ppc_mutex_hint" >&6; }
18362     if test x"$pgac_cv_have_ppc_mutex_hint" = xyes ; then
18363
18364 cat >>confdefs.h <<\_ACEOF
18365 #define HAVE_PPC_LWARX_MUTEX_HINT 1
18366 _ACEOF
18367
18368     fi
18369   ;;
18370 esac
18371
18372 # Check largefile support.  You might think this is a system service not a
18373 # compiler characteristic, but you'd be wrong.  We must check this before
18374 # probing existence of related functions such as fseeko, since the largefile
18375 # defines can affect what is generated for that.
18376 if test "$PORTNAME" != "win32"; then
18377    # Check whether --enable-largefile was given.
18378 if test "${enable_largefile+set}" = set; then
18379   enableval=$enable_largefile;
18380 fi
18381
18382 if test "$enable_largefile" != no; then
18383
18384   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
18385 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18386 if test "${ac_cv_sys_largefile_CC+set}" = set; then
18387   $as_echo_n "(cached) " >&6
18388 else
18389   ac_cv_sys_largefile_CC=no
18390      if test "$GCC" != yes; then
18391        ac_save_CC=$CC
18392        while :; do
18393          # IRIX 6.2 and later do not support large files by default,
18394          # so use the C compiler's -n32 option if that helps.
18395          cat >conftest.$ac_ext <<_ACEOF
18396 /* confdefs.h.  */
18397 _ACEOF
18398 cat confdefs.h >>conftest.$ac_ext
18399 cat >>conftest.$ac_ext <<_ACEOF
18400 /* end confdefs.h.  */
18401 #include <sys/types.h>
18402  /* Check that off_t can represent 2**63 - 1 correctly.
18403     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18404     since some C++ compilers masquerading as C compilers
18405     incorrectly reject 9223372036854775807.  */
18406 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18407   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18408                        && LARGE_OFF_T % 2147483647 == 1)
18409                       ? 1 : -1];
18410 int
18411 main ()
18412 {
18413
18414   ;
18415   return 0;
18416 }
18417 _ACEOF
18418          rm -f conftest.$ac_objext
18419 if { (ac_try="$ac_compile"
18420 case "(($ac_try" in
18421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18422   *) ac_try_echo=$ac_try;;
18423 esac
18424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18425 $as_echo "$ac_try_echo") >&5
18426   (eval "$ac_compile") 2>conftest.er1
18427   ac_status=$?
18428   grep -v '^ *+' conftest.er1 >conftest.err
18429   rm -f conftest.er1
18430   cat conftest.err >&5
18431   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432   (exit $ac_status); } && {
18433          test -z "$ac_c_werror_flag" ||
18434          test ! -s conftest.err
18435        } && test -s conftest.$ac_objext; then
18436   break
18437 else
18438   $as_echo "$as_me: failed program was:" >&5
18439 sed 's/^/| /' conftest.$ac_ext >&5
18440
18441
18442 fi
18443
18444 rm -f core conftest.err conftest.$ac_objext
18445          CC="$CC -n32"
18446          rm -f conftest.$ac_objext
18447 if { (ac_try="$ac_compile"
18448 case "(($ac_try" in
18449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450   *) ac_try_echo=$ac_try;;
18451 esac
18452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18453 $as_echo "$ac_try_echo") >&5
18454   (eval "$ac_compile") 2>conftest.er1
18455   ac_status=$?
18456   grep -v '^ *+' conftest.er1 >conftest.err
18457   rm -f conftest.er1
18458   cat conftest.err >&5
18459   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460   (exit $ac_status); } && {
18461          test -z "$ac_c_werror_flag" ||
18462          test ! -s conftest.err
18463        } && test -s conftest.$ac_objext; then
18464   ac_cv_sys_largefile_CC=' -n32'; break
18465 else
18466   $as_echo "$as_me: failed program was:" >&5
18467 sed 's/^/| /' conftest.$ac_ext >&5
18468
18469
18470 fi
18471
18472 rm -f core conftest.err conftest.$ac_objext
18473          break
18474        done
18475        CC=$ac_save_CC
18476        rm -f conftest.$ac_ext
18477     fi
18478 fi
18479 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
18480 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
18481   if test "$ac_cv_sys_largefile_CC" != no; then
18482     CC=$CC$ac_cv_sys_largefile_CC
18483   fi
18484
18485   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18486 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18487 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18488   $as_echo_n "(cached) " >&6
18489 else
18490   while :; do
18491   cat >conftest.$ac_ext <<_ACEOF
18492 /* confdefs.h.  */
18493 _ACEOF
18494 cat confdefs.h >>conftest.$ac_ext
18495 cat >>conftest.$ac_ext <<_ACEOF
18496 /* end confdefs.h.  */
18497 #include <sys/types.h>
18498  /* Check that off_t can represent 2**63 - 1 correctly.
18499     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18500     since some C++ compilers masquerading as C compilers
18501     incorrectly reject 9223372036854775807.  */
18502 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18503   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18504                        && LARGE_OFF_T % 2147483647 == 1)
18505                       ? 1 : -1];
18506 int
18507 main ()
18508 {
18509
18510   ;
18511   return 0;
18512 }
18513 _ACEOF
18514 rm -f conftest.$ac_objext
18515 if { (ac_try="$ac_compile"
18516 case "(($ac_try" in
18517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18518   *) ac_try_echo=$ac_try;;
18519 esac
18520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18521 $as_echo "$ac_try_echo") >&5
18522   (eval "$ac_compile") 2>conftest.er1
18523   ac_status=$?
18524   grep -v '^ *+' conftest.er1 >conftest.err
18525   rm -f conftest.er1
18526   cat conftest.err >&5
18527   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528   (exit $ac_status); } && {
18529          test -z "$ac_c_werror_flag" ||
18530          test ! -s conftest.err
18531        } && test -s conftest.$ac_objext; then
18532   ac_cv_sys_file_offset_bits=no; break
18533 else
18534   $as_echo "$as_me: failed program was:" >&5
18535 sed 's/^/| /' conftest.$ac_ext >&5
18536
18537
18538 fi
18539
18540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18541   cat >conftest.$ac_ext <<_ACEOF
18542 /* confdefs.h.  */
18543 _ACEOF
18544 cat confdefs.h >>conftest.$ac_ext
18545 cat >>conftest.$ac_ext <<_ACEOF
18546 /* end confdefs.h.  */
18547 #define _FILE_OFFSET_BITS 64
18548 #include <sys/types.h>
18549  /* Check that off_t can represent 2**63 - 1 correctly.
18550     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18551     since some C++ compilers masquerading as C compilers
18552     incorrectly reject 9223372036854775807.  */
18553 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18554   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18555                        && LARGE_OFF_T % 2147483647 == 1)
18556                       ? 1 : -1];
18557 int
18558 main ()
18559 {
18560
18561   ;
18562   return 0;
18563 }
18564 _ACEOF
18565 rm -f conftest.$ac_objext
18566 if { (ac_try="$ac_compile"
18567 case "(($ac_try" in
18568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18569   *) ac_try_echo=$ac_try;;
18570 esac
18571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18572 $as_echo "$ac_try_echo") >&5
18573   (eval "$ac_compile") 2>conftest.er1
18574   ac_status=$?
18575   grep -v '^ *+' conftest.er1 >conftest.err
18576   rm -f conftest.er1
18577   cat conftest.err >&5
18578   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579   (exit $ac_status); } && {
18580          test -z "$ac_c_werror_flag" ||
18581          test ! -s conftest.err
18582        } && test -s conftest.$ac_objext; then
18583   ac_cv_sys_file_offset_bits=64; break
18584 else
18585   $as_echo "$as_me: failed program was:" >&5
18586 sed 's/^/| /' conftest.$ac_ext >&5
18587
18588
18589 fi
18590
18591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18592   ac_cv_sys_file_offset_bits=unknown
18593   break
18594 done
18595 fi
18596 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18597 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18598 case $ac_cv_sys_file_offset_bits in #(
18599   no | unknown) ;;
18600   *)
18601 cat >>confdefs.h <<_ACEOF
18602 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18603 _ACEOF
18604 ;;
18605 esac
18606 rm -rf conftest*
18607   if test $ac_cv_sys_file_offset_bits = unknown; then
18608     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18609 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18610 if test "${ac_cv_sys_large_files+set}" = set; then
18611   $as_echo_n "(cached) " >&6
18612 else
18613   while :; do
18614   cat >conftest.$ac_ext <<_ACEOF
18615 /* confdefs.h.  */
18616 _ACEOF
18617 cat confdefs.h >>conftest.$ac_ext
18618 cat >>conftest.$ac_ext <<_ACEOF
18619 /* end confdefs.h.  */
18620 #include <sys/types.h>
18621  /* Check that off_t can represent 2**63 - 1 correctly.
18622     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18623     since some C++ compilers masquerading as C compilers
18624     incorrectly reject 9223372036854775807.  */
18625 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18626   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18627                        && LARGE_OFF_T % 2147483647 == 1)
18628                       ? 1 : -1];
18629 int
18630 main ()
18631 {
18632
18633   ;
18634   return 0;
18635 }
18636 _ACEOF
18637 rm -f conftest.$ac_objext
18638 if { (ac_try="$ac_compile"
18639 case "(($ac_try" in
18640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18641   *) ac_try_echo=$ac_try;;
18642 esac
18643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18644 $as_echo "$ac_try_echo") >&5
18645   (eval "$ac_compile") 2>conftest.er1
18646   ac_status=$?
18647   grep -v '^ *+' conftest.er1 >conftest.err
18648   rm -f conftest.er1
18649   cat conftest.err >&5
18650   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651   (exit $ac_status); } && {
18652          test -z "$ac_c_werror_flag" ||
18653          test ! -s conftest.err
18654        } && test -s conftest.$ac_objext; then
18655   ac_cv_sys_large_files=no; break
18656 else
18657   $as_echo "$as_me: failed program was:" >&5
18658 sed 's/^/| /' conftest.$ac_ext >&5
18659
18660
18661 fi
18662
18663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18664   cat >conftest.$ac_ext <<_ACEOF
18665 /* confdefs.h.  */
18666 _ACEOF
18667 cat confdefs.h >>conftest.$ac_ext
18668 cat >>conftest.$ac_ext <<_ACEOF
18669 /* end confdefs.h.  */
18670 #define _LARGE_FILES 1
18671 #include <sys/types.h>
18672  /* Check that off_t can represent 2**63 - 1 correctly.
18673     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18674     since some C++ compilers masquerading as C compilers
18675     incorrectly reject 9223372036854775807.  */
18676 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18677   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18678                        && LARGE_OFF_T % 2147483647 == 1)
18679                       ? 1 : -1];
18680 int
18681 main ()
18682 {
18683
18684   ;
18685   return 0;
18686 }
18687 _ACEOF
18688 rm -f conftest.$ac_objext
18689 if { (ac_try="$ac_compile"
18690 case "(($ac_try" in
18691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18692   *) ac_try_echo=$ac_try;;
18693 esac
18694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18695 $as_echo "$ac_try_echo") >&5
18696   (eval "$ac_compile") 2>conftest.er1
18697   ac_status=$?
18698   grep -v '^ *+' conftest.er1 >conftest.err
18699   rm -f conftest.er1
18700   cat conftest.err >&5
18701   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702   (exit $ac_status); } && {
18703          test -z "$ac_c_werror_flag" ||
18704          test ! -s conftest.err
18705        } && test -s conftest.$ac_objext; then
18706   ac_cv_sys_large_files=1; break
18707 else
18708   $as_echo "$as_me: failed program was:" >&5
18709 sed 's/^/| /' conftest.$ac_ext >&5
18710
18711
18712 fi
18713
18714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18715   ac_cv_sys_large_files=unknown
18716   break
18717 done
18718 fi
18719 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18720 $as_echo "$ac_cv_sys_large_files" >&6; }
18721 case $ac_cv_sys_large_files in #(
18722   no | unknown) ;;
18723   *)
18724 cat >>confdefs.h <<_ACEOF
18725 #define _LARGE_FILES $ac_cv_sys_large_files
18726 _ACEOF
18727 ;;
18728 esac
18729 rm -rf conftest*
18730   fi
18731 fi
18732
18733 fi
18734
18735 # Check for largefile support (must be after AC_SYS_LARGEFILE)
18736 # The cast to long int works around a bug in the HP C Compiler
18737 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18738 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18739 # This bug is HP SR number 8606223364.
18740 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
18741 $as_echo_n "checking size of off_t... " >&6; }
18742 if test "${ac_cv_sizeof_off_t+set}" = set; then
18743   $as_echo_n "(cached) " >&6
18744 else
18745   if test "$cross_compiling" = yes; then
18746   # Depending upon the size, compute the lo and hi bounds.
18747 cat >conftest.$ac_ext <<_ACEOF
18748 /* confdefs.h.  */
18749 _ACEOF
18750 cat confdefs.h >>conftest.$ac_ext
18751 cat >>conftest.$ac_ext <<_ACEOF
18752 /* end confdefs.h.  */
18753 $ac_includes_default
18754 int
18755 main ()
18756 {
18757 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
18758 test_array [0] = 0
18759
18760   ;
18761   return 0;
18762 }
18763 _ACEOF
18764 rm -f conftest.$ac_objext
18765 if { (ac_try="$ac_compile"
18766 case "(($ac_try" in
18767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18768   *) ac_try_echo=$ac_try;;
18769 esac
18770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18771 $as_echo "$ac_try_echo") >&5
18772   (eval "$ac_compile") 2>conftest.er1
18773   ac_status=$?
18774   grep -v '^ *+' conftest.er1 >conftest.err
18775   rm -f conftest.er1
18776   cat conftest.err >&5
18777   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778   (exit $ac_status); } && {
18779          test -z "$ac_c_werror_flag" ||
18780          test ! -s conftest.err
18781        } && test -s conftest.$ac_objext; then
18782   ac_lo=0 ac_mid=0
18783   while :; do
18784     cat >conftest.$ac_ext <<_ACEOF
18785 /* confdefs.h.  */
18786 _ACEOF
18787 cat confdefs.h >>conftest.$ac_ext
18788 cat >>conftest.$ac_ext <<_ACEOF
18789 /* end confdefs.h.  */
18790 $ac_includes_default
18791 int
18792 main ()
18793 {
18794 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18795 test_array [0] = 0
18796
18797   ;
18798   return 0;
18799 }
18800 _ACEOF
18801 rm -f conftest.$ac_objext
18802 if { (ac_try="$ac_compile"
18803 case "(($ac_try" in
18804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18805   *) ac_try_echo=$ac_try;;
18806 esac
18807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18808 $as_echo "$ac_try_echo") >&5
18809   (eval "$ac_compile") 2>conftest.er1
18810   ac_status=$?
18811   grep -v '^ *+' conftest.er1 >conftest.err
18812   rm -f conftest.er1
18813   cat conftest.err >&5
18814   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815   (exit $ac_status); } && {
18816          test -z "$ac_c_werror_flag" ||
18817          test ! -s conftest.err
18818        } && test -s conftest.$ac_objext; then
18819   ac_hi=$ac_mid; break
18820 else
18821   $as_echo "$as_me: failed program was:" >&5
18822 sed 's/^/| /' conftest.$ac_ext >&5
18823
18824         ac_lo=`expr $ac_mid + 1`
18825                         if test $ac_lo -le $ac_mid; then
18826                           ac_lo= ac_hi=
18827                           break
18828                         fi
18829                         ac_mid=`expr 2 '*' $ac_mid + 1`
18830 fi
18831
18832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18833   done
18834 else
18835   $as_echo "$as_me: failed program was:" >&5
18836 sed 's/^/| /' conftest.$ac_ext >&5
18837
18838         cat >conftest.$ac_ext <<_ACEOF
18839 /* confdefs.h.  */
18840 _ACEOF
18841 cat confdefs.h >>conftest.$ac_ext
18842 cat >>conftest.$ac_ext <<_ACEOF
18843 /* end confdefs.h.  */
18844 $ac_includes_default
18845 int
18846 main ()
18847 {
18848 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
18849 test_array [0] = 0
18850
18851   ;
18852   return 0;
18853 }
18854 _ACEOF
18855 rm -f conftest.$ac_objext
18856 if { (ac_try="$ac_compile"
18857 case "(($ac_try" in
18858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18859   *) ac_try_echo=$ac_try;;
18860 esac
18861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18862 $as_echo "$ac_try_echo") >&5
18863   (eval "$ac_compile") 2>conftest.er1
18864   ac_status=$?
18865   grep -v '^ *+' conftest.er1 >conftest.err
18866   rm -f conftest.er1
18867   cat conftest.err >&5
18868   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869   (exit $ac_status); } && {
18870          test -z "$ac_c_werror_flag" ||
18871          test ! -s conftest.err
18872        } && test -s conftest.$ac_objext; then
18873   ac_hi=-1 ac_mid=-1
18874   while :; do
18875     cat >conftest.$ac_ext <<_ACEOF
18876 /* confdefs.h.  */
18877 _ACEOF
18878 cat confdefs.h >>conftest.$ac_ext
18879 cat >>conftest.$ac_ext <<_ACEOF
18880 /* end confdefs.h.  */
18881 $ac_includes_default
18882 int
18883 main ()
18884 {
18885 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
18886 test_array [0] = 0
18887
18888   ;
18889   return 0;
18890 }
18891 _ACEOF
18892 rm -f conftest.$ac_objext
18893 if { (ac_try="$ac_compile"
18894 case "(($ac_try" in
18895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18896   *) ac_try_echo=$ac_try;;
18897 esac
18898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18899 $as_echo "$ac_try_echo") >&5
18900   (eval "$ac_compile") 2>conftest.er1
18901   ac_status=$?
18902   grep -v '^ *+' conftest.er1 >conftest.err
18903   rm -f conftest.er1
18904   cat conftest.err >&5
18905   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906   (exit $ac_status); } && {
18907          test -z "$ac_c_werror_flag" ||
18908          test ! -s conftest.err
18909        } && test -s conftest.$ac_objext; then
18910   ac_lo=$ac_mid; break
18911 else
18912   $as_echo "$as_me: failed program was:" >&5
18913 sed 's/^/| /' conftest.$ac_ext >&5
18914
18915         ac_hi=`expr '(' $ac_mid ')' - 1`
18916                         if test $ac_mid -le $ac_hi; then
18917                           ac_lo= ac_hi=
18918                           break
18919                         fi
18920                         ac_mid=`expr 2 '*' $ac_mid`
18921 fi
18922
18923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18924   done
18925 else
18926   $as_echo "$as_me: failed program was:" >&5
18927 sed 's/^/| /' conftest.$ac_ext >&5
18928
18929         ac_lo= ac_hi=
18930 fi
18931
18932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18933 fi
18934
18935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18936 # Binary search between lo and hi bounds.
18937 while test "x$ac_lo" != "x$ac_hi"; do
18938   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18939   cat >conftest.$ac_ext <<_ACEOF
18940 /* confdefs.h.  */
18941 _ACEOF
18942 cat confdefs.h >>conftest.$ac_ext
18943 cat >>conftest.$ac_ext <<_ACEOF
18944 /* end confdefs.h.  */
18945 $ac_includes_default
18946 int
18947 main ()
18948 {
18949 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18950 test_array [0] = 0
18951
18952   ;
18953   return 0;
18954 }
18955 _ACEOF
18956 rm -f conftest.$ac_objext
18957 if { (ac_try="$ac_compile"
18958 case "(($ac_try" in
18959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960   *) ac_try_echo=$ac_try;;
18961 esac
18962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18963 $as_echo "$ac_try_echo") >&5
18964   (eval "$ac_compile") 2>conftest.er1
18965   ac_status=$?
18966   grep -v '^ *+' conftest.er1 >conftest.err
18967   rm -f conftest.er1
18968   cat conftest.err >&5
18969   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970   (exit $ac_status); } && {
18971          test -z "$ac_c_werror_flag" ||
18972          test ! -s conftest.err
18973        } && test -s conftest.$ac_objext; then
18974   ac_hi=$ac_mid
18975 else
18976   $as_echo "$as_me: failed program was:" >&5
18977 sed 's/^/| /' conftest.$ac_ext >&5
18978
18979         ac_lo=`expr '(' $ac_mid ')' + 1`
18980 fi
18981
18982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18983 done
18984 case $ac_lo in
18985 ?*) ac_cv_sizeof_off_t=$ac_lo;;
18986 '') if test "$ac_cv_type_off_t" = yes; then
18987      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18989 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18990 See \`config.log' for more details." >&5
18991 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18992 See \`config.log' for more details." >&2;}
18993    { (exit 77); exit 77; }; }; }
18994    else
18995      ac_cv_sizeof_off_t=0
18996    fi ;;
18997 esac
18998 else
18999   cat >conftest.$ac_ext <<_ACEOF
19000 /* confdefs.h.  */
19001 _ACEOF
19002 cat confdefs.h >>conftest.$ac_ext
19003 cat >>conftest.$ac_ext <<_ACEOF
19004 /* end confdefs.h.  */
19005 $ac_includes_default
19006 static long int longval () { return (long int) (sizeof (off_t)); }
19007 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
19008 #include <stdio.h>
19009 #include <stdlib.h>
19010 int
19011 main ()
19012 {
19013
19014   FILE *f = fopen ("conftest.val", "w");
19015   if (! f)
19016     return 1;
19017   if (((long int) (sizeof (off_t))) < 0)
19018     {
19019       long int i = longval ();
19020       if (i != ((long int) (sizeof (off_t))))
19021         return 1;
19022       fprintf (f, "%ld", i);
19023     }
19024   else
19025     {
19026       unsigned long int i = ulongval ();
19027       if (i != ((long int) (sizeof (off_t))))
19028         return 1;
19029       fprintf (f, "%lu", i);
19030     }
19031   /* Do not output a trailing newline, as this causes \r\n confusion
19032      on some platforms.  */
19033   return ferror (f) || fclose (f) != 0;
19034
19035   ;
19036   return 0;
19037 }
19038 _ACEOF
19039 rm -f conftest$ac_exeext
19040 if { (ac_try="$ac_link"
19041 case "(($ac_try" in
19042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19043   *) ac_try_echo=$ac_try;;
19044 esac
19045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19046 $as_echo "$ac_try_echo") >&5
19047   (eval "$ac_link") 2>&5
19048   ac_status=$?
19049   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19051   { (case "(($ac_try" in
19052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19053   *) ac_try_echo=$ac_try;;
19054 esac
19055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19056 $as_echo "$ac_try_echo") >&5
19057   (eval "$ac_try") 2>&5
19058   ac_status=$?
19059   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060   (exit $ac_status); }; }; then
19061   ac_cv_sizeof_off_t=`cat conftest.val`
19062 else
19063   $as_echo "$as_me: program exited with status $ac_status" >&5
19064 $as_echo "$as_me: failed program was:" >&5
19065 sed 's/^/| /' conftest.$ac_ext >&5
19066
19067 ( exit $ac_status )
19068 if test "$ac_cv_type_off_t" = yes; then
19069      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19071 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
19072 See \`config.log' for more details." >&5
19073 $as_echo "$as_me: error: cannot compute sizeof (off_t)
19074 See \`config.log' for more details." >&2;}
19075    { (exit 77); exit 77; }; }; }
19076    else
19077      ac_cv_sizeof_off_t=0
19078    fi
19079 fi
19080 rm -rf conftest.dSYM
19081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19082 fi
19083 rm -f conftest.val
19084 fi
19085 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
19086 $as_echo "$ac_cv_sizeof_off_t" >&6; }
19087
19088
19089
19090 cat >>confdefs.h <<_ACEOF
19091 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
19092 _ACEOF
19093
19094
19095
19096 # If we don't have largefile support, can't handle segsize >= 2GB.
19097 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
19098    { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
19099 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
19100    { (exit 1); exit 1; }; }
19101 fi
19102
19103
19104 ##
19105 ## Functions, global variables
19106 ##
19107
19108 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
19109 $as_echo_n "checking for int timezone... " >&6; }
19110 if test "${pgac_cv_var_int_timezone+set}" = set; then
19111   $as_echo_n "(cached) " >&6
19112 else
19113   cat >conftest.$ac_ext <<_ACEOF
19114 /* confdefs.h.  */
19115 _ACEOF
19116 cat confdefs.h >>conftest.$ac_ext
19117 cat >>conftest.$ac_ext <<_ACEOF
19118 /* end confdefs.h.  */
19119 #include <time.h>
19120 int res;
19121 int
19122 main ()
19123 {
19124 #ifndef __CYGWIN__
19125 res = timezone / 60;
19126 #else
19127 res = _timezone / 60;
19128 #endif
19129   ;
19130   return 0;
19131 }
19132 _ACEOF
19133 rm -f conftest.$ac_objext conftest$ac_exeext
19134 if { (ac_try="$ac_link"
19135 case "(($ac_try" in
19136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19137   *) ac_try_echo=$ac_try;;
19138 esac
19139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19140 $as_echo "$ac_try_echo") >&5
19141   (eval "$ac_link") 2>conftest.er1
19142   ac_status=$?
19143   grep -v '^ *+' conftest.er1 >conftest.err
19144   rm -f conftest.er1
19145   cat conftest.err >&5
19146   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147   (exit $ac_status); } && {
19148          test -z "$ac_c_werror_flag" ||
19149          test ! -s conftest.err
19150        } && test -s conftest$ac_exeext && {
19151          test "$cross_compiling" = yes ||
19152          $as_test_x conftest$ac_exeext
19153        }; then
19154   pgac_cv_var_int_timezone=yes
19155 else
19156   $as_echo "$as_me: failed program was:" >&5
19157 sed 's/^/| /' conftest.$ac_ext >&5
19158
19159         pgac_cv_var_int_timezone=no
19160 fi
19161
19162 rm -rf conftest.dSYM
19163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19164       conftest$ac_exeext conftest.$ac_ext
19165 fi
19166 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
19167 $as_echo "$pgac_cv_var_int_timezone" >&6; }
19168 if test x"$pgac_cv_var_int_timezone" = xyes ; then
19169
19170 cat >>confdefs.h <<\_ACEOF
19171 #define HAVE_INT_TIMEZONE /**/
19172 _ACEOF
19173
19174 fi
19175 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
19176 $as_echo_n "checking types of arguments for accept()... " >&6; }
19177  if test "${ac_cv_func_accept_return+set}" = set; then
19178   $as_echo_n "(cached) " >&6
19179 else
19180    if test "${ac_cv_func_accept_arg1+set}" = set; then
19181   $as_echo_n "(cached) " >&6
19182 else
19183     if test "${ac_cv_func_accept_arg2+set}" = set; then
19184   $as_echo_n "(cached) " >&6
19185 else
19186      if test "${ac_cv_func_accept_arg3+set}" = set; then
19187   $as_echo_n "(cached) " >&6
19188 else
19189       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET WSAAPI'; do
19190       for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
19191        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
19192         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
19193          cat >conftest.$ac_ext <<_ACEOF
19194 /* confdefs.h.  */
19195 _ACEOF
19196 cat confdefs.h >>conftest.$ac_ext
19197 cat >>conftest.$ac_ext <<_ACEOF
19198 /* end confdefs.h.  */
19199 #ifdef HAVE_SYS_TYPES_H
19200 #include <sys/types.h>
19201 #endif
19202 #ifdef HAVE_SYS_SOCKET_H
19203 #include <sys/socket.h>
19204 #endif
19205 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
19206 int
19207 main ()
19208 {
19209
19210   ;
19211   return 0;
19212 }
19213 _ACEOF
19214 rm -f conftest.$ac_objext
19215 if { (ac_try="$ac_compile"
19216 case "(($ac_try" in
19217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19218   *) ac_try_echo=$ac_try;;
19219 esac
19220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19221 $as_echo "$ac_try_echo") >&5
19222   (eval "$ac_compile") 2>conftest.er1
19223   ac_status=$?
19224   grep -v '^ *+' conftest.er1 >conftest.err
19225   rm -f conftest.er1
19226   cat conftest.err >&5
19227   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228   (exit $ac_status); } && {
19229          test -z "$ac_c_werror_flag" ||
19230          test ! -s conftest.err
19231        } && test -s conftest.$ac_objext; then
19232   ac_not_found=no; break 4
19233 else
19234   $as_echo "$as_me: failed program was:" >&5
19235 sed 's/^/| /' conftest.$ac_ext >&5
19236
19237         ac_not_found=yes
19238 fi
19239
19240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19241        done
19242       done
19243      done
19244     done
19245     if test "$ac_not_found" = yes; then
19246       { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
19247 $as_echo "$as_me: error: could not determine argument types" >&2;}
19248    { (exit 1); exit 1; }; }
19249     fi
19250     if test "$ac_cv_func_accept_arg3" = "void"; then
19251       ac_cv_func_accept_arg3=int
19252     fi
19253
19254 fi
19255
19256 fi
19257
19258 fi
19259
19260 fi
19261  { $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
19262 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
19263
19264 cat >>confdefs.h <<_ACEOF
19265 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
19266 _ACEOF
19267
19268
19269 cat >>confdefs.h <<_ACEOF
19270 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
19271 _ACEOF
19272
19273
19274 cat >>confdefs.h <<_ACEOF
19275 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
19276 _ACEOF
19277
19278
19279 cat >>confdefs.h <<_ACEOF
19280 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
19281 _ACEOF
19282
19283
19284 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
19285 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
19286 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
19287   $as_echo_n "(cached) " >&6
19288 else
19289   cat >conftest.$ac_ext <<_ACEOF
19290 /* confdefs.h.  */
19291 _ACEOF
19292 cat confdefs.h >>conftest.$ac_ext
19293 cat >>conftest.$ac_ext <<_ACEOF
19294 /* end confdefs.h.  */
19295 #include <sys/time.h>
19296 int
19297 main ()
19298 {
19299 struct timeval *tp;
19300 struct timezone *tzp;
19301 gettimeofday(tp,tzp);
19302   ;
19303   return 0;
19304 }
19305 _ACEOF
19306 rm -f conftest.$ac_objext
19307 if { (ac_try="$ac_compile"
19308 case "(($ac_try" in
19309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19310   *) ac_try_echo=$ac_try;;
19311 esac
19312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19313 $as_echo "$ac_try_echo") >&5
19314   (eval "$ac_compile") 2>conftest.er1
19315   ac_status=$?
19316   grep -v '^ *+' conftest.er1 >conftest.err
19317   rm -f conftest.er1
19318   cat conftest.err >&5
19319   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320   (exit $ac_status); } && {
19321          test -z "$ac_c_werror_flag" ||
19322          test ! -s conftest.err
19323        } && test -s conftest.$ac_objext; then
19324   pgac_cv_func_gettimeofday_1arg=no
19325 else
19326   $as_echo "$as_me: failed program was:" >&5
19327 sed 's/^/| /' conftest.$ac_ext >&5
19328
19329         pgac_cv_func_gettimeofday_1arg=yes
19330 fi
19331
19332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19333 fi
19334 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
19335 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
19336 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
19337
19338 cat >>confdefs.h <<\_ACEOF
19339 #define GETTIMEOFDAY_1ARG /**/
19340 _ACEOF
19341
19342 fi
19343
19344
19345
19346 # Some versions of libedit contain strlcpy(), setproctitle(), and other
19347 # symbols that that library has no business exposing to the world.  Pending
19348 # acquisition of a clue by those developers, ignore libedit (including its
19349 # possible alias of libreadline) while checking for everything else.
19350 LIBS_including_readline="$LIBS"
19351 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
19352
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374 for ac_func in cbrt dlopen fdatasync getifaddrs getpeerucred getrlimit mbstowcs_l memmove poll pstat readlink setproctitle setsid sigprocmask symlink sync_file_range towlower utime utimes wcstombs wcstombs_l
19375 do
19376 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19377 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19378 $as_echo_n "checking for $ac_func... " >&6; }
19379 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19380   $as_echo_n "(cached) " >&6
19381 else
19382   cat >conftest.$ac_ext <<_ACEOF
19383 /* confdefs.h.  */
19384 _ACEOF
19385 cat confdefs.h >>conftest.$ac_ext
19386 cat >>conftest.$ac_ext <<_ACEOF
19387 /* end confdefs.h.  */
19388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19389    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19390 #define $ac_func innocuous_$ac_func
19391
19392 /* System header to define __stub macros and hopefully few prototypes,
19393     which can conflict with char $ac_func (); below.
19394     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19395     <limits.h> exists even on freestanding compilers.  */
19396
19397 #ifdef __STDC__
19398 # include <limits.h>
19399 #else
19400 # include <assert.h>
19401 #endif
19402
19403 #undef $ac_func
19404
19405 /* Override any GCC internal prototype to avoid an error.
19406    Use char because int might match the return type of a GCC
19407    builtin and then its argument prototype would still apply.  */
19408 #ifdef __cplusplus
19409 extern "C"
19410 #endif
19411 char $ac_func ();
19412 /* The GNU C library defines this for functions which it implements
19413     to always fail with ENOSYS.  Some functions are actually named
19414     something starting with __ and the normal name is an alias.  */
19415 #if defined __stub_$ac_func || defined __stub___$ac_func
19416 choke me
19417 #endif
19418
19419 int
19420 main ()
19421 {
19422 return $ac_func ();
19423   ;
19424   return 0;
19425 }
19426 _ACEOF
19427 rm -f conftest.$ac_objext conftest$ac_exeext
19428 if { (ac_try="$ac_link"
19429 case "(($ac_try" in
19430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19431   *) ac_try_echo=$ac_try;;
19432 esac
19433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19434 $as_echo "$ac_try_echo") >&5
19435   (eval "$ac_link") 2>conftest.er1
19436   ac_status=$?
19437   grep -v '^ *+' conftest.er1 >conftest.err
19438   rm -f conftest.er1
19439   cat conftest.err >&5
19440   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441   (exit $ac_status); } && {
19442          test -z "$ac_c_werror_flag" ||
19443          test ! -s conftest.err
19444        } && test -s conftest$ac_exeext && {
19445          test "$cross_compiling" = yes ||
19446          $as_test_x conftest$ac_exeext
19447        }; then
19448   eval "$as_ac_var=yes"
19449 else
19450   $as_echo "$as_me: failed program was:" >&5
19451 sed 's/^/| /' conftest.$ac_ext >&5
19452
19453         eval "$as_ac_var=no"
19454 fi
19455
19456 rm -rf conftest.dSYM
19457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19458       conftest$ac_exeext conftest.$ac_ext
19459 fi
19460 ac_res=`eval 'as_val=${'$as_ac_var'}
19461                  $as_echo "$as_val"'`
19462                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19463 $as_echo "$ac_res" >&6; }
19464 as_val=`eval 'as_val=${'$as_ac_var'}
19465                  $as_echo "$as_val"'`
19466    if test "x$as_val" = x""yes; then
19467   cat >>confdefs.h <<_ACEOF
19468 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19469 _ACEOF
19470
19471 fi
19472 done
19473
19474
19475
19476 for ac_func in fseeko
19477 do
19478 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19479 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19480 $as_echo_n "checking for $ac_func... " >&6; }
19481 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19482   $as_echo_n "(cached) " >&6
19483 else
19484   cat >conftest.$ac_ext <<_ACEOF
19485 /* confdefs.h.  */
19486 _ACEOF
19487 cat confdefs.h >>conftest.$ac_ext
19488 cat >>conftest.$ac_ext <<_ACEOF
19489 /* end confdefs.h.  */
19490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19491    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19492 #define $ac_func innocuous_$ac_func
19493
19494 /* System header to define __stub macros and hopefully few prototypes,
19495     which can conflict with char $ac_func (); below.
19496     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19497     <limits.h> exists even on freestanding compilers.  */
19498
19499 #ifdef __STDC__
19500 # include <limits.h>
19501 #else
19502 # include <assert.h>
19503 #endif
19504
19505 #undef $ac_func
19506
19507 /* Override any GCC internal prototype to avoid an error.
19508    Use char because int might match the return type of a GCC
19509    builtin and then its argument prototype would still apply.  */
19510 #ifdef __cplusplus
19511 extern "C"
19512 #endif
19513 char $ac_func ();
19514 /* The GNU C library defines this for functions which it implements
19515     to always fail with ENOSYS.  Some functions are actually named
19516     something starting with __ and the normal name is an alias.  */
19517 #if defined __stub_$ac_func || defined __stub___$ac_func
19518 choke me
19519 #endif
19520
19521 int
19522 main ()
19523 {
19524 return $ac_func ();
19525   ;
19526   return 0;
19527 }
19528 _ACEOF
19529 rm -f conftest.$ac_objext conftest$ac_exeext
19530 if { (ac_try="$ac_link"
19531 case "(($ac_try" in
19532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19533   *) ac_try_echo=$ac_try;;
19534 esac
19535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19536 $as_echo "$ac_try_echo") >&5
19537   (eval "$ac_link") 2>conftest.er1
19538   ac_status=$?
19539   grep -v '^ *+' conftest.er1 >conftest.err
19540   rm -f conftest.er1
19541   cat conftest.err >&5
19542   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543   (exit $ac_status); } && {
19544          test -z "$ac_c_werror_flag" ||
19545          test ! -s conftest.err
19546        } && test -s conftest$ac_exeext && {
19547          test "$cross_compiling" = yes ||
19548          $as_test_x conftest$ac_exeext
19549        }; then
19550   eval "$as_ac_var=yes"
19551 else
19552   $as_echo "$as_me: failed program was:" >&5
19553 sed 's/^/| /' conftest.$ac_ext >&5
19554
19555         eval "$as_ac_var=no"
19556 fi
19557
19558 rm -rf conftest.dSYM
19559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19560       conftest$ac_exeext conftest.$ac_ext
19561 fi
19562 ac_res=`eval 'as_val=${'$as_ac_var'}
19563                  $as_echo "$as_val"'`
19564                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19565 $as_echo "$ac_res" >&6; }
19566 as_val=`eval 'as_val=${'$as_ac_var'}
19567                  $as_echo "$as_val"'`
19568    if test "x$as_val" = x""yes; then
19569   cat >>confdefs.h <<_ACEOF
19570 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19571 _ACEOF
19572
19573 else
19574   case " $LIBOBJS " in
19575   *" $ac_func.$ac_objext "* ) ;;
19576   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19577  ;;
19578 esac
19579
19580 fi
19581 done
19582
19583
19584 case $host_os in
19585         # NetBSD uses a custom fseeko/ftello built on fsetpos/fgetpos
19586         # Mingw uses macros to access Win32 API calls
19587         netbsd*|mingw*)
19588
19589 cat >>confdefs.h <<\_ACEOF
19590 #define HAVE_FSEEKO 1
19591 _ACEOF
19592
19593                 ac_cv_func_fseeko=yes;;
19594         *)
19595                 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19596 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19597 if test "${ac_cv_sys_largefile_source+set}" = set; then
19598   $as_echo_n "(cached) " >&6
19599 else
19600   while :; do
19601   cat >conftest.$ac_ext <<_ACEOF
19602 /* confdefs.h.  */
19603 _ACEOF
19604 cat confdefs.h >>conftest.$ac_ext
19605 cat >>conftest.$ac_ext <<_ACEOF
19606 /* end confdefs.h.  */
19607 #include <sys/types.h> /* for off_t */
19608      #include <stdio.h>
19609 int
19610 main ()
19611 {
19612 int (*fp) (FILE *, off_t, int) = fseeko;
19613      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19614   ;
19615   return 0;
19616 }
19617 _ACEOF
19618 rm -f conftest.$ac_objext conftest$ac_exeext
19619 if { (ac_try="$ac_link"
19620 case "(($ac_try" in
19621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19622   *) ac_try_echo=$ac_try;;
19623 esac
19624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19625 $as_echo "$ac_try_echo") >&5
19626   (eval "$ac_link") 2>conftest.er1
19627   ac_status=$?
19628   grep -v '^ *+' conftest.er1 >conftest.err
19629   rm -f conftest.er1
19630   cat conftest.err >&5
19631   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632   (exit $ac_status); } && {
19633          test -z "$ac_c_werror_flag" ||
19634          test ! -s conftest.err
19635        } && test -s conftest$ac_exeext && {
19636          test "$cross_compiling" = yes ||
19637          $as_test_x conftest$ac_exeext
19638        }; then
19639   ac_cv_sys_largefile_source=no; break
19640 else
19641   $as_echo "$as_me: failed program was:" >&5
19642 sed 's/^/| /' conftest.$ac_ext >&5
19643
19644
19645 fi
19646
19647 rm -rf conftest.dSYM
19648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19649       conftest$ac_exeext conftest.$ac_ext
19650   cat >conftest.$ac_ext <<_ACEOF
19651 /* confdefs.h.  */
19652 _ACEOF
19653 cat confdefs.h >>conftest.$ac_ext
19654 cat >>conftest.$ac_ext <<_ACEOF
19655 /* end confdefs.h.  */
19656 #define _LARGEFILE_SOURCE 1
19657 #include <sys/types.h> /* for off_t */
19658      #include <stdio.h>
19659 int
19660 main ()
19661 {
19662 int (*fp) (FILE *, off_t, int) = fseeko;
19663      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19664   ;
19665   return 0;
19666 }
19667 _ACEOF
19668 rm -f conftest.$ac_objext conftest$ac_exeext
19669 if { (ac_try="$ac_link"
19670 case "(($ac_try" in
19671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19672   *) ac_try_echo=$ac_try;;
19673 esac
19674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19675 $as_echo "$ac_try_echo") >&5
19676   (eval "$ac_link") 2>conftest.er1
19677   ac_status=$?
19678   grep -v '^ *+' conftest.er1 >conftest.err
19679   rm -f conftest.er1
19680   cat conftest.err >&5
19681   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682   (exit $ac_status); } && {
19683          test -z "$ac_c_werror_flag" ||
19684          test ! -s conftest.err
19685        } && test -s conftest$ac_exeext && {
19686          test "$cross_compiling" = yes ||
19687          $as_test_x conftest$ac_exeext
19688        }; then
19689   ac_cv_sys_largefile_source=1; break
19690 else
19691   $as_echo "$as_me: failed program was:" >&5
19692 sed 's/^/| /' conftest.$ac_ext >&5
19693
19694
19695 fi
19696
19697 rm -rf conftest.dSYM
19698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19699       conftest$ac_exeext conftest.$ac_ext
19700   ac_cv_sys_largefile_source=unknown
19701   break
19702 done
19703 fi
19704 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19705 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19706 case $ac_cv_sys_largefile_source in #(
19707   no | unknown) ;;
19708   *)
19709 cat >>confdefs.h <<_ACEOF
19710 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19711 _ACEOF
19712 ;;
19713 esac
19714 rm -rf conftest*
19715
19716 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19717 # in glibc 2.1.3, but that breaks too many other things.
19718 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19719 if test $ac_cv_sys_largefile_source != unknown; then
19720
19721 cat >>confdefs.h <<\_ACEOF
19722 #define HAVE_FSEEKO 1
19723 _ACEOF
19724
19725 fi
19726 ;;
19727 esac
19728
19729 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
19730 # by calling it, 2009-04-02
19731 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
19732 if test "$PORTNAME" != "solaris"; then
19733
19734 for ac_func in posix_fadvise
19735 do
19736 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19737 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19738 $as_echo_n "checking for $ac_func... " >&6; }
19739 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19740   $as_echo_n "(cached) " >&6
19741 else
19742   cat >conftest.$ac_ext <<_ACEOF
19743 /* confdefs.h.  */
19744 _ACEOF
19745 cat confdefs.h >>conftest.$ac_ext
19746 cat >>conftest.$ac_ext <<_ACEOF
19747 /* end confdefs.h.  */
19748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19749    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19750 #define $ac_func innocuous_$ac_func
19751
19752 /* System header to define __stub macros and hopefully few prototypes,
19753     which can conflict with char $ac_func (); below.
19754     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19755     <limits.h> exists even on freestanding compilers.  */
19756
19757 #ifdef __STDC__
19758 # include <limits.h>
19759 #else
19760 # include <assert.h>
19761 #endif
19762
19763 #undef $ac_func
19764
19765 /* Override any GCC internal prototype to avoid an error.
19766    Use char because int might match the return type of a GCC
19767    builtin and then its argument prototype would still apply.  */
19768 #ifdef __cplusplus
19769 extern "C"
19770 #endif
19771 char $ac_func ();
19772 /* The GNU C library defines this for functions which it implements
19773     to always fail with ENOSYS.  Some functions are actually named
19774     something starting with __ and the normal name is an alias.  */
19775 #if defined __stub_$ac_func || defined __stub___$ac_func
19776 choke me
19777 #endif
19778
19779 int
19780 main ()
19781 {
19782 return $ac_func ();
19783   ;
19784   return 0;
19785 }
19786 _ACEOF
19787 rm -f conftest.$ac_objext conftest$ac_exeext
19788 if { (ac_try="$ac_link"
19789 case "(($ac_try" in
19790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19791   *) ac_try_echo=$ac_try;;
19792 esac
19793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19794 $as_echo "$ac_try_echo") >&5
19795   (eval "$ac_link") 2>conftest.er1
19796   ac_status=$?
19797   grep -v '^ *+' conftest.er1 >conftest.err
19798   rm -f conftest.er1
19799   cat conftest.err >&5
19800   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801   (exit $ac_status); } && {
19802          test -z "$ac_c_werror_flag" ||
19803          test ! -s conftest.err
19804        } && test -s conftest$ac_exeext && {
19805          test "$cross_compiling" = yes ||
19806          $as_test_x conftest$ac_exeext
19807        }; then
19808   eval "$as_ac_var=yes"
19809 else
19810   $as_echo "$as_me: failed program was:" >&5
19811 sed 's/^/| /' conftest.$ac_ext >&5
19812
19813         eval "$as_ac_var=no"
19814 fi
19815
19816 rm -rf conftest.dSYM
19817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19818       conftest$ac_exeext conftest.$ac_ext
19819 fi
19820 ac_res=`eval 'as_val=${'$as_ac_var'}
19821                  $as_echo "$as_val"'`
19822                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19823 $as_echo "$ac_res" >&6; }
19824 as_val=`eval 'as_val=${'$as_ac_var'}
19825                  $as_echo "$as_val"'`
19826    if test "x$as_val" = x""yes; then
19827   cat >>confdefs.h <<_ACEOF
19828 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19829 _ACEOF
19830
19831 fi
19832 done
19833
19834 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
19835 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
19836 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
19837   $as_echo_n "(cached) " >&6
19838 else
19839   cat >conftest.$ac_ext <<_ACEOF
19840 /* confdefs.h.  */
19841 _ACEOF
19842 cat confdefs.h >>conftest.$ac_ext
19843 cat >>conftest.$ac_ext <<_ACEOF
19844 /* end confdefs.h.  */
19845 #include <fcntl.h>
19846
19847 int
19848 main ()
19849 {
19850 #ifndef posix_fadvise
19851   (void) posix_fadvise;
19852 #endif
19853
19854   ;
19855   return 0;
19856 }
19857 _ACEOF
19858 rm -f conftest.$ac_objext
19859 if { (ac_try="$ac_compile"
19860 case "(($ac_try" in
19861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19862   *) ac_try_echo=$ac_try;;
19863 esac
19864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19865 $as_echo "$ac_try_echo") >&5
19866   (eval "$ac_compile") 2>conftest.er1
19867   ac_status=$?
19868   grep -v '^ *+' conftest.er1 >conftest.err
19869   rm -f conftest.er1
19870   cat conftest.err >&5
19871   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872   (exit $ac_status); } && {
19873          test -z "$ac_c_werror_flag" ||
19874          test ! -s conftest.err
19875        } && test -s conftest.$ac_objext; then
19876   ac_cv_have_decl_posix_fadvise=yes
19877 else
19878   $as_echo "$as_me: failed program was:" >&5
19879 sed 's/^/| /' conftest.$ac_ext >&5
19880
19881         ac_cv_have_decl_posix_fadvise=no
19882 fi
19883
19884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19885 fi
19886 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
19887 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
19888 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
19889
19890 cat >>confdefs.h <<_ACEOF
19891 #define HAVE_DECL_POSIX_FADVISE 1
19892 _ACEOF
19893
19894
19895 else
19896   cat >>confdefs.h <<_ACEOF
19897 #define HAVE_DECL_POSIX_FADVISE 0
19898 _ACEOF
19899
19900
19901 fi
19902
19903
19904 fi
19905
19906 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
19907 $as_echo_n "checking whether fdatasync is declared... " >&6; }
19908 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
19909   $as_echo_n "(cached) " >&6
19910 else
19911   cat >conftest.$ac_ext <<_ACEOF
19912 /* confdefs.h.  */
19913 _ACEOF
19914 cat confdefs.h >>conftest.$ac_ext
19915 cat >>conftest.$ac_ext <<_ACEOF
19916 /* end confdefs.h.  */
19917 #include <unistd.h>
19918
19919 int
19920 main ()
19921 {
19922 #ifndef fdatasync
19923   (void) fdatasync;
19924 #endif
19925
19926   ;
19927   return 0;
19928 }
19929 _ACEOF
19930 rm -f conftest.$ac_objext
19931 if { (ac_try="$ac_compile"
19932 case "(($ac_try" in
19933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19934   *) ac_try_echo=$ac_try;;
19935 esac
19936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19937 $as_echo "$ac_try_echo") >&5
19938   (eval "$ac_compile") 2>conftest.er1
19939   ac_status=$?
19940   grep -v '^ *+' conftest.er1 >conftest.err
19941   rm -f conftest.er1
19942   cat conftest.err >&5
19943   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944   (exit $ac_status); } && {
19945          test -z "$ac_c_werror_flag" ||
19946          test ! -s conftest.err
19947        } && test -s conftest.$ac_objext; then
19948   ac_cv_have_decl_fdatasync=yes
19949 else
19950   $as_echo "$as_me: failed program was:" >&5
19951 sed 's/^/| /' conftest.$ac_ext >&5
19952
19953         ac_cv_have_decl_fdatasync=no
19954 fi
19955
19956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19957 fi
19958 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
19959 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
19960 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
19961
19962 cat >>confdefs.h <<_ACEOF
19963 #define HAVE_DECL_FDATASYNC 1
19964 _ACEOF
19965
19966
19967 else
19968   cat >>confdefs.h <<_ACEOF
19969 #define HAVE_DECL_FDATASYNC 0
19970 _ACEOF
19971
19972
19973 fi
19974
19975
19976 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
19977 $as_echo_n "checking whether strlcat is declared... " >&6; }
19978 if test "${ac_cv_have_decl_strlcat+set}" = set; then
19979   $as_echo_n "(cached) " >&6
19980 else
19981   cat >conftest.$ac_ext <<_ACEOF
19982 /* confdefs.h.  */
19983 _ACEOF
19984 cat confdefs.h >>conftest.$ac_ext
19985 cat >>conftest.$ac_ext <<_ACEOF
19986 /* end confdefs.h.  */
19987 $ac_includes_default
19988 int
19989 main ()
19990 {
19991 #ifndef strlcat
19992   (void) strlcat;
19993 #endif
19994
19995   ;
19996   return 0;
19997 }
19998 _ACEOF
19999 rm -f conftest.$ac_objext
20000 if { (ac_try="$ac_compile"
20001 case "(($ac_try" in
20002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20003   *) ac_try_echo=$ac_try;;
20004 esac
20005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20006 $as_echo "$ac_try_echo") >&5
20007   (eval "$ac_compile") 2>conftest.er1
20008   ac_status=$?
20009   grep -v '^ *+' conftest.er1 >conftest.err
20010   rm -f conftest.er1
20011   cat conftest.err >&5
20012   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013   (exit $ac_status); } && {
20014          test -z "$ac_c_werror_flag" ||
20015          test ! -s conftest.err
20016        } && test -s conftest.$ac_objext; then
20017   ac_cv_have_decl_strlcat=yes
20018 else
20019   $as_echo "$as_me: failed program was:" >&5
20020 sed 's/^/| /' conftest.$ac_ext >&5
20021
20022         ac_cv_have_decl_strlcat=no
20023 fi
20024
20025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20026 fi
20027 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
20028 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
20029 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
20030
20031 cat >>confdefs.h <<_ACEOF
20032 #define HAVE_DECL_STRLCAT 1
20033 _ACEOF
20034
20035
20036 else
20037   cat >>confdefs.h <<_ACEOF
20038 #define HAVE_DECL_STRLCAT 0
20039 _ACEOF
20040
20041
20042 fi
20043 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
20044 $as_echo_n "checking whether strlcpy is declared... " >&6; }
20045 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
20046   $as_echo_n "(cached) " >&6
20047 else
20048   cat >conftest.$ac_ext <<_ACEOF
20049 /* confdefs.h.  */
20050 _ACEOF
20051 cat confdefs.h >>conftest.$ac_ext
20052 cat >>conftest.$ac_ext <<_ACEOF
20053 /* end confdefs.h.  */
20054 $ac_includes_default
20055 int
20056 main ()
20057 {
20058 #ifndef strlcpy
20059   (void) strlcpy;
20060 #endif
20061
20062   ;
20063   return 0;
20064 }
20065 _ACEOF
20066 rm -f conftest.$ac_objext
20067 if { (ac_try="$ac_compile"
20068 case "(($ac_try" in
20069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20070   *) ac_try_echo=$ac_try;;
20071 esac
20072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20073 $as_echo "$ac_try_echo") >&5
20074   (eval "$ac_compile") 2>conftest.er1
20075   ac_status=$?
20076   grep -v '^ *+' conftest.er1 >conftest.err
20077   rm -f conftest.er1
20078   cat conftest.err >&5
20079   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080   (exit $ac_status); } && {
20081          test -z "$ac_c_werror_flag" ||
20082          test ! -s conftest.err
20083        } && test -s conftest.$ac_objext; then
20084   ac_cv_have_decl_strlcpy=yes
20085 else
20086   $as_echo "$as_me: failed program was:" >&5
20087 sed 's/^/| /' conftest.$ac_ext >&5
20088
20089         ac_cv_have_decl_strlcpy=no
20090 fi
20091
20092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20093 fi
20094 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
20095 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
20096 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
20097
20098 cat >>confdefs.h <<_ACEOF
20099 #define HAVE_DECL_STRLCPY 1
20100 _ACEOF
20101
20102
20103 else
20104   cat >>confdefs.h <<_ACEOF
20105 #define HAVE_DECL_STRLCPY 0
20106 _ACEOF
20107
20108
20109 fi
20110
20111
20112 # This is probably only present on Darwin, but may as well check always
20113 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
20114 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
20115 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
20116   $as_echo_n "(cached) " >&6
20117 else
20118   cat >conftest.$ac_ext <<_ACEOF
20119 /* confdefs.h.  */
20120 _ACEOF
20121 cat confdefs.h >>conftest.$ac_ext
20122 cat >>conftest.$ac_ext <<_ACEOF
20123 /* end confdefs.h.  */
20124 #include <fcntl.h>
20125
20126 int
20127 main ()
20128 {
20129 #ifndef F_FULLFSYNC
20130   (void) F_FULLFSYNC;
20131 #endif
20132
20133   ;
20134   return 0;
20135 }
20136 _ACEOF
20137 rm -f conftest.$ac_objext
20138 if { (ac_try="$ac_compile"
20139 case "(($ac_try" in
20140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20141   *) ac_try_echo=$ac_try;;
20142 esac
20143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20144 $as_echo "$ac_try_echo") >&5
20145   (eval "$ac_compile") 2>conftest.er1
20146   ac_status=$?
20147   grep -v '^ *+' conftest.er1 >conftest.err
20148   rm -f conftest.er1
20149   cat conftest.err >&5
20150   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151   (exit $ac_status); } && {
20152          test -z "$ac_c_werror_flag" ||
20153          test ! -s conftest.err
20154        } && test -s conftest.$ac_objext; then
20155   ac_cv_have_decl_F_FULLFSYNC=yes
20156 else
20157   $as_echo "$as_me: failed program was:" >&5
20158 sed 's/^/| /' conftest.$ac_ext >&5
20159
20160         ac_cv_have_decl_F_FULLFSYNC=no
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_have_decl_F_FULLFSYNC" >&5
20166 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
20167 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
20168
20169 cat >>confdefs.h <<_ACEOF
20170 #define HAVE_DECL_F_FULLFSYNC 1
20171 _ACEOF
20172
20173
20174 else
20175   cat >>confdefs.h <<_ACEOF
20176 #define HAVE_DECL_F_FULLFSYNC 0
20177 _ACEOF
20178
20179
20180 fi
20181
20182
20183
20184 HAVE_IPV6=no
20185 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
20186 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
20187 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
20188   $as_echo_n "(cached) " >&6
20189 else
20190   ac_cv_type_struct_sockaddr_in6=no
20191 cat >conftest.$ac_ext <<_ACEOF
20192 /* confdefs.h.  */
20193 _ACEOF
20194 cat confdefs.h >>conftest.$ac_ext
20195 cat >>conftest.$ac_ext <<_ACEOF
20196 /* end confdefs.h.  */
20197 $ac_includes_default
20198 #include <netinet/in.h>
20199
20200 int
20201 main ()
20202 {
20203 if (sizeof (struct sockaddr_in6))
20204        return 0;
20205   ;
20206   return 0;
20207 }
20208 _ACEOF
20209 rm -f conftest.$ac_objext
20210 if { (ac_try="$ac_compile"
20211 case "(($ac_try" in
20212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20213   *) ac_try_echo=$ac_try;;
20214 esac
20215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20216 $as_echo "$ac_try_echo") >&5
20217   (eval "$ac_compile") 2>conftest.er1
20218   ac_status=$?
20219   grep -v '^ *+' conftest.er1 >conftest.err
20220   rm -f conftest.er1
20221   cat conftest.err >&5
20222   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223   (exit $ac_status); } && {
20224          test -z "$ac_c_werror_flag" ||
20225          test ! -s conftest.err
20226        } && test -s conftest.$ac_objext; then
20227   cat >conftest.$ac_ext <<_ACEOF
20228 /* confdefs.h.  */
20229 _ACEOF
20230 cat confdefs.h >>conftest.$ac_ext
20231 cat >>conftest.$ac_ext <<_ACEOF
20232 /* end confdefs.h.  */
20233 $ac_includes_default
20234 #include <netinet/in.h>
20235
20236 int
20237 main ()
20238 {
20239 if (sizeof ((struct sockaddr_in6)))
20240           return 0;
20241   ;
20242   return 0;
20243 }
20244 _ACEOF
20245 rm -f conftest.$ac_objext
20246 if { (ac_try="$ac_compile"
20247 case "(($ac_try" in
20248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20249   *) ac_try_echo=$ac_try;;
20250 esac
20251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20252 $as_echo "$ac_try_echo") >&5
20253   (eval "$ac_compile") 2>conftest.er1
20254   ac_status=$?
20255   grep -v '^ *+' conftest.er1 >conftest.err
20256   rm -f conftest.er1
20257   cat conftest.err >&5
20258   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259   (exit $ac_status); } && {
20260          test -z "$ac_c_werror_flag" ||
20261          test ! -s conftest.err
20262        } && test -s conftest.$ac_objext; then
20263   :
20264 else
20265   $as_echo "$as_me: failed program was:" >&5
20266 sed 's/^/| /' conftest.$ac_ext >&5
20267
20268         ac_cv_type_struct_sockaddr_in6=yes
20269 fi
20270
20271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20272 else
20273   $as_echo "$as_me: failed program was:" >&5
20274 sed 's/^/| /' conftest.$ac_ext >&5
20275
20276
20277 fi
20278
20279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20280 fi
20281 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
20282 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
20283 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
20284
20285 cat >>confdefs.h <<\_ACEOF
20286 #define HAVE_IPV6 1
20287 _ACEOF
20288
20289          HAVE_IPV6=yes
20290 fi
20291
20292
20293
20294 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
20295 $as_echo_n "checking for PS_STRINGS... " >&6; }
20296 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
20297   $as_echo_n "(cached) " >&6
20298 else
20299   cat >conftest.$ac_ext <<_ACEOF
20300 /* confdefs.h.  */
20301 _ACEOF
20302 cat confdefs.h >>conftest.$ac_ext
20303 cat >>conftest.$ac_ext <<_ACEOF
20304 /* end confdefs.h.  */
20305 #include <machine/vmparam.h>
20306 #include <sys/exec.h>
20307
20308 int
20309 main ()
20310 {
20311 PS_STRINGS->ps_nargvstr = 1;
20312 PS_STRINGS->ps_argvstr = "foo";
20313   ;
20314   return 0;
20315 }
20316 _ACEOF
20317 rm -f conftest.$ac_objext conftest$ac_exeext
20318 if { (ac_try="$ac_link"
20319 case "(($ac_try" in
20320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20321   *) ac_try_echo=$ac_try;;
20322 esac
20323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20324 $as_echo "$ac_try_echo") >&5
20325   (eval "$ac_link") 2>conftest.er1
20326   ac_status=$?
20327   grep -v '^ *+' conftest.er1 >conftest.err
20328   rm -f conftest.er1
20329   cat conftest.err >&5
20330   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331   (exit $ac_status); } && {
20332          test -z "$ac_c_werror_flag" ||
20333          test ! -s conftest.err
20334        } && test -s conftest$ac_exeext && {
20335          test "$cross_compiling" = yes ||
20336          $as_test_x conftest$ac_exeext
20337        }; then
20338   pgac_cv_var_PS_STRINGS=yes
20339 else
20340   $as_echo "$as_me: failed program was:" >&5
20341 sed 's/^/| /' conftest.$ac_ext >&5
20342
20343         pgac_cv_var_PS_STRINGS=no
20344 fi
20345
20346 rm -rf conftest.dSYM
20347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20348       conftest$ac_exeext conftest.$ac_ext
20349 fi
20350 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
20351 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
20352 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
20353
20354 cat >>confdefs.h <<\_ACEOF
20355 #define HAVE_PS_STRINGS /**/
20356 _ACEOF
20357
20358 fi
20359
20360
20361 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
20362 # is missing.  Yes, there are machines that have only one.  We may
20363 # also decide to use snprintf.c if snprintf() is present but does not
20364 # have all the features we need --- see below.
20365
20366 if test "$PORTNAME" = "win32"; then
20367   # Win32 gets snprintf.c built unconditionally.
20368   #
20369   # To properly translate all NLS languages strings, we must support the
20370   # *printf() %$ format, which allows *printf() arguments to be selected
20371   # by position in the translated string.
20372   #
20373   # libintl versions < 0.13 use the native *printf() functions, and Win32
20374   # *printf() doesn't understand %$, so we must use our /port versions,
20375   # which do understand %$. libintl versions >= 0.13 include their own
20376   # *printf versions on Win32.  The libintl 0.13 release note text is:
20377   #
20378   #   C format strings with positions, as they arise when a translator
20379   #   needs to reorder a sentence, are now supported on all platforms.
20380   #   On those few platforms (NetBSD and Woe32) for which the native
20381   #   printf()/fprintf()/... functions don't support such format
20382   #   strings, replacements are provided through <libintl.h>.
20383   #
20384   # We could use libintl >= 0.13's *printf() if we were sure that we had
20385   # a litint >= 0.13 at runtime, but seeing that there is no clean way
20386   # to guarantee that, it is best to just use our own, so we are sure to
20387   # get %$ support. In include/port.h we disable the *printf() macros
20388   # that might have been defined by libintl.
20389   #
20390   # We do this unconditionally whether NLS is used or not so we are sure
20391   # that all Win32 libraries and binaries behave the same.
20392   pgac_need_repl_snprintf=yes
20393 else
20394   pgac_need_repl_snprintf=no
20395
20396 for ac_func in snprintf
20397 do
20398 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20399 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20400 $as_echo_n "checking for $ac_func... " >&6; }
20401 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20402   $as_echo_n "(cached) " >&6
20403 else
20404   cat >conftest.$ac_ext <<_ACEOF
20405 /* confdefs.h.  */
20406 _ACEOF
20407 cat confdefs.h >>conftest.$ac_ext
20408 cat >>conftest.$ac_ext <<_ACEOF
20409 /* end confdefs.h.  */
20410 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20411    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20412 #define $ac_func innocuous_$ac_func
20413
20414 /* System header to define __stub macros and hopefully few prototypes,
20415     which can conflict with char $ac_func (); below.
20416     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20417     <limits.h> exists even on freestanding compilers.  */
20418
20419 #ifdef __STDC__
20420 # include <limits.h>
20421 #else
20422 # include <assert.h>
20423 #endif
20424
20425 #undef $ac_func
20426
20427 /* Override any GCC internal prototype to avoid an error.
20428    Use char because int might match the return type of a GCC
20429    builtin and then its argument prototype would still apply.  */
20430 #ifdef __cplusplus
20431 extern "C"
20432 #endif
20433 char $ac_func ();
20434 /* The GNU C library defines this for functions which it implements
20435     to always fail with ENOSYS.  Some functions are actually named
20436     something starting with __ and the normal name is an alias.  */
20437 #if defined __stub_$ac_func || defined __stub___$ac_func
20438 choke me
20439 #endif
20440
20441 int
20442 main ()
20443 {
20444 return $ac_func ();
20445   ;
20446   return 0;
20447 }
20448 _ACEOF
20449 rm -f conftest.$ac_objext conftest$ac_exeext
20450 if { (ac_try="$ac_link"
20451 case "(($ac_try" in
20452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20453   *) ac_try_echo=$ac_try;;
20454 esac
20455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20456 $as_echo "$ac_try_echo") >&5
20457   (eval "$ac_link") 2>conftest.er1
20458   ac_status=$?
20459   grep -v '^ *+' conftest.er1 >conftest.err
20460   rm -f conftest.er1
20461   cat conftest.err >&5
20462   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463   (exit $ac_status); } && {
20464          test -z "$ac_c_werror_flag" ||
20465          test ! -s conftest.err
20466        } && test -s conftest$ac_exeext && {
20467          test "$cross_compiling" = yes ||
20468          $as_test_x conftest$ac_exeext
20469        }; then
20470   eval "$as_ac_var=yes"
20471 else
20472   $as_echo "$as_me: failed program was:" >&5
20473 sed 's/^/| /' conftest.$ac_ext >&5
20474
20475         eval "$as_ac_var=no"
20476 fi
20477
20478 rm -rf conftest.dSYM
20479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20480       conftest$ac_exeext conftest.$ac_ext
20481 fi
20482 ac_res=`eval 'as_val=${'$as_ac_var'}
20483                  $as_echo "$as_val"'`
20484                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20485 $as_echo "$ac_res" >&6; }
20486 as_val=`eval 'as_val=${'$as_ac_var'}
20487                  $as_echo "$as_val"'`
20488    if test "x$as_val" = x""yes; then
20489   cat >>confdefs.h <<_ACEOF
20490 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20491 _ACEOF
20492
20493 else
20494   pgac_need_repl_snprintf=yes
20495 fi
20496 done
20497
20498
20499 for ac_func in vsnprintf
20500 do
20501 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20502 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20503 $as_echo_n "checking for $ac_func... " >&6; }
20504 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20505   $as_echo_n "(cached) " >&6
20506 else
20507   cat >conftest.$ac_ext <<_ACEOF
20508 /* confdefs.h.  */
20509 _ACEOF
20510 cat confdefs.h >>conftest.$ac_ext
20511 cat >>conftest.$ac_ext <<_ACEOF
20512 /* end confdefs.h.  */
20513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20514    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20515 #define $ac_func innocuous_$ac_func
20516
20517 /* System header to define __stub macros and hopefully few prototypes,
20518     which can conflict with char $ac_func (); below.
20519     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20520     <limits.h> exists even on freestanding compilers.  */
20521
20522 #ifdef __STDC__
20523 # include <limits.h>
20524 #else
20525 # include <assert.h>
20526 #endif
20527
20528 #undef $ac_func
20529
20530 /* Override any GCC internal prototype to avoid an error.
20531    Use char because int might match the return type of a GCC
20532    builtin and then its argument prototype would still apply.  */
20533 #ifdef __cplusplus
20534 extern "C"
20535 #endif
20536 char $ac_func ();
20537 /* The GNU C library defines this for functions which it implements
20538     to always fail with ENOSYS.  Some functions are actually named
20539     something starting with __ and the normal name is an alias.  */
20540 #if defined __stub_$ac_func || defined __stub___$ac_func
20541 choke me
20542 #endif
20543
20544 int
20545 main ()
20546 {
20547 return $ac_func ();
20548   ;
20549   return 0;
20550 }
20551 _ACEOF
20552 rm -f conftest.$ac_objext conftest$ac_exeext
20553 if { (ac_try="$ac_link"
20554 case "(($ac_try" in
20555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20556   *) ac_try_echo=$ac_try;;
20557 esac
20558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20559 $as_echo "$ac_try_echo") >&5
20560   (eval "$ac_link") 2>conftest.er1
20561   ac_status=$?
20562   grep -v '^ *+' conftest.er1 >conftest.err
20563   rm -f conftest.er1
20564   cat conftest.err >&5
20565   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566   (exit $ac_status); } && {
20567          test -z "$ac_c_werror_flag" ||
20568          test ! -s conftest.err
20569        } && test -s conftest$ac_exeext && {
20570          test "$cross_compiling" = yes ||
20571          $as_test_x conftest$ac_exeext
20572        }; then
20573   eval "$as_ac_var=yes"
20574 else
20575   $as_echo "$as_me: failed program was:" >&5
20576 sed 's/^/| /' conftest.$ac_ext >&5
20577
20578         eval "$as_ac_var=no"
20579 fi
20580
20581 rm -rf conftest.dSYM
20582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20583       conftest$ac_exeext conftest.$ac_ext
20584 fi
20585 ac_res=`eval 'as_val=${'$as_ac_var'}
20586                  $as_echo "$as_val"'`
20587                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20588 $as_echo "$ac_res" >&6; }
20589 as_val=`eval 'as_val=${'$as_ac_var'}
20590                  $as_echo "$as_val"'`
20591    if test "x$as_val" = x""yes; then
20592   cat >>confdefs.h <<_ACEOF
20593 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20594 _ACEOF
20595
20596 else
20597   pgac_need_repl_snprintf=yes
20598 fi
20599 done
20600
20601 fi
20602
20603
20604 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
20605 # include/c.h will provide declarations.  Note this is a separate test
20606 # from whether the functions exist in the C library --- there are
20607 # systems that have the functions but don't bother to declare them :-(
20608
20609 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
20610 $as_echo_n "checking whether snprintf is declared... " >&6; }
20611 if test "${ac_cv_have_decl_snprintf+set}" = set; then
20612   $as_echo_n "(cached) " >&6
20613 else
20614   cat >conftest.$ac_ext <<_ACEOF
20615 /* confdefs.h.  */
20616 _ACEOF
20617 cat confdefs.h >>conftest.$ac_ext
20618 cat >>conftest.$ac_ext <<_ACEOF
20619 /* end confdefs.h.  */
20620 $ac_includes_default
20621 int
20622 main ()
20623 {
20624 #ifndef snprintf
20625   (void) snprintf;
20626 #endif
20627
20628   ;
20629   return 0;
20630 }
20631 _ACEOF
20632 rm -f conftest.$ac_objext
20633 if { (ac_try="$ac_compile"
20634 case "(($ac_try" in
20635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636   *) ac_try_echo=$ac_try;;
20637 esac
20638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20639 $as_echo "$ac_try_echo") >&5
20640   (eval "$ac_compile") 2>conftest.er1
20641   ac_status=$?
20642   grep -v '^ *+' conftest.er1 >conftest.err
20643   rm -f conftest.er1
20644   cat conftest.err >&5
20645   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646   (exit $ac_status); } && {
20647          test -z "$ac_c_werror_flag" ||
20648          test ! -s conftest.err
20649        } && test -s conftest.$ac_objext; then
20650   ac_cv_have_decl_snprintf=yes
20651 else
20652   $as_echo "$as_me: failed program was:" >&5
20653 sed 's/^/| /' conftest.$ac_ext >&5
20654
20655         ac_cv_have_decl_snprintf=no
20656 fi
20657
20658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20659 fi
20660 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
20661 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
20662 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
20663
20664 cat >>confdefs.h <<_ACEOF
20665 #define HAVE_DECL_SNPRINTF 1
20666 _ACEOF
20667
20668
20669 else
20670   cat >>confdefs.h <<_ACEOF
20671 #define HAVE_DECL_SNPRINTF 0
20672 _ACEOF
20673
20674
20675 fi
20676 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
20677 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
20678 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
20679   $as_echo_n "(cached) " >&6
20680 else
20681   cat >conftest.$ac_ext <<_ACEOF
20682 /* confdefs.h.  */
20683 _ACEOF
20684 cat confdefs.h >>conftest.$ac_ext
20685 cat >>conftest.$ac_ext <<_ACEOF
20686 /* end confdefs.h.  */
20687 $ac_includes_default
20688 int
20689 main ()
20690 {
20691 #ifndef vsnprintf
20692   (void) vsnprintf;
20693 #endif
20694
20695   ;
20696   return 0;
20697 }
20698 _ACEOF
20699 rm -f conftest.$ac_objext
20700 if { (ac_try="$ac_compile"
20701 case "(($ac_try" in
20702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20703   *) ac_try_echo=$ac_try;;
20704 esac
20705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20706 $as_echo "$ac_try_echo") >&5
20707   (eval "$ac_compile") 2>conftest.er1
20708   ac_status=$?
20709   grep -v '^ *+' conftest.er1 >conftest.err
20710   rm -f conftest.er1
20711   cat conftest.err >&5
20712   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713   (exit $ac_status); } && {
20714          test -z "$ac_c_werror_flag" ||
20715          test ! -s conftest.err
20716        } && test -s conftest.$ac_objext; then
20717   ac_cv_have_decl_vsnprintf=yes
20718 else
20719   $as_echo "$as_me: failed program was:" >&5
20720 sed 's/^/| /' conftest.$ac_ext >&5
20721
20722         ac_cv_have_decl_vsnprintf=no
20723 fi
20724
20725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20726 fi
20727 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
20728 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
20729 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
20730
20731 cat >>confdefs.h <<_ACEOF
20732 #define HAVE_DECL_VSNPRINTF 1
20733 _ACEOF
20734
20735
20736 else
20737   cat >>confdefs.h <<_ACEOF
20738 #define HAVE_DECL_VSNPRINTF 0
20739 _ACEOF
20740
20741
20742 fi
20743
20744
20745
20746
20747 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
20748 $as_echo_n "checking for isinf... " >&6; }
20749 if test "${ac_cv_func_isinf+set}" = set; then
20750   $as_echo_n "(cached) " >&6
20751 else
20752   cat >conftest.$ac_ext <<_ACEOF
20753 /* confdefs.h.  */
20754 _ACEOF
20755 cat confdefs.h >>conftest.$ac_ext
20756 cat >>conftest.$ac_ext <<_ACEOF
20757 /* end confdefs.h.  */
20758
20759 #include <math.h>
20760 double glob_double;
20761
20762 int
20763 main ()
20764 {
20765 return isinf(glob_double) ? 0 : 1;
20766   ;
20767   return 0;
20768 }
20769 _ACEOF
20770 rm -f conftest.$ac_objext conftest$ac_exeext
20771 if { (ac_try="$ac_link"
20772 case "(($ac_try" in
20773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20774   *) ac_try_echo=$ac_try;;
20775 esac
20776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20777 $as_echo "$ac_try_echo") >&5
20778   (eval "$ac_link") 2>conftest.er1
20779   ac_status=$?
20780   grep -v '^ *+' conftest.er1 >conftest.err
20781   rm -f conftest.er1
20782   cat conftest.err >&5
20783   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784   (exit $ac_status); } && {
20785          test -z "$ac_c_werror_flag" ||
20786          test ! -s conftest.err
20787        } && test -s conftest$ac_exeext && {
20788          test "$cross_compiling" = yes ||
20789          $as_test_x conftest$ac_exeext
20790        }; then
20791   ac_cv_func_isinf=yes
20792 else
20793   $as_echo "$as_me: failed program was:" >&5
20794 sed 's/^/| /' conftest.$ac_ext >&5
20795
20796         ac_cv_func_isinf=no
20797 fi
20798
20799 rm -rf conftest.dSYM
20800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20801       conftest$ac_exeext conftest.$ac_ext
20802 fi
20803 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
20804 $as_echo "$ac_cv_func_isinf" >&6; }
20805
20806 if test $ac_cv_func_isinf = yes ; then
20807
20808 cat >>confdefs.h <<\_ACEOF
20809 #define HAVE_ISINF 1
20810 _ACEOF
20811
20812 else
20813   case " $LIBOBJS " in
20814   *" isinf.$ac_objext "* ) ;;
20815   *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
20816  ;;
20817 esac
20818
20819   # Look for a way to implement a substitute for isinf()
20820
20821
20822
20823
20824 for ac_func in fpclass fp_class fp_class_d class
20825 do
20826 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20827 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20828 $as_echo_n "checking for $ac_func... " >&6; }
20829 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20830   $as_echo_n "(cached) " >&6
20831 else
20832   cat >conftest.$ac_ext <<_ACEOF
20833 /* confdefs.h.  */
20834 _ACEOF
20835 cat confdefs.h >>conftest.$ac_ext
20836 cat >>conftest.$ac_ext <<_ACEOF
20837 /* end confdefs.h.  */
20838 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20839    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20840 #define $ac_func innocuous_$ac_func
20841
20842 /* System header to define __stub macros and hopefully few prototypes,
20843     which can conflict with char $ac_func (); below.
20844     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20845     <limits.h> exists even on freestanding compilers.  */
20846
20847 #ifdef __STDC__
20848 # include <limits.h>
20849 #else
20850 # include <assert.h>
20851 #endif
20852
20853 #undef $ac_func
20854
20855 /* Override any GCC internal prototype to avoid an error.
20856    Use char because int might match the return type of a GCC
20857    builtin and then its argument prototype would still apply.  */
20858 #ifdef __cplusplus
20859 extern "C"
20860 #endif
20861 char $ac_func ();
20862 /* The GNU C library defines this for functions which it implements
20863     to always fail with ENOSYS.  Some functions are actually named
20864     something starting with __ and the normal name is an alias.  */
20865 #if defined __stub_$ac_func || defined __stub___$ac_func
20866 choke me
20867 #endif
20868
20869 int
20870 main ()
20871 {
20872 return $ac_func ();
20873   ;
20874   return 0;
20875 }
20876 _ACEOF
20877 rm -f conftest.$ac_objext conftest$ac_exeext
20878 if { (ac_try="$ac_link"
20879 case "(($ac_try" in
20880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20881   *) ac_try_echo=$ac_try;;
20882 esac
20883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20884 $as_echo "$ac_try_echo") >&5
20885   (eval "$ac_link") 2>conftest.er1
20886   ac_status=$?
20887   grep -v '^ *+' conftest.er1 >conftest.err
20888   rm -f conftest.er1
20889   cat conftest.err >&5
20890   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891   (exit $ac_status); } && {
20892          test -z "$ac_c_werror_flag" ||
20893          test ! -s conftest.err
20894        } && test -s conftest$ac_exeext && {
20895          test "$cross_compiling" = yes ||
20896          $as_test_x conftest$ac_exeext
20897        }; then
20898   eval "$as_ac_var=yes"
20899 else
20900   $as_echo "$as_me: failed program was:" >&5
20901 sed 's/^/| /' conftest.$ac_ext >&5
20902
20903         eval "$as_ac_var=no"
20904 fi
20905
20906 rm -rf conftest.dSYM
20907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20908       conftest$ac_exeext conftest.$ac_ext
20909 fi
20910 ac_res=`eval 'as_val=${'$as_ac_var'}
20911                  $as_echo "$as_val"'`
20912                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20913 $as_echo "$ac_res" >&6; }
20914 as_val=`eval 'as_val=${'$as_ac_var'}
20915                  $as_echo "$as_val"'`
20916    if test "x$as_val" = x""yes; then
20917   cat >>confdefs.h <<_ACEOF
20918 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20919 _ACEOF
20920  break
20921 fi
20922 done
20923
20924 fi
20925
20926
20927
20928
20929
20930
20931
20932
20933
20934
20935
20936
20937 for ac_func in crypt fls getopt getrusage inet_aton random rint srandom strerror strlcat strlcpy
20938 do
20939 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20940 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20941 $as_echo_n "checking for $ac_func... " >&6; }
20942 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20943   $as_echo_n "(cached) " >&6
20944 else
20945   cat >conftest.$ac_ext <<_ACEOF
20946 /* confdefs.h.  */
20947 _ACEOF
20948 cat confdefs.h >>conftest.$ac_ext
20949 cat >>conftest.$ac_ext <<_ACEOF
20950 /* end confdefs.h.  */
20951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20952    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20953 #define $ac_func innocuous_$ac_func
20954
20955 /* System header to define __stub macros and hopefully few prototypes,
20956     which can conflict with char $ac_func (); below.
20957     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20958     <limits.h> exists even on freestanding compilers.  */
20959
20960 #ifdef __STDC__
20961 # include <limits.h>
20962 #else
20963 # include <assert.h>
20964 #endif
20965
20966 #undef $ac_func
20967
20968 /* Override any GCC internal prototype to avoid an error.
20969    Use char because int might match the return type of a GCC
20970    builtin and then its argument prototype would still apply.  */
20971 #ifdef __cplusplus
20972 extern "C"
20973 #endif
20974 char $ac_func ();
20975 /* The GNU C library defines this for functions which it implements
20976     to always fail with ENOSYS.  Some functions are actually named
20977     something starting with __ and the normal name is an alias.  */
20978 #if defined __stub_$ac_func || defined __stub___$ac_func
20979 choke me
20980 #endif
20981
20982 int
20983 main ()
20984 {
20985 return $ac_func ();
20986   ;
20987   return 0;
20988 }
20989 _ACEOF
20990 rm -f conftest.$ac_objext conftest$ac_exeext
20991 if { (ac_try="$ac_link"
20992 case "(($ac_try" in
20993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20994   *) ac_try_echo=$ac_try;;
20995 esac
20996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20997 $as_echo "$ac_try_echo") >&5
20998   (eval "$ac_link") 2>conftest.er1
20999   ac_status=$?
21000   grep -v '^ *+' conftest.er1 >conftest.err
21001   rm -f conftest.er1
21002   cat conftest.err >&5
21003   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004   (exit $ac_status); } && {
21005          test -z "$ac_c_werror_flag" ||
21006          test ! -s conftest.err
21007        } && test -s conftest$ac_exeext && {
21008          test "$cross_compiling" = yes ||
21009          $as_test_x conftest$ac_exeext
21010        }; then
21011   eval "$as_ac_var=yes"
21012 else
21013   $as_echo "$as_me: failed program was:" >&5
21014 sed 's/^/| /' conftest.$ac_ext >&5
21015
21016         eval "$as_ac_var=no"
21017 fi
21018
21019 rm -rf conftest.dSYM
21020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21021       conftest$ac_exeext conftest.$ac_ext
21022 fi
21023 ac_res=`eval 'as_val=${'$as_ac_var'}
21024                  $as_echo "$as_val"'`
21025                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21026 $as_echo "$ac_res" >&6; }
21027 as_val=`eval 'as_val=${'$as_ac_var'}
21028                  $as_echo "$as_val"'`
21029    if test "x$as_val" = x""yes; then
21030   cat >>confdefs.h <<_ACEOF
21031 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21032 _ACEOF
21033
21034 else
21035   case " $LIBOBJS " in
21036   *" $ac_func.$ac_objext "* ) ;;
21037   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21038  ;;
21039 esac
21040
21041 fi
21042 done
21043
21044
21045
21046 case $host_os in
21047
21048         # Windows uses a specialised env handler
21049         # and doesn't need a replacement getpeereid because it doesn't use
21050         # Unix sockets.
21051         mingw*)
21052
21053 cat >>confdefs.h <<\_ACEOF
21054 #define HAVE_UNSETENV 1
21055 _ACEOF
21056
21057
21058 cat >>confdefs.h <<\_ACEOF
21059 #define HAVE_GETPEEREID 1
21060 _ACEOF
21061
21062                 ac_cv_func_unsetenv=yes
21063                 ac_cv_func_getpeereid=yes;;
21064         *)
21065
21066
21067 for ac_func in unsetenv getpeereid
21068 do
21069 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21070 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21071 $as_echo_n "checking for $ac_func... " >&6; }
21072 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21073   $as_echo_n "(cached) " >&6
21074 else
21075   cat >conftest.$ac_ext <<_ACEOF
21076 /* confdefs.h.  */
21077 _ACEOF
21078 cat confdefs.h >>conftest.$ac_ext
21079 cat >>conftest.$ac_ext <<_ACEOF
21080 /* end confdefs.h.  */
21081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21082    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21083 #define $ac_func innocuous_$ac_func
21084
21085 /* System header to define __stub macros and hopefully few prototypes,
21086     which can conflict with char $ac_func (); below.
21087     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21088     <limits.h> exists even on freestanding compilers.  */
21089
21090 #ifdef __STDC__
21091 # include <limits.h>
21092 #else
21093 # include <assert.h>
21094 #endif
21095
21096 #undef $ac_func
21097
21098 /* Override any GCC internal prototype to avoid an error.
21099    Use char because int might match the return type of a GCC
21100    builtin and then its argument prototype would still apply.  */
21101 #ifdef __cplusplus
21102 extern "C"
21103 #endif
21104 char $ac_func ();
21105 /* The GNU C library defines this for functions which it implements
21106     to always fail with ENOSYS.  Some functions are actually named
21107     something starting with __ and the normal name is an alias.  */
21108 #if defined __stub_$ac_func || defined __stub___$ac_func
21109 choke me
21110 #endif
21111
21112 int
21113 main ()
21114 {
21115 return $ac_func ();
21116   ;
21117   return 0;
21118 }
21119 _ACEOF
21120 rm -f conftest.$ac_objext conftest$ac_exeext
21121 if { (ac_try="$ac_link"
21122 case "(($ac_try" in
21123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21124   *) ac_try_echo=$ac_try;;
21125 esac
21126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21127 $as_echo "$ac_try_echo") >&5
21128   (eval "$ac_link") 2>conftest.er1
21129   ac_status=$?
21130   grep -v '^ *+' conftest.er1 >conftest.err
21131   rm -f conftest.er1
21132   cat conftest.err >&5
21133   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134   (exit $ac_status); } && {
21135          test -z "$ac_c_werror_flag" ||
21136          test ! -s conftest.err
21137        } && test -s conftest$ac_exeext && {
21138          test "$cross_compiling" = yes ||
21139          $as_test_x conftest$ac_exeext
21140        }; then
21141   eval "$as_ac_var=yes"
21142 else
21143   $as_echo "$as_me: failed program was:" >&5
21144 sed 's/^/| /' conftest.$ac_ext >&5
21145
21146         eval "$as_ac_var=no"
21147 fi
21148
21149 rm -rf conftest.dSYM
21150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21151       conftest$ac_exeext conftest.$ac_ext
21152 fi
21153 ac_res=`eval 'as_val=${'$as_ac_var'}
21154                  $as_echo "$as_val"'`
21155                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21156 $as_echo "$ac_res" >&6; }
21157 as_val=`eval 'as_val=${'$as_ac_var'}
21158                  $as_echo "$as_val"'`
21159    if test "x$as_val" = x""yes; then
21160   cat >>confdefs.h <<_ACEOF
21161 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21162 _ACEOF
21163
21164 else
21165   case " $LIBOBJS " in
21166   *" $ac_func.$ac_objext "* ) ;;
21167   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21168  ;;
21169 esac
21170
21171 fi
21172 done
21173
21174
21175                 ;;
21176 esac
21177
21178 # System's version of getaddrinfo(), if any, may be used only if we found
21179 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
21180 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
21181 # versions of getaddrinfo don't follow normal C call protocol.  This is OK
21182 # because we want to use our own getaddrinfo.c on Windows anyway.)
21183 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
21184
21185 for ac_func in getaddrinfo
21186 do
21187 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21188 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21189 $as_echo_n "checking for $ac_func... " >&6; }
21190 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21191   $as_echo_n "(cached) " >&6
21192 else
21193   cat >conftest.$ac_ext <<_ACEOF
21194 /* confdefs.h.  */
21195 _ACEOF
21196 cat confdefs.h >>conftest.$ac_ext
21197 cat >>conftest.$ac_ext <<_ACEOF
21198 /* end confdefs.h.  */
21199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21200    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21201 #define $ac_func innocuous_$ac_func
21202
21203 /* System header to define __stub macros and hopefully few prototypes,
21204     which can conflict with char $ac_func (); below.
21205     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21206     <limits.h> exists even on freestanding compilers.  */
21207
21208 #ifdef __STDC__
21209 # include <limits.h>
21210 #else
21211 # include <assert.h>
21212 #endif
21213
21214 #undef $ac_func
21215
21216 /* Override any GCC internal prototype to avoid an error.
21217    Use char because int might match the return type of a GCC
21218    builtin and then its argument prototype would still apply.  */
21219 #ifdef __cplusplus
21220 extern "C"
21221 #endif
21222 char $ac_func ();
21223 /* The GNU C library defines this for functions which it implements
21224     to always fail with ENOSYS.  Some functions are actually named
21225     something starting with __ and the normal name is an alias.  */
21226 #if defined __stub_$ac_func || defined __stub___$ac_func
21227 choke me
21228 #endif
21229
21230 int
21231 main ()
21232 {
21233 return $ac_func ();
21234   ;
21235   return 0;
21236 }
21237 _ACEOF
21238 rm -f conftest.$ac_objext conftest$ac_exeext
21239 if { (ac_try="$ac_link"
21240 case "(($ac_try" in
21241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21242   *) ac_try_echo=$ac_try;;
21243 esac
21244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21245 $as_echo "$ac_try_echo") >&5
21246   (eval "$ac_link") 2>conftest.er1
21247   ac_status=$?
21248   grep -v '^ *+' conftest.er1 >conftest.err
21249   rm -f conftest.er1
21250   cat conftest.err >&5
21251   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252   (exit $ac_status); } && {
21253          test -z "$ac_c_werror_flag" ||
21254          test ! -s conftest.err
21255        } && test -s conftest$ac_exeext && {
21256          test "$cross_compiling" = yes ||
21257          $as_test_x conftest$ac_exeext
21258        }; then
21259   eval "$as_ac_var=yes"
21260 else
21261   $as_echo "$as_me: failed program was:" >&5
21262 sed 's/^/| /' conftest.$ac_ext >&5
21263
21264         eval "$as_ac_var=no"
21265 fi
21266
21267 rm -rf conftest.dSYM
21268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21269       conftest$ac_exeext conftest.$ac_ext
21270 fi
21271 ac_res=`eval 'as_val=${'$as_ac_var'}
21272                  $as_echo "$as_val"'`
21273                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21274 $as_echo "$ac_res" >&6; }
21275 as_val=`eval 'as_val=${'$as_ac_var'}
21276                  $as_echo "$as_val"'`
21277    if test "x$as_val" = x""yes; then
21278   cat >>confdefs.h <<_ACEOF
21279 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21280 _ACEOF
21281
21282 else
21283   case " $LIBOBJS " in
21284   *" $ac_func.$ac_objext "* ) ;;
21285   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21286  ;;
21287 esac
21288
21289 fi
21290 done
21291
21292
21293 else
21294   case " $LIBOBJS " in
21295   *" getaddrinfo.$ac_objext "* ) ;;
21296   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
21297  ;;
21298 esac
21299
21300 fi
21301
21302 # Similarly, use system's getopt_long() only if system provides struct option.
21303 if test x"$ac_cv_type_struct_option" = xyes ; then
21304
21305 for ac_func in getopt_long
21306 do
21307 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21308 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21309 $as_echo_n "checking for $ac_func... " >&6; }
21310 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21311   $as_echo_n "(cached) " >&6
21312 else
21313   cat >conftest.$ac_ext <<_ACEOF
21314 /* confdefs.h.  */
21315 _ACEOF
21316 cat confdefs.h >>conftest.$ac_ext
21317 cat >>conftest.$ac_ext <<_ACEOF
21318 /* end confdefs.h.  */
21319 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21320    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21321 #define $ac_func innocuous_$ac_func
21322
21323 /* System header to define __stub macros and hopefully few prototypes,
21324     which can conflict with char $ac_func (); below.
21325     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21326     <limits.h> exists even on freestanding compilers.  */
21327
21328 #ifdef __STDC__
21329 # include <limits.h>
21330 #else
21331 # include <assert.h>
21332 #endif
21333
21334 #undef $ac_func
21335
21336 /* Override any GCC internal prototype to avoid an error.
21337    Use char because int might match the return type of a GCC
21338    builtin and then its argument prototype would still apply.  */
21339 #ifdef __cplusplus
21340 extern "C"
21341 #endif
21342 char $ac_func ();
21343 /* The GNU C library defines this for functions which it implements
21344     to always fail with ENOSYS.  Some functions are actually named
21345     something starting with __ and the normal name is an alias.  */
21346 #if defined __stub_$ac_func || defined __stub___$ac_func
21347 choke me
21348 #endif
21349
21350 int
21351 main ()
21352 {
21353 return $ac_func ();
21354   ;
21355   return 0;
21356 }
21357 _ACEOF
21358 rm -f conftest.$ac_objext conftest$ac_exeext
21359 if { (ac_try="$ac_link"
21360 case "(($ac_try" in
21361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21362   *) ac_try_echo=$ac_try;;
21363 esac
21364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21365 $as_echo "$ac_try_echo") >&5
21366   (eval "$ac_link") 2>conftest.er1
21367   ac_status=$?
21368   grep -v '^ *+' conftest.er1 >conftest.err
21369   rm -f conftest.er1
21370   cat conftest.err >&5
21371   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372   (exit $ac_status); } && {
21373          test -z "$ac_c_werror_flag" ||
21374          test ! -s conftest.err
21375        } && test -s conftest$ac_exeext && {
21376          test "$cross_compiling" = yes ||
21377          $as_test_x conftest$ac_exeext
21378        }; then
21379   eval "$as_ac_var=yes"
21380 else
21381   $as_echo "$as_me: failed program was:" >&5
21382 sed 's/^/| /' conftest.$ac_ext >&5
21383
21384         eval "$as_ac_var=no"
21385 fi
21386
21387 rm -rf conftest.dSYM
21388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21389       conftest$ac_exeext conftest.$ac_ext
21390 fi
21391 ac_res=`eval 'as_val=${'$as_ac_var'}
21392                  $as_echo "$as_val"'`
21393                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21394 $as_echo "$ac_res" >&6; }
21395 as_val=`eval 'as_val=${'$as_ac_var'}
21396                  $as_echo "$as_val"'`
21397    if test "x$as_val" = x""yes; then
21398   cat >>confdefs.h <<_ACEOF
21399 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21400 _ACEOF
21401
21402 else
21403   case " $LIBOBJS " in
21404   *" $ac_func.$ac_objext "* ) ;;
21405   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21406  ;;
21407 esac
21408
21409 fi
21410 done
21411
21412
21413 else
21414   case " $LIBOBJS " in
21415   *" getopt_long.$ac_objext "* ) ;;
21416   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21417  ;;
21418 esac
21419
21420 fi
21421
21422 # Solaris' getopt() doesn't do what we want for long options, so always use
21423 # our version on that platform.
21424 if test "$PORTNAME" = "solaris"; then
21425   case " $LIBOBJS " in
21426   *" getopt.$ac_objext "* ) ;;
21427   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21428  ;;
21429 esac
21430
21431 fi
21432
21433 # mingw has adopted a GNU-centric interpretation of optind/optreset,
21434 # so always use our version on Windows.
21435 if test "$PORTNAME" = "win32"; then
21436   case " $LIBOBJS " in
21437   *" getopt.$ac_objext "* ) ;;
21438   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21439  ;;
21440 esac
21441
21442   case " $LIBOBJS " in
21443   *" getopt_long.$ac_objext "* ) ;;
21444   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21445  ;;
21446 esac
21447
21448 fi
21449
21450 # Win32 support
21451 if test "$PORTNAME" = "win32"; then
21452
21453 for ac_func in gettimeofday
21454 do
21455 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21456 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21457 $as_echo_n "checking for $ac_func... " >&6; }
21458 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21459   $as_echo_n "(cached) " >&6
21460 else
21461   cat >conftest.$ac_ext <<_ACEOF
21462 /* confdefs.h.  */
21463 _ACEOF
21464 cat confdefs.h >>conftest.$ac_ext
21465 cat >>conftest.$ac_ext <<_ACEOF
21466 /* end confdefs.h.  */
21467 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21468    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21469 #define $ac_func innocuous_$ac_func
21470
21471 /* System header to define __stub macros and hopefully few prototypes,
21472     which can conflict with char $ac_func (); below.
21473     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21474     <limits.h> exists even on freestanding compilers.  */
21475
21476 #ifdef __STDC__
21477 # include <limits.h>
21478 #else
21479 # include <assert.h>
21480 #endif
21481
21482 #undef $ac_func
21483
21484 /* Override any GCC internal prototype to avoid an error.
21485    Use char because int might match the return type of a GCC
21486    builtin and then its argument prototype would still apply.  */
21487 #ifdef __cplusplus
21488 extern "C"
21489 #endif
21490 char $ac_func ();
21491 /* The GNU C library defines this for functions which it implements
21492     to always fail with ENOSYS.  Some functions are actually named
21493     something starting with __ and the normal name is an alias.  */
21494 #if defined __stub_$ac_func || defined __stub___$ac_func
21495 choke me
21496 #endif
21497
21498 int
21499 main ()
21500 {
21501 return $ac_func ();
21502   ;
21503   return 0;
21504 }
21505 _ACEOF
21506 rm -f conftest.$ac_objext conftest$ac_exeext
21507 if { (ac_try="$ac_link"
21508 case "(($ac_try" in
21509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21510   *) ac_try_echo=$ac_try;;
21511 esac
21512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21513 $as_echo "$ac_try_echo") >&5
21514   (eval "$ac_link") 2>conftest.er1
21515   ac_status=$?
21516   grep -v '^ *+' conftest.er1 >conftest.err
21517   rm -f conftest.er1
21518   cat conftest.err >&5
21519   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520   (exit $ac_status); } && {
21521          test -z "$ac_c_werror_flag" ||
21522          test ! -s conftest.err
21523        } && test -s conftest$ac_exeext && {
21524          test "$cross_compiling" = yes ||
21525          $as_test_x conftest$ac_exeext
21526        }; then
21527   eval "$as_ac_var=yes"
21528 else
21529   $as_echo "$as_me: failed program was:" >&5
21530 sed 's/^/| /' conftest.$ac_ext >&5
21531
21532         eval "$as_ac_var=no"
21533 fi
21534
21535 rm -rf conftest.dSYM
21536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21537       conftest$ac_exeext conftest.$ac_ext
21538 fi
21539 ac_res=`eval 'as_val=${'$as_ac_var'}
21540                  $as_echo "$as_val"'`
21541                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21542 $as_echo "$ac_res" >&6; }
21543 as_val=`eval 'as_val=${'$as_ac_var'}
21544                  $as_echo "$as_val"'`
21545    if test "x$as_val" = x""yes; then
21546   cat >>confdefs.h <<_ACEOF
21547 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21548 _ACEOF
21549
21550 else
21551   case " $LIBOBJS " in
21552   *" $ac_func.$ac_objext "* ) ;;
21553   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21554  ;;
21555 esac
21556
21557 fi
21558 done
21559
21560
21561   case " $LIBOBJS " in
21562   *" kill.$ac_objext "* ) ;;
21563   *) LIBOBJS="$LIBOBJS kill.$ac_objext"
21564  ;;
21565 esac
21566
21567   case " $LIBOBJS " in
21568   *" open.$ac_objext "* ) ;;
21569   *) LIBOBJS="$LIBOBJS open.$ac_objext"
21570  ;;
21571 esac
21572
21573   case " $LIBOBJS " in
21574   *" win32env.$ac_objext "* ) ;;
21575   *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
21576  ;;
21577 esac
21578
21579   case " $LIBOBJS " in
21580   *" win32error.$ac_objext "* ) ;;
21581   *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
21582  ;;
21583 esac
21584
21585   case " $LIBOBJS " in
21586   *" win32setlocale.$ac_objext "* ) ;;
21587   *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
21588  ;;
21589 esac
21590
21591
21592 cat >>confdefs.h <<\_ACEOF
21593 #define HAVE_SYMLINK 1
21594 _ACEOF
21595
21596   { $as_echo "$as_me:$LINENO: checking for MINIDUMP_TYPE" >&5
21597 $as_echo_n "checking for MINIDUMP_TYPE... " >&6; }
21598 if test "${ac_cv_type_MINIDUMP_TYPE+set}" = set; then
21599   $as_echo_n "(cached) " >&6
21600 else
21601   ac_cv_type_MINIDUMP_TYPE=no
21602 cat >conftest.$ac_ext <<_ACEOF
21603 /* confdefs.h.  */
21604 _ACEOF
21605 cat confdefs.h >>conftest.$ac_ext
21606 cat >>conftest.$ac_ext <<_ACEOF
21607 /* end confdefs.h.  */
21608
21609 #define WIN32_LEAN_AND_MEAN
21610 #include <windows.h>
21611 #include <string.h>
21612 #include <dbghelp.h>
21613
21614 int
21615 main ()
21616 {
21617 if (sizeof (MINIDUMP_TYPE))
21618        return 0;
21619   ;
21620   return 0;
21621 }
21622 _ACEOF
21623 rm -f conftest.$ac_objext
21624 if { (ac_try="$ac_compile"
21625 case "(($ac_try" in
21626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21627   *) ac_try_echo=$ac_try;;
21628 esac
21629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21630 $as_echo "$ac_try_echo") >&5
21631   (eval "$ac_compile") 2>conftest.er1
21632   ac_status=$?
21633   grep -v '^ *+' conftest.er1 >conftest.err
21634   rm -f conftest.er1
21635   cat conftest.err >&5
21636   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637   (exit $ac_status); } && {
21638          test -z "$ac_c_werror_flag" ||
21639          test ! -s conftest.err
21640        } && test -s conftest.$ac_objext; then
21641   cat >conftest.$ac_ext <<_ACEOF
21642 /* confdefs.h.  */
21643 _ACEOF
21644 cat confdefs.h >>conftest.$ac_ext
21645 cat >>conftest.$ac_ext <<_ACEOF
21646 /* end confdefs.h.  */
21647
21648 #define WIN32_LEAN_AND_MEAN
21649 #include <windows.h>
21650 #include <string.h>
21651 #include <dbghelp.h>
21652
21653 int
21654 main ()
21655 {
21656 if (sizeof ((MINIDUMP_TYPE)))
21657           return 0;
21658   ;
21659   return 0;
21660 }
21661 _ACEOF
21662 rm -f conftest.$ac_objext
21663 if { (ac_try="$ac_compile"
21664 case "(($ac_try" in
21665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21666   *) ac_try_echo=$ac_try;;
21667 esac
21668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21669 $as_echo "$ac_try_echo") >&5
21670   (eval "$ac_compile") 2>conftest.er1
21671   ac_status=$?
21672   grep -v '^ *+' conftest.er1 >conftest.err
21673   rm -f conftest.er1
21674   cat conftest.err >&5
21675   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676   (exit $ac_status); } && {
21677          test -z "$ac_c_werror_flag" ||
21678          test ! -s conftest.err
21679        } && test -s conftest.$ac_objext; then
21680   :
21681 else
21682   $as_echo "$as_me: failed program was:" >&5
21683 sed 's/^/| /' conftest.$ac_ext >&5
21684
21685         ac_cv_type_MINIDUMP_TYPE=yes
21686 fi
21687
21688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21689 else
21690   $as_echo "$as_me: failed program was:" >&5
21691 sed 's/^/| /' conftest.$ac_ext >&5
21692
21693
21694 fi
21695
21696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21697 fi
21698 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_MINIDUMP_TYPE" >&5
21699 $as_echo "$ac_cv_type_MINIDUMP_TYPE" >&6; }
21700 if test "x$ac_cv_type_MINIDUMP_TYPE" = x""yes; then
21701
21702 cat >>confdefs.h <<_ACEOF
21703 #define HAVE_MINIDUMP_TYPE 1
21704 _ACEOF
21705
21706 pgac_minidump_type=yes
21707 else
21708   pgac_minidump_type=no
21709 fi
21710
21711 fi
21712 if test x"$pgac_minidump_type" = x"yes" ; then
21713   have_win32_dbghelp=yes
21714
21715 else
21716   have_win32_dbghelp=no
21717
21718 fi
21719
21720 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
21721 $as_echo_n "checking for sigsetjmp... " >&6; }
21722 if test "${pgac_cv_func_sigsetjmp+set}" = set; then
21723   $as_echo_n "(cached) " >&6
21724 else
21725   cat >conftest.$ac_ext <<_ACEOF
21726 /* confdefs.h.  */
21727 _ACEOF
21728 cat confdefs.h >>conftest.$ac_ext
21729 cat >>conftest.$ac_ext <<_ACEOF
21730 /* end confdefs.h.  */
21731 #include <setjmp.h>
21732 int
21733 main ()
21734 {
21735 sigjmp_buf x; sigsetjmp(x, 1);
21736   ;
21737   return 0;
21738 }
21739 _ACEOF
21740 rm -f conftest.$ac_objext conftest$ac_exeext
21741 if { (ac_try="$ac_link"
21742 case "(($ac_try" in
21743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21744   *) ac_try_echo=$ac_try;;
21745 esac
21746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21747 $as_echo "$ac_try_echo") >&5
21748   (eval "$ac_link") 2>conftest.er1
21749   ac_status=$?
21750   grep -v '^ *+' conftest.er1 >conftest.err
21751   rm -f conftest.er1
21752   cat conftest.err >&5
21753   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754   (exit $ac_status); } && {
21755          test -z "$ac_c_werror_flag" ||
21756          test ! -s conftest.err
21757        } && test -s conftest$ac_exeext && {
21758          test "$cross_compiling" = yes ||
21759          $as_test_x conftest$ac_exeext
21760        }; then
21761   pgac_cv_func_sigsetjmp=yes
21762 else
21763   $as_echo "$as_me: failed program was:" >&5
21764 sed 's/^/| /' conftest.$ac_ext >&5
21765
21766         pgac_cv_func_sigsetjmp=no
21767 fi
21768
21769 rm -rf conftest.dSYM
21770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21771       conftest$ac_exeext conftest.$ac_ext
21772 fi
21773 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_sigsetjmp" >&5
21774 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
21775 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
21776
21777 cat >>confdefs.h <<\_ACEOF
21778 #define HAVE_SIGSETJMP 1
21779 _ACEOF
21780
21781 fi
21782
21783 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
21784 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
21785 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
21786   $as_echo_n "(cached) " >&6
21787 else
21788   cat >conftest.$ac_ext <<_ACEOF
21789 /* confdefs.h.  */
21790 _ACEOF
21791 cat confdefs.h >>conftest.$ac_ext
21792 cat >>conftest.$ac_ext <<_ACEOF
21793 /* end confdefs.h.  */
21794 #include <signal.h>
21795 /* NetBSD declares sys_siglist in unistd.h.  */
21796 #ifdef HAVE_UNISTD_H
21797 # include <unistd.h>
21798 #endif
21799
21800
21801 int
21802 main ()
21803 {
21804 #ifndef sys_siglist
21805   (void) sys_siglist;
21806 #endif
21807
21808   ;
21809   return 0;
21810 }
21811 _ACEOF
21812 rm -f conftest.$ac_objext
21813 if { (ac_try="$ac_compile"
21814 case "(($ac_try" in
21815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21816   *) ac_try_echo=$ac_try;;
21817 esac
21818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21819 $as_echo "$ac_try_echo") >&5
21820   (eval "$ac_compile") 2>conftest.er1
21821   ac_status=$?
21822   grep -v '^ *+' conftest.er1 >conftest.err
21823   rm -f conftest.er1
21824   cat conftest.err >&5
21825   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826   (exit $ac_status); } && {
21827          test -z "$ac_c_werror_flag" ||
21828          test ! -s conftest.err
21829        } && test -s conftest.$ac_objext; then
21830   ac_cv_have_decl_sys_siglist=yes
21831 else
21832   $as_echo "$as_me: failed program was:" >&5
21833 sed 's/^/| /' conftest.$ac_ext >&5
21834
21835         ac_cv_have_decl_sys_siglist=no
21836 fi
21837
21838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21839 fi
21840 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
21841 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
21842 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
21843
21844 cat >>confdefs.h <<_ACEOF
21845 #define HAVE_DECL_SYS_SIGLIST 1
21846 _ACEOF
21847
21848
21849 else
21850   cat >>confdefs.h <<_ACEOF
21851 #define HAVE_DECL_SYS_SIGLIST 0
21852 _ACEOF
21853
21854
21855 fi
21856
21857
21858
21859
21860 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
21861 $as_echo_n "checking for syslog... " >&6; }
21862 if test "${ac_cv_func_syslog+set}" = set; then
21863   $as_echo_n "(cached) " >&6
21864 else
21865   cat >conftest.$ac_ext <<_ACEOF
21866 /* confdefs.h.  */
21867 _ACEOF
21868 cat confdefs.h >>conftest.$ac_ext
21869 cat >>conftest.$ac_ext <<_ACEOF
21870 /* end confdefs.h.  */
21871 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
21872    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21873 #define syslog innocuous_syslog
21874
21875 /* System header to define __stub macros and hopefully few prototypes,
21876     which can conflict with char syslog (); below.
21877     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21878     <limits.h> exists even on freestanding compilers.  */
21879
21880 #ifdef __STDC__
21881 # include <limits.h>
21882 #else
21883 # include <assert.h>
21884 #endif
21885
21886 #undef syslog
21887
21888 /* Override any GCC internal prototype to avoid an error.
21889    Use char because int might match the return type of a GCC
21890    builtin and then its argument prototype would still apply.  */
21891 #ifdef __cplusplus
21892 extern "C"
21893 #endif
21894 char syslog ();
21895 /* The GNU C library defines this for functions which it implements
21896     to always fail with ENOSYS.  Some functions are actually named
21897     something starting with __ and the normal name is an alias.  */
21898 #if defined __stub_syslog || defined __stub___syslog
21899 choke me
21900 #endif
21901
21902 int
21903 main ()
21904 {
21905 return syslog ();
21906   ;
21907   return 0;
21908 }
21909 _ACEOF
21910 rm -f conftest.$ac_objext conftest$ac_exeext
21911 if { (ac_try="$ac_link"
21912 case "(($ac_try" in
21913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21914   *) ac_try_echo=$ac_try;;
21915 esac
21916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21917 $as_echo "$ac_try_echo") >&5
21918   (eval "$ac_link") 2>conftest.er1
21919   ac_status=$?
21920   grep -v '^ *+' conftest.er1 >conftest.err
21921   rm -f conftest.er1
21922   cat conftest.err >&5
21923   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924   (exit $ac_status); } && {
21925          test -z "$ac_c_werror_flag" ||
21926          test ! -s conftest.err
21927        } && test -s conftest$ac_exeext && {
21928          test "$cross_compiling" = yes ||
21929          $as_test_x conftest$ac_exeext
21930        }; then
21931   ac_cv_func_syslog=yes
21932 else
21933   $as_echo "$as_me: failed program was:" >&5
21934 sed 's/^/| /' conftest.$ac_ext >&5
21935
21936         ac_cv_func_syslog=no
21937 fi
21938
21939 rm -rf conftest.dSYM
21940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21941       conftest$ac_exeext conftest.$ac_ext
21942 fi
21943 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
21944 $as_echo "$ac_cv_func_syslog" >&6; }
21945 if test "x$ac_cv_func_syslog" = x""yes; then
21946   if test "${ac_cv_header_syslog_h+set}" = set; then
21947   { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21948 $as_echo_n "checking for syslog.h... " >&6; }
21949 if test "${ac_cv_header_syslog_h+set}" = set; then
21950   $as_echo_n "(cached) " >&6
21951 fi
21952 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21953 $as_echo "$ac_cv_header_syslog_h" >&6; }
21954 else
21955   # Is the header compilable?
21956 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
21957 $as_echo_n "checking syslog.h usability... " >&6; }
21958 cat >conftest.$ac_ext <<_ACEOF
21959 /* confdefs.h.  */
21960 _ACEOF
21961 cat confdefs.h >>conftest.$ac_ext
21962 cat >>conftest.$ac_ext <<_ACEOF
21963 /* end confdefs.h.  */
21964 $ac_includes_default
21965 #include <syslog.h>
21966 _ACEOF
21967 rm -f conftest.$ac_objext
21968 if { (ac_try="$ac_compile"
21969 case "(($ac_try" in
21970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21971   *) ac_try_echo=$ac_try;;
21972 esac
21973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21974 $as_echo "$ac_try_echo") >&5
21975   (eval "$ac_compile") 2>conftest.er1
21976   ac_status=$?
21977   grep -v '^ *+' conftest.er1 >conftest.err
21978   rm -f conftest.er1
21979   cat conftest.err >&5
21980   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21981   (exit $ac_status); } && {
21982          test -z "$ac_c_werror_flag" ||
21983          test ! -s conftest.err
21984        } && test -s conftest.$ac_objext; then
21985   ac_header_compiler=yes
21986 else
21987   $as_echo "$as_me: failed program was:" >&5
21988 sed 's/^/| /' conftest.$ac_ext >&5
21989
21990         ac_header_compiler=no
21991 fi
21992
21993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21994 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21995 $as_echo "$ac_header_compiler" >&6; }
21996
21997 # Is the header present?
21998 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
21999 $as_echo_n "checking syslog.h presence... " >&6; }
22000 cat >conftest.$ac_ext <<_ACEOF
22001 /* confdefs.h.  */
22002 _ACEOF
22003 cat confdefs.h >>conftest.$ac_ext
22004 cat >>conftest.$ac_ext <<_ACEOF
22005 /* end confdefs.h.  */
22006 #include <syslog.h>
22007 _ACEOF
22008 if { (ac_try="$ac_cpp conftest.$ac_ext"
22009 case "(($ac_try" in
22010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22011   *) ac_try_echo=$ac_try;;
22012 esac
22013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22014 $as_echo "$ac_try_echo") >&5
22015   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22016   ac_status=$?
22017   grep -v '^ *+' conftest.er1 >conftest.err
22018   rm -f conftest.er1
22019   cat conftest.err >&5
22020   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021   (exit $ac_status); } >/dev/null && {
22022          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22023          test ! -s conftest.err
22024        }; then
22025   ac_header_preproc=yes
22026 else
22027   $as_echo "$as_me: failed program was:" >&5
22028 sed 's/^/| /' conftest.$ac_ext >&5
22029
22030   ac_header_preproc=no
22031 fi
22032
22033 rm -f conftest.err conftest.$ac_ext
22034 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22035 $as_echo "$ac_header_preproc" >&6; }
22036
22037 # So?  What about this header?
22038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22039   yes:no: )
22040     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
22041 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22042     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
22043 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
22044     ac_header_preproc=yes
22045     ;;
22046   no:yes:* )
22047     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
22048 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
22049     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     check for missing prerequisite headers?" >&5
22050 $as_echo "$as_me: WARNING: syslog.h:     check for missing prerequisite headers?" >&2;}
22051     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
22052 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
22053     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&5
22054 $as_echo "$as_me: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22055     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
22056 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
22057     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
22058 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
22059     ( cat <<\_ASBOX
22060 ## ---------------------------------------- ##
22061 ## Report this to pgsql-bugs@postgresql.org ##
22062 ## ---------------------------------------- ##
22063 _ASBOX
22064      ) | sed "s/^/$as_me: WARNING:     /" >&2
22065     ;;
22066 esac
22067 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22068 $as_echo_n "checking for syslog.h... " >&6; }
22069 if test "${ac_cv_header_syslog_h+set}" = set; then
22070   $as_echo_n "(cached) " >&6
22071 else
22072   ac_cv_header_syslog_h=$ac_header_preproc
22073 fi
22074 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22075 $as_echo "$ac_cv_header_syslog_h" >&6; }
22076
22077 fi
22078 if test "x$ac_cv_header_syslog_h" = x""yes; then
22079
22080 cat >>confdefs.h <<\_ACEOF
22081 #define HAVE_SYSLOG 1
22082 _ACEOF
22083
22084 fi
22085
22086
22087 fi
22088
22089
22090 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
22091 $as_echo_n "checking for opterr... " >&6; }
22092 if test "${pgac_cv_var_int_opterr+set}" = set; then
22093   $as_echo_n "(cached) " >&6
22094 else
22095   cat >conftest.$ac_ext <<_ACEOF
22096 /* confdefs.h.  */
22097 _ACEOF
22098 cat confdefs.h >>conftest.$ac_ext
22099 cat >>conftest.$ac_ext <<_ACEOF
22100 /* end confdefs.h.  */
22101 #include <unistd.h>
22102 int
22103 main ()
22104 {
22105 extern int opterr; opterr = 1;
22106   ;
22107   return 0;
22108 }
22109 _ACEOF
22110 rm -f conftest.$ac_objext conftest$ac_exeext
22111 if { (ac_try="$ac_link"
22112 case "(($ac_try" in
22113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22114   *) ac_try_echo=$ac_try;;
22115 esac
22116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22117 $as_echo "$ac_try_echo") >&5
22118   (eval "$ac_link") 2>conftest.er1
22119   ac_status=$?
22120   grep -v '^ *+' conftest.er1 >conftest.err
22121   rm -f conftest.er1
22122   cat conftest.err >&5
22123   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124   (exit $ac_status); } && {
22125          test -z "$ac_c_werror_flag" ||
22126          test ! -s conftest.err
22127        } && test -s conftest$ac_exeext && {
22128          test "$cross_compiling" = yes ||
22129          $as_test_x conftest$ac_exeext
22130        }; then
22131   pgac_cv_var_int_opterr=yes
22132 else
22133   $as_echo "$as_me: failed program was:" >&5
22134 sed 's/^/| /' conftest.$ac_ext >&5
22135
22136         pgac_cv_var_int_opterr=no
22137 fi
22138
22139 rm -rf conftest.dSYM
22140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22141       conftest$ac_exeext conftest.$ac_ext
22142 fi
22143 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
22144 $as_echo "$pgac_cv_var_int_opterr" >&6; }
22145 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
22146
22147 cat >>confdefs.h <<\_ACEOF
22148 #define HAVE_INT_OPTERR 1
22149 _ACEOF
22150
22151 fi
22152
22153 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
22154 $as_echo_n "checking for optreset... " >&6; }
22155 if test "${pgac_cv_var_int_optreset+set}" = set; then
22156   $as_echo_n "(cached) " >&6
22157 else
22158   cat >conftest.$ac_ext <<_ACEOF
22159 /* confdefs.h.  */
22160 _ACEOF
22161 cat confdefs.h >>conftest.$ac_ext
22162 cat >>conftest.$ac_ext <<_ACEOF
22163 /* end confdefs.h.  */
22164 #include <unistd.h>
22165 int
22166 main ()
22167 {
22168 extern int optreset; optreset = 1;
22169   ;
22170   return 0;
22171 }
22172 _ACEOF
22173 rm -f conftest.$ac_objext conftest$ac_exeext
22174 if { (ac_try="$ac_link"
22175 case "(($ac_try" in
22176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22177   *) ac_try_echo=$ac_try;;
22178 esac
22179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22180 $as_echo "$ac_try_echo") >&5
22181   (eval "$ac_link") 2>conftest.er1
22182   ac_status=$?
22183   grep -v '^ *+' conftest.er1 >conftest.err
22184   rm -f conftest.er1
22185   cat conftest.err >&5
22186   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187   (exit $ac_status); } && {
22188          test -z "$ac_c_werror_flag" ||
22189          test ! -s conftest.err
22190        } && test -s conftest$ac_exeext && {
22191          test "$cross_compiling" = yes ||
22192          $as_test_x conftest$ac_exeext
22193        }; then
22194   pgac_cv_var_int_optreset=yes
22195 else
22196   $as_echo "$as_me: failed program was:" >&5
22197 sed 's/^/| /' conftest.$ac_ext >&5
22198
22199         pgac_cv_var_int_optreset=no
22200 fi
22201
22202 rm -rf conftest.dSYM
22203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22204       conftest$ac_exeext conftest.$ac_ext
22205 fi
22206 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
22207 $as_echo "$pgac_cv_var_int_optreset" >&6; }
22208 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
22209
22210 cat >>confdefs.h <<\_ACEOF
22211 #define HAVE_INT_OPTRESET 1
22212 _ACEOF
22213
22214 fi
22215
22216
22217
22218 for ac_func in strtoll strtoq
22219 do
22220 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22221 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22222 $as_echo_n "checking for $ac_func... " >&6; }
22223 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22224   $as_echo_n "(cached) " >&6
22225 else
22226   cat >conftest.$ac_ext <<_ACEOF
22227 /* confdefs.h.  */
22228 _ACEOF
22229 cat confdefs.h >>conftest.$ac_ext
22230 cat >>conftest.$ac_ext <<_ACEOF
22231 /* end confdefs.h.  */
22232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22233    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22234 #define $ac_func innocuous_$ac_func
22235
22236 /* System header to define __stub macros and hopefully few prototypes,
22237     which can conflict with char $ac_func (); below.
22238     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22239     <limits.h> exists even on freestanding compilers.  */
22240
22241 #ifdef __STDC__
22242 # include <limits.h>
22243 #else
22244 # include <assert.h>
22245 #endif
22246
22247 #undef $ac_func
22248
22249 /* Override any GCC internal prototype to avoid an error.
22250    Use char because int might match the return type of a GCC
22251    builtin and then its argument prototype would still apply.  */
22252 #ifdef __cplusplus
22253 extern "C"
22254 #endif
22255 char $ac_func ();
22256 /* The GNU C library defines this for functions which it implements
22257     to always fail with ENOSYS.  Some functions are actually named
22258     something starting with __ and the normal name is an alias.  */
22259 #if defined __stub_$ac_func || defined __stub___$ac_func
22260 choke me
22261 #endif
22262
22263 int
22264 main ()
22265 {
22266 return $ac_func ();
22267   ;
22268   return 0;
22269 }
22270 _ACEOF
22271 rm -f conftest.$ac_objext conftest$ac_exeext
22272 if { (ac_try="$ac_link"
22273 case "(($ac_try" in
22274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22275   *) ac_try_echo=$ac_try;;
22276 esac
22277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22278 $as_echo "$ac_try_echo") >&5
22279   (eval "$ac_link") 2>conftest.er1
22280   ac_status=$?
22281   grep -v '^ *+' conftest.er1 >conftest.err
22282   rm -f conftest.er1
22283   cat conftest.err >&5
22284   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285   (exit $ac_status); } && {
22286          test -z "$ac_c_werror_flag" ||
22287          test ! -s conftest.err
22288        } && test -s conftest$ac_exeext && {
22289          test "$cross_compiling" = yes ||
22290          $as_test_x conftest$ac_exeext
22291        }; then
22292   eval "$as_ac_var=yes"
22293 else
22294   $as_echo "$as_me: failed program was:" >&5
22295 sed 's/^/| /' conftest.$ac_ext >&5
22296
22297         eval "$as_ac_var=no"
22298 fi
22299
22300 rm -rf conftest.dSYM
22301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22302       conftest$ac_exeext conftest.$ac_ext
22303 fi
22304 ac_res=`eval 'as_val=${'$as_ac_var'}
22305                  $as_echo "$as_val"'`
22306                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22307 $as_echo "$ac_res" >&6; }
22308 as_val=`eval 'as_val=${'$as_ac_var'}
22309                  $as_echo "$as_val"'`
22310    if test "x$as_val" = x""yes; then
22311   cat >>confdefs.h <<_ACEOF
22312 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22313 _ACEOF
22314  break
22315 fi
22316 done
22317
22318
22319
22320 for ac_func in strtoull strtouq
22321 do
22322 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22323 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22324 $as_echo_n "checking for $ac_func... " >&6; }
22325 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22326   $as_echo_n "(cached) " >&6
22327 else
22328   cat >conftest.$ac_ext <<_ACEOF
22329 /* confdefs.h.  */
22330 _ACEOF
22331 cat confdefs.h >>conftest.$ac_ext
22332 cat >>conftest.$ac_ext <<_ACEOF
22333 /* end confdefs.h.  */
22334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22335    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22336 #define $ac_func innocuous_$ac_func
22337
22338 /* System header to define __stub macros and hopefully few prototypes,
22339     which can conflict with char $ac_func (); below.
22340     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22341     <limits.h> exists even on freestanding compilers.  */
22342
22343 #ifdef __STDC__
22344 # include <limits.h>
22345 #else
22346 # include <assert.h>
22347 #endif
22348
22349 #undef $ac_func
22350
22351 /* Override any GCC internal prototype to avoid an error.
22352    Use char because int might match the return type of a GCC
22353    builtin and then its argument prototype would still apply.  */
22354 #ifdef __cplusplus
22355 extern "C"
22356 #endif
22357 char $ac_func ();
22358 /* The GNU C library defines this for functions which it implements
22359     to always fail with ENOSYS.  Some functions are actually named
22360     something starting with __ and the normal name is an alias.  */
22361 #if defined __stub_$ac_func || defined __stub___$ac_func
22362 choke me
22363 #endif
22364
22365 int
22366 main ()
22367 {
22368 return $ac_func ();
22369   ;
22370   return 0;
22371 }
22372 _ACEOF
22373 rm -f conftest.$ac_objext conftest$ac_exeext
22374 if { (ac_try="$ac_link"
22375 case "(($ac_try" in
22376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22377   *) ac_try_echo=$ac_try;;
22378 esac
22379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22380 $as_echo "$ac_try_echo") >&5
22381   (eval "$ac_link") 2>conftest.er1
22382   ac_status=$?
22383   grep -v '^ *+' conftest.er1 >conftest.err
22384   rm -f conftest.er1
22385   cat conftest.err >&5
22386   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387   (exit $ac_status); } && {
22388          test -z "$ac_c_werror_flag" ||
22389          test ! -s conftest.err
22390        } && test -s conftest$ac_exeext && {
22391          test "$cross_compiling" = yes ||
22392          $as_test_x conftest$ac_exeext
22393        }; then
22394   eval "$as_ac_var=yes"
22395 else
22396   $as_echo "$as_me: failed program was:" >&5
22397 sed 's/^/| /' conftest.$ac_ext >&5
22398
22399         eval "$as_ac_var=no"
22400 fi
22401
22402 rm -rf conftest.dSYM
22403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22404       conftest$ac_exeext conftest.$ac_ext
22405 fi
22406 ac_res=`eval 'as_val=${'$as_ac_var'}
22407                  $as_echo "$as_val"'`
22408                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22409 $as_echo "$ac_res" >&6; }
22410 as_val=`eval 'as_val=${'$as_ac_var'}
22411                  $as_echo "$as_val"'`
22412    if test "x$as_val" = x""yes; then
22413   cat >>confdefs.h <<_ACEOF
22414 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22415 _ACEOF
22416  break
22417 fi
22418 done
22419
22420
22421 { $as_echo "$as_me:$LINENO: checking for builtin locking functions" >&5
22422 $as_echo_n "checking for builtin locking functions... " >&6; }
22423 if test "${pgac_cv_gcc_int_atomics+set}" = set; then
22424   $as_echo_n "(cached) " >&6
22425 else
22426   cat >conftest.$ac_ext <<_ACEOF
22427 /* confdefs.h.  */
22428 _ACEOF
22429 cat confdefs.h >>conftest.$ac_ext
22430 cat >>conftest.$ac_ext <<_ACEOF
22431 /* end confdefs.h.  */
22432
22433 int
22434 main ()
22435 {
22436 int lock = 0;
22437    __sync_lock_test_and_set(&lock, 1);
22438    __sync_lock_release(&lock);
22439   ;
22440   return 0;
22441 }
22442 _ACEOF
22443 rm -f conftest.$ac_objext conftest$ac_exeext
22444 if { (ac_try="$ac_link"
22445 case "(($ac_try" in
22446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22447   *) ac_try_echo=$ac_try;;
22448 esac
22449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22450 $as_echo "$ac_try_echo") >&5
22451   (eval "$ac_link") 2>conftest.er1
22452   ac_status=$?
22453   grep -v '^ *+' conftest.er1 >conftest.err
22454   rm -f conftest.er1
22455   cat conftest.err >&5
22456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457   (exit $ac_status); } && {
22458          test -z "$ac_c_werror_flag" ||
22459          test ! -s conftest.err
22460        } && test -s conftest$ac_exeext && {
22461          test "$cross_compiling" = yes ||
22462          $as_test_x conftest$ac_exeext
22463        }; then
22464   pgac_cv_gcc_int_atomics="yes"
22465 else
22466   $as_echo "$as_me: failed program was:" >&5
22467 sed 's/^/| /' conftest.$ac_ext >&5
22468
22469         pgac_cv_gcc_int_atomics="no"
22470 fi
22471
22472 rm -rf conftest.dSYM
22473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22474       conftest$ac_exeext conftest.$ac_ext
22475 fi
22476 { $as_echo "$as_me:$LINENO: result: $pgac_cv_gcc_int_atomics" >&5
22477 $as_echo "$pgac_cv_gcc_int_atomics" >&6; }
22478 if test x"$pgac_cv_gcc_int_atomics" = x"yes"; then
22479
22480 cat >>confdefs.h <<\_ACEOF
22481 #define HAVE_GCC_INT_ATOMICS 1
22482 _ACEOF
22483
22484 fi
22485
22486 # Lastly, restore full LIBS list and check for readline/libedit symbols
22487 LIBS="$LIBS_including_readline"
22488
22489 if test "$with_readline" = yes; then
22490   { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
22491 $as_echo_n "checking for rl_completion_append_character... " >&6; }
22492 if test "${pgac_cv_var_rl_completion_append_character+set}" = set; then
22493   $as_echo_n "(cached) " >&6
22494 else
22495   cat >conftest.$ac_ext <<_ACEOF
22496 /* confdefs.h.  */
22497 _ACEOF
22498 cat confdefs.h >>conftest.$ac_ext
22499 cat >>conftest.$ac_ext <<_ACEOF
22500 /* end confdefs.h.  */
22501 #include <stdio.h>
22502 #ifdef HAVE_READLINE_READLINE_H
22503 # include <readline/readline.h>
22504 #elif defined(HAVE_READLINE_H)
22505 # include <readline.h>
22506 #endif
22507
22508 int
22509 main ()
22510 {
22511 rl_completion_append_character = 'x';
22512   ;
22513   return 0;
22514 }
22515 _ACEOF
22516 rm -f conftest.$ac_objext conftest$ac_exeext
22517 if { (ac_try="$ac_link"
22518 case "(($ac_try" in
22519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22520   *) ac_try_echo=$ac_try;;
22521 esac
22522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22523 $as_echo "$ac_try_echo") >&5
22524   (eval "$ac_link") 2>conftest.er1
22525   ac_status=$?
22526   grep -v '^ *+' conftest.er1 >conftest.err
22527   rm -f conftest.er1
22528   cat conftest.err >&5
22529   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530   (exit $ac_status); } && {
22531          test -z "$ac_c_werror_flag" ||
22532          test ! -s conftest.err
22533        } && test -s conftest$ac_exeext && {
22534          test "$cross_compiling" = yes ||
22535          $as_test_x conftest$ac_exeext
22536        }; then
22537   pgac_cv_var_rl_completion_append_character=yes
22538 else
22539   $as_echo "$as_me: failed program was:" >&5
22540 sed 's/^/| /' conftest.$ac_ext >&5
22541
22542         pgac_cv_var_rl_completion_append_character=no
22543 fi
22544
22545 rm -rf conftest.dSYM
22546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22547       conftest$ac_exeext conftest.$ac_ext
22548 fi
22549 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_rl_completion_append_character" >&5
22550 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
22551 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
22552
22553 cat >>confdefs.h <<\_ACEOF
22554 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
22555 _ACEOF
22556
22557 fi
22558
22559
22560 for ac_func in rl_completion_matches rl_filename_completion_function
22561 do
22562 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22563 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22564 $as_echo_n "checking for $ac_func... " >&6; }
22565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22566   $as_echo_n "(cached) " >&6
22567 else
22568   cat >conftest.$ac_ext <<_ACEOF
22569 /* confdefs.h.  */
22570 _ACEOF
22571 cat confdefs.h >>conftest.$ac_ext
22572 cat >>conftest.$ac_ext <<_ACEOF
22573 /* end confdefs.h.  */
22574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22575    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22576 #define $ac_func innocuous_$ac_func
22577
22578 /* System header to define __stub macros and hopefully few prototypes,
22579     which can conflict with char $ac_func (); below.
22580     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22581     <limits.h> exists even on freestanding compilers.  */
22582
22583 #ifdef __STDC__
22584 # include <limits.h>
22585 #else
22586 # include <assert.h>
22587 #endif
22588
22589 #undef $ac_func
22590
22591 /* Override any GCC internal prototype to avoid an error.
22592    Use char because int might match the return type of a GCC
22593    builtin and then its argument prototype would still apply.  */
22594 #ifdef __cplusplus
22595 extern "C"
22596 #endif
22597 char $ac_func ();
22598 /* The GNU C library defines this for functions which it implements
22599     to always fail with ENOSYS.  Some functions are actually named
22600     something starting with __ and the normal name is an alias.  */
22601 #if defined __stub_$ac_func || defined __stub___$ac_func
22602 choke me
22603 #endif
22604
22605 int
22606 main ()
22607 {
22608 return $ac_func ();
22609   ;
22610   return 0;
22611 }
22612 _ACEOF
22613 rm -f conftest.$ac_objext conftest$ac_exeext
22614 if { (ac_try="$ac_link"
22615 case "(($ac_try" in
22616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22617   *) ac_try_echo=$ac_try;;
22618 esac
22619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22620 $as_echo "$ac_try_echo") >&5
22621   (eval "$ac_link") 2>conftest.er1
22622   ac_status=$?
22623   grep -v '^ *+' conftest.er1 >conftest.err
22624   rm -f conftest.er1
22625   cat conftest.err >&5
22626   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627   (exit $ac_status); } && {
22628          test -z "$ac_c_werror_flag" ||
22629          test ! -s conftest.err
22630        } && test -s conftest$ac_exeext && {
22631          test "$cross_compiling" = yes ||
22632          $as_test_x conftest$ac_exeext
22633        }; then
22634   eval "$as_ac_var=yes"
22635 else
22636   $as_echo "$as_me: failed program was:" >&5
22637 sed 's/^/| /' conftest.$ac_ext >&5
22638
22639         eval "$as_ac_var=no"
22640 fi
22641
22642 rm -rf conftest.dSYM
22643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22644       conftest$ac_exeext conftest.$ac_ext
22645 fi
22646 ac_res=`eval 'as_val=${'$as_ac_var'}
22647                  $as_echo "$as_val"'`
22648                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22649 $as_echo "$ac_res" >&6; }
22650 as_val=`eval 'as_val=${'$as_ac_var'}
22651                  $as_echo "$as_val"'`
22652    if test "x$as_val" = x""yes; then
22653   cat >>confdefs.h <<_ACEOF
22654 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22655 _ACEOF
22656
22657 fi
22658 done
22659
22660
22661
22662 for ac_func in append_history history_truncate_file
22663 do
22664 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22665 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22666 $as_echo_n "checking for $ac_func... " >&6; }
22667 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22668   $as_echo_n "(cached) " >&6
22669 else
22670   cat >conftest.$ac_ext <<_ACEOF
22671 /* confdefs.h.  */
22672 _ACEOF
22673 cat confdefs.h >>conftest.$ac_ext
22674 cat >>conftest.$ac_ext <<_ACEOF
22675 /* end confdefs.h.  */
22676 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22677    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22678 #define $ac_func innocuous_$ac_func
22679
22680 /* System header to define __stub macros and hopefully few prototypes,
22681     which can conflict with char $ac_func (); below.
22682     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22683     <limits.h> exists even on freestanding compilers.  */
22684
22685 #ifdef __STDC__
22686 # include <limits.h>
22687 #else
22688 # include <assert.h>
22689 #endif
22690
22691 #undef $ac_func
22692
22693 /* Override any GCC internal prototype to avoid an error.
22694    Use char because int might match the return type of a GCC
22695    builtin and then its argument prototype would still apply.  */
22696 #ifdef __cplusplus
22697 extern "C"
22698 #endif
22699 char $ac_func ();
22700 /* The GNU C library defines this for functions which it implements
22701     to always fail with ENOSYS.  Some functions are actually named
22702     something starting with __ and the normal name is an alias.  */
22703 #if defined __stub_$ac_func || defined __stub___$ac_func
22704 choke me
22705 #endif
22706
22707 int
22708 main ()
22709 {
22710 return $ac_func ();
22711   ;
22712   return 0;
22713 }
22714 _ACEOF
22715 rm -f conftest.$ac_objext conftest$ac_exeext
22716 if { (ac_try="$ac_link"
22717 case "(($ac_try" in
22718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22719   *) ac_try_echo=$ac_try;;
22720 esac
22721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22722 $as_echo "$ac_try_echo") >&5
22723   (eval "$ac_link") 2>conftest.er1
22724   ac_status=$?
22725   grep -v '^ *+' conftest.er1 >conftest.err
22726   rm -f conftest.er1
22727   cat conftest.err >&5
22728   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729   (exit $ac_status); } && {
22730          test -z "$ac_c_werror_flag" ||
22731          test ! -s conftest.err
22732        } && test -s conftest$ac_exeext && {
22733          test "$cross_compiling" = yes ||
22734          $as_test_x conftest$ac_exeext
22735        }; then
22736   eval "$as_ac_var=yes"
22737 else
22738   $as_echo "$as_me: failed program was:" >&5
22739 sed 's/^/| /' conftest.$ac_ext >&5
22740
22741         eval "$as_ac_var=no"
22742 fi
22743
22744 rm -rf conftest.dSYM
22745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22746       conftest$ac_exeext conftest.$ac_ext
22747 fi
22748 ac_res=`eval 'as_val=${'$as_ac_var'}
22749                  $as_echo "$as_val"'`
22750                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22751 $as_echo "$ac_res" >&6; }
22752 as_val=`eval 'as_val=${'$as_ac_var'}
22753                  $as_echo "$as_val"'`
22754    if test "x$as_val" = x""yes; then
22755   cat >>confdefs.h <<_ACEOF
22756 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22757 _ACEOF
22758
22759 fi
22760 done
22761
22762 fi
22763
22764
22765 #
22766 # Pthreads
22767 #
22768 # For each platform, we need to know about any special compile and link
22769 # libraries, and whether the normal C function names are thread-safe.
22770 # See the comment at the top of src/port/thread.c for more information.
22771 # WIN32 doesn't need the pthread tests;  it always uses threads
22772 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
22773
22774
22775
22776 ac_ext=c
22777 ac_cpp='$CPP $CPPFLAGS'
22778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22781
22782 acx_pthread_ok=no
22783
22784 # We used to check for pthread.h first, but this fails if pthread.h
22785 # requires special compiler flags (e.g. on True64 or Sequent).
22786 # It gets checked for in the link test anyway.
22787
22788 # First of all, check if the user has set any of the PTHREAD_LIBS,
22789 # etcetera environment variables, and if threads linking works using
22790 # them:
22791 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22792         save_CFLAGS="$CFLAGS"
22793         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22794         save_LIBS="$LIBS"
22795         LIBS="$PTHREAD_LIBS $LIBS"
22796         { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22797 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
22798         cat >conftest.$ac_ext <<_ACEOF
22799 /* confdefs.h.  */
22800 _ACEOF
22801 cat confdefs.h >>conftest.$ac_ext
22802 cat >>conftest.$ac_ext <<_ACEOF
22803 /* end confdefs.h.  */
22804
22805 /* Override any GCC internal prototype to avoid an error.
22806    Use char because int might match the return type of a GCC
22807    builtin and then its argument prototype would still apply.  */
22808 #ifdef __cplusplus
22809 extern "C"
22810 #endif
22811 char pthread_join ();
22812 int
22813 main ()
22814 {
22815 return pthread_join ();
22816   ;
22817   return 0;
22818 }
22819 _ACEOF
22820 rm -f conftest.$ac_objext conftest$ac_exeext
22821 if { (ac_try="$ac_link"
22822 case "(($ac_try" in
22823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22824   *) ac_try_echo=$ac_try;;
22825 esac
22826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22827 $as_echo "$ac_try_echo") >&5
22828   (eval "$ac_link") 2>conftest.er1
22829   ac_status=$?
22830   grep -v '^ *+' conftest.er1 >conftest.err
22831   rm -f conftest.er1
22832   cat conftest.err >&5
22833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834   (exit $ac_status); } && {
22835          test -z "$ac_c_werror_flag" ||
22836          test ! -s conftest.err
22837        } && test -s conftest$ac_exeext && {
22838          test "$cross_compiling" = yes ||
22839          $as_test_x conftest$ac_exeext
22840        }; then
22841   acx_pthread_ok=yes
22842 else
22843   $as_echo "$as_me: failed program was:" >&5
22844 sed 's/^/| /' conftest.$ac_ext >&5
22845
22846
22847 fi
22848
22849 rm -rf conftest.dSYM
22850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22851       conftest$ac_exeext conftest.$ac_ext
22852         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22853 $as_echo "$acx_pthread_ok" >&6; }
22854         if test x"$acx_pthread_ok" = xno; then
22855                 PTHREAD_LIBS=""
22856                 PTHREAD_CFLAGS=""
22857         fi
22858         LIBS="$save_LIBS"
22859         CFLAGS="$save_CFLAGS"
22860 fi
22861
22862 # We must check for the threads library under a number of different
22863 # names; the ordering is very important because some systems
22864 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22865 # libraries is broken (non-POSIX).
22866
22867 # Create a list of thread flags to try.  Items starting with a "-" are
22868 # C compiler flags, and other items are library names, except for "none"
22869 # which indicates that we try without any flags at all, and "pthread-config"
22870 # which is a program returning the flags for the Pth emulation library.
22871
22872 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
22873
22874 # The ordering *is* (sometimes) important.  Some notes on the
22875 # individual items follow:
22876
22877 # pthreads: AIX (must check this before -lpthread)
22878 # none: in case threads are in libc; should be tried before -Kthread and
22879 #       other compiler flags to prevent continual compiler warnings
22880 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22881 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22882 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22883 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22884 # -pthreads: Solaris/gcc
22885 # -mthreads: Mingw32/gcc, Lynx/gcc
22886 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22887 #      doesn't hurt to check since this sometimes defines pthreads too;
22888 #      also defines -D_REENTRANT)
22889 # pthread: Linux, etcetera
22890 # --thread-safe: KAI C++
22891 # pthread-config: use pthread-config program (for GNU Pth library)
22892
22893 case "${host_cpu}-${host_os}" in
22894         *solaris*)
22895
22896         # On Solaris (at least, for some versions), libc contains stubbed
22897         # (non-functional) versions of the pthreads routines, so link-based
22898         # tests will erroneously succeed.  (We need to link with -pthread or
22899         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
22900         # a function called by this macro, so we could check for that, but
22901         # who knows whether they'll stub that too in a future libc.)  So,
22902         # we'll just look for -pthreads and -lpthread first:
22903
22904         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22905         ;;
22906 esac
22907
22908 if test x"$acx_pthread_ok" = xno; then
22909 for flag in $acx_pthread_flags; do
22910
22911         tryPTHREAD_CFLAGS=""
22912         tryPTHREAD_LIBS=""
22913         case $flag in
22914                 none)
22915                 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22916 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
22917                 ;;
22918
22919                 -*)
22920                 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22921 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
22922                 tryPTHREAD_CFLAGS="$flag"
22923                 ;;
22924
22925                 pthread-config)
22926                 # skip this if we already have flags defined, for PostgreSQL
22927                 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
22928                 # Extract the first word of "pthread-config", so it can be a program name with args.
22929 set dummy pthread-config; ac_word=$2
22930 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22931 $as_echo_n "checking for $ac_word... " >&6; }
22932 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22933   $as_echo_n "(cached) " >&6
22934 else
22935   if test -n "$acx_pthread_config"; then
22936   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22937 else
22938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22939 for as_dir in $PATH
22940 do
22941   IFS=$as_save_IFS
22942   test -z "$as_dir" && as_dir=.
22943   for ac_exec_ext in '' $ac_executable_extensions; do
22944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22945     ac_cv_prog_acx_pthread_config="yes"
22946     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22947     break 2
22948   fi
22949 done
22950 done
22951 IFS=$as_save_IFS
22952
22953   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22954 fi
22955 fi
22956 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22957 if test -n "$acx_pthread_config"; then
22958   { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22959 $as_echo "$acx_pthread_config" >&6; }
22960 else
22961   { $as_echo "$as_me:$LINENO: result: no" >&5
22962 $as_echo "no" >&6; }
22963 fi
22964
22965
22966                 if test x"$acx_pthread_config" = xno; then continue; fi
22967                 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
22968                 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22969                 ;;
22970
22971                 *)
22972                 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22973 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
22974                 tryPTHREAD_LIBS="-l$flag"
22975                 ;;
22976         esac
22977
22978         save_LIBS="$LIBS"
22979         save_CFLAGS="$CFLAGS"
22980         LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
22981         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22982
22983         # Check for various functions.  We must include pthread.h,
22984         # since some functions may be macros.  (On the Sequent, we
22985         # need a special flag -Kthread to make this header compile.)
22986         # We check for pthread_join because it is in -lpthread on IRIX
22987         # while pthread_create is in libc.  We check for pthread_attr_init
22988         # due to DEC craziness with -lpthreads.  We check for
22989         # pthread_cleanup_push because it is one of the few pthread
22990         # functions on Solaris that doesn't have a non-functional libc stub.
22991         # We try pthread_create on general principles.
22992         cat >conftest.$ac_ext <<_ACEOF
22993 /* confdefs.h.  */
22994 _ACEOF
22995 cat confdefs.h >>conftest.$ac_ext
22996 cat >>conftest.$ac_ext <<_ACEOF
22997 /* end confdefs.h.  */
22998 #include <pthread.h>
22999 int
23000 main ()
23001 {
23002 pthread_t th; pthread_join(th, 0);
23003                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
23004                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23005   ;
23006   return 0;
23007 }
23008 _ACEOF
23009 rm -f conftest.$ac_objext conftest$ac_exeext
23010 if { (ac_try="$ac_link"
23011 case "(($ac_try" in
23012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23013   *) ac_try_echo=$ac_try;;
23014 esac
23015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23016 $as_echo "$ac_try_echo") >&5
23017   (eval "$ac_link") 2>conftest.er1
23018   ac_status=$?
23019   grep -v '^ *+' conftest.er1 >conftest.err
23020   rm -f conftest.er1
23021   cat conftest.err >&5
23022   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023   (exit $ac_status); } && {
23024          test -z "$ac_c_werror_flag" ||
23025          test ! -s conftest.err
23026        } && test -s conftest$ac_exeext && {
23027          test "$cross_compiling" = yes ||
23028          $as_test_x conftest$ac_exeext
23029        }; then
23030   acx_pthread_ok=yes
23031 else
23032   $as_echo "$as_me: failed program was:" >&5
23033 sed 's/^/| /' conftest.$ac_ext >&5
23034
23035         acx_pthread_ok=no
23036 fi
23037
23038 rm -rf conftest.dSYM
23039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23040       conftest$ac_exeext conftest.$ac_ext
23041
23042         if test "x$acx_pthread_ok" = xyes; then
23043             # Don't use options that are ignored by the compiler.
23044             # We find them by checking stderror.
23045             cat >conftest.$ac_ext <<_ACEOF
23046 int
23047 main (int argc, char **argv)
23048 {
23049   (void) argc;
23050   (void) argv;
23051   return 0;
23052 }
23053 _ACEOF
23054             rm -f conftest.$ac_objext conftest$ac_exeext
23055             # Check both linking and compiling, because they might tolerate different options.
23056             if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
23057                 # we continue with more flags because Linux needs -lpthread
23058                 # for libpq builds on PostgreSQL.  The test above only
23059                 # tests for building binaries, not shared libraries.
23060                 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
23061                 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
23062             else   acx_pthread_ok=no
23063             fi
23064         fi
23065
23066         LIBS="$save_LIBS"
23067         CFLAGS="$save_CFLAGS"
23068
23069         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23070 $as_echo "$acx_pthread_ok" >&6; }
23071 done
23072 fi
23073
23074 # Various other checks:
23075 if test "x$acx_pthread_ok" = xyes; then
23076         save_LIBS="$LIBS"
23077         LIBS="$PTHREAD_LIBS $LIBS"
23078         save_CFLAGS="$CFLAGS"
23079         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23080
23081         # Detect AIX lossage: threads are created detached by default
23082         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
23083         { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
23084 $as_echo_n "checking for joinable pthread attribute... " >&6; }
23085         cat >conftest.$ac_ext <<_ACEOF
23086 /* confdefs.h.  */
23087 _ACEOF
23088 cat confdefs.h >>conftest.$ac_ext
23089 cat >>conftest.$ac_ext <<_ACEOF
23090 /* end confdefs.h.  */
23091 #include <pthread.h>
23092 int
23093 main ()
23094 {
23095 int attr=PTHREAD_CREATE_JOINABLE;
23096   ;
23097   return 0;
23098 }
23099 _ACEOF
23100 rm -f conftest.$ac_objext conftest$ac_exeext
23101 if { (ac_try="$ac_link"
23102 case "(($ac_try" in
23103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23104   *) ac_try_echo=$ac_try;;
23105 esac
23106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23107 $as_echo "$ac_try_echo") >&5
23108   (eval "$ac_link") 2>conftest.er1
23109   ac_status=$?
23110   grep -v '^ *+' conftest.er1 >conftest.err
23111   rm -f conftest.er1
23112   cat conftest.err >&5
23113   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114   (exit $ac_status); } && {
23115          test -z "$ac_c_werror_flag" ||
23116          test ! -s conftest.err
23117        } && test -s conftest$ac_exeext && {
23118          test "$cross_compiling" = yes ||
23119          $as_test_x conftest$ac_exeext
23120        }; then
23121   ok=PTHREAD_CREATE_JOINABLE
23122 else
23123   $as_echo "$as_me: failed program was:" >&5
23124 sed 's/^/| /' conftest.$ac_ext >&5
23125
23126         ok=unknown
23127 fi
23128
23129 rm -rf conftest.dSYM
23130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23131       conftest$ac_exeext conftest.$ac_ext
23132         if test x"$ok" = xunknown; then
23133                 cat >conftest.$ac_ext <<_ACEOF
23134 /* confdefs.h.  */
23135 _ACEOF
23136 cat confdefs.h >>conftest.$ac_ext
23137 cat >>conftest.$ac_ext <<_ACEOF
23138 /* end confdefs.h.  */
23139 #include <pthread.h>
23140 int
23141 main ()
23142 {
23143 int attr=PTHREAD_CREATE_UNDETACHED;
23144   ;
23145   return 0;
23146 }
23147 _ACEOF
23148 rm -f conftest.$ac_objext conftest$ac_exeext
23149 if { (ac_try="$ac_link"
23150 case "(($ac_try" in
23151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23152   *) ac_try_echo=$ac_try;;
23153 esac
23154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23155 $as_echo "$ac_try_echo") >&5
23156   (eval "$ac_link") 2>conftest.er1
23157   ac_status=$?
23158   grep -v '^ *+' conftest.er1 >conftest.err
23159   rm -f conftest.er1
23160   cat conftest.err >&5
23161   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23162   (exit $ac_status); } && {
23163          test -z "$ac_c_werror_flag" ||
23164          test ! -s conftest.err
23165        } && test -s conftest$ac_exeext && {
23166          test "$cross_compiling" = yes ||
23167          $as_test_x conftest$ac_exeext
23168        }; then
23169   ok=PTHREAD_CREATE_UNDETACHED
23170 else
23171   $as_echo "$as_me: failed program was:" >&5
23172 sed 's/^/| /' conftest.$ac_ext >&5
23173
23174         ok=unknown
23175 fi
23176
23177 rm -rf conftest.dSYM
23178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23179       conftest$ac_exeext conftest.$ac_ext
23180         fi
23181         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
23182
23183 cat >>confdefs.h <<\_ACEOF
23184 #define PTHREAD_CREATE_JOINABLE $ok
23185 _ACEOF
23186
23187         fi
23188         { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
23189 $as_echo "${ok}" >&6; }
23190         if test x"$ok" = xunknown; then
23191                 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
23192 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
23193         fi
23194
23195         { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
23196 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
23197         flag=no
23198 # We always add these in PostgreSQL
23199 #       case "${host_cpu}-${host_os}" in
23200 #               *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
23201 #               *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
23202 #       esac
23203         { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
23204 $as_echo "${flag}" >&6; }
23205         if test "x$flag" != xno; then
23206                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
23207         fi
23208
23209         LIBS="$save_LIBS"
23210         CFLAGS="$save_CFLAGS"
23211
23212 # Supporting cc_r would require a special CC in all places that
23213 # use libpq, and that is ugly, so we don't do it.  Users can still
23214 # define their compiler as cc_r to do thread builds of everything.
23215         # More AIX lossage: must compile with cc_r
23216         # Extract the first word of "cc_r", so it can be a program name with args.
23217 set dummy cc_r; ac_word=$2
23218 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23219 $as_echo_n "checking for $ac_word... " >&6; }
23220 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
23221   $as_echo_n "(cached) " >&6
23222 else
23223   if test -n "$PTHREAD_CC"; then
23224   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23225 else
23226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23227 for as_dir in $PATH
23228 do
23229   IFS=$as_save_IFS
23230   test -z "$as_dir" && as_dir=.
23231   for ac_exec_ext in '' $ac_executable_extensions; do
23232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23233     ac_cv_prog_PTHREAD_CC="cc_r"
23234     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23235     break 2
23236   fi
23237 done
23238 done
23239 IFS=$as_save_IFS
23240
23241   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
23242 fi
23243 fi
23244 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23245 if test -n "$PTHREAD_CC"; then
23246   { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23247 $as_echo "$PTHREAD_CC" >&6; }
23248 else
23249   { $as_echo "$as_me:$LINENO: result: no" >&5
23250 $as_echo "no" >&6; }
23251 fi
23252
23253
23254 else
23255         PTHREAD_CC="$CC"
23256 fi
23257
23258
23259
23260
23261
23262 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23263 if test x"$acx_pthread_ok" = xyes; then
23264
23265 cat >>confdefs.h <<\_ACEOF
23266 #define HAVE_PTHREAD 1
23267 _ACEOF
23268
23269         :
23270 else
23271         acx_pthread_ok=no
23272
23273 fi
23274 ac_ext=c
23275 ac_cpp='$CPP $CPPFLAGS'
23276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23279
23280         # set thread flags
23281
23282 # Some platforms use these, so just define them.  They can't hurt if they
23283 # are not supported.  For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
23284 # enables 5-arg getpwuid_r, among other things.
23285 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
23286
23287
23288 # At this point, we don't want to muck with the compiler name for threading.
23289 # Let's see who fails, perhaps AIX.  2004-04-23
23290 if test "$PTHREAD_CC" != "$CC"; then
23291 { { $as_echo "$as_me:$LINENO: error:
23292 PostgreSQL does not support platforms that require a special compiler
23293 for thread safety;  use --disable-thread-safety to disable thread safety." >&5
23294 $as_echo "$as_me: error:
23295 PostgreSQL does not support platforms that require a special compiler
23296 for thread safety;  use --disable-thread-safety to disable thread safety." >&2;}
23297    { (exit 1); exit 1; }; }
23298 fi
23299
23300 # Check for *_r functions
23301 _CFLAGS="$CFLAGS"
23302 _LIBS="$LIBS"
23303 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23304 LIBS="$LIBS $PTHREAD_LIBS"
23305
23306 if test "$PORTNAME" != "win32"; then
23307 if test "${ac_cv_header_pthread_h+set}" = set; then
23308   { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23309 $as_echo_n "checking for pthread.h... " >&6; }
23310 if test "${ac_cv_header_pthread_h+set}" = set; then
23311   $as_echo_n "(cached) " >&6
23312 fi
23313 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23314 $as_echo "$ac_cv_header_pthread_h" >&6; }
23315 else
23316   # Is the header compilable?
23317 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
23318 $as_echo_n "checking pthread.h usability... " >&6; }
23319 cat >conftest.$ac_ext <<_ACEOF
23320 /* confdefs.h.  */
23321 _ACEOF
23322 cat confdefs.h >>conftest.$ac_ext
23323 cat >>conftest.$ac_ext <<_ACEOF
23324 /* end confdefs.h.  */
23325 $ac_includes_default
23326 #include <pthread.h>
23327 _ACEOF
23328 rm -f conftest.$ac_objext
23329 if { (ac_try="$ac_compile"
23330 case "(($ac_try" in
23331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23332   *) ac_try_echo=$ac_try;;
23333 esac
23334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23335 $as_echo "$ac_try_echo") >&5
23336   (eval "$ac_compile") 2>conftest.er1
23337   ac_status=$?
23338   grep -v '^ *+' conftest.er1 >conftest.err
23339   rm -f conftest.er1
23340   cat conftest.err >&5
23341   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23342   (exit $ac_status); } && {
23343          test -z "$ac_c_werror_flag" ||
23344          test ! -s conftest.err
23345        } && test -s conftest.$ac_objext; then
23346   ac_header_compiler=yes
23347 else
23348   $as_echo "$as_me: failed program was:" >&5
23349 sed 's/^/| /' conftest.$ac_ext >&5
23350
23351         ac_header_compiler=no
23352 fi
23353
23354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23355 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23356 $as_echo "$ac_header_compiler" >&6; }
23357
23358 # Is the header present?
23359 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
23360 $as_echo_n "checking pthread.h presence... " >&6; }
23361 cat >conftest.$ac_ext <<_ACEOF
23362 /* confdefs.h.  */
23363 _ACEOF
23364 cat confdefs.h >>conftest.$ac_ext
23365 cat >>conftest.$ac_ext <<_ACEOF
23366 /* end confdefs.h.  */
23367 #include <pthread.h>
23368 _ACEOF
23369 if { (ac_try="$ac_cpp conftest.$ac_ext"
23370 case "(($ac_try" in
23371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23372   *) ac_try_echo=$ac_try;;
23373 esac
23374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23375 $as_echo "$ac_try_echo") >&5
23376   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23377   ac_status=$?
23378   grep -v '^ *+' conftest.er1 >conftest.err
23379   rm -f conftest.er1
23380   cat conftest.err >&5
23381   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23382   (exit $ac_status); } >/dev/null && {
23383          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23384          test ! -s conftest.err
23385        }; then
23386   ac_header_preproc=yes
23387 else
23388   $as_echo "$as_me: failed program was:" >&5
23389 sed 's/^/| /' conftest.$ac_ext >&5
23390
23391   ac_header_preproc=no
23392 fi
23393
23394 rm -f conftest.err conftest.$ac_ext
23395 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23396 $as_echo "$ac_header_preproc" >&6; }
23397
23398 # So?  What about this header?
23399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23400   yes:no: )
23401     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
23402 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23403     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
23404 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
23405     ac_header_preproc=yes
23406     ;;
23407   no:yes:* )
23408     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
23409 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
23410     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
23411 $as_echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
23412     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
23413 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
23414     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
23415 $as_echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23416     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
23417 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
23418     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
23419 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
23420     ( cat <<\_ASBOX
23421 ## ---------------------------------------- ##
23422 ## Report this to pgsql-bugs@postgresql.org ##
23423 ## ---------------------------------------- ##
23424 _ASBOX
23425      ) | sed "s/^/$as_me: WARNING:     /" >&2
23426     ;;
23427 esac
23428 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23429 $as_echo_n "checking for pthread.h... " >&6; }
23430 if test "${ac_cv_header_pthread_h+set}" = set; then
23431   $as_echo_n "(cached) " >&6
23432 else
23433   ac_cv_header_pthread_h=$ac_header_preproc
23434 fi
23435 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23436 $as_echo "$ac_cv_header_pthread_h" >&6; }
23437
23438 fi
23439 if test "x$ac_cv_header_pthread_h" = x""yes; then
23440   :
23441 else
23442   { { $as_echo "$as_me:$LINENO: error:
23443 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&5
23444 $as_echo "$as_me: error:
23445 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&2;}
23446    { (exit 1); exit 1; }; }
23447 fi
23448
23449
23450 fi
23451
23452
23453
23454
23455 for ac_func in strerror_r getpwuid_r gethostbyname_r
23456 do
23457 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23458 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23459 $as_echo_n "checking for $ac_func... " >&6; }
23460 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23461   $as_echo_n "(cached) " >&6
23462 else
23463   cat >conftest.$ac_ext <<_ACEOF
23464 /* confdefs.h.  */
23465 _ACEOF
23466 cat confdefs.h >>conftest.$ac_ext
23467 cat >>conftest.$ac_ext <<_ACEOF
23468 /* end confdefs.h.  */
23469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23470    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23471 #define $ac_func innocuous_$ac_func
23472
23473 /* System header to define __stub macros and hopefully few prototypes,
23474     which can conflict with char $ac_func (); below.
23475     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23476     <limits.h> exists even on freestanding compilers.  */
23477
23478 #ifdef __STDC__
23479 # include <limits.h>
23480 #else
23481 # include <assert.h>
23482 #endif
23483
23484 #undef $ac_func
23485
23486 /* Override any GCC internal prototype to avoid an error.
23487    Use char because int might match the return type of a GCC
23488    builtin and then its argument prototype would still apply.  */
23489 #ifdef __cplusplus
23490 extern "C"
23491 #endif
23492 char $ac_func ();
23493 /* The GNU C library defines this for functions which it implements
23494     to always fail with ENOSYS.  Some functions are actually named
23495     something starting with __ and the normal name is an alias.  */
23496 #if defined __stub_$ac_func || defined __stub___$ac_func
23497 choke me
23498 #endif
23499
23500 int
23501 main ()
23502 {
23503 return $ac_func ();
23504   ;
23505   return 0;
23506 }
23507 _ACEOF
23508 rm -f conftest.$ac_objext conftest$ac_exeext
23509 if { (ac_try="$ac_link"
23510 case "(($ac_try" in
23511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23512   *) ac_try_echo=$ac_try;;
23513 esac
23514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23515 $as_echo "$ac_try_echo") >&5
23516   (eval "$ac_link") 2>conftest.er1
23517   ac_status=$?
23518   grep -v '^ *+' conftest.er1 >conftest.err
23519   rm -f conftest.er1
23520   cat conftest.err >&5
23521   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23522   (exit $ac_status); } && {
23523          test -z "$ac_c_werror_flag" ||
23524          test ! -s conftest.err
23525        } && test -s conftest$ac_exeext && {
23526          test "$cross_compiling" = yes ||
23527          $as_test_x conftest$ac_exeext
23528        }; then
23529   eval "$as_ac_var=yes"
23530 else
23531   $as_echo "$as_me: failed program was:" >&5
23532 sed 's/^/| /' conftest.$ac_ext >&5
23533
23534         eval "$as_ac_var=no"
23535 fi
23536
23537 rm -rf conftest.dSYM
23538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23539       conftest$ac_exeext conftest.$ac_ext
23540 fi
23541 ac_res=`eval 'as_val=${'$as_ac_var'}
23542                  $as_echo "$as_val"'`
23543                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23544 $as_echo "$ac_res" >&6; }
23545 as_val=`eval 'as_val=${'$as_ac_var'}
23546                  $as_echo "$as_val"'`
23547    if test "x$as_val" = x""yes; then
23548   cat >>confdefs.h <<_ACEOF
23549 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23550 _ACEOF
23551
23552 fi
23553 done
23554
23555
23556 # Do test here with the proper thread flags
23557 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
23558 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
23559 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
23560   $as_echo_n "(cached) " >&6
23561 else
23562   cat >conftest.$ac_ext <<_ACEOF
23563 /* confdefs.h.  */
23564 _ACEOF
23565 cat confdefs.h >>conftest.$ac_ext
23566 cat >>conftest.$ac_ext <<_ACEOF
23567 /* end confdefs.h.  */
23568 #include <sys/types.h>
23569 #include <pwd.h>
23570 int
23571 main ()
23572 {
23573 uid_t uid;
23574 struct passwd *space;
23575 char *buf;
23576 size_t bufsize;
23577 struct passwd **result;
23578 getpwuid_r(uid, space, buf, bufsize, result);
23579   ;
23580   return 0;
23581 }
23582 _ACEOF
23583 rm -f conftest.$ac_objext
23584 if { (ac_try="$ac_compile"
23585 case "(($ac_try" in
23586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23587   *) ac_try_echo=$ac_try;;
23588 esac
23589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23590 $as_echo "$ac_try_echo") >&5
23591   (eval "$ac_compile") 2>conftest.er1
23592   ac_status=$?
23593   grep -v '^ *+' conftest.er1 >conftest.err
23594   rm -f conftest.er1
23595   cat conftest.err >&5
23596   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597   (exit $ac_status); } && {
23598          test -z "$ac_c_werror_flag" ||
23599          test ! -s conftest.err
23600        } && test -s conftest.$ac_objext; then
23601   pgac_cv_func_getpwuid_r_5arg=yes
23602 else
23603   $as_echo "$as_me: failed program was:" >&5
23604 sed 's/^/| /' conftest.$ac_ext >&5
23605
23606         pgac_cv_func_getpwuid_r_5arg=no
23607 fi
23608
23609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23610 fi
23611 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
23612 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
23613 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
23614
23615 cat >>confdefs.h <<\_ACEOF
23616 #define GETPWUID_R_5ARG /**/
23617 _ACEOF
23618
23619 fi
23620
23621 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
23622 $as_echo_n "checking whether strerror_r returns int... " >&6; }
23623 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
23624   $as_echo_n "(cached) " >&6
23625 else
23626   cat >conftest.$ac_ext <<_ACEOF
23627 /* confdefs.h.  */
23628 _ACEOF
23629 cat confdefs.h >>conftest.$ac_ext
23630 cat >>conftest.$ac_ext <<_ACEOF
23631 /* end confdefs.h.  */
23632 #include <string.h>
23633 int
23634 main ()
23635 {
23636 #ifndef _AIX
23637 int strerror_r(int, char *, size_t);
23638 #else
23639 /* Older AIX has 'int' for the third argument so we don't test the args. */
23640 int strerror_r();
23641 #endif
23642   ;
23643   return 0;
23644 }
23645 _ACEOF
23646 rm -f conftest.$ac_objext
23647 if { (ac_try="$ac_compile"
23648 case "(($ac_try" in
23649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23650   *) ac_try_echo=$ac_try;;
23651 esac
23652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23653 $as_echo "$ac_try_echo") >&5
23654   (eval "$ac_compile") 2>conftest.er1
23655   ac_status=$?
23656   grep -v '^ *+' conftest.er1 >conftest.err
23657   rm -f conftest.er1
23658   cat conftest.err >&5
23659   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23660   (exit $ac_status); } && {
23661          test -z "$ac_c_werror_flag" ||
23662          test ! -s conftest.err
23663        } && test -s conftest.$ac_objext; then
23664   pgac_cv_func_strerror_r_int=yes
23665 else
23666   $as_echo "$as_me: failed program was:" >&5
23667 sed 's/^/| /' conftest.$ac_ext >&5
23668
23669         pgac_cv_func_strerror_r_int=no
23670 fi
23671
23672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23673 fi
23674 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
23675 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
23676 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
23677
23678 cat >>confdefs.h <<\_ACEOF
23679 #define STRERROR_R_INT /**/
23680 _ACEOF
23681
23682 fi
23683
23684
23685 CFLAGS="$_CFLAGS"
23686 LIBS="$_LIBS"
23687
23688 else
23689 # do not use values from template file
23690 PTHREAD_CFLAGS=
23691 PTHREAD_LIBS=
23692 fi
23693
23694
23695
23696
23697
23698 # We can test for libldap_r only after we know PTHREAD_LIBS
23699 if test "$with_ldap" = yes ; then
23700   _LIBS="$LIBS"
23701   if test "$PORTNAME" != "win32"; then
23702
23703 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
23704 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
23705 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
23706   $as_echo_n "(cached) " >&6
23707 else
23708   ac_check_lib_save_LIBS=$LIBS
23709 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
23710 cat >conftest.$ac_ext <<_ACEOF
23711 /* confdefs.h.  */
23712 _ACEOF
23713 cat confdefs.h >>conftest.$ac_ext
23714 cat >>conftest.$ac_ext <<_ACEOF
23715 /* end confdefs.h.  */
23716
23717 /* Override any GCC internal prototype to avoid an error.
23718    Use char because int might match the return type of a GCC
23719    builtin and then its argument prototype would still apply.  */
23720 #ifdef __cplusplus
23721 extern "C"
23722 #endif
23723 char ldap_bind ();
23724 int
23725 main ()
23726 {
23727 return ldap_bind ();
23728   ;
23729   return 0;
23730 }
23731 _ACEOF
23732 rm -f conftest.$ac_objext conftest$ac_exeext
23733 if { (ac_try="$ac_link"
23734 case "(($ac_try" in
23735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23736   *) ac_try_echo=$ac_try;;
23737 esac
23738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23739 $as_echo "$ac_try_echo") >&5
23740   (eval "$ac_link") 2>conftest.er1
23741   ac_status=$?
23742   grep -v '^ *+' conftest.er1 >conftest.err
23743   rm -f conftest.er1
23744   cat conftest.err >&5
23745   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23746   (exit $ac_status); } && {
23747          test -z "$ac_c_werror_flag" ||
23748          test ! -s conftest.err
23749        } && test -s conftest$ac_exeext && {
23750          test "$cross_compiling" = yes ||
23751          $as_test_x conftest$ac_exeext
23752        }; then
23753   ac_cv_lib_ldap_ldap_bind=yes
23754 else
23755   $as_echo "$as_me: failed program was:" >&5
23756 sed 's/^/| /' conftest.$ac_ext >&5
23757
23758         ac_cv_lib_ldap_ldap_bind=no
23759 fi
23760
23761 rm -rf conftest.dSYM
23762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23763       conftest$ac_exeext conftest.$ac_ext
23764 LIBS=$ac_check_lib_save_LIBS
23765 fi
23766 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
23767 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
23768 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
23769   cat >>confdefs.h <<_ACEOF
23770 #define HAVE_LIBLDAP 1
23771 _ACEOF
23772
23773   LIBS="-lldap $LIBS"
23774
23775 else
23776   { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
23777 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
23778    { (exit 1); exit 1; }; }
23779 fi
23780
23781     LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
23782     if test "$enable_thread_safety" = yes; then
23783       # on some platforms ldap_r fails to link without PTHREAD_LIBS
23784
23785 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
23786 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
23787 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
23788   $as_echo_n "(cached) " >&6
23789 else
23790   ac_check_lib_save_LIBS=$LIBS
23791 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
23792 cat >conftest.$ac_ext <<_ACEOF
23793 /* confdefs.h.  */
23794 _ACEOF
23795 cat confdefs.h >>conftest.$ac_ext
23796 cat >>conftest.$ac_ext <<_ACEOF
23797 /* end confdefs.h.  */
23798
23799 /* Override any GCC internal prototype to avoid an error.
23800    Use char because int might match the return type of a GCC
23801    builtin and then its argument prototype would still apply.  */
23802 #ifdef __cplusplus
23803 extern "C"
23804 #endif
23805 char ldap_simple_bind ();
23806 int
23807 main ()
23808 {
23809 return ldap_simple_bind ();
23810   ;
23811   return 0;
23812 }
23813 _ACEOF
23814 rm -f conftest.$ac_objext conftest$ac_exeext
23815 if { (ac_try="$ac_link"
23816 case "(($ac_try" in
23817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23818   *) ac_try_echo=$ac_try;;
23819 esac
23820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23821 $as_echo "$ac_try_echo") >&5
23822   (eval "$ac_link") 2>conftest.er1
23823   ac_status=$?
23824   grep -v '^ *+' conftest.er1 >conftest.err
23825   rm -f conftest.er1
23826   cat conftest.err >&5
23827   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23828   (exit $ac_status); } && {
23829          test -z "$ac_c_werror_flag" ||
23830          test ! -s conftest.err
23831        } && test -s conftest$ac_exeext && {
23832          test "$cross_compiling" = yes ||
23833          $as_test_x conftest$ac_exeext
23834        }; then
23835   ac_cv_lib_ldap_r_ldap_simple_bind=yes
23836 else
23837   $as_echo "$as_me: failed program was:" >&5
23838 sed 's/^/| /' conftest.$ac_ext >&5
23839
23840         ac_cv_lib_ldap_r_ldap_simple_bind=no
23841 fi
23842
23843 rm -rf conftest.dSYM
23844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23845       conftest$ac_exeext conftest.$ac_ext
23846 LIBS=$ac_check_lib_save_LIBS
23847 fi
23848 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
23849 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
23850 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
23851   cat >>confdefs.h <<_ACEOF
23852 #define HAVE_LIBLDAP_R 1
23853 _ACEOF
23854
23855   LIBS="-lldap_r $LIBS"
23856
23857 else
23858   { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
23859 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
23860    { (exit 1); exit 1; }; }
23861 fi
23862
23863       LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
23864     else
23865       LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
23866     fi
23867   else
23868
23869 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
23870 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
23871 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
23872   $as_echo_n "(cached) " >&6
23873 else
23874   ac_check_lib_save_LIBS=$LIBS
23875 LIBS="-lwldap32  $LIBS"
23876 cat >conftest.$ac_ext <<_ACEOF
23877 /* confdefs.h.  */
23878 _ACEOF
23879 cat confdefs.h >>conftest.$ac_ext
23880 cat >>conftest.$ac_ext <<_ACEOF
23881 /* end confdefs.h.  */
23882
23883 /* Override any GCC internal prototype to avoid an error.
23884    Use char because int might match the return type of a GCC
23885    builtin and then its argument prototype would still apply.  */
23886 #ifdef __cplusplus
23887 extern "C"
23888 #endif
23889 char ldap_bind ();
23890 int
23891 main ()
23892 {
23893 return ldap_bind ();
23894   ;
23895   return 0;
23896 }
23897 _ACEOF
23898 rm -f conftest.$ac_objext conftest$ac_exeext
23899 if { (ac_try="$ac_link"
23900 case "(($ac_try" in
23901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23902   *) ac_try_echo=$ac_try;;
23903 esac
23904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23905 $as_echo "$ac_try_echo") >&5
23906   (eval "$ac_link") 2>conftest.er1
23907   ac_status=$?
23908   grep -v '^ *+' conftest.er1 >conftest.err
23909   rm -f conftest.er1
23910   cat conftest.err >&5
23911   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912   (exit $ac_status); } && {
23913          test -z "$ac_c_werror_flag" ||
23914          test ! -s conftest.err
23915        } && test -s conftest$ac_exeext && {
23916          test "$cross_compiling" = yes ||
23917          $as_test_x conftest$ac_exeext
23918        }; then
23919   ac_cv_lib_wldap32_ldap_bind=yes
23920 else
23921   $as_echo "$as_me: failed program was:" >&5
23922 sed 's/^/| /' conftest.$ac_ext >&5
23923
23924         ac_cv_lib_wldap32_ldap_bind=no
23925 fi
23926
23927 rm -rf conftest.dSYM
23928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23929       conftest$ac_exeext conftest.$ac_ext
23930 LIBS=$ac_check_lib_save_LIBS
23931 fi
23932 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
23933 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
23934 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
23935   cat >>confdefs.h <<_ACEOF
23936 #define HAVE_LIBWLDAP32 1
23937 _ACEOF
23938
23939   LIBS="-lwldap32 $LIBS"
23940
23941 else
23942   { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
23943 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
23944    { (exit 1); exit 1; }; }
23945 fi
23946
23947     LDAP_LIBS_FE="-lwldap32"
23948     LDAP_LIBS_BE="-lwldap32"
23949   fi
23950   LIBS="$_LIBS"
23951 fi
23952
23953
23954
23955
23956 # This test makes sure that run tests work at all.  Sometimes a shared
23957 # library is found by the linker, but the runtime linker can't find it.
23958 # This check should come after all modifications of compiler or linker
23959 # variables, and before any other run tests.
23960 { $as_echo "$as_me:$LINENO: checking test program" >&5
23961 $as_echo_n "checking test program... " >&6; }
23962 if test "$cross_compiling" = yes; then
23963   { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
23964 $as_echo "cross-compiling" >&6; }
23965 else
23966   cat >conftest.$ac_ext <<_ACEOF
23967 /* confdefs.h.  */
23968 _ACEOF
23969 cat confdefs.h >>conftest.$ac_ext
23970 cat >>conftest.$ac_ext <<_ACEOF
23971 /* end confdefs.h.  */
23972 int main() { return 0; }
23973 _ACEOF
23974 rm -f conftest$ac_exeext
23975 if { (ac_try="$ac_link"
23976 case "(($ac_try" in
23977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23978   *) ac_try_echo=$ac_try;;
23979 esac
23980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23981 $as_echo "$ac_try_echo") >&5
23982   (eval "$ac_link") 2>&5
23983   ac_status=$?
23984   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23985   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23986   { (case "(($ac_try" in
23987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23988   *) ac_try_echo=$ac_try;;
23989 esac
23990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23991 $as_echo "$ac_try_echo") >&5
23992   (eval "$ac_try") 2>&5
23993   ac_status=$?
23994   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995   (exit $ac_status); }; }; then
23996   { $as_echo "$as_me:$LINENO: result: ok" >&5
23997 $as_echo "ok" >&6; }
23998 else
23999   $as_echo "$as_me: program exited with status $ac_status" >&5
24000 $as_echo "$as_me: failed program was:" >&5
24001 sed 's/^/| /' conftest.$ac_ext >&5
24002
24003 ( exit $ac_status )
24004 { $as_echo "$as_me:$LINENO: result: failed" >&5
24005 $as_echo "failed" >&6; }
24006 { { $as_echo "$as_me:$LINENO: error:
24007 Could not execute a simple test program.  This may be a problem
24008 related to locating shared libraries.  Check the file 'config.log'
24009 for the exact reason." >&5
24010 $as_echo "$as_me: error:
24011 Could not execute a simple test program.  This may be a problem
24012 related to locating shared libraries.  Check the file 'config.log'
24013 for the exact reason." >&2;}
24014    { (exit 1); exit 1; }; }
24015 fi
24016 rm -rf conftest.dSYM
24017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24018 fi
24019
24020
24021
24022 # --------------------
24023 # Run tests below here
24024 # --------------------
24025
24026 # Force use of our snprintf if system's doesn't do arg control
24027 # See comment above at snprintf test for details.
24028 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
24029   { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
24030 $as_echo_n "checking whether printf supports argument control... " >&6; }
24031 if test "${pgac_cv_printf_arg_control+set}" = set; then
24032   $as_echo_n "(cached) " >&6
24033 else
24034   if test "$cross_compiling" = yes; then
24035   pgac_cv_printf_arg_control=cross
24036 else
24037   cat >conftest.$ac_ext <<_ACEOF
24038 /* confdefs.h.  */
24039 _ACEOF
24040 cat confdefs.h >>conftest.$ac_ext
24041 cat >>conftest.$ac_ext <<_ACEOF
24042 /* end confdefs.h.  */
24043 #include <stdio.h>
24044 #include <string.h>
24045
24046 int main()
24047 {
24048   char buf[100];
24049
24050   /* can it swap arguments? */
24051   snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
24052   if (strcmp(buf, "4 3") != 0)
24053     return 1;
24054   return 0;
24055 }
24056 _ACEOF
24057 rm -f conftest$ac_exeext
24058 if { (ac_try="$ac_link"
24059 case "(($ac_try" in
24060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24061   *) ac_try_echo=$ac_try;;
24062 esac
24063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24064 $as_echo "$ac_try_echo") >&5
24065   (eval "$ac_link") 2>&5
24066   ac_status=$?
24067   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24068   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24069   { (case "(($ac_try" in
24070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24071   *) ac_try_echo=$ac_try;;
24072 esac
24073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24074 $as_echo "$ac_try_echo") >&5
24075   (eval "$ac_try") 2>&5
24076   ac_status=$?
24077   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24078   (exit $ac_status); }; }; then
24079   pgac_cv_printf_arg_control=yes
24080 else
24081   $as_echo "$as_me: program exited with status $ac_status" >&5
24082 $as_echo "$as_me: failed program was:" >&5
24083 sed 's/^/| /' conftest.$ac_ext >&5
24084
24085 ( exit $ac_status )
24086 pgac_cv_printf_arg_control=no
24087 fi
24088 rm -rf conftest.dSYM
24089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24090 fi
24091
24092
24093
24094 fi
24095 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
24096 $as_echo "$pgac_cv_printf_arg_control" >&6; }
24097
24098   if test $pgac_cv_printf_arg_control != yes ; then
24099     pgac_need_repl_snprintf=yes
24100   fi
24101 fi
24102
24103
24104
24105
24106 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
24107 $as_echo_n "checking whether long int is 64 bits... " >&6; }
24108 if test "${pgac_cv_type_long_int_64+set}" = set; then
24109   $as_echo_n "(cached) " >&6
24110 else
24111   if test "$cross_compiling" = yes; then
24112   # If cross-compiling, check the size reported by the compiler and
24113 # trust that the arithmetic works.
24114 cat >conftest.$ac_ext <<_ACEOF
24115 /* confdefs.h.  */
24116 _ACEOF
24117 cat confdefs.h >>conftest.$ac_ext
24118 cat >>conftest.$ac_ext <<_ACEOF
24119 /* end confdefs.h.  */
24120
24121 int
24122 main ()
24123 {
24124 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
24125 test_array [0] = 0
24126
24127   ;
24128   return 0;
24129 }
24130 _ACEOF
24131 rm -f conftest.$ac_objext
24132 if { (ac_try="$ac_compile"
24133 case "(($ac_try" in
24134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24135   *) ac_try_echo=$ac_try;;
24136 esac
24137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24138 $as_echo "$ac_try_echo") >&5
24139   (eval "$ac_compile") 2>conftest.er1
24140   ac_status=$?
24141   grep -v '^ *+' conftest.er1 >conftest.err
24142   rm -f conftest.er1
24143   cat conftest.err >&5
24144   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24145   (exit $ac_status); } && {
24146          test -z "$ac_c_werror_flag" ||
24147          test ! -s conftest.err
24148        } && test -s conftest.$ac_objext; then
24149   pgac_cv_type_long_int_64=yes
24150 else
24151   $as_echo "$as_me: failed program was:" >&5
24152 sed 's/^/| /' conftest.$ac_ext >&5
24153
24154         pgac_cv_type_long_int_64=no
24155 fi
24156
24157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24158 else
24159   cat >conftest.$ac_ext <<_ACEOF
24160 /* confdefs.h.  */
24161 _ACEOF
24162 cat confdefs.h >>conftest.$ac_ext
24163 cat >>conftest.$ac_ext <<_ACEOF
24164 /* end confdefs.h.  */
24165 typedef long int ac_int64;
24166
24167 /*
24168  * These are globals to discourage the compiler from folding all the
24169  * arithmetic tests down to compile-time constants.
24170  */
24171 ac_int64 a = 20000001;
24172 ac_int64 b = 40000005;
24173
24174 int does_int64_work()
24175 {
24176   ac_int64 c,d;
24177
24178   if (sizeof(ac_int64) != 8)
24179     return 0;                   /* definitely not the right size */
24180
24181   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24182   c = a * b;
24183   d = (c + b) / b;
24184   if (d != a+1)
24185     return 0;
24186   return 1;
24187 }
24188 main() {
24189   exit(! does_int64_work());
24190 }
24191 _ACEOF
24192 rm -f conftest$ac_exeext
24193 if { (ac_try="$ac_link"
24194 case "(($ac_try" in
24195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24196   *) ac_try_echo=$ac_try;;
24197 esac
24198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24199 $as_echo "$ac_try_echo") >&5
24200   (eval "$ac_link") 2>&5
24201   ac_status=$?
24202   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24203   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24204   { (case "(($ac_try" in
24205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24206   *) ac_try_echo=$ac_try;;
24207 esac
24208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24209 $as_echo "$ac_try_echo") >&5
24210   (eval "$ac_try") 2>&5
24211   ac_status=$?
24212   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24213   (exit $ac_status); }; }; then
24214   pgac_cv_type_long_int_64=yes
24215 else
24216   $as_echo "$as_me: program exited with status $ac_status" >&5
24217 $as_echo "$as_me: failed program was:" >&5
24218 sed 's/^/| /' conftest.$ac_ext >&5
24219
24220 ( exit $ac_status )
24221 pgac_cv_type_long_int_64=no
24222 fi
24223 rm -rf conftest.dSYM
24224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24225 fi
24226
24227
24228 fi
24229 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
24230 $as_echo "$pgac_cv_type_long_int_64" >&6; }
24231
24232 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
24233 if test x"$pgac_cv_type_long_int_64" = xyes ; then
24234
24235 cat >>confdefs.h <<\_ACEOF
24236 #define HAVE_LONG_INT_64 1
24237 _ACEOF
24238
24239 fi
24240
24241
24242 if test x"$HAVE_LONG_INT_64" = x"yes" ; then
24243   pg_int64_type="long int"
24244 else
24245   { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
24246 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
24247 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
24248   $as_echo_n "(cached) " >&6
24249 else
24250   if test "$cross_compiling" = yes; then
24251   # If cross-compiling, check the size reported by the compiler and
24252 # trust that the arithmetic works.
24253 cat >conftest.$ac_ext <<_ACEOF
24254 /* confdefs.h.  */
24255 _ACEOF
24256 cat confdefs.h >>conftest.$ac_ext
24257 cat >>conftest.$ac_ext <<_ACEOF
24258 /* end confdefs.h.  */
24259
24260 int
24261 main ()
24262 {
24263 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
24264 test_array [0] = 0
24265
24266   ;
24267   return 0;
24268 }
24269 _ACEOF
24270 rm -f conftest.$ac_objext
24271 if { (ac_try="$ac_compile"
24272 case "(($ac_try" in
24273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24274   *) ac_try_echo=$ac_try;;
24275 esac
24276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24277 $as_echo "$ac_try_echo") >&5
24278   (eval "$ac_compile") 2>conftest.er1
24279   ac_status=$?
24280   grep -v '^ *+' conftest.er1 >conftest.err
24281   rm -f conftest.er1
24282   cat conftest.err >&5
24283   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24284   (exit $ac_status); } && {
24285          test -z "$ac_c_werror_flag" ||
24286          test ! -s conftest.err
24287        } && test -s conftest.$ac_objext; then
24288   pgac_cv_type_long_long_int_64=yes
24289 else
24290   $as_echo "$as_me: failed program was:" >&5
24291 sed 's/^/| /' conftest.$ac_ext >&5
24292
24293         pgac_cv_type_long_long_int_64=no
24294 fi
24295
24296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24297 else
24298   cat >conftest.$ac_ext <<_ACEOF
24299 /* confdefs.h.  */
24300 _ACEOF
24301 cat confdefs.h >>conftest.$ac_ext
24302 cat >>conftest.$ac_ext <<_ACEOF
24303 /* end confdefs.h.  */
24304 typedef long long int ac_int64;
24305
24306 /*
24307  * These are globals to discourage the compiler from folding all the
24308  * arithmetic tests down to compile-time constants.
24309  */
24310 ac_int64 a = 20000001;
24311 ac_int64 b = 40000005;
24312
24313 int does_int64_work()
24314 {
24315   ac_int64 c,d;
24316
24317   if (sizeof(ac_int64) != 8)
24318     return 0;                   /* definitely not the right size */
24319
24320   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24321   c = a * b;
24322   d = (c + b) / b;
24323   if (d != a+1)
24324     return 0;
24325   return 1;
24326 }
24327 main() {
24328   exit(! does_int64_work());
24329 }
24330 _ACEOF
24331 rm -f conftest$ac_exeext
24332 if { (ac_try="$ac_link"
24333 case "(($ac_try" in
24334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24335   *) ac_try_echo=$ac_try;;
24336 esac
24337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24338 $as_echo "$ac_try_echo") >&5
24339   (eval "$ac_link") 2>&5
24340   ac_status=$?
24341   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24342   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24343   { (case "(($ac_try" in
24344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24345   *) ac_try_echo=$ac_try;;
24346 esac
24347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24348 $as_echo "$ac_try_echo") >&5
24349   (eval "$ac_try") 2>&5
24350   ac_status=$?
24351   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24352   (exit $ac_status); }; }; then
24353   pgac_cv_type_long_long_int_64=yes
24354 else
24355   $as_echo "$as_me: program exited with status $ac_status" >&5
24356 $as_echo "$as_me: failed program was:" >&5
24357 sed 's/^/| /' conftest.$ac_ext >&5
24358
24359 ( exit $ac_status )
24360 pgac_cv_type_long_long_int_64=no
24361 fi
24362 rm -rf conftest.dSYM
24363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24364 fi
24365
24366
24367 fi
24368 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
24369 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
24370
24371 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
24372 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
24373
24374 cat >>confdefs.h <<\_ACEOF
24375 #define HAVE_LONG_LONG_INT_64 1
24376 _ACEOF
24377
24378 fi
24379
24380   if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
24381     pg_int64_type="long long int"
24382   else
24383     { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
24384 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
24385    { (exit 1); exit 1; }; }
24386   fi
24387 fi
24388
24389
24390 cat >>confdefs.h <<_ACEOF
24391 #define PG_INT64_TYPE $pg_int64_type
24392 _ACEOF
24393
24394
24395
24396 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
24397   cat >conftest.$ac_ext <<_ACEOF
24398 /* confdefs.h.  */
24399 _ACEOF
24400 cat confdefs.h >>conftest.$ac_ext
24401 cat >>conftest.$ac_ext <<_ACEOF
24402 /* end confdefs.h.  */
24403
24404 #define INT64CONST(x)  x##LL
24405 long long int foo = INT64CONST(0x1234567890123456);
24406
24407 int
24408 main ()
24409 {
24410
24411   ;
24412   return 0;
24413 }
24414 _ACEOF
24415 rm -f conftest.$ac_objext
24416 if { (ac_try="$ac_compile"
24417 case "(($ac_try" in
24418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24419   *) ac_try_echo=$ac_try;;
24420 esac
24421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24422 $as_echo "$ac_try_echo") >&5
24423   (eval "$ac_compile") 2>conftest.er1
24424   ac_status=$?
24425   grep -v '^ *+' conftest.er1 >conftest.err
24426   rm -f conftest.er1
24427   cat conftest.err >&5
24428   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24429   (exit $ac_status); } && {
24430          test -z "$ac_c_werror_flag" ||
24431          test ! -s conftest.err
24432        } && test -s conftest.$ac_objext; then
24433
24434 cat >>confdefs.h <<\_ACEOF
24435 #define HAVE_LL_CONSTANTS 1
24436 _ACEOF
24437
24438 else
24439   $as_echo "$as_me: failed program was:" >&5
24440 sed 's/^/| /' conftest.$ac_ext >&5
24441
24442
24443 fi
24444
24445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24446 fi
24447
24448
24449 # If we found "long int" is 64 bits, assume snprintf handles it.  If
24450 # we found we need to use "long long int", better check.  We cope with
24451 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
24452 # work, fall back to our own snprintf emulation (which we know uses %lld).
24453
24454 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
24455   if test $pgac_need_repl_snprintf = no; then
24456     { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
24457 $as_echo_n "checking snprintf format for long long int... " >&6; }
24458 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
24459   $as_echo_n "(cached) " >&6
24460 else
24461   for pgac_format in '%lld' '%qd' '%I64d'; do
24462 if test "$cross_compiling" = yes; then
24463   pgac_cv_snprintf_long_long_int_format=cross; break
24464 else
24465   cat >conftest.$ac_ext <<_ACEOF
24466 /* confdefs.h.  */
24467 _ACEOF
24468 cat confdefs.h >>conftest.$ac_ext
24469 cat >>conftest.$ac_ext <<_ACEOF
24470 /* end confdefs.h.  */
24471 #include <stdio.h>
24472 typedef long long int ac_int64;
24473 #define INT64_FORMAT "$pgac_format"
24474
24475 ac_int64 a = 20000001;
24476 ac_int64 b = 40000005;
24477
24478 int does_int64_snprintf_work()
24479 {
24480   ac_int64 c;
24481   char buf[100];
24482
24483   if (sizeof(ac_int64) != 8)
24484     return 0;                   /* doesn't look like the right size */
24485
24486   c = a * b;
24487   snprintf(buf, 100, INT64_FORMAT, c);
24488   if (strcmp(buf, "800000140000005") != 0)
24489     return 0;                   /* either multiply or snprintf is busted */
24490   return 1;
24491 }
24492 main() {
24493   exit(! does_int64_snprintf_work());
24494 }
24495 _ACEOF
24496 rm -f conftest$ac_exeext
24497 if { (ac_try="$ac_link"
24498 case "(($ac_try" in
24499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24500   *) ac_try_echo=$ac_try;;
24501 esac
24502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24503 $as_echo "$ac_try_echo") >&5
24504   (eval "$ac_link") 2>&5
24505   ac_status=$?
24506   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24507   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24508   { (case "(($ac_try" in
24509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24510   *) ac_try_echo=$ac_try;;
24511 esac
24512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24513 $as_echo "$ac_try_echo") >&5
24514   (eval "$ac_try") 2>&5
24515   ac_status=$?
24516   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24517   (exit $ac_status); }; }; then
24518   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
24519 else
24520   $as_echo "$as_me: program exited with status $ac_status" >&5
24521 $as_echo "$as_me: failed program was:" >&5
24522 sed 's/^/| /' conftest.$ac_ext >&5
24523
24524 fi
24525 rm -rf conftest.dSYM
24526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24527 fi
24528
24529
24530 done
24531 fi
24532
24533 LONG_LONG_INT_FORMAT=''
24534
24535 case $pgac_cv_snprintf_long_long_int_format in
24536   cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
24537 $as_echo "cannot test (not on host machine)" >&6; };;
24538   ?*)    { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
24539 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
24540          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
24541   *)     { $as_echo "$as_me:$LINENO: result: none" >&5
24542 $as_echo "none" >&6; };;
24543 esac
24544     if test "$LONG_LONG_INT_FORMAT" = ""; then
24545       # Force usage of our own snprintf, since system snprintf is broken
24546       pgac_need_repl_snprintf=yes
24547       LONG_LONG_INT_FORMAT='%lld'
24548     fi
24549   else
24550     # Here if we previously decided we needed to use our own snprintf
24551     LONG_LONG_INT_FORMAT='%lld'
24552   fi
24553   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
24554   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
24555   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
24556 else
24557   # Here if we are not using 'long long int' at all
24558   INT64_FORMAT='"%ld"'
24559   UINT64_FORMAT='"%lu"'
24560 fi
24561
24562
24563 cat >>confdefs.h <<_ACEOF
24564 #define INT64_FORMAT $INT64_FORMAT
24565 _ACEOF
24566
24567
24568
24569 cat >>confdefs.h <<_ACEOF
24570 #define UINT64_FORMAT $UINT64_FORMAT
24571 _ACEOF
24572
24573
24574 # Now we have checked all the reasons to replace snprintf
24575 if test $pgac_need_repl_snprintf = yes; then
24576
24577 cat >>confdefs.h <<\_ACEOF
24578 #define USE_REPL_SNPRINTF 1
24579 _ACEOF
24580
24581   case " $LIBOBJS " in
24582   *" snprintf.$ac_objext "* ) ;;
24583   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
24584  ;;
24585 esac
24586
24587 fi
24588
24589 # Check size of void *, size_t (enables tweaks for > 32bit address space)
24590 # The cast to long int works around a bug in the HP C Compiler
24591 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24592 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24593 # This bug is HP SR number 8606223364.
24594 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
24595 $as_echo_n "checking size of void *... " >&6; }
24596 if test "${ac_cv_sizeof_void_p+set}" = set; then
24597   $as_echo_n "(cached) " >&6
24598 else
24599   if test "$cross_compiling" = yes; then
24600   # Depending upon the size, compute the lo and hi bounds.
24601 cat >conftest.$ac_ext <<_ACEOF
24602 /* confdefs.h.  */
24603 _ACEOF
24604 cat confdefs.h >>conftest.$ac_ext
24605 cat >>conftest.$ac_ext <<_ACEOF
24606 /* end confdefs.h.  */
24607 $ac_includes_default
24608 int
24609 main ()
24610 {
24611 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
24612 test_array [0] = 0
24613
24614   ;
24615   return 0;
24616 }
24617 _ACEOF
24618 rm -f conftest.$ac_objext
24619 if { (ac_try="$ac_compile"
24620 case "(($ac_try" in
24621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24622   *) ac_try_echo=$ac_try;;
24623 esac
24624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24625 $as_echo "$ac_try_echo") >&5
24626   (eval "$ac_compile") 2>conftest.er1
24627   ac_status=$?
24628   grep -v '^ *+' conftest.er1 >conftest.err
24629   rm -f conftest.er1
24630   cat conftest.err >&5
24631   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24632   (exit $ac_status); } && {
24633          test -z "$ac_c_werror_flag" ||
24634          test ! -s conftest.err
24635        } && test -s conftest.$ac_objext; then
24636   ac_lo=0 ac_mid=0
24637   while :; do
24638     cat >conftest.$ac_ext <<_ACEOF
24639 /* confdefs.h.  */
24640 _ACEOF
24641 cat confdefs.h >>conftest.$ac_ext
24642 cat >>conftest.$ac_ext <<_ACEOF
24643 /* end confdefs.h.  */
24644 $ac_includes_default
24645 int
24646 main ()
24647 {
24648 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24649 test_array [0] = 0
24650
24651   ;
24652   return 0;
24653 }
24654 _ACEOF
24655 rm -f conftest.$ac_objext
24656 if { (ac_try="$ac_compile"
24657 case "(($ac_try" in
24658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24659   *) ac_try_echo=$ac_try;;
24660 esac
24661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24662 $as_echo "$ac_try_echo") >&5
24663   (eval "$ac_compile") 2>conftest.er1
24664   ac_status=$?
24665   grep -v '^ *+' conftest.er1 >conftest.err
24666   rm -f conftest.er1
24667   cat conftest.err >&5
24668   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24669   (exit $ac_status); } && {
24670          test -z "$ac_c_werror_flag" ||
24671          test ! -s conftest.err
24672        } && test -s conftest.$ac_objext; then
24673   ac_hi=$ac_mid; break
24674 else
24675   $as_echo "$as_me: failed program was:" >&5
24676 sed 's/^/| /' conftest.$ac_ext >&5
24677
24678         ac_lo=`expr $ac_mid + 1`
24679                         if test $ac_lo -le $ac_mid; then
24680                           ac_lo= ac_hi=
24681                           break
24682                         fi
24683                         ac_mid=`expr 2 '*' $ac_mid + 1`
24684 fi
24685
24686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24687   done
24688 else
24689   $as_echo "$as_me: failed program was:" >&5
24690 sed 's/^/| /' conftest.$ac_ext >&5
24691
24692         cat >conftest.$ac_ext <<_ACEOF
24693 /* confdefs.h.  */
24694 _ACEOF
24695 cat confdefs.h >>conftest.$ac_ext
24696 cat >>conftest.$ac_ext <<_ACEOF
24697 /* end confdefs.h.  */
24698 $ac_includes_default
24699 int
24700 main ()
24701 {
24702 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
24703 test_array [0] = 0
24704
24705   ;
24706   return 0;
24707 }
24708 _ACEOF
24709 rm -f conftest.$ac_objext
24710 if { (ac_try="$ac_compile"
24711 case "(($ac_try" in
24712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24713   *) ac_try_echo=$ac_try;;
24714 esac
24715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24716 $as_echo "$ac_try_echo") >&5
24717   (eval "$ac_compile") 2>conftest.er1
24718   ac_status=$?
24719   grep -v '^ *+' conftest.er1 >conftest.err
24720   rm -f conftest.er1
24721   cat conftest.err >&5
24722   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24723   (exit $ac_status); } && {
24724          test -z "$ac_c_werror_flag" ||
24725          test ! -s conftest.err
24726        } && test -s conftest.$ac_objext; then
24727   ac_hi=-1 ac_mid=-1
24728   while :; do
24729     cat >conftest.$ac_ext <<_ACEOF
24730 /* confdefs.h.  */
24731 _ACEOF
24732 cat confdefs.h >>conftest.$ac_ext
24733 cat >>conftest.$ac_ext <<_ACEOF
24734 /* end confdefs.h.  */
24735 $ac_includes_default
24736 int
24737 main ()
24738 {
24739 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
24740 test_array [0] = 0
24741
24742   ;
24743   return 0;
24744 }
24745 _ACEOF
24746 rm -f conftest.$ac_objext
24747 if { (ac_try="$ac_compile"
24748 case "(($ac_try" in
24749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24750   *) ac_try_echo=$ac_try;;
24751 esac
24752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24753 $as_echo "$ac_try_echo") >&5
24754   (eval "$ac_compile") 2>conftest.er1
24755   ac_status=$?
24756   grep -v '^ *+' conftest.er1 >conftest.err
24757   rm -f conftest.er1
24758   cat conftest.err >&5
24759   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24760   (exit $ac_status); } && {
24761          test -z "$ac_c_werror_flag" ||
24762          test ! -s conftest.err
24763        } && test -s conftest.$ac_objext; then
24764   ac_lo=$ac_mid; break
24765 else
24766   $as_echo "$as_me: failed program was:" >&5
24767 sed 's/^/| /' conftest.$ac_ext >&5
24768
24769         ac_hi=`expr '(' $ac_mid ')' - 1`
24770                         if test $ac_mid -le $ac_hi; then
24771                           ac_lo= ac_hi=
24772                           break
24773                         fi
24774                         ac_mid=`expr 2 '*' $ac_mid`
24775 fi
24776
24777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24778   done
24779 else
24780   $as_echo "$as_me: failed program was:" >&5
24781 sed 's/^/| /' conftest.$ac_ext >&5
24782
24783         ac_lo= ac_hi=
24784 fi
24785
24786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24787 fi
24788
24789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24790 # Binary search between lo and hi bounds.
24791 while test "x$ac_lo" != "x$ac_hi"; do
24792   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24793   cat >conftest.$ac_ext <<_ACEOF
24794 /* confdefs.h.  */
24795 _ACEOF
24796 cat confdefs.h >>conftest.$ac_ext
24797 cat >>conftest.$ac_ext <<_ACEOF
24798 /* end confdefs.h.  */
24799 $ac_includes_default
24800 int
24801 main ()
24802 {
24803 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24804 test_array [0] = 0
24805
24806   ;
24807   return 0;
24808 }
24809 _ACEOF
24810 rm -f conftest.$ac_objext
24811 if { (ac_try="$ac_compile"
24812 case "(($ac_try" in
24813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24814   *) ac_try_echo=$ac_try;;
24815 esac
24816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24817 $as_echo "$ac_try_echo") >&5
24818   (eval "$ac_compile") 2>conftest.er1
24819   ac_status=$?
24820   grep -v '^ *+' conftest.er1 >conftest.err
24821   rm -f conftest.er1
24822   cat conftest.err >&5
24823   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24824   (exit $ac_status); } && {
24825          test -z "$ac_c_werror_flag" ||
24826          test ! -s conftest.err
24827        } && test -s conftest.$ac_objext; then
24828   ac_hi=$ac_mid
24829 else
24830   $as_echo "$as_me: failed program was:" >&5
24831 sed 's/^/| /' conftest.$ac_ext >&5
24832
24833         ac_lo=`expr '(' $ac_mid ')' + 1`
24834 fi
24835
24836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24837 done
24838 case $ac_lo in
24839 ?*) ac_cv_sizeof_void_p=$ac_lo;;
24840 '') if test "$ac_cv_type_void_p" = yes; then
24841      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24842 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24843 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24844 See \`config.log' for more details." >&5
24845 $as_echo "$as_me: error: cannot compute sizeof (void *)
24846 See \`config.log' for more details." >&2;}
24847    { (exit 77); exit 77; }; }; }
24848    else
24849      ac_cv_sizeof_void_p=0
24850    fi ;;
24851 esac
24852 else
24853   cat >conftest.$ac_ext <<_ACEOF
24854 /* confdefs.h.  */
24855 _ACEOF
24856 cat confdefs.h >>conftest.$ac_ext
24857 cat >>conftest.$ac_ext <<_ACEOF
24858 /* end confdefs.h.  */
24859 $ac_includes_default
24860 static long int longval () { return (long int) (sizeof (void *)); }
24861 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
24862 #include <stdio.h>
24863 #include <stdlib.h>
24864 int
24865 main ()
24866 {
24867
24868   FILE *f = fopen ("conftest.val", "w");
24869   if (! f)
24870     return 1;
24871   if (((long int) (sizeof (void *))) < 0)
24872     {
24873       long int i = longval ();
24874       if (i != ((long int) (sizeof (void *))))
24875         return 1;
24876       fprintf (f, "%ld", i);
24877     }
24878   else
24879     {
24880       unsigned long int i = ulongval ();
24881       if (i != ((long int) (sizeof (void *))))
24882         return 1;
24883       fprintf (f, "%lu", i);
24884     }
24885   /* Do not output a trailing newline, as this causes \r\n confusion
24886      on some platforms.  */
24887   return ferror (f) || fclose (f) != 0;
24888
24889   ;
24890   return 0;
24891 }
24892 _ACEOF
24893 rm -f conftest$ac_exeext
24894 if { (ac_try="$ac_link"
24895 case "(($ac_try" in
24896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24897   *) ac_try_echo=$ac_try;;
24898 esac
24899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24900 $as_echo "$ac_try_echo") >&5
24901   (eval "$ac_link") 2>&5
24902   ac_status=$?
24903   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24904   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24905   { (case "(($ac_try" in
24906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24907   *) ac_try_echo=$ac_try;;
24908 esac
24909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24910 $as_echo "$ac_try_echo") >&5
24911   (eval "$ac_try") 2>&5
24912   ac_status=$?
24913   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914   (exit $ac_status); }; }; then
24915   ac_cv_sizeof_void_p=`cat conftest.val`
24916 else
24917   $as_echo "$as_me: program exited with status $ac_status" >&5
24918 $as_echo "$as_me: failed program was:" >&5
24919 sed 's/^/| /' conftest.$ac_ext >&5
24920
24921 ( exit $ac_status )
24922 if test "$ac_cv_type_void_p" = yes; then
24923      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24925 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24926 See \`config.log' for more details." >&5
24927 $as_echo "$as_me: error: cannot compute sizeof (void *)
24928 See \`config.log' for more details." >&2;}
24929    { (exit 77); exit 77; }; }; }
24930    else
24931      ac_cv_sizeof_void_p=0
24932    fi
24933 fi
24934 rm -rf conftest.dSYM
24935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24936 fi
24937 rm -f conftest.val
24938 fi
24939 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24940 $as_echo "$ac_cv_sizeof_void_p" >&6; }
24941
24942
24943
24944 cat >>confdefs.h <<_ACEOF
24945 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24946 _ACEOF
24947
24948
24949 # The cast to long int works around a bug in the HP C Compiler
24950 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24951 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24952 # This bug is HP SR number 8606223364.
24953 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
24954 $as_echo_n "checking size of size_t... " >&6; }
24955 if test "${ac_cv_sizeof_size_t+set}" = set; then
24956   $as_echo_n "(cached) " >&6
24957 else
24958   if test "$cross_compiling" = yes; then
24959   # Depending upon the size, compute the lo and hi bounds.
24960 cat >conftest.$ac_ext <<_ACEOF
24961 /* confdefs.h.  */
24962 _ACEOF
24963 cat confdefs.h >>conftest.$ac_ext
24964 cat >>conftest.$ac_ext <<_ACEOF
24965 /* end confdefs.h.  */
24966 $ac_includes_default
24967 int
24968 main ()
24969 {
24970 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
24971 test_array [0] = 0
24972
24973   ;
24974   return 0;
24975 }
24976 _ACEOF
24977 rm -f conftest.$ac_objext
24978 if { (ac_try="$ac_compile"
24979 case "(($ac_try" in
24980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24981   *) ac_try_echo=$ac_try;;
24982 esac
24983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24984 $as_echo "$ac_try_echo") >&5
24985   (eval "$ac_compile") 2>conftest.er1
24986   ac_status=$?
24987   grep -v '^ *+' conftest.er1 >conftest.err
24988   rm -f conftest.er1
24989   cat conftest.err >&5
24990   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24991   (exit $ac_status); } && {
24992          test -z "$ac_c_werror_flag" ||
24993          test ! -s conftest.err
24994        } && test -s conftest.$ac_objext; then
24995   ac_lo=0 ac_mid=0
24996   while :; do
24997     cat >conftest.$ac_ext <<_ACEOF
24998 /* confdefs.h.  */
24999 _ACEOF
25000 cat confdefs.h >>conftest.$ac_ext
25001 cat >>conftest.$ac_ext <<_ACEOF
25002 /* end confdefs.h.  */
25003 $ac_includes_default
25004 int
25005 main ()
25006 {
25007 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
25008 test_array [0] = 0
25009
25010   ;
25011   return 0;
25012 }
25013 _ACEOF
25014 rm -f conftest.$ac_objext
25015 if { (ac_try="$ac_compile"
25016 case "(($ac_try" in
25017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25018   *) ac_try_echo=$ac_try;;
25019 esac
25020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25021 $as_echo "$ac_try_echo") >&5
25022   (eval "$ac_compile") 2>conftest.er1
25023   ac_status=$?
25024   grep -v '^ *+' conftest.er1 >conftest.err
25025   rm -f conftest.er1
25026   cat conftest.err >&5
25027   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25028   (exit $ac_status); } && {
25029          test -z "$ac_c_werror_flag" ||
25030          test ! -s conftest.err
25031        } && test -s conftest.$ac_objext; then
25032   ac_hi=$ac_mid; break
25033 else
25034   $as_echo "$as_me: failed program was:" >&5
25035 sed 's/^/| /' conftest.$ac_ext >&5
25036
25037         ac_lo=`expr $ac_mid + 1`
25038                         if test $ac_lo -le $ac_mid; then
25039                           ac_lo= ac_hi=
25040                           break
25041                         fi
25042                         ac_mid=`expr 2 '*' $ac_mid + 1`
25043 fi
25044
25045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25046   done
25047 else
25048   $as_echo "$as_me: failed program was:" >&5
25049 sed 's/^/| /' conftest.$ac_ext >&5
25050
25051         cat >conftest.$ac_ext <<_ACEOF
25052 /* confdefs.h.  */
25053 _ACEOF
25054 cat confdefs.h >>conftest.$ac_ext
25055 cat >>conftest.$ac_ext <<_ACEOF
25056 /* end confdefs.h.  */
25057 $ac_includes_default
25058 int
25059 main ()
25060 {
25061 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
25062 test_array [0] = 0
25063
25064   ;
25065   return 0;
25066 }
25067 _ACEOF
25068 rm -f conftest.$ac_objext
25069 if { (ac_try="$ac_compile"
25070 case "(($ac_try" in
25071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25072   *) ac_try_echo=$ac_try;;
25073 esac
25074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25075 $as_echo "$ac_try_echo") >&5
25076   (eval "$ac_compile") 2>conftest.er1
25077   ac_status=$?
25078   grep -v '^ *+' conftest.er1 >conftest.err
25079   rm -f conftest.er1
25080   cat conftest.err >&5
25081   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25082   (exit $ac_status); } && {
25083          test -z "$ac_c_werror_flag" ||
25084          test ! -s conftest.err
25085        } && test -s conftest.$ac_objext; then
25086   ac_hi=-1 ac_mid=-1
25087   while :; do
25088     cat >conftest.$ac_ext <<_ACEOF
25089 /* confdefs.h.  */
25090 _ACEOF
25091 cat confdefs.h >>conftest.$ac_ext
25092 cat >>conftest.$ac_ext <<_ACEOF
25093 /* end confdefs.h.  */
25094 $ac_includes_default
25095 int
25096 main ()
25097 {
25098 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
25099 test_array [0] = 0
25100
25101   ;
25102   return 0;
25103 }
25104 _ACEOF
25105 rm -f conftest.$ac_objext
25106 if { (ac_try="$ac_compile"
25107 case "(($ac_try" in
25108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25109   *) ac_try_echo=$ac_try;;
25110 esac
25111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25112 $as_echo "$ac_try_echo") >&5
25113   (eval "$ac_compile") 2>conftest.er1
25114   ac_status=$?
25115   grep -v '^ *+' conftest.er1 >conftest.err
25116   rm -f conftest.er1
25117   cat conftest.err >&5
25118   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119   (exit $ac_status); } && {
25120          test -z "$ac_c_werror_flag" ||
25121          test ! -s conftest.err
25122        } && test -s conftest.$ac_objext; then
25123   ac_lo=$ac_mid; break
25124 else
25125   $as_echo "$as_me: failed program was:" >&5
25126 sed 's/^/| /' conftest.$ac_ext >&5
25127
25128         ac_hi=`expr '(' $ac_mid ')' - 1`
25129                         if test $ac_mid -le $ac_hi; then
25130                           ac_lo= ac_hi=
25131                           break
25132                         fi
25133                         ac_mid=`expr 2 '*' $ac_mid`
25134 fi
25135
25136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25137   done
25138 else
25139   $as_echo "$as_me: failed program was:" >&5
25140 sed 's/^/| /' conftest.$ac_ext >&5
25141
25142         ac_lo= ac_hi=
25143 fi
25144
25145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25146 fi
25147
25148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25149 # Binary search between lo and hi bounds.
25150 while test "x$ac_lo" != "x$ac_hi"; do
25151   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25152   cat >conftest.$ac_ext <<_ACEOF
25153 /* confdefs.h.  */
25154 _ACEOF
25155 cat confdefs.h >>conftest.$ac_ext
25156 cat >>conftest.$ac_ext <<_ACEOF
25157 /* end confdefs.h.  */
25158 $ac_includes_default
25159 int
25160 main ()
25161 {
25162 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
25163 test_array [0] = 0
25164
25165   ;
25166   return 0;
25167 }
25168 _ACEOF
25169 rm -f conftest.$ac_objext
25170 if { (ac_try="$ac_compile"
25171 case "(($ac_try" in
25172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25173   *) ac_try_echo=$ac_try;;
25174 esac
25175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25176 $as_echo "$ac_try_echo") >&5
25177   (eval "$ac_compile") 2>conftest.er1
25178   ac_status=$?
25179   grep -v '^ *+' conftest.er1 >conftest.err
25180   rm -f conftest.er1
25181   cat conftest.err >&5
25182   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183   (exit $ac_status); } && {
25184          test -z "$ac_c_werror_flag" ||
25185          test ! -s conftest.err
25186        } && test -s conftest.$ac_objext; then
25187   ac_hi=$ac_mid
25188 else
25189   $as_echo "$as_me: failed program was:" >&5
25190 sed 's/^/| /' conftest.$ac_ext >&5
25191
25192         ac_lo=`expr '(' $ac_mid ')' + 1`
25193 fi
25194
25195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25196 done
25197 case $ac_lo in
25198 ?*) ac_cv_sizeof_size_t=$ac_lo;;
25199 '') if test "$ac_cv_type_size_t" = yes; then
25200      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25202 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25203 See \`config.log' for more details." >&5
25204 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25205 See \`config.log' for more details." >&2;}
25206    { (exit 77); exit 77; }; }; }
25207    else
25208      ac_cv_sizeof_size_t=0
25209    fi ;;
25210 esac
25211 else
25212   cat >conftest.$ac_ext <<_ACEOF
25213 /* confdefs.h.  */
25214 _ACEOF
25215 cat confdefs.h >>conftest.$ac_ext
25216 cat >>conftest.$ac_ext <<_ACEOF
25217 /* end confdefs.h.  */
25218 $ac_includes_default
25219 static long int longval () { return (long int) (sizeof (size_t)); }
25220 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
25221 #include <stdio.h>
25222 #include <stdlib.h>
25223 int
25224 main ()
25225 {
25226
25227   FILE *f = fopen ("conftest.val", "w");
25228   if (! f)
25229     return 1;
25230   if (((long int) (sizeof (size_t))) < 0)
25231     {
25232       long int i = longval ();
25233       if (i != ((long int) (sizeof (size_t))))
25234         return 1;
25235       fprintf (f, "%ld", i);
25236     }
25237   else
25238     {
25239       unsigned long int i = ulongval ();
25240       if (i != ((long int) (sizeof (size_t))))
25241         return 1;
25242       fprintf (f, "%lu", i);
25243     }
25244   /* Do not output a trailing newline, as this causes \r\n confusion
25245      on some platforms.  */
25246   return ferror (f) || fclose (f) != 0;
25247
25248   ;
25249   return 0;
25250 }
25251 _ACEOF
25252 rm -f conftest$ac_exeext
25253 if { (ac_try="$ac_link"
25254 case "(($ac_try" in
25255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25256   *) ac_try_echo=$ac_try;;
25257 esac
25258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25259 $as_echo "$ac_try_echo") >&5
25260   (eval "$ac_link") 2>&5
25261   ac_status=$?
25262   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25263   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25264   { (case "(($ac_try" in
25265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25266   *) ac_try_echo=$ac_try;;
25267 esac
25268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25269 $as_echo "$ac_try_echo") >&5
25270   (eval "$ac_try") 2>&5
25271   ac_status=$?
25272   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25273   (exit $ac_status); }; }; then
25274   ac_cv_sizeof_size_t=`cat conftest.val`
25275 else
25276   $as_echo "$as_me: program exited with status $ac_status" >&5
25277 $as_echo "$as_me: failed program was:" >&5
25278 sed 's/^/| /' conftest.$ac_ext >&5
25279
25280 ( exit $ac_status )
25281 if test "$ac_cv_type_size_t" = yes; then
25282      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25284 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25285 See \`config.log' for more details." >&5
25286 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25287 See \`config.log' for more details." >&2;}
25288    { (exit 77); exit 77; }; }; }
25289    else
25290      ac_cv_sizeof_size_t=0
25291    fi
25292 fi
25293 rm -rf conftest.dSYM
25294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25295 fi
25296 rm -f conftest.val
25297 fi
25298 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
25299 $as_echo "$ac_cv_sizeof_size_t" >&6; }
25300
25301
25302
25303 cat >>confdefs.h <<_ACEOF
25304 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
25305 _ACEOF
25306
25307
25308 # The cast to long int works around a bug in the HP C Compiler
25309 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25310 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25311 # This bug is HP SR number 8606223364.
25312 { $as_echo "$as_me:$LINENO: checking size of long" >&5
25313 $as_echo_n "checking size of long... " >&6; }
25314 if test "${ac_cv_sizeof_long+set}" = set; then
25315   $as_echo_n "(cached) " >&6
25316 else
25317   if test "$cross_compiling" = yes; then
25318   # Depending upon the size, compute the lo and hi bounds.
25319 cat >conftest.$ac_ext <<_ACEOF
25320 /* confdefs.h.  */
25321 _ACEOF
25322 cat confdefs.h >>conftest.$ac_ext
25323 cat >>conftest.$ac_ext <<_ACEOF
25324 /* end confdefs.h.  */
25325 $ac_includes_default
25326 int
25327 main ()
25328 {
25329 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
25330 test_array [0] = 0
25331
25332   ;
25333   return 0;
25334 }
25335 _ACEOF
25336 rm -f conftest.$ac_objext
25337 if { (ac_try="$ac_compile"
25338 case "(($ac_try" in
25339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25340   *) ac_try_echo=$ac_try;;
25341 esac
25342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25343 $as_echo "$ac_try_echo") >&5
25344   (eval "$ac_compile") 2>conftest.er1
25345   ac_status=$?
25346   grep -v '^ *+' conftest.er1 >conftest.err
25347   rm -f conftest.er1
25348   cat conftest.err >&5
25349   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25350   (exit $ac_status); } && {
25351          test -z "$ac_c_werror_flag" ||
25352          test ! -s conftest.err
25353        } && test -s conftest.$ac_objext; then
25354   ac_lo=0 ac_mid=0
25355   while :; do
25356     cat >conftest.$ac_ext <<_ACEOF
25357 /* confdefs.h.  */
25358 _ACEOF
25359 cat confdefs.h >>conftest.$ac_ext
25360 cat >>conftest.$ac_ext <<_ACEOF
25361 /* end confdefs.h.  */
25362 $ac_includes_default
25363 int
25364 main ()
25365 {
25366 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25367 test_array [0] = 0
25368
25369   ;
25370   return 0;
25371 }
25372 _ACEOF
25373 rm -f conftest.$ac_objext
25374 if { (ac_try="$ac_compile"
25375 case "(($ac_try" in
25376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25377   *) ac_try_echo=$ac_try;;
25378 esac
25379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25380 $as_echo "$ac_try_echo") >&5
25381   (eval "$ac_compile") 2>conftest.er1
25382   ac_status=$?
25383   grep -v '^ *+' conftest.er1 >conftest.err
25384   rm -f conftest.er1
25385   cat conftest.err >&5
25386   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25387   (exit $ac_status); } && {
25388          test -z "$ac_c_werror_flag" ||
25389          test ! -s conftest.err
25390        } && test -s conftest.$ac_objext; then
25391   ac_hi=$ac_mid; break
25392 else
25393   $as_echo "$as_me: failed program was:" >&5
25394 sed 's/^/| /' conftest.$ac_ext >&5
25395
25396         ac_lo=`expr $ac_mid + 1`
25397                         if test $ac_lo -le $ac_mid; then
25398                           ac_lo= ac_hi=
25399                           break
25400                         fi
25401                         ac_mid=`expr 2 '*' $ac_mid + 1`
25402 fi
25403
25404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25405   done
25406 else
25407   $as_echo "$as_me: failed program was:" >&5
25408 sed 's/^/| /' conftest.$ac_ext >&5
25409
25410         cat >conftest.$ac_ext <<_ACEOF
25411 /* confdefs.h.  */
25412 _ACEOF
25413 cat confdefs.h >>conftest.$ac_ext
25414 cat >>conftest.$ac_ext <<_ACEOF
25415 /* end confdefs.h.  */
25416 $ac_includes_default
25417 int
25418 main ()
25419 {
25420 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
25421 test_array [0] = 0
25422
25423   ;
25424   return 0;
25425 }
25426 _ACEOF
25427 rm -f conftest.$ac_objext
25428 if { (ac_try="$ac_compile"
25429 case "(($ac_try" in
25430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25431   *) ac_try_echo=$ac_try;;
25432 esac
25433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25434 $as_echo "$ac_try_echo") >&5
25435   (eval "$ac_compile") 2>conftest.er1
25436   ac_status=$?
25437   grep -v '^ *+' conftest.er1 >conftest.err
25438   rm -f conftest.er1
25439   cat conftest.err >&5
25440   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25441   (exit $ac_status); } && {
25442          test -z "$ac_c_werror_flag" ||
25443          test ! -s conftest.err
25444        } && test -s conftest.$ac_objext; then
25445   ac_hi=-1 ac_mid=-1
25446   while :; do
25447     cat >conftest.$ac_ext <<_ACEOF
25448 /* confdefs.h.  */
25449 _ACEOF
25450 cat confdefs.h >>conftest.$ac_ext
25451 cat >>conftest.$ac_ext <<_ACEOF
25452 /* end confdefs.h.  */
25453 $ac_includes_default
25454 int
25455 main ()
25456 {
25457 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
25458 test_array [0] = 0
25459
25460   ;
25461   return 0;
25462 }
25463 _ACEOF
25464 rm -f conftest.$ac_objext
25465 if { (ac_try="$ac_compile"
25466 case "(($ac_try" in
25467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25468   *) ac_try_echo=$ac_try;;
25469 esac
25470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25471 $as_echo "$ac_try_echo") >&5
25472   (eval "$ac_compile") 2>conftest.er1
25473   ac_status=$?
25474   grep -v '^ *+' conftest.er1 >conftest.err
25475   rm -f conftest.er1
25476   cat conftest.err >&5
25477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478   (exit $ac_status); } && {
25479          test -z "$ac_c_werror_flag" ||
25480          test ! -s conftest.err
25481        } && test -s conftest.$ac_objext; then
25482   ac_lo=$ac_mid; break
25483 else
25484   $as_echo "$as_me: failed program was:" >&5
25485 sed 's/^/| /' conftest.$ac_ext >&5
25486
25487         ac_hi=`expr '(' $ac_mid ')' - 1`
25488                         if test $ac_mid -le $ac_hi; then
25489                           ac_lo= ac_hi=
25490                           break
25491                         fi
25492                         ac_mid=`expr 2 '*' $ac_mid`
25493 fi
25494
25495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25496   done
25497 else
25498   $as_echo "$as_me: failed program was:" >&5
25499 sed 's/^/| /' conftest.$ac_ext >&5
25500
25501         ac_lo= ac_hi=
25502 fi
25503
25504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25505 fi
25506
25507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25508 # Binary search between lo and hi bounds.
25509 while test "x$ac_lo" != "x$ac_hi"; do
25510   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25511   cat >conftest.$ac_ext <<_ACEOF
25512 /* confdefs.h.  */
25513 _ACEOF
25514 cat confdefs.h >>conftest.$ac_ext
25515 cat >>conftest.$ac_ext <<_ACEOF
25516 /* end confdefs.h.  */
25517 $ac_includes_default
25518 int
25519 main ()
25520 {
25521 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25522 test_array [0] = 0
25523
25524   ;
25525   return 0;
25526 }
25527 _ACEOF
25528 rm -f conftest.$ac_objext
25529 if { (ac_try="$ac_compile"
25530 case "(($ac_try" in
25531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25532   *) ac_try_echo=$ac_try;;
25533 esac
25534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25535 $as_echo "$ac_try_echo") >&5
25536   (eval "$ac_compile") 2>conftest.er1
25537   ac_status=$?
25538   grep -v '^ *+' conftest.er1 >conftest.err
25539   rm -f conftest.er1
25540   cat conftest.err >&5
25541   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25542   (exit $ac_status); } && {
25543          test -z "$ac_c_werror_flag" ||
25544          test ! -s conftest.err
25545        } && test -s conftest.$ac_objext; then
25546   ac_hi=$ac_mid
25547 else
25548   $as_echo "$as_me: failed program was:" >&5
25549 sed 's/^/| /' conftest.$ac_ext >&5
25550
25551         ac_lo=`expr '(' $ac_mid ')' + 1`
25552 fi
25553
25554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25555 done
25556 case $ac_lo in
25557 ?*) ac_cv_sizeof_long=$ac_lo;;
25558 '') if test "$ac_cv_type_long" = yes; then
25559      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25561 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25562 See \`config.log' for more details." >&5
25563 $as_echo "$as_me: error: cannot compute sizeof (long)
25564 See \`config.log' for more details." >&2;}
25565    { (exit 77); exit 77; }; }; }
25566    else
25567      ac_cv_sizeof_long=0
25568    fi ;;
25569 esac
25570 else
25571   cat >conftest.$ac_ext <<_ACEOF
25572 /* confdefs.h.  */
25573 _ACEOF
25574 cat confdefs.h >>conftest.$ac_ext
25575 cat >>conftest.$ac_ext <<_ACEOF
25576 /* end confdefs.h.  */
25577 $ac_includes_default
25578 static long int longval () { return (long int) (sizeof (long)); }
25579 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
25580 #include <stdio.h>
25581 #include <stdlib.h>
25582 int
25583 main ()
25584 {
25585
25586   FILE *f = fopen ("conftest.val", "w");
25587   if (! f)
25588     return 1;
25589   if (((long int) (sizeof (long))) < 0)
25590     {
25591       long int i = longval ();
25592       if (i != ((long int) (sizeof (long))))
25593         return 1;
25594       fprintf (f, "%ld", i);
25595     }
25596   else
25597     {
25598       unsigned long int i = ulongval ();
25599       if (i != ((long int) (sizeof (long))))
25600         return 1;
25601       fprintf (f, "%lu", i);
25602     }
25603   /* Do not output a trailing newline, as this causes \r\n confusion
25604      on some platforms.  */
25605   return ferror (f) || fclose (f) != 0;
25606
25607   ;
25608   return 0;
25609 }
25610 _ACEOF
25611 rm -f conftest$ac_exeext
25612 if { (ac_try="$ac_link"
25613 case "(($ac_try" in
25614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25615   *) ac_try_echo=$ac_try;;
25616 esac
25617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25618 $as_echo "$ac_try_echo") >&5
25619   (eval "$ac_link") 2>&5
25620   ac_status=$?
25621   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25622   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25623   { (case "(($ac_try" in
25624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25625   *) ac_try_echo=$ac_try;;
25626 esac
25627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25628 $as_echo "$ac_try_echo") >&5
25629   (eval "$ac_try") 2>&5
25630   ac_status=$?
25631   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25632   (exit $ac_status); }; }; then
25633   ac_cv_sizeof_long=`cat conftest.val`
25634 else
25635   $as_echo "$as_me: program exited with status $ac_status" >&5
25636 $as_echo "$as_me: failed program was:" >&5
25637 sed 's/^/| /' conftest.$ac_ext >&5
25638
25639 ( exit $ac_status )
25640 if test "$ac_cv_type_long" = yes; then
25641      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25643 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25644 See \`config.log' for more details." >&5
25645 $as_echo "$as_me: error: cannot compute sizeof (long)
25646 See \`config.log' for more details." >&2;}
25647    { (exit 77); exit 77; }; }; }
25648    else
25649      ac_cv_sizeof_long=0
25650    fi
25651 fi
25652 rm -rf conftest.dSYM
25653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25654 fi
25655 rm -f conftest.val
25656 fi
25657 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
25658 $as_echo "$ac_cv_sizeof_long" >&6; }
25659
25660
25661
25662 cat >>confdefs.h <<_ACEOF
25663 #define SIZEOF_LONG $ac_cv_sizeof_long
25664 _ACEOF
25665
25666
25667
25668 # Decide whether float4 is passed by value: user-selectable, enabled by default
25669 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
25670 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
25671
25672
25673 # Check whether --enable-float4-byval was given.
25674 if test "${enable_float4_byval+set}" = set; then
25675   enableval=$enable_float4_byval;
25676   case $enableval in
25677     yes)
25678
25679 cat >>confdefs.h <<\_ACEOF
25680 #define USE_FLOAT4_BYVAL 1
25681 _ACEOF
25682
25683                float4passbyval=true
25684       ;;
25685     no)
25686       float4passbyval=false
25687       ;;
25688     *)
25689       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
25690 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
25691    { (exit 1); exit 1; }; }
25692       ;;
25693   esac
25694
25695 else
25696   enable_float4_byval=yes
25697
25698 cat >>confdefs.h <<\_ACEOF
25699 #define USE_FLOAT4_BYVAL 1
25700 _ACEOF
25701
25702                float4passbyval=true
25703 fi
25704
25705
25706 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
25707 $as_echo "$enable_float4_byval" >&6; }
25708
25709 cat >>confdefs.h <<_ACEOF
25710 #define FLOAT4PASSBYVAL $float4passbyval
25711 _ACEOF
25712
25713
25714 # Decide whether float8 is passed by value.
25715 # Note: this setting also controls int8 and related types such as timestamp.
25716 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
25717 # If not, trying to select it is an error.
25718 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
25719 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
25720 if test $ac_cv_sizeof_void_p -ge 8 ; then
25721
25722
25723 # Check whether --enable-float8-byval was given.
25724 if test "${enable_float8_byval+set}" = set; then
25725   enableval=$enable_float8_byval;
25726   case $enableval in
25727     yes)
25728       :
25729       ;;
25730     no)
25731       :
25732       ;;
25733     *)
25734       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25735 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25736    { (exit 1); exit 1; }; }
25737       ;;
25738   esac
25739
25740 else
25741   enable_float8_byval=yes
25742
25743 fi
25744
25745
25746 else
25747
25748
25749 # Check whether --enable-float8-byval was given.
25750 if test "${enable_float8_byval+set}" = set; then
25751   enableval=$enable_float8_byval;
25752   case $enableval in
25753     yes)
25754       :
25755       ;;
25756     no)
25757       :
25758       ;;
25759     *)
25760       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25761 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25762    { (exit 1); exit 1; }; }
25763       ;;
25764   esac
25765
25766 else
25767   enable_float8_byval=no
25768
25769 fi
25770
25771
25772   if test "$enable_float8_byval" = yes ; then
25773     { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
25774 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
25775    { (exit 1); exit 1; }; }
25776   fi
25777 fi
25778 if test "$enable_float8_byval" = yes ; then
25779
25780 cat >>confdefs.h <<\_ACEOF
25781 #define USE_FLOAT8_BYVAL 1
25782 _ACEOF
25783
25784   float8passbyval=true
25785 else
25786   float8passbyval=false
25787 fi
25788 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
25789 $as_echo "$enable_float8_byval" >&6; }
25790
25791 cat >>confdefs.h <<_ACEOF
25792 #define FLOAT8PASSBYVAL $float8passbyval
25793 _ACEOF
25794
25795
25796 # Determine memory alignment requirements for the basic C data types.
25797
25798 # The cast to long int works around a bug in the HP C Compiler,
25799 # see AC_CHECK_SIZEOF for more information.
25800 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
25801 $as_echo_n "checking alignment of short... " >&6; }
25802 if test "${ac_cv_alignof_short+set}" = set; then
25803   $as_echo_n "(cached) " >&6
25804 else
25805   if test "$cross_compiling" = yes; then
25806   # Depending upon the size, compute the lo and hi bounds.
25807 cat >conftest.$ac_ext <<_ACEOF
25808 /* confdefs.h.  */
25809 _ACEOF
25810 cat confdefs.h >>conftest.$ac_ext
25811 cat >>conftest.$ac_ext <<_ACEOF
25812 /* end confdefs.h.  */
25813 $ac_includes_default
25814 #ifndef offsetof
25815 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25816 #endif
25817 typedef struct { char x; short y; } ac__type_alignof_;
25818 int
25819 main ()
25820 {
25821 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25822 test_array [0] = 0
25823
25824   ;
25825   return 0;
25826 }
25827 _ACEOF
25828 rm -f conftest.$ac_objext
25829 if { (ac_try="$ac_compile"
25830 case "(($ac_try" in
25831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25832   *) ac_try_echo=$ac_try;;
25833 esac
25834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25835 $as_echo "$ac_try_echo") >&5
25836   (eval "$ac_compile") 2>conftest.er1
25837   ac_status=$?
25838   grep -v '^ *+' conftest.er1 >conftest.err
25839   rm -f conftest.er1
25840   cat conftest.err >&5
25841   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25842   (exit $ac_status); } && {
25843          test -z "$ac_c_werror_flag" ||
25844          test ! -s conftest.err
25845        } && test -s conftest.$ac_objext; then
25846   ac_lo=0 ac_mid=0
25847   while :; do
25848     cat >conftest.$ac_ext <<_ACEOF
25849 /* confdefs.h.  */
25850 _ACEOF
25851 cat confdefs.h >>conftest.$ac_ext
25852 cat >>conftest.$ac_ext <<_ACEOF
25853 /* end confdefs.h.  */
25854 $ac_includes_default
25855 #ifndef offsetof
25856 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25857 #endif
25858 typedef struct { char x; short y; } ac__type_alignof_;
25859 int
25860 main ()
25861 {
25862 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25863 test_array [0] = 0
25864
25865   ;
25866   return 0;
25867 }
25868 _ACEOF
25869 rm -f conftest.$ac_objext
25870 if { (ac_try="$ac_compile"
25871 case "(($ac_try" in
25872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25873   *) ac_try_echo=$ac_try;;
25874 esac
25875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25876 $as_echo "$ac_try_echo") >&5
25877   (eval "$ac_compile") 2>conftest.er1
25878   ac_status=$?
25879   grep -v '^ *+' conftest.er1 >conftest.err
25880   rm -f conftest.er1
25881   cat conftest.err >&5
25882   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25883   (exit $ac_status); } && {
25884          test -z "$ac_c_werror_flag" ||
25885          test ! -s conftest.err
25886        } && test -s conftest.$ac_objext; then
25887   ac_hi=$ac_mid; break
25888 else
25889   $as_echo "$as_me: failed program was:" >&5
25890 sed 's/^/| /' conftest.$ac_ext >&5
25891
25892         ac_lo=`expr $ac_mid + 1`
25893                         if test $ac_lo -le $ac_mid; then
25894                           ac_lo= ac_hi=
25895                           break
25896                         fi
25897                         ac_mid=`expr 2 '*' $ac_mid + 1`
25898 fi
25899
25900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25901   done
25902 else
25903   $as_echo "$as_me: failed program was:" >&5
25904 sed 's/^/| /' conftest.$ac_ext >&5
25905
25906         cat >conftest.$ac_ext <<_ACEOF
25907 /* confdefs.h.  */
25908 _ACEOF
25909 cat confdefs.h >>conftest.$ac_ext
25910 cat >>conftest.$ac_ext <<_ACEOF
25911 /* end confdefs.h.  */
25912 $ac_includes_default
25913 #ifndef offsetof
25914 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25915 #endif
25916 typedef struct { char x; short y; } ac__type_alignof_;
25917 int
25918 main ()
25919 {
25920 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25921 test_array [0] = 0
25922
25923   ;
25924   return 0;
25925 }
25926 _ACEOF
25927 rm -f conftest.$ac_objext
25928 if { (ac_try="$ac_compile"
25929 case "(($ac_try" in
25930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25931   *) ac_try_echo=$ac_try;;
25932 esac
25933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25934 $as_echo "$ac_try_echo") >&5
25935   (eval "$ac_compile") 2>conftest.er1
25936   ac_status=$?
25937   grep -v '^ *+' conftest.er1 >conftest.err
25938   rm -f conftest.er1
25939   cat conftest.err >&5
25940   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25941   (exit $ac_status); } && {
25942          test -z "$ac_c_werror_flag" ||
25943          test ! -s conftest.err
25944        } && test -s conftest.$ac_objext; then
25945   ac_hi=-1 ac_mid=-1
25946   while :; do
25947     cat >conftest.$ac_ext <<_ACEOF
25948 /* confdefs.h.  */
25949 _ACEOF
25950 cat confdefs.h >>conftest.$ac_ext
25951 cat >>conftest.$ac_ext <<_ACEOF
25952 /* end confdefs.h.  */
25953 $ac_includes_default
25954 #ifndef offsetof
25955 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25956 #endif
25957 typedef struct { char x; short y; } ac__type_alignof_;
25958 int
25959 main ()
25960 {
25961 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25962 test_array [0] = 0
25963
25964   ;
25965   return 0;
25966 }
25967 _ACEOF
25968 rm -f conftest.$ac_objext
25969 if { (ac_try="$ac_compile"
25970 case "(($ac_try" in
25971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25972   *) ac_try_echo=$ac_try;;
25973 esac
25974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25975 $as_echo "$ac_try_echo") >&5
25976   (eval "$ac_compile") 2>conftest.er1
25977   ac_status=$?
25978   grep -v '^ *+' conftest.er1 >conftest.err
25979   rm -f conftest.er1
25980   cat conftest.err >&5
25981   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25982   (exit $ac_status); } && {
25983          test -z "$ac_c_werror_flag" ||
25984          test ! -s conftest.err
25985        } && test -s conftest.$ac_objext; then
25986   ac_lo=$ac_mid; break
25987 else
25988   $as_echo "$as_me: failed program was:" >&5
25989 sed 's/^/| /' conftest.$ac_ext >&5
25990
25991         ac_hi=`expr '(' $ac_mid ')' - 1`
25992                         if test $ac_mid -le $ac_hi; then
25993                           ac_lo= ac_hi=
25994                           break
25995                         fi
25996                         ac_mid=`expr 2 '*' $ac_mid`
25997 fi
25998
25999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26000   done
26001 else
26002   $as_echo "$as_me: failed program was:" >&5
26003 sed 's/^/| /' conftest.$ac_ext >&5
26004
26005         ac_lo= ac_hi=
26006 fi
26007
26008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26009 fi
26010
26011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26012 # Binary search between lo and hi bounds.
26013 while test "x$ac_lo" != "x$ac_hi"; do
26014   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26015   cat >conftest.$ac_ext <<_ACEOF
26016 /* confdefs.h.  */
26017 _ACEOF
26018 cat confdefs.h >>conftest.$ac_ext
26019 cat >>conftest.$ac_ext <<_ACEOF
26020 /* end confdefs.h.  */
26021 $ac_includes_default
26022 #ifndef offsetof
26023 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26024 #endif
26025 typedef struct { char x; short y; } ac__type_alignof_;
26026 int
26027 main ()
26028 {
26029 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26030 test_array [0] = 0
26031
26032   ;
26033   return 0;
26034 }
26035 _ACEOF
26036 rm -f conftest.$ac_objext
26037 if { (ac_try="$ac_compile"
26038 case "(($ac_try" in
26039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26040   *) ac_try_echo=$ac_try;;
26041 esac
26042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26043 $as_echo "$ac_try_echo") >&5
26044   (eval "$ac_compile") 2>conftest.er1
26045   ac_status=$?
26046   grep -v '^ *+' conftest.er1 >conftest.err
26047   rm -f conftest.er1
26048   cat conftest.err >&5
26049   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26050   (exit $ac_status); } && {
26051          test -z "$ac_c_werror_flag" ||
26052          test ! -s conftest.err
26053        } && test -s conftest.$ac_objext; then
26054   ac_hi=$ac_mid
26055 else
26056   $as_echo "$as_me: failed program was:" >&5
26057 sed 's/^/| /' conftest.$ac_ext >&5
26058
26059         ac_lo=`expr '(' $ac_mid ')' + 1`
26060 fi
26061
26062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26063 done
26064 case $ac_lo in
26065 ?*) ac_cv_alignof_short=$ac_lo;;
26066 '') if test "$ac_cv_type_short" = yes; then
26067      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26069 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
26070 See \`config.log' for more details." >&5
26071 $as_echo "$as_me: error: cannot compute alignment of short
26072 See \`config.log' for more details." >&2;}
26073    { (exit 77); exit 77; }; }; }
26074    else
26075      ac_cv_alignof_short=0
26076    fi ;;
26077 esac
26078 else
26079   cat >conftest.$ac_ext <<_ACEOF
26080 /* confdefs.h.  */
26081 _ACEOF
26082 cat confdefs.h >>conftest.$ac_ext
26083 cat >>conftest.$ac_ext <<_ACEOF
26084 /* end confdefs.h.  */
26085 $ac_includes_default
26086 #ifndef offsetof
26087 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26088 #endif
26089 typedef struct { char x; short y; } ac__type_alignof_;
26090 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26091 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26092 #include <stdio.h>
26093 #include <stdlib.h>
26094 int
26095 main ()
26096 {
26097
26098   FILE *f = fopen ("conftest.val", "w");
26099   if (! f)
26100     return 1;
26101   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26102     {
26103       long int i = longval ();
26104       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26105         return 1;
26106       fprintf (f, "%ld", i);
26107     }
26108   else
26109     {
26110       unsigned long int i = ulongval ();
26111       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26112         return 1;
26113       fprintf (f, "%lu", i);
26114     }
26115   /* Do not output a trailing newline, as this causes \r\n confusion
26116      on some platforms.  */
26117   return ferror (f) || fclose (f) != 0;
26118
26119   ;
26120   return 0;
26121 }
26122 _ACEOF
26123 rm -f conftest$ac_exeext
26124 if { (ac_try="$ac_link"
26125 case "(($ac_try" in
26126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26127   *) ac_try_echo=$ac_try;;
26128 esac
26129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26130 $as_echo "$ac_try_echo") >&5
26131   (eval "$ac_link") 2>&5
26132   ac_status=$?
26133   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26134   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26135   { (case "(($ac_try" in
26136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26137   *) ac_try_echo=$ac_try;;
26138 esac
26139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26140 $as_echo "$ac_try_echo") >&5
26141   (eval "$ac_try") 2>&5
26142   ac_status=$?
26143   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26144   (exit $ac_status); }; }; then
26145   ac_cv_alignof_short=`cat conftest.val`
26146 else
26147   $as_echo "$as_me: program exited with status $ac_status" >&5
26148 $as_echo "$as_me: failed program was:" >&5
26149 sed 's/^/| /' conftest.$ac_ext >&5
26150
26151 ( exit $ac_status )
26152 if test "$ac_cv_type_short" = yes; then
26153      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26155 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
26156 See \`config.log' for more details." >&5
26157 $as_echo "$as_me: error: cannot compute alignment of short
26158 See \`config.log' for more details." >&2;}
26159    { (exit 77); exit 77; }; }; }
26160    else
26161      ac_cv_alignof_short=0
26162    fi
26163 fi
26164 rm -rf conftest.dSYM
26165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26166 fi
26167 rm -f conftest.val
26168 fi
26169 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
26170 $as_echo "$ac_cv_alignof_short" >&6; }
26171
26172
26173
26174 cat >>confdefs.h <<_ACEOF
26175 #define ALIGNOF_SHORT $ac_cv_alignof_short
26176 _ACEOF
26177
26178
26179 # The cast to long int works around a bug in the HP C Compiler,
26180 # see AC_CHECK_SIZEOF for more information.
26181 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
26182 $as_echo_n "checking alignment of int... " >&6; }
26183 if test "${ac_cv_alignof_int+set}" = set; then
26184   $as_echo_n "(cached) " >&6
26185 else
26186   if test "$cross_compiling" = yes; then
26187   # Depending upon the size, compute the lo and hi bounds.
26188 cat >conftest.$ac_ext <<_ACEOF
26189 /* confdefs.h.  */
26190 _ACEOF
26191 cat confdefs.h >>conftest.$ac_ext
26192 cat >>conftest.$ac_ext <<_ACEOF
26193 /* end confdefs.h.  */
26194 $ac_includes_default
26195 #ifndef offsetof
26196 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26197 #endif
26198 typedef struct { char x; int y; } ac__type_alignof_;
26199 int
26200 main ()
26201 {
26202 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26203 test_array [0] = 0
26204
26205   ;
26206   return 0;
26207 }
26208 _ACEOF
26209 rm -f conftest.$ac_objext
26210 if { (ac_try="$ac_compile"
26211 case "(($ac_try" in
26212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26213   *) ac_try_echo=$ac_try;;
26214 esac
26215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26216 $as_echo "$ac_try_echo") >&5
26217   (eval "$ac_compile") 2>conftest.er1
26218   ac_status=$?
26219   grep -v '^ *+' conftest.er1 >conftest.err
26220   rm -f conftest.er1
26221   cat conftest.err >&5
26222   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26223   (exit $ac_status); } && {
26224          test -z "$ac_c_werror_flag" ||
26225          test ! -s conftest.err
26226        } && test -s conftest.$ac_objext; then
26227   ac_lo=0 ac_mid=0
26228   while :; do
26229     cat >conftest.$ac_ext <<_ACEOF
26230 /* confdefs.h.  */
26231 _ACEOF
26232 cat confdefs.h >>conftest.$ac_ext
26233 cat >>conftest.$ac_ext <<_ACEOF
26234 /* end confdefs.h.  */
26235 $ac_includes_default
26236 #ifndef offsetof
26237 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26238 #endif
26239 typedef struct { char x; int y; } ac__type_alignof_;
26240 int
26241 main ()
26242 {
26243 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26244 test_array [0] = 0
26245
26246   ;
26247   return 0;
26248 }
26249 _ACEOF
26250 rm -f conftest.$ac_objext
26251 if { (ac_try="$ac_compile"
26252 case "(($ac_try" in
26253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26254   *) ac_try_echo=$ac_try;;
26255 esac
26256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26257 $as_echo "$ac_try_echo") >&5
26258   (eval "$ac_compile") 2>conftest.er1
26259   ac_status=$?
26260   grep -v '^ *+' conftest.er1 >conftest.err
26261   rm -f conftest.er1
26262   cat conftest.err >&5
26263   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26264   (exit $ac_status); } && {
26265          test -z "$ac_c_werror_flag" ||
26266          test ! -s conftest.err
26267        } && test -s conftest.$ac_objext; then
26268   ac_hi=$ac_mid; break
26269 else
26270   $as_echo "$as_me: failed program was:" >&5
26271 sed 's/^/| /' conftest.$ac_ext >&5
26272
26273         ac_lo=`expr $ac_mid + 1`
26274                         if test $ac_lo -le $ac_mid; then
26275                           ac_lo= ac_hi=
26276                           break
26277                         fi
26278                         ac_mid=`expr 2 '*' $ac_mid + 1`
26279 fi
26280
26281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26282   done
26283 else
26284   $as_echo "$as_me: failed program was:" >&5
26285 sed 's/^/| /' conftest.$ac_ext >&5
26286
26287         cat >conftest.$ac_ext <<_ACEOF
26288 /* confdefs.h.  */
26289 _ACEOF
26290 cat confdefs.h >>conftest.$ac_ext
26291 cat >>conftest.$ac_ext <<_ACEOF
26292 /* end confdefs.h.  */
26293 $ac_includes_default
26294 #ifndef offsetof
26295 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26296 #endif
26297 typedef struct { char x; int y; } ac__type_alignof_;
26298 int
26299 main ()
26300 {
26301 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26302 test_array [0] = 0
26303
26304   ;
26305   return 0;
26306 }
26307 _ACEOF
26308 rm -f conftest.$ac_objext
26309 if { (ac_try="$ac_compile"
26310 case "(($ac_try" in
26311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26312   *) ac_try_echo=$ac_try;;
26313 esac
26314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26315 $as_echo "$ac_try_echo") >&5
26316   (eval "$ac_compile") 2>conftest.er1
26317   ac_status=$?
26318   grep -v '^ *+' conftest.er1 >conftest.err
26319   rm -f conftest.er1
26320   cat conftest.err >&5
26321   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26322   (exit $ac_status); } && {
26323          test -z "$ac_c_werror_flag" ||
26324          test ! -s conftest.err
26325        } && test -s conftest.$ac_objext; then
26326   ac_hi=-1 ac_mid=-1
26327   while :; do
26328     cat >conftest.$ac_ext <<_ACEOF
26329 /* confdefs.h.  */
26330 _ACEOF
26331 cat confdefs.h >>conftest.$ac_ext
26332 cat >>conftest.$ac_ext <<_ACEOF
26333 /* end confdefs.h.  */
26334 $ac_includes_default
26335 #ifndef offsetof
26336 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26337 #endif
26338 typedef struct { char x; int y; } ac__type_alignof_;
26339 int
26340 main ()
26341 {
26342 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26343 test_array [0] = 0
26344
26345   ;
26346   return 0;
26347 }
26348 _ACEOF
26349 rm -f conftest.$ac_objext
26350 if { (ac_try="$ac_compile"
26351 case "(($ac_try" in
26352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26353   *) ac_try_echo=$ac_try;;
26354 esac
26355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26356 $as_echo "$ac_try_echo") >&5
26357   (eval "$ac_compile") 2>conftest.er1
26358   ac_status=$?
26359   grep -v '^ *+' conftest.er1 >conftest.err
26360   rm -f conftest.er1
26361   cat conftest.err >&5
26362   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26363   (exit $ac_status); } && {
26364          test -z "$ac_c_werror_flag" ||
26365          test ! -s conftest.err
26366        } && test -s conftest.$ac_objext; then
26367   ac_lo=$ac_mid; break
26368 else
26369   $as_echo "$as_me: failed program was:" >&5
26370 sed 's/^/| /' conftest.$ac_ext >&5
26371
26372         ac_hi=`expr '(' $ac_mid ')' - 1`
26373                         if test $ac_mid -le $ac_hi; then
26374                           ac_lo= ac_hi=
26375                           break
26376                         fi
26377                         ac_mid=`expr 2 '*' $ac_mid`
26378 fi
26379
26380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26381   done
26382 else
26383   $as_echo "$as_me: failed program was:" >&5
26384 sed 's/^/| /' conftest.$ac_ext >&5
26385
26386         ac_lo= ac_hi=
26387 fi
26388
26389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26390 fi
26391
26392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26393 # Binary search between lo and hi bounds.
26394 while test "x$ac_lo" != "x$ac_hi"; do
26395   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26396   cat >conftest.$ac_ext <<_ACEOF
26397 /* confdefs.h.  */
26398 _ACEOF
26399 cat confdefs.h >>conftest.$ac_ext
26400 cat >>conftest.$ac_ext <<_ACEOF
26401 /* end confdefs.h.  */
26402 $ac_includes_default
26403 #ifndef offsetof
26404 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26405 #endif
26406 typedef struct { char x; int y; } ac__type_alignof_;
26407 int
26408 main ()
26409 {
26410 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26411 test_array [0] = 0
26412
26413   ;
26414   return 0;
26415 }
26416 _ACEOF
26417 rm -f conftest.$ac_objext
26418 if { (ac_try="$ac_compile"
26419 case "(($ac_try" in
26420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26421   *) ac_try_echo=$ac_try;;
26422 esac
26423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26424 $as_echo "$ac_try_echo") >&5
26425   (eval "$ac_compile") 2>conftest.er1
26426   ac_status=$?
26427   grep -v '^ *+' conftest.er1 >conftest.err
26428   rm -f conftest.er1
26429   cat conftest.err >&5
26430   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26431   (exit $ac_status); } && {
26432          test -z "$ac_c_werror_flag" ||
26433          test ! -s conftest.err
26434        } && test -s conftest.$ac_objext; then
26435   ac_hi=$ac_mid
26436 else
26437   $as_echo "$as_me: failed program was:" >&5
26438 sed 's/^/| /' conftest.$ac_ext >&5
26439
26440         ac_lo=`expr '(' $ac_mid ')' + 1`
26441 fi
26442
26443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26444 done
26445 case $ac_lo in
26446 ?*) ac_cv_alignof_int=$ac_lo;;
26447 '') if test "$ac_cv_type_int" = yes; then
26448      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26450 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26451 See \`config.log' for more details." >&5
26452 $as_echo "$as_me: error: cannot compute alignment of int
26453 See \`config.log' for more details." >&2;}
26454    { (exit 77); exit 77; }; }; }
26455    else
26456      ac_cv_alignof_int=0
26457    fi ;;
26458 esac
26459 else
26460   cat >conftest.$ac_ext <<_ACEOF
26461 /* confdefs.h.  */
26462 _ACEOF
26463 cat confdefs.h >>conftest.$ac_ext
26464 cat >>conftest.$ac_ext <<_ACEOF
26465 /* end confdefs.h.  */
26466 $ac_includes_default
26467 #ifndef offsetof
26468 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26469 #endif
26470 typedef struct { char x; int y; } ac__type_alignof_;
26471 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26472 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26473 #include <stdio.h>
26474 #include <stdlib.h>
26475 int
26476 main ()
26477 {
26478
26479   FILE *f = fopen ("conftest.val", "w");
26480   if (! f)
26481     return 1;
26482   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26483     {
26484       long int i = longval ();
26485       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26486         return 1;
26487       fprintf (f, "%ld", i);
26488     }
26489   else
26490     {
26491       unsigned long int i = ulongval ();
26492       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26493         return 1;
26494       fprintf (f, "%lu", i);
26495     }
26496   /* Do not output a trailing newline, as this causes \r\n confusion
26497      on some platforms.  */
26498   return ferror (f) || fclose (f) != 0;
26499
26500   ;
26501   return 0;
26502 }
26503 _ACEOF
26504 rm -f conftest$ac_exeext
26505 if { (ac_try="$ac_link"
26506 case "(($ac_try" in
26507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26508   *) ac_try_echo=$ac_try;;
26509 esac
26510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26511 $as_echo "$ac_try_echo") >&5
26512   (eval "$ac_link") 2>&5
26513   ac_status=$?
26514   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26515   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26516   { (case "(($ac_try" in
26517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26518   *) ac_try_echo=$ac_try;;
26519 esac
26520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26521 $as_echo "$ac_try_echo") >&5
26522   (eval "$ac_try") 2>&5
26523   ac_status=$?
26524   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26525   (exit $ac_status); }; }; then
26526   ac_cv_alignof_int=`cat conftest.val`
26527 else
26528   $as_echo "$as_me: program exited with status $ac_status" >&5
26529 $as_echo "$as_me: failed program was:" >&5
26530 sed 's/^/| /' conftest.$ac_ext >&5
26531
26532 ( exit $ac_status )
26533 if test "$ac_cv_type_int" = yes; then
26534      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26536 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26537 See \`config.log' for more details." >&5
26538 $as_echo "$as_me: error: cannot compute alignment of int
26539 See \`config.log' for more details." >&2;}
26540    { (exit 77); exit 77; }; }; }
26541    else
26542      ac_cv_alignof_int=0
26543    fi
26544 fi
26545 rm -rf conftest.dSYM
26546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26547 fi
26548 rm -f conftest.val
26549 fi
26550 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
26551 $as_echo "$ac_cv_alignof_int" >&6; }
26552
26553
26554
26555 cat >>confdefs.h <<_ACEOF
26556 #define ALIGNOF_INT $ac_cv_alignof_int
26557 _ACEOF
26558
26559
26560 # The cast to long int works around a bug in the HP C Compiler,
26561 # see AC_CHECK_SIZEOF for more information.
26562 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
26563 $as_echo_n "checking alignment of long... " >&6; }
26564 if test "${ac_cv_alignof_long+set}" = set; then
26565   $as_echo_n "(cached) " >&6
26566 else
26567   if test "$cross_compiling" = yes; then
26568   # Depending upon the size, compute the lo and hi bounds.
26569 cat >conftest.$ac_ext <<_ACEOF
26570 /* confdefs.h.  */
26571 _ACEOF
26572 cat confdefs.h >>conftest.$ac_ext
26573 cat >>conftest.$ac_ext <<_ACEOF
26574 /* end confdefs.h.  */
26575 $ac_includes_default
26576 #ifndef offsetof
26577 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26578 #endif
26579 typedef struct { char x; long y; } ac__type_alignof_;
26580 int
26581 main ()
26582 {
26583 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26584 test_array [0] = 0
26585
26586   ;
26587   return 0;
26588 }
26589 _ACEOF
26590 rm -f conftest.$ac_objext
26591 if { (ac_try="$ac_compile"
26592 case "(($ac_try" in
26593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26594   *) ac_try_echo=$ac_try;;
26595 esac
26596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26597 $as_echo "$ac_try_echo") >&5
26598   (eval "$ac_compile") 2>conftest.er1
26599   ac_status=$?
26600   grep -v '^ *+' conftest.er1 >conftest.err
26601   rm -f conftest.er1
26602   cat conftest.err >&5
26603   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26604   (exit $ac_status); } && {
26605          test -z "$ac_c_werror_flag" ||
26606          test ! -s conftest.err
26607        } && test -s conftest.$ac_objext; then
26608   ac_lo=0 ac_mid=0
26609   while :; do
26610     cat >conftest.$ac_ext <<_ACEOF
26611 /* confdefs.h.  */
26612 _ACEOF
26613 cat confdefs.h >>conftest.$ac_ext
26614 cat >>conftest.$ac_ext <<_ACEOF
26615 /* end confdefs.h.  */
26616 $ac_includes_default
26617 #ifndef offsetof
26618 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26619 #endif
26620 typedef struct { char x; long y; } ac__type_alignof_;
26621 int
26622 main ()
26623 {
26624 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26625 test_array [0] = 0
26626
26627   ;
26628   return 0;
26629 }
26630 _ACEOF
26631 rm -f conftest.$ac_objext
26632 if { (ac_try="$ac_compile"
26633 case "(($ac_try" in
26634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26635   *) ac_try_echo=$ac_try;;
26636 esac
26637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26638 $as_echo "$ac_try_echo") >&5
26639   (eval "$ac_compile") 2>conftest.er1
26640   ac_status=$?
26641   grep -v '^ *+' conftest.er1 >conftest.err
26642   rm -f conftest.er1
26643   cat conftest.err >&5
26644   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26645   (exit $ac_status); } && {
26646          test -z "$ac_c_werror_flag" ||
26647          test ! -s conftest.err
26648        } && test -s conftest.$ac_objext; then
26649   ac_hi=$ac_mid; break
26650 else
26651   $as_echo "$as_me: failed program was:" >&5
26652 sed 's/^/| /' conftest.$ac_ext >&5
26653
26654         ac_lo=`expr $ac_mid + 1`
26655                         if test $ac_lo -le $ac_mid; then
26656                           ac_lo= ac_hi=
26657                           break
26658                         fi
26659                         ac_mid=`expr 2 '*' $ac_mid + 1`
26660 fi
26661
26662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26663   done
26664 else
26665   $as_echo "$as_me: failed program was:" >&5
26666 sed 's/^/| /' conftest.$ac_ext >&5
26667
26668         cat >conftest.$ac_ext <<_ACEOF
26669 /* confdefs.h.  */
26670 _ACEOF
26671 cat confdefs.h >>conftest.$ac_ext
26672 cat >>conftest.$ac_ext <<_ACEOF
26673 /* end confdefs.h.  */
26674 $ac_includes_default
26675 #ifndef offsetof
26676 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26677 #endif
26678 typedef struct { char x; long y; } ac__type_alignof_;
26679 int
26680 main ()
26681 {
26682 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26683 test_array [0] = 0
26684
26685   ;
26686   return 0;
26687 }
26688 _ACEOF
26689 rm -f conftest.$ac_objext
26690 if { (ac_try="$ac_compile"
26691 case "(($ac_try" in
26692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26693   *) ac_try_echo=$ac_try;;
26694 esac
26695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26696 $as_echo "$ac_try_echo") >&5
26697   (eval "$ac_compile") 2>conftest.er1
26698   ac_status=$?
26699   grep -v '^ *+' conftest.er1 >conftest.err
26700   rm -f conftest.er1
26701   cat conftest.err >&5
26702   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26703   (exit $ac_status); } && {
26704          test -z "$ac_c_werror_flag" ||
26705          test ! -s conftest.err
26706        } && test -s conftest.$ac_objext; then
26707   ac_hi=-1 ac_mid=-1
26708   while :; do
26709     cat >conftest.$ac_ext <<_ACEOF
26710 /* confdefs.h.  */
26711 _ACEOF
26712 cat confdefs.h >>conftest.$ac_ext
26713 cat >>conftest.$ac_ext <<_ACEOF
26714 /* end confdefs.h.  */
26715 $ac_includes_default
26716 #ifndef offsetof
26717 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26718 #endif
26719 typedef struct { char x; long y; } ac__type_alignof_;
26720 int
26721 main ()
26722 {
26723 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26724 test_array [0] = 0
26725
26726   ;
26727   return 0;
26728 }
26729 _ACEOF
26730 rm -f conftest.$ac_objext
26731 if { (ac_try="$ac_compile"
26732 case "(($ac_try" in
26733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26734   *) ac_try_echo=$ac_try;;
26735 esac
26736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26737 $as_echo "$ac_try_echo") >&5
26738   (eval "$ac_compile") 2>conftest.er1
26739   ac_status=$?
26740   grep -v '^ *+' conftest.er1 >conftest.err
26741   rm -f conftest.er1
26742   cat conftest.err >&5
26743   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26744   (exit $ac_status); } && {
26745          test -z "$ac_c_werror_flag" ||
26746          test ! -s conftest.err
26747        } && test -s conftest.$ac_objext; then
26748   ac_lo=$ac_mid; break
26749 else
26750   $as_echo "$as_me: failed program was:" >&5
26751 sed 's/^/| /' conftest.$ac_ext >&5
26752
26753         ac_hi=`expr '(' $ac_mid ')' - 1`
26754                         if test $ac_mid -le $ac_hi; then
26755                           ac_lo= ac_hi=
26756                           break
26757                         fi
26758                         ac_mid=`expr 2 '*' $ac_mid`
26759 fi
26760
26761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26762   done
26763 else
26764   $as_echo "$as_me: failed program was:" >&5
26765 sed 's/^/| /' conftest.$ac_ext >&5
26766
26767         ac_lo= ac_hi=
26768 fi
26769
26770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26771 fi
26772
26773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26774 # Binary search between lo and hi bounds.
26775 while test "x$ac_lo" != "x$ac_hi"; do
26776   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26777   cat >conftest.$ac_ext <<_ACEOF
26778 /* confdefs.h.  */
26779 _ACEOF
26780 cat confdefs.h >>conftest.$ac_ext
26781 cat >>conftest.$ac_ext <<_ACEOF
26782 /* end confdefs.h.  */
26783 $ac_includes_default
26784 #ifndef offsetof
26785 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26786 #endif
26787 typedef struct { char x; long y; } ac__type_alignof_;
26788 int
26789 main ()
26790 {
26791 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26792 test_array [0] = 0
26793
26794   ;
26795   return 0;
26796 }
26797 _ACEOF
26798 rm -f conftest.$ac_objext
26799 if { (ac_try="$ac_compile"
26800 case "(($ac_try" in
26801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26802   *) ac_try_echo=$ac_try;;
26803 esac
26804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26805 $as_echo "$ac_try_echo") >&5
26806   (eval "$ac_compile") 2>conftest.er1
26807   ac_status=$?
26808   grep -v '^ *+' conftest.er1 >conftest.err
26809   rm -f conftest.er1
26810   cat conftest.err >&5
26811   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26812   (exit $ac_status); } && {
26813          test -z "$ac_c_werror_flag" ||
26814          test ! -s conftest.err
26815        } && test -s conftest.$ac_objext; then
26816   ac_hi=$ac_mid
26817 else
26818   $as_echo "$as_me: failed program was:" >&5
26819 sed 's/^/| /' conftest.$ac_ext >&5
26820
26821         ac_lo=`expr '(' $ac_mid ')' + 1`
26822 fi
26823
26824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26825 done
26826 case $ac_lo in
26827 ?*) ac_cv_alignof_long=$ac_lo;;
26828 '') if test "$ac_cv_type_long" = yes; then
26829      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26831 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26832 See \`config.log' for more details." >&5
26833 $as_echo "$as_me: error: cannot compute alignment of long
26834 See \`config.log' for more details." >&2;}
26835    { (exit 77); exit 77; }; }; }
26836    else
26837      ac_cv_alignof_long=0
26838    fi ;;
26839 esac
26840 else
26841   cat >conftest.$ac_ext <<_ACEOF
26842 /* confdefs.h.  */
26843 _ACEOF
26844 cat confdefs.h >>conftest.$ac_ext
26845 cat >>conftest.$ac_ext <<_ACEOF
26846 /* end confdefs.h.  */
26847 $ac_includes_default
26848 #ifndef offsetof
26849 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26850 #endif
26851 typedef struct { char x; long y; } ac__type_alignof_;
26852 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26853 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26854 #include <stdio.h>
26855 #include <stdlib.h>
26856 int
26857 main ()
26858 {
26859
26860   FILE *f = fopen ("conftest.val", "w");
26861   if (! f)
26862     return 1;
26863   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26864     {
26865       long int i = longval ();
26866       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26867         return 1;
26868       fprintf (f, "%ld", i);
26869     }
26870   else
26871     {
26872       unsigned long int i = ulongval ();
26873       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26874         return 1;
26875       fprintf (f, "%lu", i);
26876     }
26877   /* Do not output a trailing newline, as this causes \r\n confusion
26878      on some platforms.  */
26879   return ferror (f) || fclose (f) != 0;
26880
26881   ;
26882   return 0;
26883 }
26884 _ACEOF
26885 rm -f conftest$ac_exeext
26886 if { (ac_try="$ac_link"
26887 case "(($ac_try" in
26888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26889   *) ac_try_echo=$ac_try;;
26890 esac
26891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26892 $as_echo "$ac_try_echo") >&5
26893   (eval "$ac_link") 2>&5
26894   ac_status=$?
26895   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26896   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26897   { (case "(($ac_try" in
26898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26899   *) ac_try_echo=$ac_try;;
26900 esac
26901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26902 $as_echo "$ac_try_echo") >&5
26903   (eval "$ac_try") 2>&5
26904   ac_status=$?
26905   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26906   (exit $ac_status); }; }; then
26907   ac_cv_alignof_long=`cat conftest.val`
26908 else
26909   $as_echo "$as_me: program exited with status $ac_status" >&5
26910 $as_echo "$as_me: failed program was:" >&5
26911 sed 's/^/| /' conftest.$ac_ext >&5
26912
26913 ( exit $ac_status )
26914 if test "$ac_cv_type_long" = yes; then
26915      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26917 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26918 See \`config.log' for more details." >&5
26919 $as_echo "$as_me: error: cannot compute alignment of long
26920 See \`config.log' for more details." >&2;}
26921    { (exit 77); exit 77; }; }; }
26922    else
26923      ac_cv_alignof_long=0
26924    fi
26925 fi
26926 rm -rf conftest.dSYM
26927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26928 fi
26929 rm -f conftest.val
26930 fi
26931 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
26932 $as_echo "$ac_cv_alignof_long" >&6; }
26933
26934
26935
26936 cat >>confdefs.h <<_ACEOF
26937 #define ALIGNOF_LONG $ac_cv_alignof_long
26938 _ACEOF
26939
26940
26941 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
26942   # The cast to long int works around a bug in the HP C Compiler,
26943 # see AC_CHECK_SIZEOF for more information.
26944 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
26945 $as_echo_n "checking alignment of long long int... " >&6; }
26946 if test "${ac_cv_alignof_long_long_int+set}" = set; then
26947   $as_echo_n "(cached) " >&6
26948 else
26949   if test "$cross_compiling" = yes; then
26950   # Depending upon the size, compute the lo and hi bounds.
26951 cat >conftest.$ac_ext <<_ACEOF
26952 /* confdefs.h.  */
26953 _ACEOF
26954 cat confdefs.h >>conftest.$ac_ext
26955 cat >>conftest.$ac_ext <<_ACEOF
26956 /* end confdefs.h.  */
26957 $ac_includes_default
26958 #ifndef offsetof
26959 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26960 #endif
26961 typedef struct { char x; long long int y; } ac__type_alignof_;
26962 int
26963 main ()
26964 {
26965 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26966 test_array [0] = 0
26967
26968   ;
26969   return 0;
26970 }
26971 _ACEOF
26972 rm -f conftest.$ac_objext
26973 if { (ac_try="$ac_compile"
26974 case "(($ac_try" in
26975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26976   *) ac_try_echo=$ac_try;;
26977 esac
26978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26979 $as_echo "$ac_try_echo") >&5
26980   (eval "$ac_compile") 2>conftest.er1
26981   ac_status=$?
26982   grep -v '^ *+' conftest.er1 >conftest.err
26983   rm -f conftest.er1
26984   cat conftest.err >&5
26985   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26986   (exit $ac_status); } && {
26987          test -z "$ac_c_werror_flag" ||
26988          test ! -s conftest.err
26989        } && test -s conftest.$ac_objext; then
26990   ac_lo=0 ac_mid=0
26991   while :; do
26992     cat >conftest.$ac_ext <<_ACEOF
26993 /* confdefs.h.  */
26994 _ACEOF
26995 cat confdefs.h >>conftest.$ac_ext
26996 cat >>conftest.$ac_ext <<_ACEOF
26997 /* end confdefs.h.  */
26998 $ac_includes_default
26999 #ifndef offsetof
27000 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27001 #endif
27002 typedef struct { char x; long long int y; } ac__type_alignof_;
27003 int
27004 main ()
27005 {
27006 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27007 test_array [0] = 0
27008
27009   ;
27010   return 0;
27011 }
27012 _ACEOF
27013 rm -f conftest.$ac_objext
27014 if { (ac_try="$ac_compile"
27015 case "(($ac_try" in
27016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27017   *) ac_try_echo=$ac_try;;
27018 esac
27019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27020 $as_echo "$ac_try_echo") >&5
27021   (eval "$ac_compile") 2>conftest.er1
27022   ac_status=$?
27023   grep -v '^ *+' conftest.er1 >conftest.err
27024   rm -f conftest.er1
27025   cat conftest.err >&5
27026   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27027   (exit $ac_status); } && {
27028          test -z "$ac_c_werror_flag" ||
27029          test ! -s conftest.err
27030        } && test -s conftest.$ac_objext; then
27031   ac_hi=$ac_mid; break
27032 else
27033   $as_echo "$as_me: failed program was:" >&5
27034 sed 's/^/| /' conftest.$ac_ext >&5
27035
27036         ac_lo=`expr $ac_mid + 1`
27037                         if test $ac_lo -le $ac_mid; then
27038                           ac_lo= ac_hi=
27039                           break
27040                         fi
27041                         ac_mid=`expr 2 '*' $ac_mid + 1`
27042 fi
27043
27044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27045   done
27046 else
27047   $as_echo "$as_me: failed program was:" >&5
27048 sed 's/^/| /' conftest.$ac_ext >&5
27049
27050         cat >conftest.$ac_ext <<_ACEOF
27051 /* confdefs.h.  */
27052 _ACEOF
27053 cat confdefs.h >>conftest.$ac_ext
27054 cat >>conftest.$ac_ext <<_ACEOF
27055 /* end confdefs.h.  */
27056 $ac_includes_default
27057 #ifndef offsetof
27058 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27059 #endif
27060 typedef struct { char x; long long int y; } ac__type_alignof_;
27061 int
27062 main ()
27063 {
27064 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27065 test_array [0] = 0
27066
27067   ;
27068   return 0;
27069 }
27070 _ACEOF
27071 rm -f conftest.$ac_objext
27072 if { (ac_try="$ac_compile"
27073 case "(($ac_try" in
27074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27075   *) ac_try_echo=$ac_try;;
27076 esac
27077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27078 $as_echo "$ac_try_echo") >&5
27079   (eval "$ac_compile") 2>conftest.er1
27080   ac_status=$?
27081   grep -v '^ *+' conftest.er1 >conftest.err
27082   rm -f conftest.er1
27083   cat conftest.err >&5
27084   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27085   (exit $ac_status); } && {
27086          test -z "$ac_c_werror_flag" ||
27087          test ! -s conftest.err
27088        } && test -s conftest.$ac_objext; then
27089   ac_hi=-1 ac_mid=-1
27090   while :; do
27091     cat >conftest.$ac_ext <<_ACEOF
27092 /* confdefs.h.  */
27093 _ACEOF
27094 cat confdefs.h >>conftest.$ac_ext
27095 cat >>conftest.$ac_ext <<_ACEOF
27096 /* end confdefs.h.  */
27097 $ac_includes_default
27098 #ifndef offsetof
27099 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27100 #endif
27101 typedef struct { char x; long long int y; } ac__type_alignof_;
27102 int
27103 main ()
27104 {
27105 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27106 test_array [0] = 0
27107
27108   ;
27109   return 0;
27110 }
27111 _ACEOF
27112 rm -f conftest.$ac_objext
27113 if { (ac_try="$ac_compile"
27114 case "(($ac_try" in
27115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27116   *) ac_try_echo=$ac_try;;
27117 esac
27118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27119 $as_echo "$ac_try_echo") >&5
27120   (eval "$ac_compile") 2>conftest.er1
27121   ac_status=$?
27122   grep -v '^ *+' conftest.er1 >conftest.err
27123   rm -f conftest.er1
27124   cat conftest.err >&5
27125   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27126   (exit $ac_status); } && {
27127          test -z "$ac_c_werror_flag" ||
27128          test ! -s conftest.err
27129        } && test -s conftest.$ac_objext; then
27130   ac_lo=$ac_mid; break
27131 else
27132   $as_echo "$as_me: failed program was:" >&5
27133 sed 's/^/| /' conftest.$ac_ext >&5
27134
27135         ac_hi=`expr '(' $ac_mid ')' - 1`
27136                         if test $ac_mid -le $ac_hi; then
27137                           ac_lo= ac_hi=
27138                           break
27139                         fi
27140                         ac_mid=`expr 2 '*' $ac_mid`
27141 fi
27142
27143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27144   done
27145 else
27146   $as_echo "$as_me: failed program was:" >&5
27147 sed 's/^/| /' conftest.$ac_ext >&5
27148
27149         ac_lo= ac_hi=
27150 fi
27151
27152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27153 fi
27154
27155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27156 # Binary search between lo and hi bounds.
27157 while test "x$ac_lo" != "x$ac_hi"; do
27158   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27159   cat >conftest.$ac_ext <<_ACEOF
27160 /* confdefs.h.  */
27161 _ACEOF
27162 cat confdefs.h >>conftest.$ac_ext
27163 cat >>conftest.$ac_ext <<_ACEOF
27164 /* end confdefs.h.  */
27165 $ac_includes_default
27166 #ifndef offsetof
27167 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27168 #endif
27169 typedef struct { char x; long long int y; } ac__type_alignof_;
27170 int
27171 main ()
27172 {
27173 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27174 test_array [0] = 0
27175
27176   ;
27177   return 0;
27178 }
27179 _ACEOF
27180 rm -f conftest.$ac_objext
27181 if { (ac_try="$ac_compile"
27182 case "(($ac_try" in
27183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27184   *) ac_try_echo=$ac_try;;
27185 esac
27186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27187 $as_echo "$ac_try_echo") >&5
27188   (eval "$ac_compile") 2>conftest.er1
27189   ac_status=$?
27190   grep -v '^ *+' conftest.er1 >conftest.err
27191   rm -f conftest.er1
27192   cat conftest.err >&5
27193   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27194   (exit $ac_status); } && {
27195          test -z "$ac_c_werror_flag" ||
27196          test ! -s conftest.err
27197        } && test -s conftest.$ac_objext; then
27198   ac_hi=$ac_mid
27199 else
27200   $as_echo "$as_me: failed program was:" >&5
27201 sed 's/^/| /' conftest.$ac_ext >&5
27202
27203         ac_lo=`expr '(' $ac_mid ')' + 1`
27204 fi
27205
27206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27207 done
27208 case $ac_lo in
27209 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
27210 '') if test "$ac_cv_type_long_long_int" = yes; then
27211      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27213 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27214 See \`config.log' for more details." >&5
27215 $as_echo "$as_me: error: cannot compute alignment of long long int
27216 See \`config.log' for more details." >&2;}
27217    { (exit 77); exit 77; }; }; }
27218    else
27219      ac_cv_alignof_long_long_int=0
27220    fi ;;
27221 esac
27222 else
27223   cat >conftest.$ac_ext <<_ACEOF
27224 /* confdefs.h.  */
27225 _ACEOF
27226 cat confdefs.h >>conftest.$ac_ext
27227 cat >>conftest.$ac_ext <<_ACEOF
27228 /* end confdefs.h.  */
27229 $ac_includes_default
27230 #ifndef offsetof
27231 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27232 #endif
27233 typedef struct { char x; long long int y; } ac__type_alignof_;
27234 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27235 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27236 #include <stdio.h>
27237 #include <stdlib.h>
27238 int
27239 main ()
27240 {
27241
27242   FILE *f = fopen ("conftest.val", "w");
27243   if (! f)
27244     return 1;
27245   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27246     {
27247       long int i = longval ();
27248       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27249         return 1;
27250       fprintf (f, "%ld", i);
27251     }
27252   else
27253     {
27254       unsigned long int i = ulongval ();
27255       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27256         return 1;
27257       fprintf (f, "%lu", i);
27258     }
27259   /* Do not output a trailing newline, as this causes \r\n confusion
27260      on some platforms.  */
27261   return ferror (f) || fclose (f) != 0;
27262
27263   ;
27264   return 0;
27265 }
27266 _ACEOF
27267 rm -f conftest$ac_exeext
27268 if { (ac_try="$ac_link"
27269 case "(($ac_try" in
27270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27271   *) ac_try_echo=$ac_try;;
27272 esac
27273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27274 $as_echo "$ac_try_echo") >&5
27275   (eval "$ac_link") 2>&5
27276   ac_status=$?
27277   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27278   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27279   { (case "(($ac_try" in
27280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27281   *) ac_try_echo=$ac_try;;
27282 esac
27283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27284 $as_echo "$ac_try_echo") >&5
27285   (eval "$ac_try") 2>&5
27286   ac_status=$?
27287   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27288   (exit $ac_status); }; }; then
27289   ac_cv_alignof_long_long_int=`cat conftest.val`
27290 else
27291   $as_echo "$as_me: program exited with status $ac_status" >&5
27292 $as_echo "$as_me: failed program was:" >&5
27293 sed 's/^/| /' conftest.$ac_ext >&5
27294
27295 ( exit $ac_status )
27296 if test "$ac_cv_type_long_long_int" = yes; then
27297      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27299 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27300 See \`config.log' for more details." >&5
27301 $as_echo "$as_me: error: cannot compute alignment of long long int
27302 See \`config.log' for more details." >&2;}
27303    { (exit 77); exit 77; }; }; }
27304    else
27305      ac_cv_alignof_long_long_int=0
27306    fi
27307 fi
27308 rm -rf conftest.dSYM
27309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27310 fi
27311 rm -f conftest.val
27312 fi
27313 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
27314 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
27315
27316
27317
27318 cat >>confdefs.h <<_ACEOF
27319 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
27320 _ACEOF
27321
27322
27323 fi
27324 # The cast to long int works around a bug in the HP C Compiler,
27325 # see AC_CHECK_SIZEOF for more information.
27326 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
27327 $as_echo_n "checking alignment of double... " >&6; }
27328 if test "${ac_cv_alignof_double+set}" = set; then
27329   $as_echo_n "(cached) " >&6
27330 else
27331   if test "$cross_compiling" = yes; then
27332   # Depending upon the size, compute the lo and hi bounds.
27333 cat >conftest.$ac_ext <<_ACEOF
27334 /* confdefs.h.  */
27335 _ACEOF
27336 cat confdefs.h >>conftest.$ac_ext
27337 cat >>conftest.$ac_ext <<_ACEOF
27338 /* end confdefs.h.  */
27339 $ac_includes_default
27340 #ifndef offsetof
27341 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27342 #endif
27343 typedef struct { char x; double y; } ac__type_alignof_;
27344 int
27345 main ()
27346 {
27347 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27348 test_array [0] = 0
27349
27350   ;
27351   return 0;
27352 }
27353 _ACEOF
27354 rm -f conftest.$ac_objext
27355 if { (ac_try="$ac_compile"
27356 case "(($ac_try" in
27357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27358   *) ac_try_echo=$ac_try;;
27359 esac
27360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27361 $as_echo "$ac_try_echo") >&5
27362   (eval "$ac_compile") 2>conftest.er1
27363   ac_status=$?
27364   grep -v '^ *+' conftest.er1 >conftest.err
27365   rm -f conftest.er1
27366   cat conftest.err >&5
27367   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27368   (exit $ac_status); } && {
27369          test -z "$ac_c_werror_flag" ||
27370          test ! -s conftest.err
27371        } && test -s conftest.$ac_objext; then
27372   ac_lo=0 ac_mid=0
27373   while :; do
27374     cat >conftest.$ac_ext <<_ACEOF
27375 /* confdefs.h.  */
27376 _ACEOF
27377 cat confdefs.h >>conftest.$ac_ext
27378 cat >>conftest.$ac_ext <<_ACEOF
27379 /* end confdefs.h.  */
27380 $ac_includes_default
27381 #ifndef offsetof
27382 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27383 #endif
27384 typedef struct { char x; double y; } ac__type_alignof_;
27385 int
27386 main ()
27387 {
27388 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27389 test_array [0] = 0
27390
27391   ;
27392   return 0;
27393 }
27394 _ACEOF
27395 rm -f conftest.$ac_objext
27396 if { (ac_try="$ac_compile"
27397 case "(($ac_try" in
27398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27399   *) ac_try_echo=$ac_try;;
27400 esac
27401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27402 $as_echo "$ac_try_echo") >&5
27403   (eval "$ac_compile") 2>conftest.er1
27404   ac_status=$?
27405   grep -v '^ *+' conftest.er1 >conftest.err
27406   rm -f conftest.er1
27407   cat conftest.err >&5
27408   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27409   (exit $ac_status); } && {
27410          test -z "$ac_c_werror_flag" ||
27411          test ! -s conftest.err
27412        } && test -s conftest.$ac_objext; then
27413   ac_hi=$ac_mid; break
27414 else
27415   $as_echo "$as_me: failed program was:" >&5
27416 sed 's/^/| /' conftest.$ac_ext >&5
27417
27418         ac_lo=`expr $ac_mid + 1`
27419                         if test $ac_lo -le $ac_mid; then
27420                           ac_lo= ac_hi=
27421                           break
27422                         fi
27423                         ac_mid=`expr 2 '*' $ac_mid + 1`
27424 fi
27425
27426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27427   done
27428 else
27429   $as_echo "$as_me: failed program was:" >&5
27430 sed 's/^/| /' conftest.$ac_ext >&5
27431
27432         cat >conftest.$ac_ext <<_ACEOF
27433 /* confdefs.h.  */
27434 _ACEOF
27435 cat confdefs.h >>conftest.$ac_ext
27436 cat >>conftest.$ac_ext <<_ACEOF
27437 /* end confdefs.h.  */
27438 $ac_includes_default
27439 #ifndef offsetof
27440 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27441 #endif
27442 typedef struct { char x; double y; } ac__type_alignof_;
27443 int
27444 main ()
27445 {
27446 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27447 test_array [0] = 0
27448
27449   ;
27450   return 0;
27451 }
27452 _ACEOF
27453 rm -f conftest.$ac_objext
27454 if { (ac_try="$ac_compile"
27455 case "(($ac_try" in
27456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27457   *) ac_try_echo=$ac_try;;
27458 esac
27459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27460 $as_echo "$ac_try_echo") >&5
27461   (eval "$ac_compile") 2>conftest.er1
27462   ac_status=$?
27463   grep -v '^ *+' conftest.er1 >conftest.err
27464   rm -f conftest.er1
27465   cat conftest.err >&5
27466   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27467   (exit $ac_status); } && {
27468          test -z "$ac_c_werror_flag" ||
27469          test ! -s conftest.err
27470        } && test -s conftest.$ac_objext; then
27471   ac_hi=-1 ac_mid=-1
27472   while :; do
27473     cat >conftest.$ac_ext <<_ACEOF
27474 /* confdefs.h.  */
27475 _ACEOF
27476 cat confdefs.h >>conftest.$ac_ext
27477 cat >>conftest.$ac_ext <<_ACEOF
27478 /* end confdefs.h.  */
27479 $ac_includes_default
27480 #ifndef offsetof
27481 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27482 #endif
27483 typedef struct { char x; double y; } ac__type_alignof_;
27484 int
27485 main ()
27486 {
27487 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27488 test_array [0] = 0
27489
27490   ;
27491   return 0;
27492 }
27493 _ACEOF
27494 rm -f conftest.$ac_objext
27495 if { (ac_try="$ac_compile"
27496 case "(($ac_try" in
27497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27498   *) ac_try_echo=$ac_try;;
27499 esac
27500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27501 $as_echo "$ac_try_echo") >&5
27502   (eval "$ac_compile") 2>conftest.er1
27503   ac_status=$?
27504   grep -v '^ *+' conftest.er1 >conftest.err
27505   rm -f conftest.er1
27506   cat conftest.err >&5
27507   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27508   (exit $ac_status); } && {
27509          test -z "$ac_c_werror_flag" ||
27510          test ! -s conftest.err
27511        } && test -s conftest.$ac_objext; then
27512   ac_lo=$ac_mid; break
27513 else
27514   $as_echo "$as_me: failed program was:" >&5
27515 sed 's/^/| /' conftest.$ac_ext >&5
27516
27517         ac_hi=`expr '(' $ac_mid ')' - 1`
27518                         if test $ac_mid -le $ac_hi; then
27519                           ac_lo= ac_hi=
27520                           break
27521                         fi
27522                         ac_mid=`expr 2 '*' $ac_mid`
27523 fi
27524
27525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27526   done
27527 else
27528   $as_echo "$as_me: failed program was:" >&5
27529 sed 's/^/| /' conftest.$ac_ext >&5
27530
27531         ac_lo= ac_hi=
27532 fi
27533
27534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27535 fi
27536
27537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27538 # Binary search between lo and hi bounds.
27539 while test "x$ac_lo" != "x$ac_hi"; do
27540   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27541   cat >conftest.$ac_ext <<_ACEOF
27542 /* confdefs.h.  */
27543 _ACEOF
27544 cat confdefs.h >>conftest.$ac_ext
27545 cat >>conftest.$ac_ext <<_ACEOF
27546 /* end confdefs.h.  */
27547 $ac_includes_default
27548 #ifndef offsetof
27549 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27550 #endif
27551 typedef struct { char x; double y; } ac__type_alignof_;
27552 int
27553 main ()
27554 {
27555 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27556 test_array [0] = 0
27557
27558   ;
27559   return 0;
27560 }
27561 _ACEOF
27562 rm -f conftest.$ac_objext
27563 if { (ac_try="$ac_compile"
27564 case "(($ac_try" in
27565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27566   *) ac_try_echo=$ac_try;;
27567 esac
27568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27569 $as_echo "$ac_try_echo") >&5
27570   (eval "$ac_compile") 2>conftest.er1
27571   ac_status=$?
27572   grep -v '^ *+' conftest.er1 >conftest.err
27573   rm -f conftest.er1
27574   cat conftest.err >&5
27575   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27576   (exit $ac_status); } && {
27577          test -z "$ac_c_werror_flag" ||
27578          test ! -s conftest.err
27579        } && test -s conftest.$ac_objext; then
27580   ac_hi=$ac_mid
27581 else
27582   $as_echo "$as_me: failed program was:" >&5
27583 sed 's/^/| /' conftest.$ac_ext >&5
27584
27585         ac_lo=`expr '(' $ac_mid ')' + 1`
27586 fi
27587
27588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27589 done
27590 case $ac_lo in
27591 ?*) ac_cv_alignof_double=$ac_lo;;
27592 '') if test "$ac_cv_type_double" = yes; then
27593      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27595 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27596 See \`config.log' for more details." >&5
27597 $as_echo "$as_me: error: cannot compute alignment of double
27598 See \`config.log' for more details." >&2;}
27599    { (exit 77); exit 77; }; }; }
27600    else
27601      ac_cv_alignof_double=0
27602    fi ;;
27603 esac
27604 else
27605   cat >conftest.$ac_ext <<_ACEOF
27606 /* confdefs.h.  */
27607 _ACEOF
27608 cat confdefs.h >>conftest.$ac_ext
27609 cat >>conftest.$ac_ext <<_ACEOF
27610 /* end confdefs.h.  */
27611 $ac_includes_default
27612 #ifndef offsetof
27613 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27614 #endif
27615 typedef struct { char x; double y; } ac__type_alignof_;
27616 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27617 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27618 #include <stdio.h>
27619 #include <stdlib.h>
27620 int
27621 main ()
27622 {
27623
27624   FILE *f = fopen ("conftest.val", "w");
27625   if (! f)
27626     return 1;
27627   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27628     {
27629       long int i = longval ();
27630       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27631         return 1;
27632       fprintf (f, "%ld", i);
27633     }
27634   else
27635     {
27636       unsigned long int i = ulongval ();
27637       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27638         return 1;
27639       fprintf (f, "%lu", i);
27640     }
27641   /* Do not output a trailing newline, as this causes \r\n confusion
27642      on some platforms.  */
27643   return ferror (f) || fclose (f) != 0;
27644
27645   ;
27646   return 0;
27647 }
27648 _ACEOF
27649 rm -f conftest$ac_exeext
27650 if { (ac_try="$ac_link"
27651 case "(($ac_try" in
27652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27653   *) ac_try_echo=$ac_try;;
27654 esac
27655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27656 $as_echo "$ac_try_echo") >&5
27657   (eval "$ac_link") 2>&5
27658   ac_status=$?
27659   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27660   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27661   { (case "(($ac_try" in
27662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27663   *) ac_try_echo=$ac_try;;
27664 esac
27665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27666 $as_echo "$ac_try_echo") >&5
27667   (eval "$ac_try") 2>&5
27668   ac_status=$?
27669   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27670   (exit $ac_status); }; }; then
27671   ac_cv_alignof_double=`cat conftest.val`
27672 else
27673   $as_echo "$as_me: program exited with status $ac_status" >&5
27674 $as_echo "$as_me: failed program was:" >&5
27675 sed 's/^/| /' conftest.$ac_ext >&5
27676
27677 ( exit $ac_status )
27678 if test "$ac_cv_type_double" = yes; then
27679      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27681 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27682 See \`config.log' for more details." >&5
27683 $as_echo "$as_me: error: cannot compute alignment of double
27684 See \`config.log' for more details." >&2;}
27685    { (exit 77); exit 77; }; }; }
27686    else
27687      ac_cv_alignof_double=0
27688    fi
27689 fi
27690 rm -rf conftest.dSYM
27691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27692 fi
27693 rm -f conftest.val
27694 fi
27695 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
27696 $as_echo "$ac_cv_alignof_double" >&6; }
27697
27698
27699
27700 cat >>confdefs.h <<_ACEOF
27701 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
27702 _ACEOF
27703
27704
27705
27706 # Compute maximum alignment of any basic type.
27707 # We assume long's alignment is at least as strong as char, short, or int;
27708 # but we must check long long (if it exists) and double.
27709
27710 MAX_ALIGNOF=$ac_cv_alignof_long
27711 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
27712   MAX_ALIGNOF=$ac_cv_alignof_double
27713 fi
27714 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
27715   MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
27716 fi
27717
27718 cat >>confdefs.h <<_ACEOF
27719 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
27720 _ACEOF
27721
27722
27723
27724 # Some platforms predefine the types int8, int16, etc.  Only check
27725 # a (hopefully) representative subset.
27726 { $as_echo "$as_me:$LINENO: checking for int8" >&5
27727 $as_echo_n "checking for int8... " >&6; }
27728 if test "${ac_cv_type_int8+set}" = set; then
27729   $as_echo_n "(cached) " >&6
27730 else
27731   ac_cv_type_int8=no
27732 cat >conftest.$ac_ext <<_ACEOF
27733 /* confdefs.h.  */
27734 _ACEOF
27735 cat confdefs.h >>conftest.$ac_ext
27736 cat >>conftest.$ac_ext <<_ACEOF
27737 /* end confdefs.h.  */
27738 #include <stdio.h>
27739
27740 int
27741 main ()
27742 {
27743 if (sizeof (int8))
27744        return 0;
27745   ;
27746   return 0;
27747 }
27748 _ACEOF
27749 rm -f conftest.$ac_objext
27750 if { (ac_try="$ac_compile"
27751 case "(($ac_try" in
27752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27753   *) ac_try_echo=$ac_try;;
27754 esac
27755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27756 $as_echo "$ac_try_echo") >&5
27757   (eval "$ac_compile") 2>conftest.er1
27758   ac_status=$?
27759   grep -v '^ *+' conftest.er1 >conftest.err
27760   rm -f conftest.er1
27761   cat conftest.err >&5
27762   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27763   (exit $ac_status); } && {
27764          test -z "$ac_c_werror_flag" ||
27765          test ! -s conftest.err
27766        } && test -s conftest.$ac_objext; then
27767   cat >conftest.$ac_ext <<_ACEOF
27768 /* confdefs.h.  */
27769 _ACEOF
27770 cat confdefs.h >>conftest.$ac_ext
27771 cat >>conftest.$ac_ext <<_ACEOF
27772 /* end confdefs.h.  */
27773 #include <stdio.h>
27774
27775 int
27776 main ()
27777 {
27778 if (sizeof ((int8)))
27779           return 0;
27780   ;
27781   return 0;
27782 }
27783 _ACEOF
27784 rm -f conftest.$ac_objext
27785 if { (ac_try="$ac_compile"
27786 case "(($ac_try" in
27787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27788   *) ac_try_echo=$ac_try;;
27789 esac
27790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27791 $as_echo "$ac_try_echo") >&5
27792   (eval "$ac_compile") 2>conftest.er1
27793   ac_status=$?
27794   grep -v '^ *+' conftest.er1 >conftest.err
27795   rm -f conftest.er1
27796   cat conftest.err >&5
27797   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27798   (exit $ac_status); } && {
27799          test -z "$ac_c_werror_flag" ||
27800          test ! -s conftest.err
27801        } && test -s conftest.$ac_objext; then
27802   :
27803 else
27804   $as_echo "$as_me: failed program was:" >&5
27805 sed 's/^/| /' conftest.$ac_ext >&5
27806
27807         ac_cv_type_int8=yes
27808 fi
27809
27810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27811 else
27812   $as_echo "$as_me: failed program was:" >&5
27813 sed 's/^/| /' conftest.$ac_ext >&5
27814
27815
27816 fi
27817
27818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27819 fi
27820 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
27821 $as_echo "$ac_cv_type_int8" >&6; }
27822 if test "x$ac_cv_type_int8" = x""yes; then
27823
27824 cat >>confdefs.h <<_ACEOF
27825 #define HAVE_INT8 1
27826 _ACEOF
27827
27828
27829 fi
27830 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
27831 $as_echo_n "checking for uint8... " >&6; }
27832 if test "${ac_cv_type_uint8+set}" = set; then
27833   $as_echo_n "(cached) " >&6
27834 else
27835   ac_cv_type_uint8=no
27836 cat >conftest.$ac_ext <<_ACEOF
27837 /* confdefs.h.  */
27838 _ACEOF
27839 cat confdefs.h >>conftest.$ac_ext
27840 cat >>conftest.$ac_ext <<_ACEOF
27841 /* end confdefs.h.  */
27842 #include <stdio.h>
27843
27844 int
27845 main ()
27846 {
27847 if (sizeof (uint8))
27848        return 0;
27849   ;
27850   return 0;
27851 }
27852 _ACEOF
27853 rm -f conftest.$ac_objext
27854 if { (ac_try="$ac_compile"
27855 case "(($ac_try" in
27856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27857   *) ac_try_echo=$ac_try;;
27858 esac
27859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27860 $as_echo "$ac_try_echo") >&5
27861   (eval "$ac_compile") 2>conftest.er1
27862   ac_status=$?
27863   grep -v '^ *+' conftest.er1 >conftest.err
27864   rm -f conftest.er1
27865   cat conftest.err >&5
27866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27867   (exit $ac_status); } && {
27868          test -z "$ac_c_werror_flag" ||
27869          test ! -s conftest.err
27870        } && test -s conftest.$ac_objext; then
27871   cat >conftest.$ac_ext <<_ACEOF
27872 /* confdefs.h.  */
27873 _ACEOF
27874 cat confdefs.h >>conftest.$ac_ext
27875 cat >>conftest.$ac_ext <<_ACEOF
27876 /* end confdefs.h.  */
27877 #include <stdio.h>
27878
27879 int
27880 main ()
27881 {
27882 if (sizeof ((uint8)))
27883           return 0;
27884   ;
27885   return 0;
27886 }
27887 _ACEOF
27888 rm -f conftest.$ac_objext
27889 if { (ac_try="$ac_compile"
27890 case "(($ac_try" in
27891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27892   *) ac_try_echo=$ac_try;;
27893 esac
27894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27895 $as_echo "$ac_try_echo") >&5
27896   (eval "$ac_compile") 2>conftest.er1
27897   ac_status=$?
27898   grep -v '^ *+' conftest.er1 >conftest.err
27899   rm -f conftest.er1
27900   cat conftest.err >&5
27901   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27902   (exit $ac_status); } && {
27903          test -z "$ac_c_werror_flag" ||
27904          test ! -s conftest.err
27905        } && test -s conftest.$ac_objext; then
27906   :
27907 else
27908   $as_echo "$as_me: failed program was:" >&5
27909 sed 's/^/| /' conftest.$ac_ext >&5
27910
27911         ac_cv_type_uint8=yes
27912 fi
27913
27914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27915 else
27916   $as_echo "$as_me: failed program was:" >&5
27917 sed 's/^/| /' conftest.$ac_ext >&5
27918
27919
27920 fi
27921
27922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27923 fi
27924 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
27925 $as_echo "$ac_cv_type_uint8" >&6; }
27926 if test "x$ac_cv_type_uint8" = x""yes; then
27927
27928 cat >>confdefs.h <<_ACEOF
27929 #define HAVE_UINT8 1
27930 _ACEOF
27931
27932
27933 fi
27934 { $as_echo "$as_me:$LINENO: checking for int64" >&5
27935 $as_echo_n "checking for int64... " >&6; }
27936 if test "${ac_cv_type_int64+set}" = set; then
27937   $as_echo_n "(cached) " >&6
27938 else
27939   ac_cv_type_int64=no
27940 cat >conftest.$ac_ext <<_ACEOF
27941 /* confdefs.h.  */
27942 _ACEOF
27943 cat confdefs.h >>conftest.$ac_ext
27944 cat >>conftest.$ac_ext <<_ACEOF
27945 /* end confdefs.h.  */
27946 #include <stdio.h>
27947
27948 int
27949 main ()
27950 {
27951 if (sizeof (int64))
27952        return 0;
27953   ;
27954   return 0;
27955 }
27956 _ACEOF
27957 rm -f conftest.$ac_objext
27958 if { (ac_try="$ac_compile"
27959 case "(($ac_try" in
27960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27961   *) ac_try_echo=$ac_try;;
27962 esac
27963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27964 $as_echo "$ac_try_echo") >&5
27965   (eval "$ac_compile") 2>conftest.er1
27966   ac_status=$?
27967   grep -v '^ *+' conftest.er1 >conftest.err
27968   rm -f conftest.er1
27969   cat conftest.err >&5
27970   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27971   (exit $ac_status); } && {
27972          test -z "$ac_c_werror_flag" ||
27973          test ! -s conftest.err
27974        } && test -s conftest.$ac_objext; then
27975   cat >conftest.$ac_ext <<_ACEOF
27976 /* confdefs.h.  */
27977 _ACEOF
27978 cat confdefs.h >>conftest.$ac_ext
27979 cat >>conftest.$ac_ext <<_ACEOF
27980 /* end confdefs.h.  */
27981 #include <stdio.h>
27982
27983 int
27984 main ()
27985 {
27986 if (sizeof ((int64)))
27987           return 0;
27988   ;
27989   return 0;
27990 }
27991 _ACEOF
27992 rm -f conftest.$ac_objext
27993 if { (ac_try="$ac_compile"
27994 case "(($ac_try" in
27995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27996   *) ac_try_echo=$ac_try;;
27997 esac
27998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27999 $as_echo "$ac_try_echo") >&5
28000   (eval "$ac_compile") 2>conftest.er1
28001   ac_status=$?
28002   grep -v '^ *+' conftest.er1 >conftest.err
28003   rm -f conftest.er1
28004   cat conftest.err >&5
28005   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28006   (exit $ac_status); } && {
28007          test -z "$ac_c_werror_flag" ||
28008          test ! -s conftest.err
28009        } && test -s conftest.$ac_objext; then
28010   :
28011 else
28012   $as_echo "$as_me: failed program was:" >&5
28013 sed 's/^/| /' conftest.$ac_ext >&5
28014
28015         ac_cv_type_int64=yes
28016 fi
28017
28018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28019 else
28020   $as_echo "$as_me: failed program was:" >&5
28021 sed 's/^/| /' conftest.$ac_ext >&5
28022
28023
28024 fi
28025
28026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28027 fi
28028 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
28029 $as_echo "$ac_cv_type_int64" >&6; }
28030 if test "x$ac_cv_type_int64" = x""yes; then
28031
28032 cat >>confdefs.h <<_ACEOF
28033 #define HAVE_INT64 1
28034 _ACEOF
28035
28036
28037 fi
28038 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
28039 $as_echo_n "checking for uint64... " >&6; }
28040 if test "${ac_cv_type_uint64+set}" = set; then
28041   $as_echo_n "(cached) " >&6
28042 else
28043   ac_cv_type_uint64=no
28044 cat >conftest.$ac_ext <<_ACEOF
28045 /* confdefs.h.  */
28046 _ACEOF
28047 cat confdefs.h >>conftest.$ac_ext
28048 cat >>conftest.$ac_ext <<_ACEOF
28049 /* end confdefs.h.  */
28050 #include <stdio.h>
28051
28052 int
28053 main ()
28054 {
28055 if (sizeof (uint64))
28056        return 0;
28057   ;
28058   return 0;
28059 }
28060 _ACEOF
28061 rm -f conftest.$ac_objext
28062 if { (ac_try="$ac_compile"
28063 case "(($ac_try" in
28064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28065   *) ac_try_echo=$ac_try;;
28066 esac
28067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28068 $as_echo "$ac_try_echo") >&5
28069   (eval "$ac_compile") 2>conftest.er1
28070   ac_status=$?
28071   grep -v '^ *+' conftest.er1 >conftest.err
28072   rm -f conftest.er1
28073   cat conftest.err >&5
28074   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075   (exit $ac_status); } && {
28076          test -z "$ac_c_werror_flag" ||
28077          test ! -s conftest.err
28078        } && test -s conftest.$ac_objext; then
28079   cat >conftest.$ac_ext <<_ACEOF
28080 /* confdefs.h.  */
28081 _ACEOF
28082 cat confdefs.h >>conftest.$ac_ext
28083 cat >>conftest.$ac_ext <<_ACEOF
28084 /* end confdefs.h.  */
28085 #include <stdio.h>
28086
28087 int
28088 main ()
28089 {
28090 if (sizeof ((uint64)))
28091           return 0;
28092   ;
28093   return 0;
28094 }
28095 _ACEOF
28096 rm -f conftest.$ac_objext
28097 if { (ac_try="$ac_compile"
28098 case "(($ac_try" in
28099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28100   *) ac_try_echo=$ac_try;;
28101 esac
28102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28103 $as_echo "$ac_try_echo") >&5
28104   (eval "$ac_compile") 2>conftest.er1
28105   ac_status=$?
28106   grep -v '^ *+' conftest.er1 >conftest.err
28107   rm -f conftest.er1
28108   cat conftest.err >&5
28109   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28110   (exit $ac_status); } && {
28111          test -z "$ac_c_werror_flag" ||
28112          test ! -s conftest.err
28113        } && test -s conftest.$ac_objext; then
28114   :
28115 else
28116   $as_echo "$as_me: failed program was:" >&5
28117 sed 's/^/| /' conftest.$ac_ext >&5
28118
28119         ac_cv_type_uint64=yes
28120 fi
28121
28122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28123 else
28124   $as_echo "$as_me: failed program was:" >&5
28125 sed 's/^/| /' conftest.$ac_ext >&5
28126
28127
28128 fi
28129
28130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28131 fi
28132 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
28133 $as_echo "$ac_cv_type_uint64" >&6; }
28134 if test "x$ac_cv_type_uint64" = x""yes; then
28135
28136 cat >>confdefs.h <<_ACEOF
28137 #define HAVE_UINT64 1
28138 _ACEOF
28139
28140
28141 fi
28142
28143
28144 # We also check for sig_atomic_t, which *should* be defined per ANSI
28145 # C, but is missing on some old platforms.
28146 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
28147 $as_echo_n "checking for sig_atomic_t... " >&6; }
28148 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
28149   $as_echo_n "(cached) " >&6
28150 else
28151   ac_cv_type_sig_atomic_t=no
28152 cat >conftest.$ac_ext <<_ACEOF
28153 /* confdefs.h.  */
28154 _ACEOF
28155 cat confdefs.h >>conftest.$ac_ext
28156 cat >>conftest.$ac_ext <<_ACEOF
28157 /* end confdefs.h.  */
28158 #include <signal.h>
28159
28160 int
28161 main ()
28162 {
28163 if (sizeof (sig_atomic_t))
28164        return 0;
28165   ;
28166   return 0;
28167 }
28168 _ACEOF
28169 rm -f conftest.$ac_objext
28170 if { (ac_try="$ac_compile"
28171 case "(($ac_try" in
28172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28173   *) ac_try_echo=$ac_try;;
28174 esac
28175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28176 $as_echo "$ac_try_echo") >&5
28177   (eval "$ac_compile") 2>conftest.er1
28178   ac_status=$?
28179   grep -v '^ *+' conftest.er1 >conftest.err
28180   rm -f conftest.er1
28181   cat conftest.err >&5
28182   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183   (exit $ac_status); } && {
28184          test -z "$ac_c_werror_flag" ||
28185          test ! -s conftest.err
28186        } && test -s conftest.$ac_objext; then
28187   cat >conftest.$ac_ext <<_ACEOF
28188 /* confdefs.h.  */
28189 _ACEOF
28190 cat confdefs.h >>conftest.$ac_ext
28191 cat >>conftest.$ac_ext <<_ACEOF
28192 /* end confdefs.h.  */
28193 #include <signal.h>
28194
28195 int
28196 main ()
28197 {
28198 if (sizeof ((sig_atomic_t)))
28199           return 0;
28200   ;
28201   return 0;
28202 }
28203 _ACEOF
28204 rm -f conftest.$ac_objext
28205 if { (ac_try="$ac_compile"
28206 case "(($ac_try" in
28207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28208   *) ac_try_echo=$ac_try;;
28209 esac
28210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28211 $as_echo "$ac_try_echo") >&5
28212   (eval "$ac_compile") 2>conftest.er1
28213   ac_status=$?
28214   grep -v '^ *+' conftest.er1 >conftest.err
28215   rm -f conftest.er1
28216   cat conftest.err >&5
28217   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28218   (exit $ac_status); } && {
28219          test -z "$ac_c_werror_flag" ||
28220          test ! -s conftest.err
28221        } && test -s conftest.$ac_objext; then
28222   :
28223 else
28224   $as_echo "$as_me: failed program was:" >&5
28225 sed 's/^/| /' conftest.$ac_ext >&5
28226
28227         ac_cv_type_sig_atomic_t=yes
28228 fi
28229
28230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28231 else
28232   $as_echo "$as_me: failed program was:" >&5
28233 sed 's/^/| /' conftest.$ac_ext >&5
28234
28235
28236 fi
28237
28238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28239 fi
28240 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
28241 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
28242 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
28243
28244 cat >>confdefs.h <<_ACEOF
28245 #define HAVE_SIG_ATOMIC_T 1
28246 _ACEOF
28247
28248
28249 fi
28250
28251
28252
28253 if test "$PORTNAME" != "win32"
28254 then
28255 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
28256 $as_echo_n "checking for POSIX signal interface... " >&6; }
28257 if test "${pgac_cv_func_posix_signals+set}" = set; then
28258   $as_echo_n "(cached) " >&6
28259 else
28260   cat >conftest.$ac_ext <<_ACEOF
28261 /* confdefs.h.  */
28262 _ACEOF
28263 cat confdefs.h >>conftest.$ac_ext
28264 cat >>conftest.$ac_ext <<_ACEOF
28265 /* end confdefs.h.  */
28266 #include <signal.h>
28267
28268 int
28269 main ()
28270 {
28271 struct sigaction act, oact;
28272 sigemptyset(&act.sa_mask);
28273 act.sa_flags = SA_RESTART;
28274 sigaction(0, &act, &oact);
28275   ;
28276   return 0;
28277 }
28278 _ACEOF
28279 rm -f conftest.$ac_objext conftest$ac_exeext
28280 if { (ac_try="$ac_link"
28281 case "(($ac_try" in
28282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28283   *) ac_try_echo=$ac_try;;
28284 esac
28285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28286 $as_echo "$ac_try_echo") >&5
28287   (eval "$ac_link") 2>conftest.er1
28288   ac_status=$?
28289   grep -v '^ *+' conftest.er1 >conftest.err
28290   rm -f conftest.er1
28291   cat conftest.err >&5
28292   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28293   (exit $ac_status); } && {
28294          test -z "$ac_c_werror_flag" ||
28295          test ! -s conftest.err
28296        } && test -s conftest$ac_exeext && {
28297          test "$cross_compiling" = yes ||
28298          $as_test_x conftest$ac_exeext
28299        }; then
28300   pgac_cv_func_posix_signals=yes
28301 else
28302   $as_echo "$as_me: failed program was:" >&5
28303 sed 's/^/| /' conftest.$ac_ext >&5
28304
28305         pgac_cv_func_posix_signals=no
28306 fi
28307
28308 rm -rf conftest.dSYM
28309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28310       conftest$ac_exeext conftest.$ac_ext
28311 fi
28312 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
28313 $as_echo "$pgac_cv_func_posix_signals" >&6; }
28314 if test x"$pgac_cv_func_posix_signals" = xyes ; then
28315
28316 cat >>confdefs.h <<\_ACEOF
28317 #define HAVE_POSIX_SIGNALS /**/
28318 _ACEOF
28319
28320 fi
28321 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
28322
28323 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
28324   { { $as_echo "$as_me:$LINENO: error:
28325 Thread-safety requires POSIX signals, which are not supported by this
28326 operating system;  use --disable-thread-safety to disable thread safety." >&5
28327 $as_echo "$as_me: error:
28328 Thread-safety requires POSIX signals, which are not supported by this
28329 operating system;  use --disable-thread-safety to disable thread safety." >&2;}
28330    { (exit 1); exit 1; }; }
28331 fi
28332 fi
28333
28334 # SunOS doesn't handle negative byte comparisons properly with +/- return
28335 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
28336 $as_echo_n "checking for working memcmp... " >&6; }
28337 if test "${ac_cv_func_memcmp_working+set}" = set; then
28338   $as_echo_n "(cached) " >&6
28339 else
28340   if test "$cross_compiling" = yes; then
28341   ac_cv_func_memcmp_working=no
28342 else
28343   cat >conftest.$ac_ext <<_ACEOF
28344 /* confdefs.h.  */
28345 _ACEOF
28346 cat confdefs.h >>conftest.$ac_ext
28347 cat >>conftest.$ac_ext <<_ACEOF
28348 /* end confdefs.h.  */
28349 $ac_includes_default
28350 int
28351 main ()
28352 {
28353
28354   /* Some versions of memcmp are not 8-bit clean.  */
28355   char c0 = '\100', c1 = '\200', c2 = '\201';
28356   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
28357     return 1;
28358
28359   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
28360      or more and with at least one buffer not starting on a 4-byte boundary.
28361      William Lewis provided this test program.   */
28362   {
28363     char foo[21];
28364     char bar[21];
28365     int i;
28366     for (i = 0; i < 4; i++)
28367       {
28368         char *a = foo + i;
28369         char *b = bar + i;
28370         strcpy (a, "--------01111111");
28371         strcpy (b, "--------10000000");
28372         if (memcmp (a, b, 16) >= 0)
28373           return 1;
28374       }
28375     return 0;
28376   }
28377
28378   ;
28379   return 0;
28380 }
28381 _ACEOF
28382 rm -f conftest$ac_exeext
28383 if { (ac_try="$ac_link"
28384 case "(($ac_try" in
28385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28386   *) ac_try_echo=$ac_try;;
28387 esac
28388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28389 $as_echo "$ac_try_echo") >&5
28390   (eval "$ac_link") 2>&5
28391   ac_status=$?
28392   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28393   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28394   { (case "(($ac_try" in
28395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28396   *) ac_try_echo=$ac_try;;
28397 esac
28398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28399 $as_echo "$ac_try_echo") >&5
28400   (eval "$ac_try") 2>&5
28401   ac_status=$?
28402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28403   (exit $ac_status); }; }; then
28404   ac_cv_func_memcmp_working=yes
28405 else
28406   $as_echo "$as_me: program exited with status $ac_status" >&5
28407 $as_echo "$as_me: failed program was:" >&5
28408 sed 's/^/| /' conftest.$ac_ext >&5
28409
28410 ( exit $ac_status )
28411 ac_cv_func_memcmp_working=no
28412 fi
28413 rm -rf conftest.dSYM
28414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28415 fi
28416
28417
28418 fi
28419 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
28420 $as_echo "$ac_cv_func_memcmp_working" >&6; }
28421 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
28422   *" memcmp.$ac_objext "* ) ;;
28423   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
28424  ;;
28425 esac
28426
28427
28428
28429
28430 # Select semaphore implementation type.
28431 if test "$PORTNAME" != "win32"; then
28432   if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
28433
28434 cat >>confdefs.h <<\_ACEOF
28435 #define USE_NAMED_POSIX_SEMAPHORES 1
28436 _ACEOF
28437
28438     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28439   else
28440     if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
28441
28442 cat >>confdefs.h <<\_ACEOF
28443 #define USE_UNNAMED_POSIX_SEMAPHORES 1
28444 _ACEOF
28445
28446       SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28447     else
28448
28449 cat >>confdefs.h <<\_ACEOF
28450 #define USE_SYSV_SEMAPHORES 1
28451 _ACEOF
28452
28453       SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
28454     fi
28455   fi
28456 else
28457
28458 cat >>confdefs.h <<\_ACEOF
28459 #define USE_WIN32_SEMAPHORES 1
28460 _ACEOF
28461
28462   SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
28463 fi
28464
28465
28466 # Select shared-memory implementation type.
28467 if test "$PORTNAME" != "win32"; then
28468
28469 cat >>confdefs.h <<\_ACEOF
28470 #define USE_SYSV_SHARED_MEMORY 1
28471 _ACEOF
28472
28473   SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
28474 else
28475
28476 cat >>confdefs.h <<\_ACEOF
28477 #define USE_WIN32_SHARED_MEMORY 1
28478 _ACEOF
28479
28480   SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
28481 fi
28482
28483 # Select latch implementation type.
28484 if test "$PORTNAME" != "win32"; then
28485   LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
28486 else
28487   LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
28488 fi
28489
28490 # If not set in template file, set bytes to use libc memset()
28491 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
28492   MEMSET_LOOP_LIMIT=1024
28493 fi
28494
28495 cat >>confdefs.h <<_ACEOF
28496 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
28497 _ACEOF
28498
28499
28500
28501 if test "$enable_nls" = yes ; then
28502
28503   { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
28504 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
28505 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28506   $as_echo_n "(cached) " >&6
28507 else
28508   ac_func_search_save_LIBS=$LIBS
28509 cat >conftest.$ac_ext <<_ACEOF
28510 /* confdefs.h.  */
28511 _ACEOF
28512 cat confdefs.h >>conftest.$ac_ext
28513 cat >>conftest.$ac_ext <<_ACEOF
28514 /* end confdefs.h.  */
28515
28516 /* Override any GCC internal prototype to avoid an error.
28517    Use char because int might match the return type of a GCC
28518    builtin and then its argument prototype would still apply.  */
28519 #ifdef __cplusplus
28520 extern "C"
28521 #endif
28522 char bind_textdomain_codeset ();
28523 int
28524 main ()
28525 {
28526 return bind_textdomain_codeset ();
28527   ;
28528   return 0;
28529 }
28530 _ACEOF
28531 for ac_lib in '' intl; do
28532   if test -z "$ac_lib"; then
28533     ac_res="none required"
28534   else
28535     ac_res=-l$ac_lib
28536     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28537   fi
28538   rm -f conftest.$ac_objext conftest$ac_exeext
28539 if { (ac_try="$ac_link"
28540 case "(($ac_try" in
28541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28542   *) ac_try_echo=$ac_try;;
28543 esac
28544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28545 $as_echo "$ac_try_echo") >&5
28546   (eval "$ac_link") 2>conftest.er1
28547   ac_status=$?
28548   grep -v '^ *+' conftest.er1 >conftest.err
28549   rm -f conftest.er1
28550   cat conftest.err >&5
28551   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28552   (exit $ac_status); } && {
28553          test -z "$ac_c_werror_flag" ||
28554          test ! -s conftest.err
28555        } && test -s conftest$ac_exeext && {
28556          test "$cross_compiling" = yes ||
28557          $as_test_x conftest$ac_exeext
28558        }; then
28559   ac_cv_search_bind_textdomain_codeset=$ac_res
28560 else
28561   $as_echo "$as_me: failed program was:" >&5
28562 sed 's/^/| /' conftest.$ac_ext >&5
28563
28564
28565 fi
28566
28567 rm -rf conftest.dSYM
28568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28569       conftest$ac_exeext
28570   if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28571   break
28572 fi
28573 done
28574 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28575   :
28576 else
28577   ac_cv_search_bind_textdomain_codeset=no
28578 fi
28579 rm conftest.$ac_ext
28580 LIBS=$ac_func_search_save_LIBS
28581 fi
28582 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
28583 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
28584 ac_res=$ac_cv_search_bind_textdomain_codeset
28585 if test "$ac_res" != no; then
28586   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28587
28588 else
28589   { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
28590 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
28591    { (exit 1); exit 1; }; }
28592 fi
28593
28594   if test "${ac_cv_header_libintl_h+set}" = set; then
28595   { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28596 $as_echo_n "checking for libintl.h... " >&6; }
28597 if test "${ac_cv_header_libintl_h+set}" = set; then
28598   $as_echo_n "(cached) " >&6
28599 fi
28600 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28601 $as_echo "$ac_cv_header_libintl_h" >&6; }
28602 else
28603   # Is the header compilable?
28604 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
28605 $as_echo_n "checking libintl.h usability... " >&6; }
28606 cat >conftest.$ac_ext <<_ACEOF
28607 /* confdefs.h.  */
28608 _ACEOF
28609 cat confdefs.h >>conftest.$ac_ext
28610 cat >>conftest.$ac_ext <<_ACEOF
28611 /* end confdefs.h.  */
28612 $ac_includes_default
28613 #include <libintl.h>
28614 _ACEOF
28615 rm -f conftest.$ac_objext
28616 if { (ac_try="$ac_compile"
28617 case "(($ac_try" in
28618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28619   *) ac_try_echo=$ac_try;;
28620 esac
28621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28622 $as_echo "$ac_try_echo") >&5
28623   (eval "$ac_compile") 2>conftest.er1
28624   ac_status=$?
28625   grep -v '^ *+' conftest.er1 >conftest.err
28626   rm -f conftest.er1
28627   cat conftest.err >&5
28628   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28629   (exit $ac_status); } && {
28630          test -z "$ac_c_werror_flag" ||
28631          test ! -s conftest.err
28632        } && test -s conftest.$ac_objext; then
28633   ac_header_compiler=yes
28634 else
28635   $as_echo "$as_me: failed program was:" >&5
28636 sed 's/^/| /' conftest.$ac_ext >&5
28637
28638         ac_header_compiler=no
28639 fi
28640
28641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28642 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28643 $as_echo "$ac_header_compiler" >&6; }
28644
28645 # Is the header present?
28646 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
28647 $as_echo_n "checking libintl.h presence... " >&6; }
28648 cat >conftest.$ac_ext <<_ACEOF
28649 /* confdefs.h.  */
28650 _ACEOF
28651 cat confdefs.h >>conftest.$ac_ext
28652 cat >>conftest.$ac_ext <<_ACEOF
28653 /* end confdefs.h.  */
28654 #include <libintl.h>
28655 _ACEOF
28656 if { (ac_try="$ac_cpp conftest.$ac_ext"
28657 case "(($ac_try" in
28658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28659   *) ac_try_echo=$ac_try;;
28660 esac
28661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28662 $as_echo "$ac_try_echo") >&5
28663   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28664   ac_status=$?
28665   grep -v '^ *+' conftest.er1 >conftest.err
28666   rm -f conftest.er1
28667   cat conftest.err >&5
28668   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28669   (exit $ac_status); } >/dev/null && {
28670          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28671          test ! -s conftest.err
28672        }; then
28673   ac_header_preproc=yes
28674 else
28675   $as_echo "$as_me: failed program was:" >&5
28676 sed 's/^/| /' conftest.$ac_ext >&5
28677
28678   ac_header_preproc=no
28679 fi
28680
28681 rm -f conftest.err conftest.$ac_ext
28682 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28683 $as_echo "$ac_header_preproc" >&6; }
28684
28685 # So?  What about this header?
28686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28687   yes:no: )
28688     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28689 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28690     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
28691 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
28692     ac_header_preproc=yes
28693     ;;
28694   no:yes:* )
28695     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
28696 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
28697     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
28698 $as_echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
28699     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
28700 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
28701     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
28702 $as_echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28703     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
28704 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
28705     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
28706 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
28707     ( cat <<\_ASBOX
28708 ## ---------------------------------------- ##
28709 ## Report this to pgsql-bugs@postgresql.org ##
28710 ## ---------------------------------------- ##
28711 _ASBOX
28712      ) | sed "s/^/$as_me: WARNING:     /" >&2
28713     ;;
28714 esac
28715 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28716 $as_echo_n "checking for libintl.h... " >&6; }
28717 if test "${ac_cv_header_libintl_h+set}" = set; then
28718   $as_echo_n "(cached) " >&6
28719 else
28720   ac_cv_header_libintl_h=$ac_header_preproc
28721 fi
28722 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28723 $as_echo "$ac_cv_header_libintl_h" >&6; }
28724
28725 fi
28726 if test "x$ac_cv_header_libintl_h" = x""yes; then
28727   :
28728 else
28729   { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
28730 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
28731    { (exit 1); exit 1; }; }
28732 fi
28733
28734
28735   for ac_prog in msgfmt
28736 do
28737   # Extract the first word of "$ac_prog", so it can be a program name with args.
28738 set dummy $ac_prog; ac_word=$2
28739 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28740 $as_echo_n "checking for $ac_word... " >&6; }
28741 if test "${ac_cv_prog_MSGFMT+set}" = set; then
28742   $as_echo_n "(cached) " >&6
28743 else
28744   if test -n "$MSGFMT"; then
28745   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
28746 else
28747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28748 for as_dir in $PATH
28749 do
28750   IFS=$as_save_IFS
28751   test -z "$as_dir" && as_dir=.
28752   for ac_exec_ext in '' $ac_executable_extensions; do
28753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28754     ac_cv_prog_MSGFMT="$ac_prog"
28755     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28756     break 2
28757   fi
28758 done
28759 done
28760 IFS=$as_save_IFS
28761
28762 fi
28763 fi
28764 MSGFMT=$ac_cv_prog_MSGFMT
28765 if test -n "$MSGFMT"; then
28766   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
28767 $as_echo "$MSGFMT" >&6; }
28768 else
28769   { $as_echo "$as_me:$LINENO: result: no" >&5
28770 $as_echo "no" >&6; }
28771 fi
28772
28773
28774   test -n "$MSGFMT" && break
28775 done
28776
28777   if test -z "$MSGFMT"; then
28778     { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
28779 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
28780    { (exit 1); exit 1; }; }
28781   fi
28782   for ac_prog in msgmerge
28783 do
28784   # Extract the first word of "$ac_prog", so it can be a program name with args.
28785 set dummy $ac_prog; ac_word=$2
28786 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28787 $as_echo_n "checking for $ac_word... " >&6; }
28788 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
28789   $as_echo_n "(cached) " >&6
28790 else
28791   if test -n "$MSGMERGE"; then
28792   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
28793 else
28794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28795 for as_dir in $PATH
28796 do
28797   IFS=$as_save_IFS
28798   test -z "$as_dir" && as_dir=.
28799   for ac_exec_ext in '' $ac_executable_extensions; do
28800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28801     ac_cv_prog_MSGMERGE="$ac_prog"
28802     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28803     break 2
28804   fi
28805 done
28806 done
28807 IFS=$as_save_IFS
28808
28809 fi
28810 fi
28811 MSGMERGE=$ac_cv_prog_MSGMERGE
28812 if test -n "$MSGMERGE"; then
28813   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
28814 $as_echo "$MSGMERGE" >&6; }
28815 else
28816   { $as_echo "$as_me:$LINENO: result: no" >&5
28817 $as_echo "no" >&6; }
28818 fi
28819
28820
28821   test -n "$MSGMERGE" && break
28822 done
28823
28824   for ac_prog in xgettext
28825 do
28826   # Extract the first word of "$ac_prog", so it can be a program name with args.
28827 set dummy $ac_prog; ac_word=$2
28828 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28829 $as_echo_n "checking for $ac_word... " >&6; }
28830 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
28831   $as_echo_n "(cached) " >&6
28832 else
28833   if test -n "$XGETTEXT"; then
28834   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
28835 else
28836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28837 for as_dir in $PATH
28838 do
28839   IFS=$as_save_IFS
28840   test -z "$as_dir" && as_dir=.
28841   for ac_exec_ext in '' $ac_executable_extensions; do
28842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28843     ac_cv_prog_XGETTEXT="$ac_prog"
28844     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28845     break 2
28846   fi
28847 done
28848 done
28849 IFS=$as_save_IFS
28850
28851 fi
28852 fi
28853 XGETTEXT=$ac_cv_prog_XGETTEXT
28854 if test -n "$XGETTEXT"; then
28855   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
28856 $as_echo "$XGETTEXT" >&6; }
28857 else
28858   { $as_echo "$as_me:$LINENO: result: no" >&5
28859 $as_echo "no" >&6; }
28860 fi
28861
28862
28863   test -n "$XGETTEXT" && break
28864 done
28865
28866
28867 fi
28868
28869 # Check for Tcl configuration script tclConfig.sh
28870 if test "$with_tcl" = yes; then
28871     for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
28872 do
28873   # Extract the first word of "$ac_prog", so it can be a program name with args.
28874 set dummy $ac_prog; ac_word=$2
28875 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28876 $as_echo_n "checking for $ac_word... " >&6; }
28877 if test "${ac_cv_path_TCLSH+set}" = set; then
28878   $as_echo_n "(cached) " >&6
28879 else
28880   case $TCLSH in
28881   [\\/]* | ?:[\\/]*)
28882   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
28883   ;;
28884   *)
28885   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28886 for as_dir in $PATH
28887 do
28888   IFS=$as_save_IFS
28889   test -z "$as_dir" && as_dir=.
28890   for ac_exec_ext in '' $ac_executable_extensions; do
28891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28892     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
28893     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28894     break 2
28895   fi
28896 done
28897 done
28898 IFS=$as_save_IFS
28899
28900   ;;
28901 esac
28902 fi
28903 TCLSH=$ac_cv_path_TCLSH
28904 if test -n "$TCLSH"; then
28905   { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
28906 $as_echo "$TCLSH" >&6; }
28907 else
28908   { $as_echo "$as_me:$LINENO: result: no" >&5
28909 $as_echo "no" >&6; }
28910 fi
28911
28912
28913   test -n "$TCLSH" && break
28914 done
28915
28916 if test x"$TCLSH" = x""; then
28917   { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
28918 $as_echo "$as_me: error: Tcl shell not found" >&2;}
28919    { (exit 1); exit 1; }; }
28920 fi
28921
28922 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
28923 $as_echo_n "checking for tclConfig.sh... " >&6; }
28924 # Let user override test
28925 if test -z "$TCL_CONFIG_SH"; then
28926     pgac_test_dirs="$with_tclconfig"
28927
28928     set X $pgac_test_dirs; shift
28929     if test $# -eq 0; then
28930         test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
28931 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
28932    { (exit 1); exit 1; }; }
28933         set X `echo 'puts $auto_path' | $TCLSH`; shift
28934     fi
28935
28936     for pgac_dir do
28937         if test -r "$pgac_dir/tclConfig.sh"; then
28938             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
28939             break
28940         fi
28941     done
28942 fi
28943
28944 if test -z "$TCL_CONFIG_SH"; then
28945     { $as_echo "$as_me:$LINENO: result: no" >&5
28946 $as_echo "no" >&6; }
28947     { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
28948 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
28949    { (exit 1); exit 1; }; }
28950 else
28951     { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
28952 $as_echo "$TCL_CONFIG_SH" >&6; }
28953 fi
28954
28955
28956
28957     . "$TCL_CONFIG_SH"
28958 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
28959 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
28960 eval TCL_LIBS=\"$TCL_LIBS\"
28961 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
28962 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
28963
28964         # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
28965     ac_save_CPPFLAGS=$CPPFLAGS
28966     CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
28967     if test "${ac_cv_header_tcl_h+set}" = set; then
28968   { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28969 $as_echo_n "checking for tcl.h... " >&6; }
28970 if test "${ac_cv_header_tcl_h+set}" = set; then
28971   $as_echo_n "(cached) " >&6
28972 fi
28973 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28974 $as_echo "$ac_cv_header_tcl_h" >&6; }
28975 else
28976   # Is the header compilable?
28977 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
28978 $as_echo_n "checking tcl.h usability... " >&6; }
28979 cat >conftest.$ac_ext <<_ACEOF
28980 /* confdefs.h.  */
28981 _ACEOF
28982 cat confdefs.h >>conftest.$ac_ext
28983 cat >>conftest.$ac_ext <<_ACEOF
28984 /* end confdefs.h.  */
28985 $ac_includes_default
28986 #include <tcl.h>
28987 _ACEOF
28988 rm -f conftest.$ac_objext
28989 if { (ac_try="$ac_compile"
28990 case "(($ac_try" in
28991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28992   *) ac_try_echo=$ac_try;;
28993 esac
28994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28995 $as_echo "$ac_try_echo") >&5
28996   (eval "$ac_compile") 2>conftest.er1
28997   ac_status=$?
28998   grep -v '^ *+' conftest.er1 >conftest.err
28999   rm -f conftest.er1
29000   cat conftest.err >&5
29001   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29002   (exit $ac_status); } && {
29003          test -z "$ac_c_werror_flag" ||
29004          test ! -s conftest.err
29005        } && test -s conftest.$ac_objext; then
29006   ac_header_compiler=yes
29007 else
29008   $as_echo "$as_me: failed program was:" >&5
29009 sed 's/^/| /' conftest.$ac_ext >&5
29010
29011         ac_header_compiler=no
29012 fi
29013
29014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29015 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29016 $as_echo "$ac_header_compiler" >&6; }
29017
29018 # Is the header present?
29019 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
29020 $as_echo_n "checking tcl.h presence... " >&6; }
29021 cat >conftest.$ac_ext <<_ACEOF
29022 /* confdefs.h.  */
29023 _ACEOF
29024 cat confdefs.h >>conftest.$ac_ext
29025 cat >>conftest.$ac_ext <<_ACEOF
29026 /* end confdefs.h.  */
29027 #include <tcl.h>
29028 _ACEOF
29029 if { (ac_try="$ac_cpp conftest.$ac_ext"
29030 case "(($ac_try" in
29031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29032   *) ac_try_echo=$ac_try;;
29033 esac
29034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29035 $as_echo "$ac_try_echo") >&5
29036   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29037   ac_status=$?
29038   grep -v '^ *+' conftest.er1 >conftest.err
29039   rm -f conftest.er1
29040   cat conftest.err >&5
29041   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29042   (exit $ac_status); } >/dev/null && {
29043          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29044          test ! -s conftest.err
29045        }; then
29046   ac_header_preproc=yes
29047 else
29048   $as_echo "$as_me: failed program was:" >&5
29049 sed 's/^/| /' conftest.$ac_ext >&5
29050
29051   ac_header_preproc=no
29052 fi
29053
29054 rm -f conftest.err conftest.$ac_ext
29055 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29056 $as_echo "$ac_header_preproc" >&6; }
29057
29058 # So?  What about this header?
29059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29060   yes:no: )
29061     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29062 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29063     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
29064 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
29065     ac_header_preproc=yes
29066     ;;
29067   no:yes:* )
29068     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
29069 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
29070     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     check for missing prerequisite headers?" >&5
29071 $as_echo "$as_me: WARNING: tcl.h:     check for missing prerequisite headers?" >&2;}
29072     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
29073 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
29074     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
29075 $as_echo "$as_me: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29076     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
29077 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
29078     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
29079 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
29080     ( cat <<\_ASBOX
29081 ## ---------------------------------------- ##
29082 ## Report this to pgsql-bugs@postgresql.org ##
29083 ## ---------------------------------------- ##
29084 _ASBOX
29085      ) | sed "s/^/$as_me: WARNING:     /" >&2
29086     ;;
29087 esac
29088 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
29089 $as_echo_n "checking for tcl.h... " >&6; }
29090 if test "${ac_cv_header_tcl_h+set}" = set; then
29091   $as_echo_n "(cached) " >&6
29092 else
29093   ac_cv_header_tcl_h=$ac_header_preproc
29094 fi
29095 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
29096 $as_echo "$ac_cv_header_tcl_h" >&6; }
29097
29098 fi
29099 if test "x$ac_cv_header_tcl_h" = x""yes; then
29100   :
29101 else
29102   { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
29103 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
29104    { (exit 1); exit 1; }; }
29105 fi
29106
29107
29108     CPPFLAGS=$ac_save_CPPFLAGS
29109 fi
29110
29111 # check for <Python.h>
29112 if test "$with_python" = yes; then
29113   ac_save_CPPFLAGS=$CPPFLAGS
29114   CPPFLAGS="$python_includespec $CPPFLAGS"
29115   if test "${ac_cv_header_Python_h+set}" = set; then
29116   { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29117 $as_echo_n "checking for Python.h... " >&6; }
29118 if test "${ac_cv_header_Python_h+set}" = set; then
29119   $as_echo_n "(cached) " >&6
29120 fi
29121 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29122 $as_echo "$ac_cv_header_Python_h" >&6; }
29123 else
29124   # Is the header compilable?
29125 { $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
29126 $as_echo_n "checking Python.h usability... " >&6; }
29127 cat >conftest.$ac_ext <<_ACEOF
29128 /* confdefs.h.  */
29129 _ACEOF
29130 cat confdefs.h >>conftest.$ac_ext
29131 cat >>conftest.$ac_ext <<_ACEOF
29132 /* end confdefs.h.  */
29133 $ac_includes_default
29134 #include <Python.h>
29135 _ACEOF
29136 rm -f conftest.$ac_objext
29137 if { (ac_try="$ac_compile"
29138 case "(($ac_try" in
29139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29140   *) ac_try_echo=$ac_try;;
29141 esac
29142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29143 $as_echo "$ac_try_echo") >&5
29144   (eval "$ac_compile") 2>conftest.er1
29145   ac_status=$?
29146   grep -v '^ *+' conftest.er1 >conftest.err
29147   rm -f conftest.er1
29148   cat conftest.err >&5
29149   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29150   (exit $ac_status); } && {
29151          test -z "$ac_c_werror_flag" ||
29152          test ! -s conftest.err
29153        } && test -s conftest.$ac_objext; then
29154   ac_header_compiler=yes
29155 else
29156   $as_echo "$as_me: failed program was:" >&5
29157 sed 's/^/| /' conftest.$ac_ext >&5
29158
29159         ac_header_compiler=no
29160 fi
29161
29162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29163 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29164 $as_echo "$ac_header_compiler" >&6; }
29165
29166 # Is the header present?
29167 { $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
29168 $as_echo_n "checking Python.h presence... " >&6; }
29169 cat >conftest.$ac_ext <<_ACEOF
29170 /* confdefs.h.  */
29171 _ACEOF
29172 cat confdefs.h >>conftest.$ac_ext
29173 cat >>conftest.$ac_ext <<_ACEOF
29174 /* end confdefs.h.  */
29175 #include <Python.h>
29176 _ACEOF
29177 if { (ac_try="$ac_cpp conftest.$ac_ext"
29178 case "(($ac_try" in
29179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29180   *) ac_try_echo=$ac_try;;
29181 esac
29182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29183 $as_echo "$ac_try_echo") >&5
29184   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29185   ac_status=$?
29186   grep -v '^ *+' conftest.er1 >conftest.err
29187   rm -f conftest.er1
29188   cat conftest.err >&5
29189   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29190   (exit $ac_status); } >/dev/null && {
29191          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29192          test ! -s conftest.err
29193        }; then
29194   ac_header_preproc=yes
29195 else
29196   $as_echo "$as_me: failed program was:" >&5
29197 sed 's/^/| /' conftest.$ac_ext >&5
29198
29199   ac_header_preproc=no
29200 fi
29201
29202 rm -f conftest.err conftest.$ac_ext
29203 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29204 $as_echo "$ac_header_preproc" >&6; }
29205
29206 # So?  What about this header?
29207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29208   yes:no: )
29209     { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
29210 $as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29211     { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
29212 $as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
29213     ac_header_preproc=yes
29214     ;;
29215   no:yes:* )
29216     { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
29217 $as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
29218     { $as_echo "$as_me:$LINENO: WARNING: Python.h:     check for missing prerequisite headers?" >&5
29219 $as_echo "$as_me: WARNING: Python.h:     check for missing prerequisite headers?" >&2;}
29220     { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
29221 $as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
29222     { $as_echo "$as_me:$LINENO: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&5
29223 $as_echo "$as_me: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29224     { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
29225 $as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
29226     { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
29227 $as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
29228     ( cat <<\_ASBOX
29229 ## ---------------------------------------- ##
29230 ## Report this to pgsql-bugs@postgresql.org ##
29231 ## ---------------------------------------- ##
29232 _ASBOX
29233      ) | sed "s/^/$as_me: WARNING:     /" >&2
29234     ;;
29235 esac
29236 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29237 $as_echo_n "checking for Python.h... " >&6; }
29238 if test "${ac_cv_header_Python_h+set}" = set; then
29239   $as_echo_n "(cached) " >&6
29240 else
29241   ac_cv_header_Python_h=$ac_header_preproc
29242 fi
29243 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29244 $as_echo "$ac_cv_header_Python_h" >&6; }
29245
29246 fi
29247 if test "x$ac_cv_header_Python_h" = x""yes; then
29248   :
29249 else
29250   { { $as_echo "$as_me:$LINENO: error: header file <Python.h> is required for Python" >&5
29251 $as_echo "$as_me: error: header file <Python.h> is required for Python" >&2;}
29252    { (exit 1); exit 1; }; }
29253 fi
29254
29255
29256   CPPFLAGS=$ac_save_CPPFLAGS
29257 fi
29258
29259 #
29260 # Check for DocBook and tools
29261 #
29262 for ac_prog in onsgmls nsgmls
29263 do
29264   # Extract the first word of "$ac_prog", so it can be a program name with args.
29265 set dummy $ac_prog; ac_word=$2
29266 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29267 $as_echo_n "checking for $ac_word... " >&6; }
29268 if test "${ac_cv_prog_NSGMLS+set}" = set; then
29269   $as_echo_n "(cached) " >&6
29270 else
29271   if test -n "$NSGMLS"; then
29272   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
29273 else
29274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29275 for as_dir in $PATH
29276 do
29277   IFS=$as_save_IFS
29278   test -z "$as_dir" && as_dir=.
29279   for ac_exec_ext in '' $ac_executable_extensions; do
29280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29281     ac_cv_prog_NSGMLS="$ac_prog"
29282     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29283     break 2
29284   fi
29285 done
29286 done
29287 IFS=$as_save_IFS
29288
29289 fi
29290 fi
29291 NSGMLS=$ac_cv_prog_NSGMLS
29292 if test -n "$NSGMLS"; then
29293   { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
29294 $as_echo "$NSGMLS" >&6; }
29295 else
29296   { $as_echo "$as_me:$LINENO: result: no" >&5
29297 $as_echo "no" >&6; }
29298 fi
29299
29300
29301   test -n "$NSGMLS" && break
29302 done
29303
29304 for ac_prog in openjade jade
29305 do
29306   # Extract the first word of "$ac_prog", so it can be a program name with args.
29307 set dummy $ac_prog; ac_word=$2
29308 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29309 $as_echo_n "checking for $ac_word... " >&6; }
29310 if test "${ac_cv_prog_JADE+set}" = set; then
29311   $as_echo_n "(cached) " >&6
29312 else
29313   if test -n "$JADE"; then
29314   ac_cv_prog_JADE="$JADE" # Let the user override the test.
29315 else
29316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29317 for as_dir in $PATH
29318 do
29319   IFS=$as_save_IFS
29320   test -z "$as_dir" && as_dir=.
29321   for ac_exec_ext in '' $ac_executable_extensions; do
29322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29323     ac_cv_prog_JADE="$ac_prog"
29324     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29325     break 2
29326   fi
29327 done
29328 done
29329 IFS=$as_save_IFS
29330
29331 fi
29332 fi
29333 JADE=$ac_cv_prog_JADE
29334 if test -n "$JADE"; then
29335   { $as_echo "$as_me:$LINENO: result: $JADE" >&5
29336 $as_echo "$JADE" >&6; }
29337 else
29338   { $as_echo "$as_me:$LINENO: result: no" >&5
29339 $as_echo "no" >&6; }
29340 fi
29341
29342
29343   test -n "$JADE" && break
29344 done
29345
29346
29347 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
29348 $as_echo_n "checking for DocBook V4.2... " >&6; }
29349 if test "${pgac_cv_check_docbook+set}" = set; then
29350   $as_echo_n "(cached) " >&6
29351 else
29352   cat >conftest.sgml <<EOF
29353 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
29354 <book>
29355  <title>test</title>
29356  <chapter>
29357   <title>random</title>
29358    <sect1>
29359     <title>testsect</title>
29360     <para>text</para>
29361   </sect1>
29362  </chapter>
29363 </book>
29364 EOF
29365
29366 pgac_cv_check_docbook=no
29367
29368 if test -n "$NSGMLS"; then
29369   $NSGMLS -s conftest.sgml 1>&5 2>&1
29370   if test $? -eq 0; then
29371     pgac_cv_check_docbook=yes
29372   fi
29373 fi
29374 rm -f conftest.sgml
29375 fi
29376 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
29377 $as_echo "$pgac_cv_check_docbook" >&6; }
29378
29379 have_docbook=$pgac_cv_check_docbook
29380
29381
29382 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
29383 $as_echo_n "checking for DocBook stylesheets... " >&6; }
29384 if test "${pgac_cv_path_stylesheets+set}" = set; then
29385   $as_echo_n "(cached) " >&6
29386 else
29387   if test -n "$DOCBOOKSTYLE"; then
29388   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
29389 else
29390   for pgac_prefix in /usr /usr/local /opt /sw; do
29391     for pgac_infix in share lib; do
29392       for pgac_postfix in \
29393         sgml/stylesheets/nwalsh-modular \
29394         sgml/stylesheets/docbook \
29395         sgml/stylesheets/dsssl/docbook \
29396         sgml/docbook-dsssl \
29397         sgml/docbook/dsssl/modular \
29398         sgml/docbook/stylesheet/dsssl/modular \
29399         sgml/docbook/dsssl-stylesheets \
29400         sgml/dsssl/docbook-dsssl-nwalsh
29401       do
29402         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
29403         if test -r "$pgac_candidate/html/docbook.dsl" \
29404            && test -r "$pgac_candidate/print/docbook.dsl"
29405         then
29406           pgac_cv_path_stylesheets=$pgac_candidate
29407           break 3
29408         fi
29409       done
29410     done
29411   done
29412 fi
29413 fi
29414
29415 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
29416
29417 if test -n "$DOCBOOKSTYLE"; then
29418   { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
29419 $as_echo "$DOCBOOKSTYLE" >&6; }
29420 else
29421   { $as_echo "$as_me:$LINENO: result: no" >&5
29422 $as_echo "no" >&6; }
29423 fi
29424 if test -n "$DOCBOOKSTYLE" -a -r "$DOCBOOKSTYLE/bin/collateindex.pl"; then
29425   COLLATEINDEX="$DOCBOOKSTYLE/bin/collateindex.pl"
29426
29427 else
29428   # Extract the first word of "collateindex.pl", so it can be a program name with args.
29429 set dummy collateindex.pl; ac_word=$2
29430 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29431 $as_echo_n "checking for $ac_word... " >&6; }
29432 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29433   $as_echo_n "(cached) " >&6
29434 else
29435   case $COLLATEINDEX in
29436   [\\/]* | ?:[\\/]*)
29437   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29438   ;;
29439   *)
29440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29441 for as_dir in $PATH
29442 do
29443   IFS=$as_save_IFS
29444   test -z "$as_dir" && as_dir=.
29445   for ac_exec_ext in '' $ac_executable_extensions; do
29446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29447     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29448     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29449     break 2
29450   fi
29451 done
29452 done
29453 IFS=$as_save_IFS
29454
29455   ;;
29456 esac
29457 fi
29458 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29459 if test -n "$COLLATEINDEX"; then
29460   { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29461 $as_echo "$COLLATEINDEX" >&6; }
29462 else
29463   { $as_echo "$as_me:$LINENO: result: no" >&5
29464 $as_echo "no" >&6; }
29465 fi
29466
29467
29468 fi
29469 for ac_prog in xsltproc
29470 do
29471   # Extract the first word of "$ac_prog", so it can be a program name with args.
29472 set dummy $ac_prog; ac_word=$2
29473 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29474 $as_echo_n "checking for $ac_word... " >&6; }
29475 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
29476   $as_echo_n "(cached) " >&6
29477 else
29478   if test -n "$XSLTPROC"; then
29479   ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
29480 else
29481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29482 for as_dir in $PATH
29483 do
29484   IFS=$as_save_IFS
29485   test -z "$as_dir" && as_dir=.
29486   for ac_exec_ext in '' $ac_executable_extensions; do
29487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29488     ac_cv_prog_XSLTPROC="$ac_prog"
29489     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29490     break 2
29491   fi
29492 done
29493 done
29494 IFS=$as_save_IFS
29495
29496 fi
29497 fi
29498 XSLTPROC=$ac_cv_prog_XSLTPROC
29499 if test -n "$XSLTPROC"; then
29500   { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
29501 $as_echo "$XSLTPROC" >&6; }
29502 else
29503   { $as_echo "$as_me:$LINENO: result: no" >&5
29504 $as_echo "no" >&6; }
29505 fi
29506
29507
29508   test -n "$XSLTPROC" && break
29509 done
29510
29511 for ac_prog in osx sgml2xml sx
29512 do
29513   # Extract the first word of "$ac_prog", so it can be a program name with args.
29514 set dummy $ac_prog; ac_word=$2
29515 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29516 $as_echo_n "checking for $ac_word... " >&6; }
29517 if test "${ac_cv_prog_OSX+set}" = set; then
29518   $as_echo_n "(cached) " >&6
29519 else
29520   if test -n "$OSX"; then
29521   ac_cv_prog_OSX="$OSX" # Let the user override the test.
29522 else
29523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29524 for as_dir in $PATH
29525 do
29526   IFS=$as_save_IFS
29527   test -z "$as_dir" && as_dir=.
29528   for ac_exec_ext in '' $ac_executable_extensions; do
29529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29530     ac_cv_prog_OSX="$ac_prog"
29531     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29532     break 2
29533   fi
29534 done
29535 done
29536 IFS=$as_save_IFS
29537
29538 fi
29539 fi
29540 OSX=$ac_cv_prog_OSX
29541 if test -n "$OSX"; then
29542   { $as_echo "$as_me:$LINENO: result: $OSX" >&5
29543 $as_echo "$OSX" >&6; }
29544 else
29545   { $as_echo "$as_me:$LINENO: result: no" >&5
29546 $as_echo "no" >&6; }
29547 fi
29548
29549
29550   test -n "$OSX" && break
29551 done
29552
29553
29554 # Thread testing
29555
29556 # We have to run the thread test near the end so we have all our symbols
29557 # defined.  Cross compiling throws a warning.
29558 #
29559 if test "$enable_thread_safety" = yes; then
29560 if test "$PORTNAME" != "win32"
29561 then
29562 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
29563 $as_echo_n "checking thread safety of required library functions... " >&6; }
29564
29565 _CFLAGS="$CFLAGS"
29566 _LIBS="$LIBS"
29567 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
29568 LIBS="$LIBS $PTHREAD_LIBS"
29569 if test "$cross_compiling" = yes; then
29570   { $as_echo "$as_me:$LINENO: result: maybe" >&5
29571 $as_echo "maybe" >&6; }
29572   { $as_echo "$as_me:$LINENO: WARNING:
29573 *** Skipping thread test program because of cross-compile build.
29574 *** Run the program in src/test/thread on the target machine.
29575 " >&5
29576 $as_echo "$as_me: WARNING:
29577 *** Skipping thread test program because of cross-compile build.
29578 *** Run the program in src/test/thread on the target machine.
29579 " >&2;}
29580 else
29581   cat >conftest.$ac_ext <<_ACEOF
29582 /* confdefs.h.  */
29583 _ACEOF
29584 cat confdefs.h >>conftest.$ac_ext
29585 cat >>conftest.$ac_ext <<_ACEOF
29586 /* end confdefs.h.  */
29587 #include "$srcdir/src/test/thread/thread_test.c"
29588 _ACEOF
29589 rm -f conftest$ac_exeext
29590 if { (ac_try="$ac_link"
29591 case "(($ac_try" in
29592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29593   *) ac_try_echo=$ac_try;;
29594 esac
29595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29596 $as_echo "$ac_try_echo") >&5
29597   (eval "$ac_link") 2>&5
29598   ac_status=$?
29599   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29600   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29601   { (case "(($ac_try" in
29602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29603   *) ac_try_echo=$ac_try;;
29604 esac
29605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29606 $as_echo "$ac_try_echo") >&5
29607   (eval "$ac_try") 2>&5
29608   ac_status=$?
29609   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29610   (exit $ac_status); }; }; then
29611   { $as_echo "$as_me:$LINENO: result: yes" >&5
29612 $as_echo "yes" >&6; }
29613 else
29614   $as_echo "$as_me: program exited with status $ac_status" >&5
29615 $as_echo "$as_me: failed program was:" >&5
29616 sed 's/^/| /' conftest.$ac_ext >&5
29617
29618 ( exit $ac_status )
29619 { $as_echo "$as_me:$LINENO: result: no" >&5
29620 $as_echo "no" >&6; }
29621   { { $as_echo "$as_me:$LINENO: error: thread test program failed
29622 This platform is not thread-safe.  Check the file 'config.log' or compile
29623 and run src/test/thread/thread_test for the exact reason.
29624 Use --disable-thread-safety to disable thread safety." >&5
29625 $as_echo "$as_me: error: thread test program failed
29626 This platform is not thread-safe.  Check the file 'config.log' or compile
29627 and run src/test/thread/thread_test for the exact reason.
29628 Use --disable-thread-safety to disable thread safety." >&2;}
29629    { (exit 1); exit 1; }; }
29630 fi
29631 rm -rf conftest.dSYM
29632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29633 fi
29634
29635
29636 CFLAGS="$_CFLAGS"
29637 LIBS="$_LIBS"
29638 else
29639 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
29640 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
29641 fi
29642 fi
29643
29644 # If compiler will take -Wl,--as-needed (or various platform-specific
29645 # spellings thereof) then add that to LDFLAGS.  This is much easier than
29646 # trying to filter LIBS to the minimum for each executable.
29647 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
29648 # libreadline; therefore we postpone testing it until we know what library
29649 # dependencies readline has.  The test code will try to link with $LIBS.
29650 if test "$with_readline" = yes; then
29651   link_test_func=readline
29652 else
29653   link_test_func=exit
29654 fi
29655
29656 if test "$PORTNAME" = "darwin"; then
29657   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
29658 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
29659 if test "${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+set}" = set; then
29660   $as_echo_n "(cached) " >&6
29661 else
29662   pgac_save_LDFLAGS=$LDFLAGS
29663 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
29664 if test "$cross_compiling" = yes; then
29665   pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
29666 else
29667   cat >conftest.$ac_ext <<_ACEOF
29668 /* confdefs.h.  */
29669 _ACEOF
29670 cat confdefs.h >>conftest.$ac_ext
29671 cat >>conftest.$ac_ext <<_ACEOF
29672 /* end confdefs.h.  */
29673 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29674 int
29675 main ()
29676 {
29677
29678   ;
29679   return 0;
29680 }
29681 _ACEOF
29682 rm -f conftest$ac_exeext
29683 if { (ac_try="$ac_link"
29684 case "(($ac_try" in
29685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29686   *) ac_try_echo=$ac_try;;
29687 esac
29688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29689 $as_echo "$ac_try_echo") >&5
29690   (eval "$ac_link") 2>&5
29691   ac_status=$?
29692   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29693   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29694   { (case "(($ac_try" in
29695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29696   *) ac_try_echo=$ac_try;;
29697 esac
29698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29699 $as_echo "$ac_try_echo") >&5
29700   (eval "$ac_try") 2>&5
29701   ac_status=$?
29702   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29703   (exit $ac_status); }; }; then
29704   pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
29705 else
29706   $as_echo "$as_me: program exited with status $ac_status" >&5
29707 $as_echo "$as_me: failed program was:" >&5
29708 sed 's/^/| /' conftest.$ac_ext >&5
29709
29710 ( exit $ac_status )
29711 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
29712 fi
29713 rm -rf conftest.dSYM
29714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29715 fi
29716
29717
29718 LDFLAGS="$pgac_save_LDFLAGS"
29719 fi
29720 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
29721 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
29722 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
29723   LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
29724 fi
29725
29726 elif test "$PORTNAME" = "openbsd"; then
29727   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-Bdynamic" >&5
29728 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
29729 if test "${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+set}" = set; then
29730   $as_echo_n "(cached) " >&6
29731 else
29732   pgac_save_LDFLAGS=$LDFLAGS
29733 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
29734 if test "$cross_compiling" = yes; then
29735   pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
29736 else
29737   cat >conftest.$ac_ext <<_ACEOF
29738 /* confdefs.h.  */
29739 _ACEOF
29740 cat confdefs.h >>conftest.$ac_ext
29741 cat >>conftest.$ac_ext <<_ACEOF
29742 /* end confdefs.h.  */
29743 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29744 int
29745 main ()
29746 {
29747
29748   ;
29749   return 0;
29750 }
29751 _ACEOF
29752 rm -f conftest$ac_exeext
29753 if { (ac_try="$ac_link"
29754 case "(($ac_try" in
29755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29756   *) ac_try_echo=$ac_try;;
29757 esac
29758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29759 $as_echo "$ac_try_echo") >&5
29760   (eval "$ac_link") 2>&5
29761   ac_status=$?
29762   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29763   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29764   { (case "(($ac_try" in
29765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29766   *) ac_try_echo=$ac_try;;
29767 esac
29768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29769 $as_echo "$ac_try_echo") >&5
29770   (eval "$ac_try") 2>&5
29771   ac_status=$?
29772   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29773   (exit $ac_status); }; }; then
29774   pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
29775 else
29776   $as_echo "$as_me: program exited with status $ac_status" >&5
29777 $as_echo "$as_me: failed program was:" >&5
29778 sed 's/^/| /' conftest.$ac_ext >&5
29779
29780 ( exit $ac_status )
29781 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
29782 fi
29783 rm -rf conftest.dSYM
29784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29785 fi
29786
29787
29788 LDFLAGS="$pgac_save_LDFLAGS"
29789 fi
29790 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
29791 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
29792 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
29793   LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
29794 fi
29795
29796 else
29797   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,--as-needed" >&5
29798 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
29799 if test "${pgac_cv_prog_cc_ldflags__Wl___as_needed+set}" = set; then
29800   $as_echo_n "(cached) " >&6
29801 else
29802   pgac_save_LDFLAGS=$LDFLAGS
29803 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
29804 if test "$cross_compiling" = yes; then
29805   pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
29806 else
29807   cat >conftest.$ac_ext <<_ACEOF
29808 /* confdefs.h.  */
29809 _ACEOF
29810 cat confdefs.h >>conftest.$ac_ext
29811 cat >>conftest.$ac_ext <<_ACEOF
29812 /* end confdefs.h.  */
29813 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29814 int
29815 main ()
29816 {
29817
29818   ;
29819   return 0;
29820 }
29821 _ACEOF
29822 rm -f conftest$ac_exeext
29823 if { (ac_try="$ac_link"
29824 case "(($ac_try" in
29825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29826   *) ac_try_echo=$ac_try;;
29827 esac
29828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29829 $as_echo "$ac_try_echo") >&5
29830   (eval "$ac_link") 2>&5
29831   ac_status=$?
29832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29833   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29834   { (case "(($ac_try" in
29835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29836   *) ac_try_echo=$ac_try;;
29837 esac
29838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29839 $as_echo "$ac_try_echo") >&5
29840   (eval "$ac_try") 2>&5
29841   ac_status=$?
29842   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29843   (exit $ac_status); }; }; then
29844   pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
29845 else
29846   $as_echo "$as_me: program exited with status $ac_status" >&5
29847 $as_echo "$as_me: failed program was:" >&5
29848 sed 's/^/| /' conftest.$ac_ext >&5
29849
29850 ( exit $ac_status )
29851 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
29852 fi
29853 rm -rf conftest.dSYM
29854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29855 fi
29856
29857
29858 LDFLAGS="$pgac_save_LDFLAGS"
29859 fi
29860 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
29861 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
29862 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
29863   LDFLAGS="$LDFLAGS -Wl,--as-needed"
29864 fi
29865
29866 fi
29867
29868 # Create compiler version string
29869 if test x"$GCC" = x"yes" ; then
29870   cc_string=`${CC} --version | sed q`
29871   case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
29872 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
29873   cc_string=`${CC} -V 2>&1 | sed q`
29874 else
29875   cc_string=$CC
29876 fi
29877
29878
29879 cat >>confdefs.h <<_ACEOF
29880 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
29881 _ACEOF
29882
29883
29884 # Supply a numeric version string for use by 3rd party add-ons
29885 # awk -F is a regex on some platforms, and not on others, so make "." a tab
29886 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
29887 tr '.' '        ' |
29888 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
29889
29890 cat >>confdefs.h <<_ACEOF
29891 #define PG_VERSION_NUM $PG_VERSION_NUM
29892 _ACEOF
29893
29894
29895
29896 # Begin output steps
29897
29898 { $as_echo "$as_me:$LINENO: using compiler=$cc_string" >&5
29899 $as_echo "$as_me: using compiler=$cc_string" >&6;}
29900 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
29901 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
29902 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
29903 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
29904 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
29905 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
29906
29907 # prepare build tree if outside source tree
29908 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
29909 # Note 2: /bin/pwd might be better than shell's built-in at getting
29910 #         a symlink-free name.
29911 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
29912   vpath_build=no
29913 else
29914   vpath_build=yes
29915   if test "$no_create" != yes; then
29916     $as_echo_n "preparing build tree... " >&6
29917     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
29918     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
29919       || { { $as_echo "$as_me:$LINENO: error: failed" >&5
29920 $as_echo "$as_me: error: failed" >&2;}
29921    { (exit 1); exit 1; }; }
29922     { $as_echo "$as_me:$LINENO: result: done" >&5
29923 $as_echo "done" >&6; }
29924   fi
29925 fi
29926
29927
29928
29929 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
29930
29931
29932 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}"
29933
29934
29935 if test "$PORTNAME" = "win32"; then
29936 ac_config_commands="$ac_config_commands check_win32_symlinks"
29937
29938 fi
29939
29940 ac_config_headers="$ac_config_headers src/include/pg_config.h"
29941
29942
29943 ac_config_headers="$ac_config_headers src/include/pg_config_ext.h"
29944
29945
29946 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
29947
29948
29949 cat >confcache <<\_ACEOF
29950 # This file is a shell script that caches the results of configure
29951 # tests run on this system so they can be shared between configure
29952 # scripts and configure runs, see configure's option --config-cache.
29953 # It is not useful on other systems.  If it contains results you don't
29954 # want to keep, you may remove or edit it.
29955 #
29956 # config.status only pays attention to the cache file if you give it
29957 # the --recheck option to rerun configure.
29958 #
29959 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29960 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29961 # following values.
29962
29963 _ACEOF
29964
29965 # The following way of writing the cache mishandles newlines in values,
29966 # but we know of no workaround that is simple, portable, and efficient.
29967 # So, we kill variables containing newlines.
29968 # Ultrix sh set writes to stderr and can't be redirected directly,
29969 # and sets the high bit in the cache file unless we assign to the vars.
29970 (
29971   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29972     eval ac_val=\$$ac_var
29973     case $ac_val in #(
29974     *${as_nl}*)
29975       case $ac_var in #(
29976       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
29977 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29978       esac
29979       case $ac_var in #(
29980       _ | IFS | as_nl) ;; #(
29981       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29982       *) $as_unset $ac_var ;;
29983       esac ;;
29984     esac
29985   done
29986
29987   (set) 2>&1 |
29988     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29989     *${as_nl}ac_space=\ *)
29990       # `set' does not quote correctly, so add quotes (double-quote
29991       # substitution turns \\\\ into \\, and sed turns \\ into \).
29992       sed -n \
29993         "s/'/'\\\\''/g;
29994           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29995       ;; #(
29996     *)
29997       # `set' quotes correctly as required by POSIX, so do not add quotes.
29998       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29999       ;;
30000     esac |
30001     sort
30002 ) |
30003   sed '
30004      /^ac_cv_env_/b end
30005      t clear
30006      :clear
30007      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30008      t end
30009      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30010      :end' >>confcache
30011 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30012   if test -w "$cache_file"; then
30013     test "x$cache_file" != "x/dev/null" &&
30014       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
30015 $as_echo "$as_me: updating cache $cache_file" >&6;}
30016     cat confcache >$cache_file
30017   else
30018     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30019 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30020   fi
30021 fi
30022 rm -f confcache
30023
30024 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30025 # Let make expand exec_prefix.
30026 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30027
30028 DEFS=-DHAVE_CONFIG_H
30029
30030 ac_libobjs=
30031 ac_ltlibobjs=
30032 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30033   # 1. Remove the extension, and $U if already installed.
30034   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30035   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30036   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30037   #    will be set to the directory where LIBOBJS objects are built.
30038   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30039   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30040 done
30041 LIBOBJS=$ac_libobjs
30042
30043 LTLIBOBJS=$ac_ltlibobjs
30044
30045
30046
30047
30048 : ${CONFIG_STATUS=./config.status}
30049 ac_write_fail=0
30050 ac_clean_files_save=$ac_clean_files
30051 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30052 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30053 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30054 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30055 #! $SHELL
30056 # Generated by $as_me.
30057 # Run this file to recreate the current configuration.
30058 # Compiler output produced by configure, useful for debugging
30059 # configure, is in config.log if it exists.
30060
30061 debug=false
30062 ac_cs_recheck=false
30063 ac_cs_silent=false
30064 SHELL=\${CONFIG_SHELL-$SHELL}
30065 _ACEOF
30066
30067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30068 ## --------------------- ##
30069 ## M4sh Initialization.  ##
30070 ## --------------------- ##
30071
30072 # Be more Bourne compatible
30073 DUALCASE=1; export DUALCASE # for MKS sh
30074 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30075   emulate sh
30076   NULLCMD=:
30077   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30078   # is contrary to our usage.  Disable this feature.
30079   alias -g '${1+"$@"}'='"$@"'
30080   setopt NO_GLOB_SUBST
30081 else
30082   case `(set -o) 2>/dev/null` in
30083   *posix*) set -o posix ;;
30084 esac
30085
30086 fi
30087
30088
30089
30090
30091 # PATH needs CR
30092 # Avoid depending upon Character Ranges.
30093 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30094 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30095 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30096 as_cr_digits='0123456789'
30097 as_cr_alnum=$as_cr_Letters$as_cr_digits
30098
30099 as_nl='
30100 '
30101 export as_nl
30102 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30103 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30104 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30105 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30106 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30107   as_echo='printf %s\n'
30108   as_echo_n='printf %s'
30109 else
30110   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30111     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30112     as_echo_n='/usr/ucb/echo -n'
30113   else
30114     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30115     as_echo_n_body='eval
30116       arg=$1;
30117       case $arg in
30118       *"$as_nl"*)
30119         expr "X$arg" : "X\\(.*\\)$as_nl";
30120         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30121       esac;
30122       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30123     '
30124     export as_echo_n_body
30125     as_echo_n='sh -c $as_echo_n_body as_echo'
30126   fi
30127   export as_echo_body
30128   as_echo='sh -c $as_echo_body as_echo'
30129 fi
30130
30131 # The user is always right.
30132 if test "${PATH_SEPARATOR+set}" != set; then
30133   PATH_SEPARATOR=:
30134   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30135     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30136       PATH_SEPARATOR=';'
30137   }
30138 fi
30139
30140 # Support unset when possible.
30141 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30142   as_unset=unset
30143 else
30144   as_unset=false
30145 fi
30146
30147
30148 # IFS
30149 # We need space, tab and new line, in precisely that order.  Quoting is
30150 # there to prevent editors from complaining about space-tab.
30151 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30152 # splitting by setting IFS to empty value.)
30153 IFS=" ""        $as_nl"
30154
30155 # Find who we are.  Look in the path if we contain no directory separator.
30156 case $0 in
30157   *[\\/]* ) as_myself=$0 ;;
30158   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30159 for as_dir in $PATH
30160 do
30161   IFS=$as_save_IFS
30162   test -z "$as_dir" && as_dir=.
30163   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30164 done
30165 IFS=$as_save_IFS
30166
30167      ;;
30168 esac
30169 # We did not find ourselves, most probably we were run as `sh COMMAND'
30170 # in which case we are not to be found in the path.
30171 if test "x$as_myself" = x; then
30172   as_myself=$0
30173 fi
30174 if test ! -f "$as_myself"; then
30175   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30176   { (exit 1); exit 1; }
30177 fi
30178
30179 # Work around bugs in pre-3.0 UWIN ksh.
30180 for as_var in ENV MAIL MAILPATH
30181 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30182 done
30183 PS1='$ '
30184 PS2='> '
30185 PS4='+ '
30186
30187 # NLS nuisances.
30188 LC_ALL=C
30189 export LC_ALL
30190 LANGUAGE=C
30191 export LANGUAGE
30192
30193 # Required to use basename.
30194 if expr a : '\(a\)' >/dev/null 2>&1 &&
30195    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30196   as_expr=expr
30197 else
30198   as_expr=false
30199 fi
30200
30201 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30202   as_basename=basename
30203 else
30204   as_basename=false
30205 fi
30206
30207
30208 # Name of the executable.
30209 as_me=`$as_basename -- "$0" ||
30210 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30211          X"$0" : 'X\(//\)$' \| \
30212          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30213 $as_echo X/"$0" |
30214     sed '/^.*\/\([^/][^/]*\)\/*$/{
30215             s//\1/
30216             q
30217           }
30218           /^X\/\(\/\/\)$/{
30219             s//\1/
30220             q
30221           }
30222           /^X\/\(\/\).*/{
30223             s//\1/
30224             q
30225           }
30226           s/.*/./; q'`
30227
30228 # CDPATH.
30229 $as_unset CDPATH
30230
30231
30232
30233   as_lineno_1=$LINENO
30234   as_lineno_2=$LINENO
30235   test "x$as_lineno_1" != "x$as_lineno_2" &&
30236   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30237
30238   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30239   # uniformly replaced by the line number.  The first 'sed' inserts a
30240   # line-number line after each line using $LINENO; the second 'sed'
30241   # does the real work.  The second script uses 'N' to pair each
30242   # line-number line with the line containing $LINENO, and appends
30243   # trailing '-' during substitution so that $LINENO is not a special
30244   # case at line end.
30245   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30246   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30247   # E. McMahon (1931-1989) for sed's syntax.  :-)
30248   sed -n '
30249     p
30250     /[$]LINENO/=
30251   ' <$as_myself |
30252     sed '
30253       s/[$]LINENO.*/&-/
30254       t lineno
30255       b
30256       :lineno
30257       N
30258       :loop
30259       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30260       t loop
30261       s/-\n.*//
30262     ' >$as_me.lineno &&
30263   chmod +x "$as_me.lineno" ||
30264     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30265    { (exit 1); exit 1; }; }
30266
30267   # Don't try to exec as it changes $[0], causing all sort of problems
30268   # (the dirname of $[0] is not the place where we might find the
30269   # original and so on.  Autoconf is especially sensitive to this).
30270   . "./$as_me.lineno"
30271   # Exit status is that of the last command.
30272   exit
30273 }
30274
30275
30276 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30277   as_dirname=dirname
30278 else
30279   as_dirname=false
30280 fi
30281
30282 ECHO_C= ECHO_N= ECHO_T=
30283 case `echo -n x` in
30284 -n*)
30285   case `echo 'x\c'` in
30286   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30287   *)   ECHO_C='\c';;
30288   esac;;
30289 *)
30290   ECHO_N='-n';;
30291 esac
30292 if expr a : '\(a\)' >/dev/null 2>&1 &&
30293    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30294   as_expr=expr
30295 else
30296   as_expr=false
30297 fi
30298
30299 rm -f conf$$ conf$$.exe conf$$.file
30300 if test -d conf$$.dir; then
30301   rm -f conf$$.dir/conf$$.file
30302 else
30303   rm -f conf$$.dir
30304   mkdir conf$$.dir 2>/dev/null
30305 fi
30306 if (echo >conf$$.file) 2>/dev/null; then
30307   if ln -s conf$$.file conf$$ 2>/dev/null; then
30308     as_ln_s='ln -s'
30309     # ... but there are two gotchas:
30310     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30311     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30312     # In both cases, we have to default to `cp -p'.
30313     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30314       as_ln_s='cp -p'
30315   elif ln conf$$.file conf$$ 2>/dev/null; then
30316     as_ln_s=ln
30317   else
30318     as_ln_s='cp -p'
30319   fi
30320 else
30321   as_ln_s='cp -p'
30322 fi
30323 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30324 rmdir conf$$.dir 2>/dev/null
30325
30326 if mkdir -p . 2>/dev/null; then
30327   as_mkdir_p=:
30328 else
30329   test -d ./-p && rmdir ./-p
30330   as_mkdir_p=false
30331 fi
30332
30333 if test -x / >/dev/null 2>&1; then
30334   as_test_x='test -x'
30335 else
30336   if ls -dL / >/dev/null 2>&1; then
30337     as_ls_L_option=L
30338   else
30339     as_ls_L_option=
30340   fi
30341   as_test_x='
30342     eval sh -c '\''
30343       if test -d "$1"; then
30344         test -d "$1/.";
30345       else
30346         case $1 in
30347         -*)set "./$1";;
30348         esac;
30349         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30350         ???[sx]*):;;*)false;;esac;fi
30351     '\'' sh
30352   '
30353 fi
30354 as_executable_p=$as_test_x
30355
30356 # Sed expression to map a string onto a valid CPP name.
30357 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30358
30359 # Sed expression to map a string onto a valid variable name.
30360 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30361
30362
30363 exec 6>&1
30364
30365 # Save the log message, to keep $[0] and so on meaningful, and to
30366 # report actual input values of CONFIG_FILES etc. instead of their
30367 # values after options handling.
30368 ac_log="
30369 This file was extended by PostgreSQL $as_me 9.3devel, which was
30370 generated by GNU Autoconf 2.63.  Invocation command line was
30371
30372   CONFIG_FILES    = $CONFIG_FILES
30373   CONFIG_HEADERS  = $CONFIG_HEADERS
30374   CONFIG_LINKS    = $CONFIG_LINKS
30375   CONFIG_COMMANDS = $CONFIG_COMMANDS
30376   $ $0 $@
30377
30378 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30379 "
30380
30381 _ACEOF
30382
30383 case $ac_config_files in *"
30384 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30385 esac
30386
30387 case $ac_config_headers in *"
30388 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30389 esac
30390
30391
30392 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30393 # Files that config.status was made for.
30394 config_files="$ac_config_files"
30395 config_headers="$ac_config_headers"
30396 config_links="$ac_config_links"
30397 config_commands="$ac_config_commands"
30398
30399 _ACEOF
30400
30401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30402 ac_cs_usage="\
30403 \`$as_me' instantiates files from templates according to the
30404 current configuration.
30405
30406 Usage: $0 [OPTION]... [FILE]...
30407
30408   -h, --help       print this help, then exit
30409   -V, --version    print version number and configuration settings, then exit
30410   -q, --quiet, --silent
30411                    do not print progress messages
30412   -d, --debug      don't remove temporary files
30413       --recheck    update $as_me by reconfiguring in the same conditions
30414       --file=FILE[:TEMPLATE]
30415                    instantiate the configuration file FILE
30416       --header=FILE[:TEMPLATE]
30417                    instantiate the configuration header FILE
30418
30419 Configuration files:
30420 $config_files
30421
30422 Configuration headers:
30423 $config_headers
30424
30425 Configuration links:
30426 $config_links
30427
30428 Configuration commands:
30429 $config_commands
30430
30431 Report bugs to <bug-autoconf@gnu.org>."
30432
30433 _ACEOF
30434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30435 ac_cs_version="\\
30436 PostgreSQL config.status 9.3devel
30437 configured by $0, generated by GNU Autoconf 2.63,
30438   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30439
30440 Copyright (C) 2008 Free Software Foundation, Inc.
30441 This config.status script is free software; the Free Software Foundation
30442 gives unlimited permission to copy, distribute and modify it."
30443
30444 ac_pwd='$ac_pwd'
30445 srcdir='$srcdir'
30446 INSTALL='$INSTALL'
30447 MKDIR_P='$MKDIR_P'
30448 AWK='$AWK'
30449 test -n "\$AWK" || AWK=awk
30450 _ACEOF
30451
30452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30453 # The default lists apply if the user does not specify any file.
30454 ac_need_defaults=:
30455 while test $# != 0
30456 do
30457   case $1 in
30458   --*=*)
30459     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30460     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30461     ac_shift=:
30462     ;;
30463   *)
30464     ac_option=$1
30465     ac_optarg=$2
30466     ac_shift=shift
30467     ;;
30468   esac
30469
30470   case $ac_option in
30471   # Handling of the options.
30472   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30473     ac_cs_recheck=: ;;
30474   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30475     $as_echo "$ac_cs_version"; exit ;;
30476   --debug | --debu | --deb | --de | --d | -d )
30477     debug=: ;;
30478   --file | --fil | --fi | --f )
30479     $ac_shift
30480     case $ac_optarg in
30481     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30482     esac
30483     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
30484     ac_need_defaults=false;;
30485   --header | --heade | --head | --hea )
30486     $ac_shift
30487     case $ac_optarg in
30488     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30489     esac
30490     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
30491     ac_need_defaults=false;;
30492   --he | --h)
30493     # Conflict between --help and --header
30494     { $as_echo "$as_me: error: ambiguous option: $1
30495 Try \`$0 --help' for more information." >&2
30496    { (exit 1); exit 1; }; };;
30497   --help | --hel | -h )
30498     $as_echo "$ac_cs_usage"; exit ;;
30499   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30500   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30501     ac_cs_silent=: ;;
30502
30503   # This is an error.
30504   -*) { $as_echo "$as_me: error: unrecognized option: $1
30505 Try \`$0 --help' for more information." >&2
30506    { (exit 1); exit 1; }; } ;;
30507
30508   *) ac_config_targets="$ac_config_targets $1"
30509      ac_need_defaults=false ;;
30510
30511   esac
30512   shift
30513 done
30514
30515 ac_configure_extra_args=
30516
30517 if $ac_cs_silent; then
30518   exec 6>/dev/null
30519   ac_configure_extra_args="$ac_configure_extra_args --silent"
30520 fi
30521
30522 _ACEOF
30523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30524 if \$ac_cs_recheck; then
30525   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30526   shift
30527   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30528   CONFIG_SHELL='$SHELL'
30529   export CONFIG_SHELL
30530   exec "\$@"
30531 fi
30532
30533 _ACEOF
30534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30535 exec 5>>config.log
30536 {
30537   echo
30538   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30539 ## Running $as_me. ##
30540 _ASBOX
30541   $as_echo "$ac_log"
30542 } >&5
30543
30544 _ACEOF
30545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30546 _ACEOF
30547
30548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30549
30550 # Handling of arguments.
30551 for ac_config_target in $ac_config_targets
30552 do
30553   case $ac_config_target in
30554     "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
30555     "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
30556     "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
30557     "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
30558     "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
30559     "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
30560     "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
30561     "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
30562     "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
30563     "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
30564     "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
30565     "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
30566     "src/include/pg_config_ext.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config_ext.h" ;;
30567     "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
30568
30569   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30570 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30571    { (exit 1); exit 1; }; };;
30572   esac
30573 done
30574
30575
30576 # If the user did not use the arguments to specify the items to instantiate,
30577 # then the envvar interface is used.  Set only those that are not.
30578 # We use the long form for the default assignment because of an extremely
30579 # bizarre bug on SunOS 4.1.3.
30580 if $ac_need_defaults; then
30581   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30582   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30583   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30584   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30585 fi
30586
30587 # Have a temporary directory for convenience.  Make it in the build tree
30588 # simply because there is no reason against having it here, and in addition,
30589 # creating and moving files from /tmp can sometimes cause problems.
30590 # Hook for its removal unless debugging.
30591 # Note that there is a small window in which the directory will not be cleaned:
30592 # after its creation but before its name has been assigned to `$tmp'.
30593 $debug ||
30594 {
30595   tmp=
30596   trap 'exit_status=$?
30597   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30598 ' 0
30599   trap '{ (exit 1); exit 1; }' 1 2 13 15
30600 }
30601 # Create a (secure) tmp directory for tmp files.
30602
30603 {
30604   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30605   test -n "$tmp" && test -d "$tmp"
30606 }  ||
30607 {
30608   tmp=./conf$$-$RANDOM
30609   (umask 077 && mkdir "$tmp")
30610 } ||
30611 {
30612    $as_echo "$as_me: cannot create a temporary directory in ." >&2
30613    { (exit 1); exit 1; }
30614 }
30615
30616 # Set up the scripts for CONFIG_FILES section.
30617 # No need to generate them if there are no CONFIG_FILES.
30618 # This happens for instance with `./config.status config.h'.
30619 if test -n "$CONFIG_FILES"; then
30620
30621
30622 ac_cr='\r'
30623 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30624 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30625   ac_cs_awk_cr='\\r'
30626 else
30627   ac_cs_awk_cr=$ac_cr
30628 fi
30629
30630 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30631 _ACEOF
30632
30633
30634 {
30635   echo "cat >conf$$subs.awk <<_ACEOF" &&
30636   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30637   echo "_ACEOF"
30638 } >conf$$subs.sh ||
30639   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30640 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30641    { (exit 1); exit 1; }; }
30642 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30643 ac_delim='%!_!# '
30644 for ac_last_try in false false false false false :; do
30645   . ./conf$$subs.sh ||
30646     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30647 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30648    { (exit 1); exit 1; }; }
30649
30650   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30651   if test $ac_delim_n = $ac_delim_num; then
30652     break
30653   elif $ac_last_try; then
30654     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30655 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30656    { (exit 1); exit 1; }; }
30657   else
30658     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30659   fi
30660 done
30661 rm -f conf$$subs.sh
30662
30663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30664 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30665 _ACEOF
30666 sed -n '
30667 h
30668 s/^/S["/; s/!.*/"]=/
30669 p
30670 g
30671 s/^[^!]*!//
30672 :repl
30673 t repl
30674 s/'"$ac_delim"'$//
30675 t delim
30676 :nl
30677 h
30678 s/\(.\{148\}\).*/\1/
30679 t more1
30680 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30681 p
30682 n
30683 b repl
30684 :more1
30685 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30686 p
30687 g
30688 s/.\{148\}//
30689 t nl
30690 :delim
30691 h
30692 s/\(.\{148\}\).*/\1/
30693 t more2
30694 s/["\\]/\\&/g; s/^/"/; s/$/"/
30695 p
30696 b
30697 :more2
30698 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30699 p
30700 g
30701 s/.\{148\}//
30702 t delim
30703 ' <conf$$subs.awk | sed '
30704 /^[^""]/{
30705   N
30706   s/\n//
30707 }
30708 ' >>$CONFIG_STATUS || ac_write_fail=1
30709 rm -f conf$$subs.awk
30710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30711 _ACAWK
30712 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30713   for (key in S) S_is_set[key] = 1
30714   FS = "\a"
30715
30716 }
30717 {
30718   line = $ 0
30719   nfields = split(line, field, "@")
30720   substed = 0
30721   len = length(field[1])
30722   for (i = 2; i < nfields; i++) {
30723     key = field[i]
30724     keylen = length(key)
30725     if (S_is_set[key]) {
30726       value = S[key]
30727       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30728       len += length(value) + length(field[++i])
30729       substed = 1
30730     } else
30731       len += 1 + keylen
30732   }
30733
30734   print line
30735 }
30736
30737 _ACAWK
30738 _ACEOF
30739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30740 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30741   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30742 else
30743   cat
30744 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30745   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
30746 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
30747    { (exit 1); exit 1; }; }
30748 _ACEOF
30749
30750 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30751 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30752 # trailing colons and then remove the whole line if VPATH becomes empty
30753 # (actually we leave an empty line to preserve line numbers).
30754 if test "x$srcdir" = x.; then
30755   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30756 s/:*\$(srcdir):*/:/
30757 s/:*\${srcdir}:*/:/
30758 s/:*@srcdir@:*/:/
30759 s/^\([^=]*=[     ]*\):*/\1/
30760 s/:*$//
30761 s/^[^=]*=[       ]*$//
30762 }'
30763 fi
30764
30765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30766 fi # test -n "$CONFIG_FILES"
30767
30768 # Set up the scripts for CONFIG_HEADERS section.
30769 # No need to generate them if there are no CONFIG_HEADERS.
30770 # This happens for instance with `./config.status Makefile'.
30771 if test -n "$CONFIG_HEADERS"; then
30772 cat >"$tmp/defines.awk" <<\_ACAWK ||
30773 BEGIN {
30774 _ACEOF
30775
30776 # Transform confdefs.h into an awk script `defines.awk', embedded as
30777 # here-document in config.status, that substitutes the proper values into
30778 # config.h.in to produce config.h.
30779
30780 # Create a delimiter string that does not exist in confdefs.h, to ease
30781 # handling of long lines.
30782 ac_delim='%!_!# '
30783 for ac_last_try in false false :; do
30784   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30785   if test -z "$ac_t"; then
30786     break
30787   elif $ac_last_try; then
30788     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
30789 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
30790    { (exit 1); exit 1; }; }
30791   else
30792     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30793   fi
30794 done
30795
30796 # For the awk script, D is an array of macro values keyed by name,
30797 # likewise P contains macro parameters if any.  Preserve backslash
30798 # newline sequences.
30799
30800 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30801 sed -n '
30802 s/.\{148\}/&'"$ac_delim"'/g
30803 t rset
30804 :rset
30805 s/^[     ]*#[    ]*define[       ][      ]*/ /
30806 t def
30807 d
30808 :def
30809 s/\\$//
30810 t bsnl
30811 s/["\\]/\\&/g
30812 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30813 D["\1"]=" \3"/p
30814 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
30815 d
30816 :bsnl
30817 s/["\\]/\\&/g
30818 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30819 D["\1"]=" \3\\\\\\n"\\/p
30820 t cont
30821 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30822 t cont
30823 d
30824 :cont
30825 n
30826 s/.\{148\}/&'"$ac_delim"'/g
30827 t clear
30828 :clear
30829 s/\\$//
30830 t bsnlc
30831 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30832 d
30833 :bsnlc
30834 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30835 b cont
30836 ' <confdefs.h | sed '
30837 s/'"$ac_delim"'/"\\\
30838 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30839
30840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30841   for (key in D) D_is_set[key] = 1
30842   FS = "\a"
30843 }
30844 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30845   line = \$ 0
30846   split(line, arg, " ")
30847   if (arg[1] == "#") {
30848     defundef = arg[2]
30849     mac1 = arg[3]
30850   } else {
30851     defundef = substr(arg[1], 2)
30852     mac1 = arg[2]
30853   }
30854   split(mac1, mac2, "(") #)
30855   macro = mac2[1]
30856   prefix = substr(line, 1, index(line, defundef) - 1)
30857   if (D_is_set[macro]) {
30858     # Preserve the white space surrounding the "#".
30859     print prefix "define", macro P[macro] D[macro]
30860     next
30861   } else {
30862     # Replace #undef with comments.  This is necessary, for example,
30863     # in the case of _POSIX_SOURCE, which is predefined and required
30864     # on some systems where configure will not decide to define it.
30865     if (defundef == "undef") {
30866       print "/*", prefix defundef, macro, "*/"
30867       next
30868     }
30869   }
30870 }
30871 { print }
30872 _ACAWK
30873 _ACEOF
30874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30875   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
30876 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
30877    { (exit 1); exit 1; }; }
30878 fi # test -n "$CONFIG_HEADERS"
30879
30880
30881 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
30882 shift
30883 for ac_tag
30884 do
30885   case $ac_tag in
30886   :[FHLC]) ac_mode=$ac_tag; continue;;
30887   esac
30888   case $ac_mode$ac_tag in
30889   :[FHL]*:*);;
30890   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
30891 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
30892    { (exit 1); exit 1; }; };;
30893   :[FH]-) ac_tag=-:-;;
30894   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30895   esac
30896   ac_save_IFS=$IFS
30897   IFS=:
30898   set x $ac_tag
30899   IFS=$ac_save_IFS
30900   shift
30901   ac_file=$1
30902   shift
30903
30904   case $ac_mode in
30905   :L) ac_source=$1;;
30906   :[FH])
30907     ac_file_inputs=
30908     for ac_f
30909     do
30910       case $ac_f in
30911       -) ac_f="$tmp/stdin";;
30912       *) # Look for the file first in the build tree, then in the source tree
30913          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30914          # because $ac_f cannot contain `:'.
30915          test -f "$ac_f" ||
30916            case $ac_f in
30917            [\\/$]*) false;;
30918            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30919            esac ||
30920            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30921 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30922    { (exit 1); exit 1; }; };;
30923       esac
30924       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30925       ac_file_inputs="$ac_file_inputs '$ac_f'"
30926     done
30927
30928     # Let's still pretend it is `configure' which instantiates (i.e., don't
30929     # use $as_me), people would be surprised to read:
30930     #    /* config.h.  Generated by config.status.  */
30931     configure_input='Generated from '`
30932           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30933         `' by configure.'
30934     if test x"$ac_file" != x-; then
30935       configure_input="$ac_file.  $configure_input"
30936       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
30937 $as_echo "$as_me: creating $ac_file" >&6;}
30938     fi
30939     # Neutralize special characters interpreted by sed in replacement strings.
30940     case $configure_input in #(
30941     *\&* | *\|* | *\\* )
30942        ac_sed_conf_input=`$as_echo "$configure_input" |
30943        sed 's/[\\\\&|]/\\\\&/g'`;; #(
30944     *) ac_sed_conf_input=$configure_input;;
30945     esac
30946
30947     case $ac_tag in
30948     *:-:* | *:-) cat >"$tmp/stdin" \
30949       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30950 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30951    { (exit 1); exit 1; }; } ;;
30952     esac
30953     ;;
30954   esac
30955
30956   ac_dir=`$as_dirname -- "$ac_file" ||
30957 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30958          X"$ac_file" : 'X\(//\)[^/]' \| \
30959          X"$ac_file" : 'X\(//\)$' \| \
30960          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30961 $as_echo X"$ac_file" |
30962     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30963             s//\1/
30964             q
30965           }
30966           /^X\(\/\/\)[^/].*/{
30967             s//\1/
30968             q
30969           }
30970           /^X\(\/\/\)$/{
30971             s//\1/
30972             q
30973           }
30974           /^X\(\/\).*/{
30975             s//\1/
30976             q
30977           }
30978           s/.*/./; q'`
30979   { as_dir="$ac_dir"
30980   case $as_dir in #(
30981   -*) as_dir=./$as_dir;;
30982   esac
30983   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30984     as_dirs=
30985     while :; do
30986       case $as_dir in #(
30987       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30988       *) as_qdir=$as_dir;;
30989       esac
30990       as_dirs="'$as_qdir' $as_dirs"
30991       as_dir=`$as_dirname -- "$as_dir" ||
30992 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30993          X"$as_dir" : 'X\(//\)[^/]' \| \
30994          X"$as_dir" : 'X\(//\)$' \| \
30995          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30996 $as_echo X"$as_dir" |
30997     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30998             s//\1/
30999             q
31000           }
31001           /^X\(\/\/\)[^/].*/{
31002             s//\1/
31003             q
31004           }
31005           /^X\(\/\/\)$/{
31006             s//\1/
31007             q
31008           }
31009           /^X\(\/\).*/{
31010             s//\1/
31011             q
31012           }
31013           s/.*/./; q'`
31014       test -d "$as_dir" && break
31015     done
31016     test -z "$as_dirs" || eval "mkdir $as_dirs"
31017   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31018 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
31019    { (exit 1); exit 1; }; }; }
31020   ac_builddir=.
31021
31022 case "$ac_dir" in
31023 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31024 *)
31025   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31026   # A ".." for each directory in $ac_dir_suffix.
31027   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31028   case $ac_top_builddir_sub in
31029   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31030   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31031   esac ;;
31032 esac
31033 ac_abs_top_builddir=$ac_pwd
31034 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31035 # for backward compatibility:
31036 ac_top_builddir=$ac_top_build_prefix
31037
31038 case $srcdir in
31039   .)  # We are building in place.
31040     ac_srcdir=.
31041     ac_top_srcdir=$ac_top_builddir_sub
31042     ac_abs_top_srcdir=$ac_pwd ;;
31043   [\\/]* | ?:[\\/]* )  # Absolute name.
31044     ac_srcdir=$srcdir$ac_dir_suffix;
31045     ac_top_srcdir=$srcdir
31046     ac_abs_top_srcdir=$srcdir ;;
31047   *) # Relative name.
31048     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31049     ac_top_srcdir=$ac_top_build_prefix$srcdir
31050     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31051 esac
31052 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31053
31054
31055   case $ac_mode in
31056   :F)
31057   #
31058   # CONFIG_FILE
31059   #
31060
31061   case $INSTALL in
31062   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31063   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31064   esac
31065   ac_MKDIR_P=$MKDIR_P
31066   case $MKDIR_P in
31067   [\\/$]* | ?:[\\/]* ) ;;
31068   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31069   esac
31070 _ACEOF
31071
31072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31073 # If the template does not know about datarootdir, expand it.
31074 # FIXME: This hack should be removed a few years after 2.60.
31075 ac_datarootdir_hack=; ac_datarootdir_seen=
31076
31077 ac_sed_dataroot='
31078 /datarootdir/ {
31079   p
31080   q
31081 }
31082 /@datadir@/p
31083 /@docdir@/p
31084 /@infodir@/p
31085 /@localedir@/p
31086 /@mandir@/p
31087 '
31088 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31089 *datarootdir*) ac_datarootdir_seen=yes;;
31090 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31091   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31092 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31093 _ACEOF
31094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31095   ac_datarootdir_hack='
31096   s&@datadir@&$datadir&g
31097   s&@docdir@&$docdir&g
31098   s&@infodir@&$infodir&g
31099   s&@localedir@&$localedir&g
31100   s&@mandir@&$mandir&g
31101     s&\\\${datarootdir}&$datarootdir&g' ;;
31102 esac
31103 _ACEOF
31104
31105 # Neutralize VPATH when `$srcdir' = `.'.
31106 # Shell code in configure.ac might set extrasub.
31107 # FIXME: do we really want to maintain this feature?
31108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31109 ac_sed_extra="$ac_vpsub
31110 $extrasub
31111 _ACEOF
31112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31113 :t
31114 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31115 s|@configure_input@|$ac_sed_conf_input|;t t
31116 s&@top_builddir@&$ac_top_builddir_sub&;t t
31117 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31118 s&@srcdir@&$ac_srcdir&;t t
31119 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31120 s&@top_srcdir@&$ac_top_srcdir&;t t
31121 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31122 s&@builddir@&$ac_builddir&;t t
31123 s&@abs_builddir@&$ac_abs_builddir&;t t
31124 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31125 s&@INSTALL@&$ac_INSTALL&;t t
31126 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31127 $ac_datarootdir_hack
31128 "
31129 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
31130   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31131 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31132    { (exit 1); exit 1; }; }
31133
31134 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31135   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31136   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31137   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31138 which seems to be undefined.  Please make sure it is defined." >&5
31139 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31140 which seems to be undefined.  Please make sure it is defined." >&2;}
31141
31142   rm -f "$tmp/stdin"
31143   case $ac_file in
31144   -) cat "$tmp/out" && rm -f "$tmp/out";;
31145   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31146   esac \
31147   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31148 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31149    { (exit 1); exit 1; }; }
31150  ;;
31151   :H)
31152   #
31153   # CONFIG_HEADER
31154   #
31155   if test x"$ac_file" != x-; then
31156     {
31157       $as_echo "/* $configure_input  */" \
31158       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31159     } >"$tmp/config.h" \
31160       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31161 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31162    { (exit 1); exit 1; }; }
31163     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31164       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31165 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31166     else
31167       rm -f "$ac_file"
31168       mv "$tmp/config.h" "$ac_file" \
31169         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31170 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31171    { (exit 1); exit 1; }; }
31172     fi
31173   else
31174     $as_echo "/* $configure_input  */" \
31175       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31176       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31177 $as_echo "$as_me: error: could not create -" >&2;}
31178    { (exit 1); exit 1; }; }
31179   fi
31180  ;;
31181   :L)
31182   #
31183   # CONFIG_LINK
31184   #
31185
31186   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31187     :
31188   else
31189     # Prefer the file from the source tree if names are identical.
31190     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31191       ac_source=$srcdir/$ac_source
31192     fi
31193
31194     { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
31195 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31196
31197     if test ! -r "$ac_source"; then
31198       { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
31199 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
31200    { (exit 1); exit 1; }; }
31201     fi
31202     rm -f "$ac_file"
31203
31204     # Try a relative symlink, then a hard link, then a copy.
31205     case $srcdir in
31206     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31207         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31208     esac
31209     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31210       ln "$ac_source" "$ac_file" 2>/dev/null ||
31211       cp -p "$ac_source" "$ac_file" ||
31212       { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
31213 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
31214    { (exit 1); exit 1; }; }
31215   fi
31216  ;;
31217   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31218 $as_echo "$as_me: executing $ac_file commands" >&6;}
31219  ;;
31220   esac
31221
31222
31223   case $ac_file$ac_mode in
31224     "check_win32_symlinks":C)
31225 # Links sometimes fail undetected on Mingw -
31226 # so here we detect it and warn the user
31227 for FILE in $CONFIG_LINKS
31228  do
31229         # test -e works for symlinks in the MinGW console
31230         test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
31231 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
31232  done
31233  ;;
31234     "src/include/pg_config.h":H)
31235 # Update timestamp for pg_config.h (see Makefile.global)
31236 echo >src/include/stamp-h
31237  ;;
31238     "src/include/pg_config_ext.h":H)
31239 # Update timestamp for pg_config_ext.h (see Makefile.global)
31240 echo >src/include/stamp-ext-h
31241  ;;
31242     "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
31243
31244   esac
31245 done # for ac_tag
31246
31247
31248 { (exit 0); exit 0; }
31249 _ACEOF
31250 chmod +x $CONFIG_STATUS
31251 ac_clean_files=$ac_clean_files_save
31252
31253 test $ac_write_fail = 0 ||
31254   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
31255 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
31256    { (exit 1); exit 1; }; }
31257
31258
31259 # configure is writing to config.log, and then calls config.status.
31260 # config.status does its own redirection, appending to config.log.
31261 # Unfortunately, on DOS this fails, as config.log is still kept open
31262 # by configure, so config.status won't be able to write to it; its
31263 # output is simply discarded.  So we exec the FD to /dev/null,
31264 # effectively closing config.log, so it can be properly (re)opened and
31265 # appended to by config.status.  When coming back to configure, we
31266 # need to make the FD available again.
31267 if test "$no_create" != yes; then
31268   ac_cs_success=:
31269   ac_config_status_args=
31270   test "$silent" = yes &&
31271     ac_config_status_args="$ac_config_status_args --quiet"
31272   exec 5>/dev/null
31273   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31274   exec 5>>config.log
31275   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31276   # would make configure fail if this is the last instruction.
31277   $ac_cs_success || { (exit 1); exit 1; }
31278 fi
31279 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31280   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31281 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31282 fi
31283