]> granicus.if.org Git - postgresql/blob - configure
Tweak previous patch to ensure edata->filename always gets initialized.
[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.2devel.
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-2011, 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.2devel'
602 PACKAGE_STRING='PostgreSQL 9.2devel'
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 WINDRES
697 DLLWRAP
698 DLLTOOL
699 AR
700 STRIP_SHARED_LIB
701 STRIP_STATIC_LIB
702 STRIP
703 RANLIB
704 ld_R_works
705 with_gnu_ld
706 LD
707 LDFLAGS_SL
708 LDFLAGS_EX
709 ELF_SYS
710 EGREP
711 GREP
712 with_zlib
713 with_system_tzdata
714 with_libxslt
715 with_libxml
716 XML2_CONFIG
717 with_ossp_uuid
718 with_selinux
719 with_openssl
720 with_bonjour
721 with_ldap
722 with_pam
723 krb_srvtab
724 with_krb5
725 with_gssapi
726 with_python
727 with_perl
728 with_tcl
729 enable_thread_safety
730 INCLUDES
731 autodepend
732 TAS
733 GCC
734 CPP
735 SUN_STUDIO_CC
736 OBJEXT
737 EXEEXT
738 ac_ct_CC
739 CPPFLAGS
740 LDFLAGS
741 CFLAGS
742 CC
743 enable_dtrace
744 DTRACEFLAGS
745 DTRACE
746 enable_coverage
747 GENHTML
748 LCOV
749 GCOV
750 enable_profiling
751 enable_debug
752 enable_rpath
753 enable_shared
754 default_port
755 WANTED_LANGUAGES
756 enable_nls
757 PORTNAME
758 host_os
759 host_vendor
760 host_cpu
761 host
762 build_os
763 build_vendor
764 build_cpu
765 build
766 PG_MAJORVERSION
767 configure_args
768 target_alias
769 host_alias
770 build_alias
771 LIBS
772 ECHO_T
773 ECHO_N
774 ECHO_C
775 DEFS
776 mandir
777 localedir
778 libdir
779 psdir
780 pdfdir
781 dvidir
782 htmldir
783 infodir
784 docdir
785 oldincludedir
786 includedir
787 localstatedir
788 sharedstatedir
789 sysconfdir
790 datadir
791 datarootdir
792 libexecdir
793 sbindir
794 bindir
795 program_transform_name
796 prefix
797 exec_prefix
798 PACKAGE_BUGREPORT
799 PACKAGE_STRING
800 PACKAGE_VERSION
801 PACKAGE_TARNAME
802 PACKAGE_NAME
803 PATH_SEPARATOR
804 SHELL'
805 ac_subst_files=''
806 ac_user_opts='
807 enable_option_checking
808 with_template
809 with_includes
810 with_libraries
811 with_libs
812 enable_integer_datetimes
813 enable_nls
814 with_pgport
815 enable_shared
816 enable_rpath
817 enable_spinlocks
818 enable_debug
819 enable_profiling
820 enable_coverage
821 enable_dtrace
822 with_blocksize
823 with_segsize
824 with_wal_blocksize
825 with_wal_segsize
826 with_CC
827 enable_depend
828 enable_cassert
829 enable_thread_safety
830 with_tcl
831 with_tclconfig
832 with_perl
833 with_python
834 with_gssapi
835 with_krb5
836 with_krb_srvnam
837 with_pam
838 with_ldap
839 with_bonjour
840 with_openssl
841 with_selinux
842 with_readline
843 with_libedit_preferred
844 with_ossp_uuid
845 with_libxml
846 with_libxslt
847 with_system_tzdata
848 with_zlib
849 with_gnu_ld
850 enable_largefile
851 enable_float4_byval
852 enable_float8_byval
853 '
854       ac_precious_vars='build_alias
855 host_alias
856 target_alias
857 CC
858 CFLAGS
859 LDFLAGS
860 LIBS
861 CPPFLAGS
862 CPP
863 LDFLAGS_EX
864 LDFLAGS_SL
865 DOCBOOKSTYLE'
866
867
868 # Initialize some variables set by options.
869 ac_init_help=
870 ac_init_version=false
871 ac_unrecognized_opts=
872 ac_unrecognized_sep=
873 # The variables have the same names as the options, with
874 # dashes changed to underlines.
875 cache_file=/dev/null
876 exec_prefix=NONE
877 no_create=
878 no_recursion=
879 prefix=NONE
880 program_prefix=NONE
881 program_suffix=NONE
882 program_transform_name=s,x,x,
883 silent=
884 site=
885 srcdir=
886 verbose=
887 x_includes=NONE
888 x_libraries=NONE
889
890 # Installation directory options.
891 # These are left unexpanded so users can "make install exec_prefix=/foo"
892 # and all the variables that are supposed to be based on exec_prefix
893 # by default will actually change.
894 # Use braces instead of parens because sh, perl, etc. also accept them.
895 # (The list follows the same order as the GNU Coding Standards.)
896 bindir='${exec_prefix}/bin'
897 sbindir='${exec_prefix}/sbin'
898 libexecdir='${exec_prefix}/libexec'
899 datarootdir='${prefix}/share'
900 datadir='${datarootdir}'
901 sysconfdir='${prefix}/etc'
902 sharedstatedir='${prefix}/com'
903 localstatedir='${prefix}/var'
904 includedir='${prefix}/include'
905 oldincludedir='/usr/include'
906 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
907 infodir='${datarootdir}/info'
908 htmldir='${docdir}'
909 dvidir='${docdir}'
910 pdfdir='${docdir}'
911 psdir='${docdir}'
912 libdir='${exec_prefix}/lib'
913 localedir='${datarootdir}/locale'
914 mandir='${datarootdir}/man'
915
916 ac_prev=
917 ac_dashdash=
918 for ac_option
919 do
920   # If the previous option needs an argument, assign it.
921   if test -n "$ac_prev"; then
922     eval $ac_prev=\$ac_option
923     ac_prev=
924     continue
925   fi
926
927   case $ac_option in
928   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
929   *)    ac_optarg=yes ;;
930   esac
931
932   # Accept the important Cygnus configure options, so we can diagnose typos.
933
934   case $ac_dashdash$ac_option in
935   --)
936     ac_dashdash=yes ;;
937
938   -bindir | --bindir | --bindi | --bind | --bin | --bi)
939     ac_prev=bindir ;;
940   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
941     bindir=$ac_optarg ;;
942
943   -build | --build | --buil | --bui | --bu)
944     ac_prev=build_alias ;;
945   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
946     build_alias=$ac_optarg ;;
947
948   -cache-file | --cache-file | --cache-fil | --cache-fi \
949   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
950     ac_prev=cache_file ;;
951   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
952   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
953     cache_file=$ac_optarg ;;
954
955   --config-cache | -C)
956     cache_file=config.cache ;;
957
958   -datadir | --datadir | --datadi | --datad)
959     ac_prev=datadir ;;
960   -datadir=* | --datadir=* | --datadi=* | --datad=*)
961     datadir=$ac_optarg ;;
962
963   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
964   | --dataroo | --dataro | --datar)
965     ac_prev=datarootdir ;;
966   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
967   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
968     datarootdir=$ac_optarg ;;
969
970   -disable-* | --disable-*)
971     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
972     # Reject names that are not valid shell variable names.
973     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
975    { (exit 1); exit 1; }; }
976     ac_useropt_orig=$ac_useropt
977     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978     case $ac_user_opts in
979       *"
980 "enable_$ac_useropt"
981 "*) ;;
982       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
983          ac_unrecognized_sep=', ';;
984     esac
985     eval enable_$ac_useropt=no ;;
986
987   -docdir | --docdir | --docdi | --doc | --do)
988     ac_prev=docdir ;;
989   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
990     docdir=$ac_optarg ;;
991
992   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
993     ac_prev=dvidir ;;
994   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
995     dvidir=$ac_optarg ;;
996
997   -enable-* | --enable-*)
998     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
999     # Reject names that are not valid shell variable names.
1000     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1002    { (exit 1); exit 1; }; }
1003     ac_useropt_orig=$ac_useropt
1004     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005     case $ac_user_opts in
1006       *"
1007 "enable_$ac_useropt"
1008 "*) ;;
1009       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1010          ac_unrecognized_sep=', ';;
1011     esac
1012     eval enable_$ac_useropt=\$ac_optarg ;;
1013
1014   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1015   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1016   | --exec | --exe | --ex)
1017     ac_prev=exec_prefix ;;
1018   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1019   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1020   | --exec=* | --exe=* | --ex=*)
1021     exec_prefix=$ac_optarg ;;
1022
1023   -gas | --gas | --ga | --g)
1024     # Obsolete; use --with-gas.
1025     with_gas=yes ;;
1026
1027   -help | --help | --hel | --he | -h)
1028     ac_init_help=long ;;
1029   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1030     ac_init_help=recursive ;;
1031   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1032     ac_init_help=short ;;
1033
1034   -host | --host | --hos | --ho)
1035     ac_prev=host_alias ;;
1036   -host=* | --host=* | --hos=* | --ho=*)
1037     host_alias=$ac_optarg ;;
1038
1039   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1040     ac_prev=htmldir ;;
1041   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1042   | --ht=*)
1043     htmldir=$ac_optarg ;;
1044
1045   -includedir | --includedir | --includedi | --included | --include \
1046   | --includ | --inclu | --incl | --inc)
1047     ac_prev=includedir ;;
1048   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1049   | --includ=* | --inclu=* | --incl=* | --inc=*)
1050     includedir=$ac_optarg ;;
1051
1052   -infodir | --infodir | --infodi | --infod | --info | --inf)
1053     ac_prev=infodir ;;
1054   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1055     infodir=$ac_optarg ;;
1056
1057   -libdir | --libdir | --libdi | --libd)
1058     ac_prev=libdir ;;
1059   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1060     libdir=$ac_optarg ;;
1061
1062   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1063   | --libexe | --libex | --libe)
1064     ac_prev=libexecdir ;;
1065   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1066   | --libexe=* | --libex=* | --libe=*)
1067     libexecdir=$ac_optarg ;;
1068
1069   -localedir | --localedir | --localedi | --localed | --locale)
1070     ac_prev=localedir ;;
1071   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1072     localedir=$ac_optarg ;;
1073
1074   -localstatedir | --localstatedir | --localstatedi | --localstated \
1075   | --localstate | --localstat | --localsta | --localst | --locals)
1076     ac_prev=localstatedir ;;
1077   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1078   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1079     localstatedir=$ac_optarg ;;
1080
1081   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1082     ac_prev=mandir ;;
1083   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1084     mandir=$ac_optarg ;;
1085
1086   -nfp | --nfp | --nf)
1087     # Obsolete; use --without-fp.
1088     with_fp=no ;;
1089
1090   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1091   | --no-cr | --no-c | -n)
1092     no_create=yes ;;
1093
1094   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1095   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1096     no_recursion=yes ;;
1097
1098   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1099   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1100   | --oldin | --oldi | --old | --ol | --o)
1101     ac_prev=oldincludedir ;;
1102   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1103   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1104   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1105     oldincludedir=$ac_optarg ;;
1106
1107   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1108     ac_prev=prefix ;;
1109   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1110     prefix=$ac_optarg ;;
1111
1112   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1113   | --program-pre | --program-pr | --program-p)
1114     ac_prev=program_prefix ;;
1115   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1116   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1117     program_prefix=$ac_optarg ;;
1118
1119   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1120   | --program-suf | --program-su | --program-s)
1121     ac_prev=program_suffix ;;
1122   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1123   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1124     program_suffix=$ac_optarg ;;
1125
1126   -program-transform-name | --program-transform-name \
1127   | --program-transform-nam | --program-transform-na \
1128   | --program-transform-n | --program-transform- \
1129   | --program-transform | --program-transfor \
1130   | --program-transfo | --program-transf \
1131   | --program-trans | --program-tran \
1132   | --progr-tra | --program-tr | --program-t)
1133     ac_prev=program_transform_name ;;
1134   -program-transform-name=* | --program-transform-name=* \
1135   | --program-transform-nam=* | --program-transform-na=* \
1136   | --program-transform-n=* | --program-transform-=* \
1137   | --program-transform=* | --program-transfor=* \
1138   | --program-transfo=* | --program-transf=* \
1139   | --program-trans=* | --program-tran=* \
1140   | --progr-tra=* | --program-tr=* | --program-t=*)
1141     program_transform_name=$ac_optarg ;;
1142
1143   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1144     ac_prev=pdfdir ;;
1145   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1146     pdfdir=$ac_optarg ;;
1147
1148   -psdir | --psdir | --psdi | --psd | --ps)
1149     ac_prev=psdir ;;
1150   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1151     psdir=$ac_optarg ;;
1152
1153   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1154   | -silent | --silent | --silen | --sile | --sil)
1155     silent=yes ;;
1156
1157   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1158     ac_prev=sbindir ;;
1159   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1160   | --sbi=* | --sb=*)
1161     sbindir=$ac_optarg ;;
1162
1163   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1164   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1165   | --sharedst | --shareds | --shared | --share | --shar \
1166   | --sha | --sh)
1167     ac_prev=sharedstatedir ;;
1168   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1169   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1170   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1171   | --sha=* | --sh=*)
1172     sharedstatedir=$ac_optarg ;;
1173
1174   -site | --site | --sit)
1175     ac_prev=site ;;
1176   -site=* | --site=* | --sit=*)
1177     site=$ac_optarg ;;
1178
1179   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1180     ac_prev=srcdir ;;
1181   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1182     srcdir=$ac_optarg ;;
1183
1184   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1185   | --syscon | --sysco | --sysc | --sys | --sy)
1186     ac_prev=sysconfdir ;;
1187   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1188   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1189     sysconfdir=$ac_optarg ;;
1190
1191   -target | --target | --targe | --targ | --tar | --ta | --t)
1192     ac_prev=target_alias ;;
1193   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1194     target_alias=$ac_optarg ;;
1195
1196   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1197     verbose=yes ;;
1198
1199   -version | --version | --versio | --versi | --vers | -V)
1200     ac_init_version=: ;;
1201
1202   -with-* | --with-*)
1203     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1204     # Reject names that are not valid shell variable names.
1205     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1206       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1207    { (exit 1); exit 1; }; }
1208     ac_useropt_orig=$ac_useropt
1209     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210     case $ac_user_opts in
1211       *"
1212 "with_$ac_useropt"
1213 "*) ;;
1214       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1215          ac_unrecognized_sep=', ';;
1216     esac
1217     eval with_$ac_useropt=\$ac_optarg ;;
1218
1219   -without-* | --without-*)
1220     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221     # Reject names that are not valid shell variable names.
1222     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1224    { (exit 1); exit 1; }; }
1225     ac_useropt_orig=$ac_useropt
1226     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1227     case $ac_user_opts in
1228       *"
1229 "with_$ac_useropt"
1230 "*) ;;
1231       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1232          ac_unrecognized_sep=', ';;
1233     esac
1234     eval with_$ac_useropt=no ;;
1235
1236   --x)
1237     # Obsolete; use --with-x.
1238     with_x=yes ;;
1239
1240   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241   | --x-incl | --x-inc | --x-in | --x-i)
1242     ac_prev=x_includes ;;
1243   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245     x_includes=$ac_optarg ;;
1246
1247   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249     ac_prev=x_libraries ;;
1250   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252     x_libraries=$ac_optarg ;;
1253
1254   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1255 Try \`$0 --help' for more information." >&2
1256    { (exit 1); exit 1; }; }
1257     ;;
1258
1259   *=*)
1260     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261     # Reject names that are not valid shell variable names.
1262     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1263       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1264    { (exit 1); exit 1; }; }
1265     eval $ac_envvar=\$ac_optarg
1266     export $ac_envvar ;;
1267
1268   *)
1269     # FIXME: should be removed in autoconf 3.0.
1270     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1274     ;;
1275
1276   esac
1277 done
1278
1279 if test -n "$ac_prev"; then
1280   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1282    { (exit 1); exit 1; }; }
1283 fi
1284
1285 if test -n "$ac_unrecognized_opts"; then
1286   case $enable_option_checking in
1287     no) ;;
1288     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1289    { (exit 1); exit 1; }; } ;;
1290     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1291   esac
1292 fi
1293
1294 # Check all directory arguments for consistency.
1295 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296                 datadir sysconfdir sharedstatedir localstatedir includedir \
1297                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298                 libdir localedir mandir
1299 do
1300   eval ac_val=\$$ac_var
1301   # Remove trailing slashes.
1302   case $ac_val in
1303     */ )
1304       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1305       eval $ac_var=\$ac_val;;
1306   esac
1307   # Be sure to have absolute directory names.
1308   case $ac_val in
1309     [\\/$]* | ?:[\\/]* )  continue;;
1310     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1311   esac
1312   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1313    { (exit 1); exit 1; }; }
1314 done
1315
1316 # There might be people who depend on the old broken behavior: `$host'
1317 # used to hold the argument of --host etc.
1318 # FIXME: To remove some day.
1319 build=$build_alias
1320 host=$host_alias
1321 target=$target_alias
1322
1323 # FIXME: To remove some day.
1324 if test "x$host_alias" != x; then
1325   if test "x$build_alias" = x; then
1326     cross_compiling=maybe
1327     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1328     If a cross compiler is detected then cross compile mode will be used." >&2
1329   elif test "x$build_alias" != "x$host_alias"; then
1330     cross_compiling=yes
1331   fi
1332 fi
1333
1334 ac_tool_prefix=
1335 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1336
1337 test "$silent" = yes && exec 6>/dev/null
1338
1339
1340 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1341 ac_ls_di=`ls -di .` &&
1342 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1343   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1344    { (exit 1); exit 1; }; }
1345 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1346   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1347    { (exit 1); exit 1; }; }
1348
1349
1350 # Find the source files, if location was not specified.
1351 if test -z "$srcdir"; then
1352   ac_srcdir_defaulted=yes
1353   # Try the directory containing this script, then the parent directory.
1354   ac_confdir=`$as_dirname -- "$as_myself" ||
1355 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1356          X"$as_myself" : 'X\(//\)[^/]' \| \
1357          X"$as_myself" : 'X\(//\)$' \| \
1358          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1359 $as_echo X"$as_myself" |
1360     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1361             s//\1/
1362             q
1363           }
1364           /^X\(\/\/\)[^/].*/{
1365             s//\1/
1366             q
1367           }
1368           /^X\(\/\/\)$/{
1369             s//\1/
1370             q
1371           }
1372           /^X\(\/\).*/{
1373             s//\1/
1374             q
1375           }
1376           s/.*/./; q'`
1377   srcdir=$ac_confdir
1378   if test ! -r "$srcdir/$ac_unique_file"; then
1379     srcdir=..
1380   fi
1381 else
1382   ac_srcdir_defaulted=no
1383 fi
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1386   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1387    { (exit 1); exit 1; }; }
1388 fi
1389 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1390 ac_abs_confdir=`(
1391         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1392    { (exit 1); exit 1; }; }
1393         pwd)`
1394 # When building in place, set srcdir=.
1395 if test "$ac_abs_confdir" = "$ac_pwd"; then
1396   srcdir=.
1397 fi
1398 # Remove unnecessary trailing slashes from srcdir.
1399 # Double slashes in file names in object file debugging info
1400 # mess up M-x gdb in Emacs.
1401 case $srcdir in
1402 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403 esac
1404 for ac_var in $ac_precious_vars; do
1405   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1406   eval ac_env_${ac_var}_value=\$${ac_var}
1407   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1408   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1409 done
1410
1411 #
1412 # Report the --help message.
1413 #
1414 if test "$ac_init_help" = "long"; then
1415   # Omit some internal or obsolete options to make the list less imposing.
1416   # This message is too long to be a string in the A/UX 3.1 sh.
1417   cat <<_ACEOF
1418 \`configure' configures PostgreSQL 9.2devel to adapt to many kinds of systems.
1419
1420 Usage: $0 [OPTION]... [VAR=VALUE]...
1421
1422 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1423 VAR=VALUE.  See below for descriptions of some of the useful variables.
1424
1425 Defaults for the options are specified in brackets.
1426
1427 Configuration:
1428   -h, --help              display this help and exit
1429       --help=short        display options specific to this package
1430       --help=recursive    display the short help of all the included packages
1431   -V, --version           display version information and exit
1432   -q, --quiet, --silent   do not print \`checking...' messages
1433       --cache-file=FILE   cache test results in FILE [disabled]
1434   -C, --config-cache      alias for \`--cache-file=config.cache'
1435   -n, --no-create         do not create output files
1436       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1437
1438 Installation directories:
1439   --prefix=PREFIX         install architecture-independent files in PREFIX
1440                           [$ac_default_prefix]
1441   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1442                           [PREFIX]
1443
1444 By default, \`make install' will install all the files in
1445 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1446 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1447 for instance \`--prefix=\$HOME'.
1448
1449 For better control, use the options below.
1450
1451 Fine tuning of the installation directories:
1452   --bindir=DIR            user executables [EPREFIX/bin]
1453   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1454   --libexecdir=DIR        program executables [EPREFIX/libexec]
1455   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1456   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1457   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1458   --libdir=DIR            object code libraries [EPREFIX/lib]
1459   --includedir=DIR        C header files [PREFIX/include]
1460   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1461   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1462   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1463   --infodir=DIR           info documentation [DATAROOTDIR/info]
1464   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1465   --mandir=DIR            man documentation [DATAROOTDIR/man]
1466   --docdir=DIR            documentation root [DATAROOTDIR/doc/postgresql]
1467   --htmldir=DIR           html documentation [DOCDIR]
1468   --dvidir=DIR            dvi documentation [DOCDIR]
1469   --pdfdir=DIR            pdf documentation [DOCDIR]
1470   --psdir=DIR             ps documentation [DOCDIR]
1471 _ACEOF
1472
1473   cat <<\_ACEOF
1474
1475 System types:
1476   --build=BUILD     configure for building on BUILD [guessed]
1477   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1478 _ACEOF
1479 fi
1480
1481 if test -n "$ac_init_help"; then
1482   case $ac_init_help in
1483      short | recursive ) echo "Configuration of PostgreSQL 9.2devel:";;
1484    esac
1485   cat <<\_ACEOF
1486
1487 Optional Features:
1488   --disable-option-checking  ignore unrecognized --enable/--with options
1489   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1490   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1491   --disable-integer-datetimes
1492                           disable 64-bit integer date/time support
1493   --enable-nls[=LANGUAGES]
1494                           enable Native Language Support
1495   --disable-shared        do not build shared libraries
1496   --disable-rpath         do not embed shared library search path in
1497                           executables
1498   --disable-spinlocks     do not use spinlocks
1499   --enable-debug          build with debugging symbols (-g)
1500   --enable-profiling      build with profiling enabled
1501   --enable-coverage       build with coverage testing instrumentation
1502   --enable-dtrace         build with DTrace support
1503   --enable-depend         turn on automatic dependency tracking
1504   --enable-cassert        enable assertion checks (for debugging)
1505   --disable-thread-safety disable thread-safety in client libraries
1506   --disable-largefile     omit support for large files
1507   --disable-float4-byval  disable float4 passed by value
1508   --disable-float8-byval  disable float8 passed by value
1509
1510 Optional Packages:
1511   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1512   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1513   --with-template=NAME    override operating system template
1514   --with-includes=DIRS    look for additional header files in DIRS
1515   --with-libraries=DIRS   look for additional libraries in DIRS
1516   --with-libs=DIRS        alternative spelling of --with-libraries
1517   --with-pgport=PORTNUM   set default port number [5432]
1518   --with-blocksize=BLOCKSIZE
1519                           set table block size in kB [8]
1520   --with-segsize=SEGSIZE  set table segment size in GB [1]
1521   --with-wal-blocksize=BLOCKSIZE
1522                           set WAL block size in kB [8]
1523   --with-wal-segsize=SEGSIZE
1524                           set WAL segment size in MB [16]
1525   --with-CC=CMD           set compiler (deprecated)
1526   --with-tcl              build Tcl modules (PL/Tcl)
1527   --with-tclconfig=DIR    tclConfig.sh is in DIR
1528   --with-perl             build Perl modules (PL/Perl)
1529   --with-python           build Python modules (PL/Python)
1530   --with-gssapi           build with GSSAPI support
1531   --with-krb5             build with Kerberos 5 support
1532   --with-krb-srvnam=NAME  default service principal name in Kerberos
1533                           [postgres]
1534   --with-pam              build with PAM support
1535   --with-ldap             build with LDAP support
1536   --with-bonjour          build with Bonjour support
1537   --with-openssl          build with OpenSSL support
1538   --with-selinux          build with SELinux support
1539   --without-readline      do not use GNU Readline nor BSD Libedit for editing
1540   --with-libedit-preferred
1541                           prefer BSD Libedit over GNU Readline
1542   --with-ossp-uuid        build contrib/uuid-ossp, requires OSSP UUID library
1543   --with-libxml           build with XML support
1544   --with-libxslt          use XSLT support when building contrib/xml2
1545   --with-system-tzdata=DIR
1546                           use system time zone data in DIR
1547   --without-zlib          do not use Zlib
1548   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1549
1550 Some influential environment variables:
1551   CC          C compiler command
1552   CFLAGS      C compiler flags
1553   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1554               nonstandard directory <lib dir>
1555   LIBS        libraries to pass to the linker, e.g. -l<library>
1556   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1557               you have headers in a nonstandard directory <include dir>
1558   CPP         C preprocessor
1559   LDFLAGS_EX  extra linker flags for linking executables only
1560   LDFLAGS_SL  extra linker flags for linking shared libraries only
1561   DOCBOOKSTYLE
1562               location of DocBook stylesheets
1563
1564 Use these variables to override the choices made by `configure' or to help
1565 it to find libraries and programs with nonstandard names/locations.
1566
1567 Report bugs to <pgsql-bugs@postgresql.org>.
1568 _ACEOF
1569 ac_status=$?
1570 fi
1571
1572 if test "$ac_init_help" = "recursive"; then
1573   # If there are subdirs, report their specific --help.
1574   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1575     test -d "$ac_dir" ||
1576       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1577       continue
1578     ac_builddir=.
1579
1580 case "$ac_dir" in
1581 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582 *)
1583   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1584   # A ".." for each directory in $ac_dir_suffix.
1585   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1586   case $ac_top_builddir_sub in
1587   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1589   esac ;;
1590 esac
1591 ac_abs_top_builddir=$ac_pwd
1592 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1593 # for backward compatibility:
1594 ac_top_builddir=$ac_top_build_prefix
1595
1596 case $srcdir in
1597   .)  # We are building in place.
1598     ac_srcdir=.
1599     ac_top_srcdir=$ac_top_builddir_sub
1600     ac_abs_top_srcdir=$ac_pwd ;;
1601   [\\/]* | ?:[\\/]* )  # Absolute name.
1602     ac_srcdir=$srcdir$ac_dir_suffix;
1603     ac_top_srcdir=$srcdir
1604     ac_abs_top_srcdir=$srcdir ;;
1605   *) # Relative name.
1606     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1607     ac_top_srcdir=$ac_top_build_prefix$srcdir
1608     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1609 esac
1610 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1611
1612     cd "$ac_dir" || { ac_status=$?; continue; }
1613     # Check for guested configure.
1614     if test -f "$ac_srcdir/configure.gnu"; then
1615       echo &&
1616       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1617     elif test -f "$ac_srcdir/configure"; then
1618       echo &&
1619       $SHELL "$ac_srcdir/configure" --help=recursive
1620     else
1621       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1622     fi || ac_status=$?
1623     cd "$ac_pwd" || { ac_status=$?; break; }
1624   done
1625 fi
1626
1627 test -n "$ac_init_help" && exit $ac_status
1628 if $ac_init_version; then
1629   cat <<\_ACEOF
1630 PostgreSQL configure 9.2devel
1631 generated by GNU Autoconf 2.63
1632
1633 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1634 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1635 This configure script is free software; the Free Software Foundation
1636 gives unlimited permission to copy, distribute and modify it.
1637
1638 Copyright (c) 1996-2011, PostgreSQL Global Development Group
1639 _ACEOF
1640   exit
1641 fi
1642 cat >config.log <<_ACEOF
1643 This file contains any messages produced by compilers while
1644 running configure, to aid debugging if configure makes a mistake.
1645
1646 It was created by PostgreSQL $as_me 9.2devel, which was
1647 generated by GNU Autoconf 2.63.  Invocation command line was
1648
1649   $ $0 $@
1650
1651 _ACEOF
1652 exec 5>>config.log
1653 {
1654 cat <<_ASUNAME
1655 ## --------- ##
1656 ## Platform. ##
1657 ## --------- ##
1658
1659 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1660 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1661 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1662 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1663 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1664
1665 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1666 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1667
1668 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1669 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1670 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1671 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1672 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1673 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1674 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1675
1676 _ASUNAME
1677
1678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679 for as_dir in $PATH
1680 do
1681   IFS=$as_save_IFS
1682   test -z "$as_dir" && as_dir=.
1683   $as_echo "PATH: $as_dir"
1684 done
1685 IFS=$as_save_IFS
1686
1687 } >&5
1688
1689 cat >&5 <<_ACEOF
1690
1691
1692 ## ----------- ##
1693 ## Core tests. ##
1694 ## ----------- ##
1695
1696 _ACEOF
1697
1698
1699 # Keep a trace of the command line.
1700 # Strip out --no-create and --no-recursion so they do not pile up.
1701 # Strip out --silent because we don't want to record it for future runs.
1702 # Also quote any args containing shell meta-characters.
1703 # Make two passes to allow for proper duplicate-argument suppression.
1704 ac_configure_args=
1705 ac_configure_args0=
1706 ac_configure_args1=
1707 ac_must_keep_next=false
1708 for ac_pass in 1 2
1709 do
1710   for ac_arg
1711   do
1712     case $ac_arg in
1713     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1714     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1715     | -silent | --silent | --silen | --sile | --sil)
1716       continue ;;
1717     *\'*)
1718       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1719     esac
1720     case $ac_pass in
1721     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1722     2)
1723       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1724       if test $ac_must_keep_next = true; then
1725         ac_must_keep_next=false # Got value, back to normal.
1726       else
1727         case $ac_arg in
1728           *=* | --config-cache | -C | -disable-* | --disable-* \
1729           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1730           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1731           | -with-* | --with-* | -without-* | --without-* | --x)
1732             case "$ac_configure_args0 " in
1733               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1734             esac
1735             ;;
1736           -* ) ac_must_keep_next=true ;;
1737         esac
1738       fi
1739       ac_configure_args="$ac_configure_args '$ac_arg'"
1740       ;;
1741     esac
1742   done
1743 done
1744 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1745 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1746
1747 # When interrupted or exit'd, cleanup temporary files, and complete
1748 # config.log.  We remove comments because anyway the quotes in there
1749 # would cause problems or look ugly.
1750 # WARNING: Use '\'' to represent an apostrophe within the trap.
1751 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1752 trap 'exit_status=$?
1753   # Save into config.log some information that might help in debugging.
1754   {
1755     echo
1756
1757     cat <<\_ASBOX
1758 ## ---------------- ##
1759 ## Cache variables. ##
1760 ## ---------------- ##
1761 _ASBOX
1762     echo
1763     # The following way of writing the cache mishandles newlines in values,
1764 (
1765   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1766     eval ac_val=\$$ac_var
1767     case $ac_val in #(
1768     *${as_nl}*)
1769       case $ac_var in #(
1770       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1771 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1772       esac
1773       case $ac_var in #(
1774       _ | IFS | as_nl) ;; #(
1775       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1776       *) $as_unset $ac_var ;;
1777       esac ;;
1778     esac
1779   done
1780   (set) 2>&1 |
1781     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1782     *${as_nl}ac_space=\ *)
1783       sed -n \
1784         "s/'\''/'\''\\\\'\'''\''/g;
1785           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1786       ;; #(
1787     *)
1788       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1789       ;;
1790     esac |
1791     sort
1792 )
1793     echo
1794
1795     cat <<\_ASBOX
1796 ## ----------------- ##
1797 ## Output variables. ##
1798 ## ----------------- ##
1799 _ASBOX
1800     echo
1801     for ac_var in $ac_subst_vars
1802     do
1803       eval ac_val=\$$ac_var
1804       case $ac_val in
1805       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1806       esac
1807       $as_echo "$ac_var='\''$ac_val'\''"
1808     done | sort
1809     echo
1810
1811     if test -n "$ac_subst_files"; then
1812       cat <<\_ASBOX
1813 ## ------------------- ##
1814 ## File substitutions. ##
1815 ## ------------------- ##
1816 _ASBOX
1817       echo
1818       for ac_var in $ac_subst_files
1819       do
1820         eval ac_val=\$$ac_var
1821         case $ac_val in
1822         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1823         esac
1824         $as_echo "$ac_var='\''$ac_val'\''"
1825       done | sort
1826       echo
1827     fi
1828
1829     if test -s confdefs.h; then
1830       cat <<\_ASBOX
1831 ## ----------- ##
1832 ## confdefs.h. ##
1833 ## ----------- ##
1834 _ASBOX
1835       echo
1836       cat confdefs.h
1837       echo
1838     fi
1839     test "$ac_signal" != 0 &&
1840       $as_echo "$as_me: caught signal $ac_signal"
1841     $as_echo "$as_me: exit $exit_status"
1842   } >&5
1843   rm -f core *.core core.conftest.* &&
1844     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1845     exit $exit_status
1846 ' 0
1847 for ac_signal in 1 2 13 15; do
1848   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1849 done
1850 ac_signal=0
1851
1852 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1853 rm -f -r conftest* confdefs.h
1854
1855 # Predefined preprocessor variables.
1856
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_NAME "$PACKAGE_NAME"
1859 _ACEOF
1860
1861
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1864 _ACEOF
1865
1866
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1869 _ACEOF
1870
1871
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_STRING "$PACKAGE_STRING"
1874 _ACEOF
1875
1876
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1879 _ACEOF
1880
1881
1882 # Let the site file select an alternate cache file if it wants to.
1883 # Prefer an explicitly selected file to automatically selected ones.
1884 ac_site_file1=NONE
1885 ac_site_file2=NONE
1886 if test -n "$CONFIG_SITE"; then
1887   ac_site_file1=$CONFIG_SITE
1888 elif test "x$prefix" != xNONE; then
1889   ac_site_file1=$prefix/share/config.site
1890   ac_site_file2=$prefix/etc/config.site
1891 else
1892   ac_site_file1=$ac_default_prefix/share/config.site
1893   ac_site_file2=$ac_default_prefix/etc/config.site
1894 fi
1895 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1896 do
1897   test "x$ac_site_file" = xNONE && continue
1898   if test -r "$ac_site_file"; then
1899     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1900 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1901     sed 's/^/| /' "$ac_site_file" >&5
1902     . "$ac_site_file"
1903   fi
1904 done
1905
1906 if test -r "$cache_file"; then
1907   # Some versions of bash will fail to source /dev/null (special
1908   # files actually), so we avoid doing that.
1909   if test -f "$cache_file"; then
1910     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1911 $as_echo "$as_me: loading cache $cache_file" >&6;}
1912     case $cache_file in
1913       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1914       *)                      . "./$cache_file";;
1915     esac
1916   fi
1917 else
1918   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1919 $as_echo "$as_me: creating cache $cache_file" >&6;}
1920   >$cache_file
1921 fi
1922
1923 # Check that the precious variables saved in the cache have kept the same
1924 # value.
1925 ac_cache_corrupted=false
1926 for ac_var in $ac_precious_vars; do
1927   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1928   eval ac_new_set=\$ac_env_${ac_var}_set
1929   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1930   eval ac_new_val=\$ac_env_${ac_var}_value
1931   case $ac_old_set,$ac_new_set in
1932     set,)
1933       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1934 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1935       ac_cache_corrupted=: ;;
1936     ,set)
1937       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1938 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1939       ac_cache_corrupted=: ;;
1940     ,);;
1941     *)
1942       if test "x$ac_old_val" != "x$ac_new_val"; then
1943         # differences in whitespace do not lead to failure.
1944         ac_old_val_w=`echo x $ac_old_val`
1945         ac_new_val_w=`echo x $ac_new_val`
1946         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1947           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1948 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1949           ac_cache_corrupted=:
1950         else
1951           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1952 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1953           eval $ac_var=\$ac_old_val
1954         fi
1955         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1956 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1957         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1958 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1959       fi;;
1960   esac
1961   # Pass precious variables to config.status.
1962   if test "$ac_new_set" = set; then
1963     case $ac_new_val in
1964     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1965     *) ac_arg=$ac_var=$ac_new_val ;;
1966     esac
1967     case " $ac_configure_args " in
1968       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1969       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1970     esac
1971   fi
1972 done
1973 if $ac_cache_corrupted; then
1974   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1976   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1977 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1978   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1979 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1980    { (exit 1); exit 1; }; }
1981 fi
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007 ac_ext=c
2008 ac_cpp='$CPP $CPPFLAGS'
2009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2012
2013
2014
2015
2016
2017
2018 ac_aux_dir=
2019 for ac_dir in config "$srcdir"/config; do
2020   if test -f "$ac_dir/install-sh"; then
2021     ac_aux_dir=$ac_dir
2022     ac_install_sh="$ac_aux_dir/install-sh -c"
2023     break
2024   elif test -f "$ac_dir/install.sh"; then
2025     ac_aux_dir=$ac_dir
2026     ac_install_sh="$ac_aux_dir/install.sh -c"
2027     break
2028   elif test -f "$ac_dir/shtool"; then
2029     ac_aux_dir=$ac_dir
2030     ac_install_sh="$ac_aux_dir/shtool install -c"
2031     break
2032   fi
2033 done
2034 if test -z "$ac_aux_dir"; then
2035   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2036 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2037    { (exit 1); exit 1; }; }
2038 fi
2039
2040 # These three variables are undocumented and unsupported,
2041 # and are intended to be withdrawn in a future Autoconf release.
2042 # They can cause serious problems if a builder's source tree is in a directory
2043 # whose full name contains unusual characters.
2044 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2045 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2046 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2047
2048
2049
2050 configure_args=$ac_configure_args
2051
2052
2053
2054 cat >>confdefs.h <<_ACEOF
2055 #define PG_VERSION "$PACKAGE_VERSION"
2056 _ACEOF
2057
2058 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2059
2060
2061 cat >>confdefs.h <<_ACEOF
2062 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2063 _ACEOF
2064
2065
2066 # Make sure we can run config.sub.
2067 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2068   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2069 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2070    { (exit 1); exit 1; }; }
2071
2072 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2073 $as_echo_n "checking build system type... " >&6; }
2074 if test "${ac_cv_build+set}" = set; then
2075   $as_echo_n "(cached) " >&6
2076 else
2077   ac_build_alias=$build_alias
2078 test "x$ac_build_alias" = x &&
2079   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2080 test "x$ac_build_alias" = x &&
2081   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2082 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2083    { (exit 1); exit 1; }; }
2084 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2085   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2086 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2087    { (exit 1); exit 1; }; }
2088
2089 fi
2090 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2091 $as_echo "$ac_cv_build" >&6; }
2092 case $ac_cv_build in
2093 *-*-*) ;;
2094 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2095 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2096    { (exit 1); exit 1; }; };;
2097 esac
2098 build=$ac_cv_build
2099 ac_save_IFS=$IFS; IFS='-'
2100 set x $ac_cv_build
2101 shift
2102 build_cpu=$1
2103 build_vendor=$2
2104 shift; shift
2105 # Remember, the first character of IFS is used to create $*,
2106 # except with old shells:
2107 build_os=$*
2108 IFS=$ac_save_IFS
2109 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2110
2111
2112 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2113 $as_echo_n "checking host system type... " >&6; }
2114 if test "${ac_cv_host+set}" = set; then
2115   $as_echo_n "(cached) " >&6
2116 else
2117   if test "x$host_alias" = x; then
2118   ac_cv_host=$ac_cv_build
2119 else
2120   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2121     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2122 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2123    { (exit 1); exit 1; }; }
2124 fi
2125
2126 fi
2127 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2128 $as_echo "$ac_cv_host" >&6; }
2129 case $ac_cv_host in
2130 *-*-*) ;;
2131 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2132 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2133    { (exit 1); exit 1; }; };;
2134 esac
2135 host=$ac_cv_host
2136 ac_save_IFS=$IFS; IFS='-'
2137 set x $ac_cv_host
2138 shift
2139 host_cpu=$1
2140 host_vendor=$2
2141 shift; shift
2142 # Remember, the first character of IFS is used to create $*,
2143 # except with old shells:
2144 host_os=$*
2145 IFS=$ac_save_IFS
2146 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2147
2148
2149
2150 template=
2151 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2152 $as_echo_n "checking which template to use... " >&6; }
2153
2154
2155
2156
2157 # Check whether --with-template was given.
2158 if test "${with_template+set}" = set; then
2159   withval=$with_template;
2160   case $withval in
2161     yes)
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     no)
2167       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2168 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2169    { (exit 1); exit 1; }; }
2170       ;;
2171     *)
2172
2173   case $withval in
2174     list)   echo; ls "$srcdir/src/template"; exit;;
2175     *)      if test -f "$srcdir/src/template/$with_template" ; then
2176               template=$withval
2177             else
2178               { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2179 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2180    { (exit 1); exit 1; }; }
2181             fi;;
2182   esac
2183
2184       ;;
2185   esac
2186
2187 else
2188
2189 # --with-template not given
2190
2191 case $host_os in
2192      aix*) template=aix ;;
2193     bsdi*) template=bsdi ;;
2194   cygwin*) template=cygwin ;;
2195   darwin*) template=darwin ;;
2196 dragonfly*) template=netbsd ;;
2197     dgux*) template=dgux ;;
2198  freebsd*) template=freebsd ;;
2199     hpux*) template=hpux ;;
2200     irix*) template=irix ;;
2201  linux*|gnu*|k*bsd*-gnu)
2202            template=linux ;;
2203    mingw*) template=win32 ;;
2204   netbsd*) template=netbsd ;;
2205 nextstep*) template=nextstep ;;
2206  openbsd*) template=openbsd ;;
2207      osf*) template=osf ;;
2208      sco*) template=sco ;;
2209  solaris*) template=solaris ;;
2210    sunos*) template=sunos4 ;;
2211  sysv4.2*)
2212         case $host_vendor in
2213           univel) template=univel ;;
2214         esac ;;
2215    sysv4*) template=svr4 ;;
2216    sysv5*) template=unixware ;;
2217   ultrix*) template=ultrix4 ;;
2218 esac
2219
2220   if test x"$template" = x"" ; then
2221     { { $as_echo "$as_me:$LINENO: error:
2222 *******************************************************************
2223 PostgreSQL has apparently not been ported to your platform yet.
2224 To try a manual configuration, look into the src/template directory
2225 for a similar platform and use the '--with-template=' option.
2226
2227 Please also contact <pgsql-bugs@postgresql.org> to see about
2228 rectifying this.  Include the above 'checking host system type...'
2229 line.
2230 *******************************************************************
2231 " >&5
2232 $as_echo "$as_me: error:
2233 *******************************************************************
2234 PostgreSQL has apparently not been ported to your platform yet.
2235 To try a manual configuration, look into the src/template directory
2236 for a similar platform and use the '--with-template=' option.
2237
2238 Please also contact <pgsql-bugs@postgresql.org> to see about
2239 rectifying this.  Include the above 'checking host system type...'
2240 line.
2241 *******************************************************************
2242 " >&2;}
2243    { (exit 1); exit 1; }; }
2244   fi
2245
2246
2247 fi
2248
2249
2250
2251 { $as_echo "$as_me:$LINENO: result: $template" >&5
2252 $as_echo "$template" >&6; }
2253
2254 PORTNAME=$template
2255
2256
2257 # Initialize default assumption that we do not need separate assembly code
2258 # for TAS (test-and-set).  This can be overridden by the template file
2259 # when it's executed.
2260 need_tas=no
2261 tas_file=dummy.s
2262
2263
2264
2265 ##
2266 ## Command line options
2267 ##
2268
2269 #
2270 # Add non-standard directories to the include path
2271 #
2272
2273
2274
2275 # Check whether --with-includes was given.
2276 if test "${with_includes+set}" = set; then
2277   withval=$with_includes;
2278   case $withval in
2279     yes)
2280       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2281 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2282    { (exit 1); exit 1; }; }
2283       ;;
2284     no)
2285       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2286 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2287    { (exit 1); exit 1; }; }
2288       ;;
2289     *)
2290
2291       ;;
2292   esac
2293
2294 fi
2295
2296
2297
2298
2299 #
2300 # Add non-standard directories to the library search path
2301 #
2302
2303
2304
2305 # Check whether --with-libraries was given.
2306 if test "${with_libraries+set}" = set; then
2307   withval=$with_libraries;
2308   case $withval in
2309     yes)
2310       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2311 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2312    { (exit 1); exit 1; }; }
2313       ;;
2314     no)
2315       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2316 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2317    { (exit 1); exit 1; }; }
2318       ;;
2319     *)
2320       LIBRARY_DIRS=$withval
2321       ;;
2322   esac
2323
2324 fi
2325
2326
2327
2328
2329
2330
2331 # Check whether --with-libs was given.
2332 if test "${with_libs+set}" = set; then
2333   withval=$with_libs;
2334   case $withval in
2335     yes)
2336       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2337 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2338    { (exit 1); exit 1; }; }
2339       ;;
2340     no)
2341       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2342 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2343    { (exit 1); exit 1; }; }
2344       ;;
2345     *)
2346       LIBRARY_DIRS=$withval
2347       ;;
2348   esac
2349
2350 fi
2351
2352
2353
2354
2355 #
2356 # 64-bit integer date/time storage: enabled by default.
2357 #
2358 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2359 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2360
2361
2362 # Check whether --enable-integer-datetimes was given.
2363 if test "${enable_integer_datetimes+set}" = set; then
2364   enableval=$enable_integer_datetimes;
2365   case $enableval in
2366     yes)
2367
2368 cat >>confdefs.h <<\_ACEOF
2369 #define USE_INTEGER_DATETIMES 1
2370 _ACEOF
2371
2372       ;;
2373     no)
2374       :
2375       ;;
2376     *)
2377       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2378 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2379    { (exit 1); exit 1; }; }
2380       ;;
2381   esac
2382
2383 else
2384   enable_integer_datetimes=yes
2385
2386 cat >>confdefs.h <<\_ACEOF
2387 #define USE_INTEGER_DATETIMES 1
2388 _ACEOF
2389
2390 fi
2391
2392
2393 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2394 $as_echo "$enable_integer_datetimes" >&6; }
2395
2396
2397 #
2398 # NLS
2399 #
2400 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2401 $as_echo_n "checking whether NLS is wanted... " >&6; }
2402
2403
2404 # Check whether --enable-nls was given.
2405 if test "${enable_nls+set}" = set; then
2406   enableval=$enable_nls;
2407   case $enableval in
2408     yes)
2409       :
2410       ;;
2411     no)
2412       :
2413       ;;
2414     *)
2415       enable_nls=yes
2416 WANTED_LANGUAGES=$enableval
2417       ;;
2418   esac
2419
2420 else
2421   enable_nls=no
2422 fi
2423
2424
2425
2426 if test "$enable_nls" = yes; then
2427
2428 cat >>confdefs.h <<\_ACEOF
2429 #define ENABLE_NLS 1
2430 _ACEOF
2431
2432 fi
2433
2434 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2435 $as_echo "$enable_nls" >&6; }
2436
2437
2438
2439 #
2440 # Default port number (--with-pgport), default 5432
2441 #
2442 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2443 $as_echo_n "checking for default port number... " >&6; }
2444
2445
2446
2447 # Check whether --with-pgport was given.
2448 if test "${with_pgport+set}" = set; then
2449   withval=$with_pgport;
2450   case $withval in
2451     yes)
2452       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2453 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2454    { (exit 1); exit 1; }; }
2455       ;;
2456     no)
2457       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2458 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2459    { (exit 1); exit 1; }; }
2460       ;;
2461     *)
2462       default_port=$withval
2463       ;;
2464   esac
2465
2466 else
2467   default_port=5432
2468 fi
2469
2470
2471 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2472 $as_echo "$default_port" >&6; }
2473 # Need both of these because some places want an integer and some a string
2474
2475 cat >>confdefs.h <<_ACEOF
2476 #define DEF_PGPORT ${default_port}
2477 _ACEOF
2478
2479
2480 cat >>confdefs.h <<_ACEOF
2481 #define DEF_PGPORT_STR "${default_port}"
2482 _ACEOF
2483
2484
2485
2486 #
2487 # Option to disable shared libraries
2488 #
2489
2490
2491 # Check whether --enable-shared was given.
2492 if test "${enable_shared+set}" = set; then
2493   enableval=$enable_shared;
2494   case $enableval in
2495     yes)
2496       :
2497       ;;
2498     no)
2499       :
2500       ;;
2501     *)
2502       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2503 $as_echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2504    { (exit 1); exit 1; }; }
2505       ;;
2506   esac
2507
2508 else
2509   enable_shared=yes
2510
2511 fi
2512
2513
2514
2515
2516 #
2517 # '-rpath'-like feature can be disabled
2518 #
2519
2520
2521 # Check whether --enable-rpath was given.
2522 if test "${enable_rpath+set}" = set; then
2523   enableval=$enable_rpath;
2524   case $enableval in
2525     yes)
2526       :
2527       ;;
2528     no)
2529       :
2530       ;;
2531     *)
2532       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2533 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2534    { (exit 1); exit 1; }; }
2535       ;;
2536   esac
2537
2538 else
2539   enable_rpath=yes
2540
2541 fi
2542
2543
2544
2545
2546 #
2547 # Spinlocks
2548 #
2549
2550
2551 # Check whether --enable-spinlocks was given.
2552 if test "${enable_spinlocks+set}" = set; then
2553   enableval=$enable_spinlocks;
2554   case $enableval in
2555     yes)
2556       :
2557       ;;
2558     no)
2559       :
2560       ;;
2561     *)
2562       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2563 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2564    { (exit 1); exit 1; }; }
2565       ;;
2566   esac
2567
2568 else
2569   enable_spinlocks=yes
2570
2571 fi
2572
2573
2574
2575 #
2576 # --enable-debug adds -g to compiler flags
2577 #
2578
2579
2580 # Check whether --enable-debug was given.
2581 if test "${enable_debug+set}" = set; then
2582   enableval=$enable_debug;
2583   case $enableval in
2584     yes)
2585       :
2586       ;;
2587     no)
2588       :
2589       ;;
2590     *)
2591       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2592 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2593    { (exit 1); exit 1; }; }
2594       ;;
2595   esac
2596
2597 else
2598   enable_debug=no
2599
2600 fi
2601
2602
2603
2604
2605 #
2606 # --enable-profiling enables gcc profiling
2607 #
2608
2609
2610 # Check whether --enable-profiling was given.
2611 if test "${enable_profiling+set}" = set; then
2612   enableval=$enable_profiling;
2613   case $enableval in
2614     yes)
2615       :
2616       ;;
2617     no)
2618       :
2619       ;;
2620     *)
2621       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2622 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2623    { (exit 1); exit 1; }; }
2624       ;;
2625   esac
2626
2627 else
2628   enable_profiling=no
2629
2630 fi
2631
2632
2633
2634
2635 #
2636 # --enable-coverage enables generation of code coverage metrics with gcov
2637 #
2638
2639
2640 # Check whether --enable-coverage was given.
2641 if test "${enable_coverage+set}" = set; then
2642   enableval=$enable_coverage;
2643   case $enableval in
2644     yes)
2645       for ac_prog in gcov
2646 do
2647   # Extract the first word of "$ac_prog", so it can be a program name with args.
2648 set dummy $ac_prog; ac_word=$2
2649 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2650 $as_echo_n "checking for $ac_word... " >&6; }
2651 if test "${ac_cv_prog_GCOV+set}" = set; then
2652   $as_echo_n "(cached) " >&6
2653 else
2654   if test -n "$GCOV"; then
2655   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2656 else
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 for as_dir in $PATH
2659 do
2660   IFS=$as_save_IFS
2661   test -z "$as_dir" && as_dir=.
2662   for ac_exec_ext in '' $ac_executable_extensions; do
2663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2664     ac_cv_prog_GCOV="$ac_prog"
2665     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2666     break 2
2667   fi
2668 done
2669 done
2670 IFS=$as_save_IFS
2671
2672 fi
2673 fi
2674 GCOV=$ac_cv_prog_GCOV
2675 if test -n "$GCOV"; then
2676   { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2677 $as_echo "$GCOV" >&6; }
2678 else
2679   { $as_echo "$as_me:$LINENO: result: no" >&5
2680 $as_echo "no" >&6; }
2681 fi
2682
2683
2684   test -n "$GCOV" && break
2685 done
2686
2687 if test -z "$GCOV"; then
2688   { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2689 $as_echo "$as_me: error: gcov not found" >&2;}
2690    { (exit 1); exit 1; }; }
2691 fi
2692 for ac_prog in lcov
2693 do
2694   # Extract the first word of "$ac_prog", so it can be a program name with args.
2695 set dummy $ac_prog; ac_word=$2
2696 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2697 $as_echo_n "checking for $ac_word... " >&6; }
2698 if test "${ac_cv_prog_LCOV+set}" = set; then
2699   $as_echo_n "(cached) " >&6
2700 else
2701   if test -n "$LCOV"; then
2702   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2703 else
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 for as_dir in $PATH
2706 do
2707   IFS=$as_save_IFS
2708   test -z "$as_dir" && as_dir=.
2709   for ac_exec_ext in '' $ac_executable_extensions; do
2710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2711     ac_cv_prog_LCOV="$ac_prog"
2712     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2713     break 2
2714   fi
2715 done
2716 done
2717 IFS=$as_save_IFS
2718
2719 fi
2720 fi
2721 LCOV=$ac_cv_prog_LCOV
2722 if test -n "$LCOV"; then
2723   { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2724 $as_echo "$LCOV" >&6; }
2725 else
2726   { $as_echo "$as_me:$LINENO: result: no" >&5
2727 $as_echo "no" >&6; }
2728 fi
2729
2730
2731   test -n "$LCOV" && break
2732 done
2733
2734 if test -z "$LCOV"; then
2735   { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2736 $as_echo "$as_me: error: lcov not found" >&2;}
2737    { (exit 1); exit 1; }; }
2738 fi
2739 for ac_prog in genhtml
2740 do
2741   # Extract the first word of "$ac_prog", so it can be a program name with args.
2742 set dummy $ac_prog; ac_word=$2
2743 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2744 $as_echo_n "checking for $ac_word... " >&6; }
2745 if test "${ac_cv_prog_GENHTML+set}" = set; then
2746   $as_echo_n "(cached) " >&6
2747 else
2748   if test -n "$GENHTML"; then
2749   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2750 else
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 for as_dir in $PATH
2753 do
2754   IFS=$as_save_IFS
2755   test -z "$as_dir" && as_dir=.
2756   for ac_exec_ext in '' $ac_executable_extensions; do
2757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2758     ac_cv_prog_GENHTML="$ac_prog"
2759     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2760     break 2
2761   fi
2762 done
2763 done
2764 IFS=$as_save_IFS
2765
2766 fi
2767 fi
2768 GENHTML=$ac_cv_prog_GENHTML
2769 if test -n "$GENHTML"; then
2770   { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2771 $as_echo "$GENHTML" >&6; }
2772 else
2773   { $as_echo "$as_me:$LINENO: result: no" >&5
2774 $as_echo "no" >&6; }
2775 fi
2776
2777
2778   test -n "$GENHTML" && break
2779 done
2780
2781 if test -z "$GENHTML"; then
2782   { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2783 $as_echo "$as_me: error: genhtml not found" >&2;}
2784    { (exit 1); exit 1; }; }
2785 fi
2786       ;;
2787     no)
2788       :
2789       ;;
2790     *)
2791       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2792 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2793    { (exit 1); exit 1; }; }
2794       ;;
2795   esac
2796
2797 else
2798   enable_coverage=no
2799
2800 fi
2801
2802
2803
2804
2805 #
2806 # DTrace
2807 #
2808
2809
2810 # Check whether --enable-dtrace was given.
2811 if test "${enable_dtrace+set}" = set; then
2812   enableval=$enable_dtrace;
2813   case $enableval in
2814     yes)
2815
2816 cat >>confdefs.h <<\_ACEOF
2817 #define ENABLE_DTRACE 1
2818 _ACEOF
2819
2820 for ac_prog in dtrace
2821 do
2822   # Extract the first word of "$ac_prog", so it can be a program name with args.
2823 set dummy $ac_prog; ac_word=$2
2824 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2825 $as_echo_n "checking for $ac_word... " >&6; }
2826 if test "${ac_cv_prog_DTRACE+set}" = set; then
2827   $as_echo_n "(cached) " >&6
2828 else
2829   if test -n "$DTRACE"; then
2830   ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2831 else
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2834 do
2835   IFS=$as_save_IFS
2836   test -z "$as_dir" && as_dir=.
2837   for ac_exec_ext in '' $ac_executable_extensions; do
2838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839     ac_cv_prog_DTRACE="$ac_prog"
2840     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2841     break 2
2842   fi
2843 done
2844 done
2845 IFS=$as_save_IFS
2846
2847 fi
2848 fi
2849 DTRACE=$ac_cv_prog_DTRACE
2850 if test -n "$DTRACE"; then
2851   { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2852 $as_echo "$DTRACE" >&6; }
2853 else
2854   { $as_echo "$as_me:$LINENO: result: no" >&5
2855 $as_echo "no" >&6; }
2856 fi
2857
2858
2859   test -n "$DTRACE" && break
2860 done
2861
2862 if test -z "$DTRACE"; then
2863   { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2864 $as_echo "$as_me: error: dtrace not found" >&2;}
2865    { (exit 1); exit 1; }; }
2866 fi
2867
2868       ;;
2869     no)
2870       :
2871       ;;
2872     *)
2873       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2874 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2875    { (exit 1); exit 1; }; }
2876       ;;
2877   esac
2878
2879 else
2880   enable_dtrace=no
2881
2882 fi
2883
2884
2885
2886
2887 #
2888 # Block size
2889 #
2890 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2891 $as_echo_n "checking for block size... " >&6; }
2892
2893
2894
2895 # Check whether --with-blocksize was given.
2896 if test "${with_blocksize+set}" = set; then
2897   withval=$with_blocksize;
2898   case $withval in
2899     yes)
2900       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2901 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2902    { (exit 1); exit 1; }; }
2903       ;;
2904     no)
2905       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2906 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2907    { (exit 1); exit 1; }; }
2908       ;;
2909     *)
2910       blocksize=$withval
2911       ;;
2912   esac
2913
2914 else
2915   blocksize=8
2916 fi
2917
2918
2919 case ${blocksize} in
2920   1) BLCKSZ=1024;;
2921   2) BLCKSZ=2048;;
2922   4) BLCKSZ=4096;;
2923   8) BLCKSZ=8192;;
2924  16) BLCKSZ=16384;;
2925  32) BLCKSZ=32768;;
2926   *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2927 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2928    { (exit 1); exit 1; }; }
2929 esac
2930 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2931 $as_echo "${blocksize}kB" >&6; }
2932
2933
2934 cat >>confdefs.h <<_ACEOF
2935 #define BLCKSZ ${BLCKSZ}
2936 _ACEOF
2937
2938
2939 #
2940 # Relation segment size
2941 #
2942 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2943 $as_echo_n "checking for segment size... " >&6; }
2944
2945
2946
2947 # Check whether --with-segsize was given.
2948 if test "${with_segsize+set}" = set; then
2949   withval=$with_segsize;
2950   case $withval in
2951     yes)
2952       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2953 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2954    { (exit 1); exit 1; }; }
2955       ;;
2956     no)
2957       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2958 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2959    { (exit 1); exit 1; }; }
2960       ;;
2961     *)
2962       segsize=$withval
2963       ;;
2964   esac
2965
2966 else
2967   segsize=1
2968 fi
2969
2970
2971 # this expression is set up to avoid unnecessary integer overflow
2972 # blocksize is already guaranteed to be a factor of 1024
2973 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2974 test $? -eq 0 || exit 1
2975 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2976 $as_echo "${segsize}GB" >&6; }
2977
2978
2979 cat >>confdefs.h <<_ACEOF
2980 #define RELSEG_SIZE ${RELSEG_SIZE}
2981 _ACEOF
2982
2983
2984 #
2985 # WAL block size
2986 #
2987 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2988 $as_echo_n "checking for WAL block size... " >&6; }
2989
2990
2991
2992 # Check whether --with-wal-blocksize was given.
2993 if test "${with_wal_blocksize+set}" = set; then
2994   withval=$with_wal_blocksize;
2995   case $withval in
2996     yes)
2997       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2998 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2999    { (exit 1); exit 1; }; }
3000       ;;
3001     no)
3002       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
3003 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
3004    { (exit 1); exit 1; }; }
3005       ;;
3006     *)
3007       wal_blocksize=$withval
3008       ;;
3009   esac
3010
3011 else
3012   wal_blocksize=8
3013 fi
3014
3015
3016 case ${wal_blocksize} in
3017   1) XLOG_BLCKSZ=1024;;
3018   2) XLOG_BLCKSZ=2048;;
3019   4) XLOG_BLCKSZ=4096;;
3020   8) XLOG_BLCKSZ=8192;;
3021  16) XLOG_BLCKSZ=16384;;
3022  32) XLOG_BLCKSZ=32768;;
3023  64) XLOG_BLCKSZ=65536;;
3024   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
3025 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3026    { (exit 1); exit 1; }; }
3027 esac
3028 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
3029 $as_echo "${wal_blocksize}kB" >&6; }
3030
3031
3032 cat >>confdefs.h <<_ACEOF
3033 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3034 _ACEOF
3035
3036
3037 #
3038 # WAL segment size
3039 #
3040 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
3041 $as_echo_n "checking for WAL segment size... " >&6; }
3042
3043
3044
3045 # Check whether --with-wal-segsize was given.
3046 if test "${with_wal_segsize+set}" = set; then
3047   withval=$with_wal_segsize;
3048   case $withval in
3049     yes)
3050       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3051 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3052    { (exit 1); exit 1; }; }
3053       ;;
3054     no)
3055       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3056 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3057    { (exit 1); exit 1; }; }
3058       ;;
3059     *)
3060       wal_segsize=$withval
3061       ;;
3062   esac
3063
3064 else
3065   wal_segsize=16
3066 fi
3067
3068
3069 case ${wal_segsize} in
3070   1) ;;
3071   2) ;;
3072   4) ;;
3073   8) ;;
3074  16) ;;
3075  32) ;;
3076  64) ;;
3077   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3078 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3079    { (exit 1); exit 1; }; }
3080 esac
3081 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3082 $as_echo "${wal_segsize}MB" >&6; }
3083
3084
3085 cat >>confdefs.h <<_ACEOF
3086 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3087 _ACEOF
3088
3089
3090 #
3091 # C compiler
3092 #
3093
3094 # For historical reasons you can also use --with-CC to specify the C compiler
3095 # to use, although the standard way to do this is to set the CC environment
3096 # variable.
3097
3098
3099
3100 # Check whether --with-CC was given.
3101 if test "${with_CC+set}" = set; then
3102   withval=$with_CC;
3103   case $withval in
3104     yes)
3105       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3106 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3107    { (exit 1); exit 1; }; }
3108       ;;
3109     no)
3110       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3111 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3112    { (exit 1); exit 1; }; }
3113       ;;
3114     *)
3115       CC=$with_CC
3116       ;;
3117   esac
3118
3119 fi
3120
3121
3122
3123 case $template in
3124   aix) pgac_cc_list="gcc xlc";;
3125  irix) pgac_cc_list="cc";; # no gcc
3126     *) pgac_cc_list="gcc cc";;
3127 esac
3128
3129 ac_ext=c
3130 ac_cpp='$CPP $CPPFLAGS'
3131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3134 if test -n "$ac_tool_prefix"; then
3135   for ac_prog in $pgac_cc_list
3136   do
3137     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3138 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3139 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if test "${ac_cv_prog_CC+set}" = set; then
3142   $as_echo_n "(cached) " >&6
3143 else
3144   if test -n "$CC"; then
3145   ac_cv_prog_CC="$CC" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3149 do
3150   IFS=$as_save_IFS
3151   test -z "$as_dir" && as_dir=.
3152   for ac_exec_ext in '' $ac_executable_extensions; do
3153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3155     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3156     break 2
3157   fi
3158 done
3159 done
3160 IFS=$as_save_IFS
3161
3162 fi
3163 fi
3164 CC=$ac_cv_prog_CC
3165 if test -n "$CC"; then
3166   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3167 $as_echo "$CC" >&6; }
3168 else
3169   { $as_echo "$as_me:$LINENO: result: no" >&5
3170 $as_echo "no" >&6; }
3171 fi
3172
3173
3174     test -n "$CC" && break
3175   done
3176 fi
3177 if test -z "$CC"; then
3178   ac_ct_CC=$CC
3179   for ac_prog in $pgac_cc_list
3180 do
3181   # Extract the first word of "$ac_prog", so it can be a program name with args.
3182 set dummy $ac_prog; ac_word=$2
3183 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3186   $as_echo_n "(cached) " >&6
3187 else
3188   if test -n "$ac_ct_CC"; then
3189   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3190 else
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192 for as_dir in $PATH
3193 do
3194   IFS=$as_save_IFS
3195   test -z "$as_dir" && as_dir=.
3196   for ac_exec_ext in '' $ac_executable_extensions; do
3197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3198     ac_cv_prog_ac_ct_CC="$ac_prog"
3199     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3200     break 2
3201   fi
3202 done
3203 done
3204 IFS=$as_save_IFS
3205
3206 fi
3207 fi
3208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3209 if test -n "$ac_ct_CC"; then
3210   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3211 $as_echo "$ac_ct_CC" >&6; }
3212 else
3213   { $as_echo "$as_me:$LINENO: result: no" >&5
3214 $as_echo "no" >&6; }
3215 fi
3216
3217
3218   test -n "$ac_ct_CC" && break
3219 done
3220
3221   if test "x$ac_ct_CC" = x; then
3222     CC=""
3223   else
3224     case $cross_compiling:$ac_tool_warned in
3225 yes:)
3226 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3228 ac_tool_warned=yes ;;
3229 esac
3230     CC=$ac_ct_CC
3231   fi
3232 fi
3233
3234
3235 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3238 See \`config.log' for more details." >&5
3239 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3240 See \`config.log' for more details." >&2;}
3241    { (exit 1); exit 1; }; }; }
3242
3243 # Provide some information about the compiler.
3244 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3245 set X $ac_compile
3246 ac_compiler=$2
3247 { (ac_try="$ac_compiler --version >&5"
3248 case "(($ac_try" in
3249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250   *) ac_try_echo=$ac_try;;
3251 esac
3252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3253 $as_echo "$ac_try_echo") >&5
3254   (eval "$ac_compiler --version >&5") 2>&5
3255   ac_status=$?
3256   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257   (exit $ac_status); }
3258 { (ac_try="$ac_compiler -v >&5"
3259 case "(($ac_try" in
3260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261   *) ac_try_echo=$ac_try;;
3262 esac
3263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3264 $as_echo "$ac_try_echo") >&5
3265   (eval "$ac_compiler -v >&5") 2>&5
3266   ac_status=$?
3267   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268   (exit $ac_status); }
3269 { (ac_try="$ac_compiler -V >&5"
3270 case "(($ac_try" in
3271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272   *) ac_try_echo=$ac_try;;
3273 esac
3274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3275 $as_echo "$ac_try_echo") >&5
3276   (eval "$ac_compiler -V >&5") 2>&5
3277   ac_status=$?
3278   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279   (exit $ac_status); }
3280
3281 cat >conftest.$ac_ext <<_ACEOF
3282 /* confdefs.h.  */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h.  */
3287
3288 int
3289 main ()
3290 {
3291
3292   ;
3293   return 0;
3294 }
3295 _ACEOF
3296 ac_clean_files_save=$ac_clean_files
3297 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3298 # Try to create an executable without -o first, disregard a.out.
3299 # It will help us diagnose broken compilers, and finding out an intuition
3300 # of exeext.
3301 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3302 $as_echo_n "checking for C compiler default output file name... " >&6; }
3303 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3304
3305 # The possible output files:
3306 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3307
3308 ac_rmfiles=
3309 for ac_file in $ac_files
3310 do
3311   case $ac_file in
3312     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3313     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3314   esac
3315 done
3316 rm -f $ac_rmfiles
3317
3318 if { (ac_try="$ac_link_default"
3319 case "(($ac_try" in
3320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321   *) ac_try_echo=$ac_try;;
3322 esac
3323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3324 $as_echo "$ac_try_echo") >&5
3325   (eval "$ac_link_default") 2>&5
3326   ac_status=$?
3327   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328   (exit $ac_status); }; then
3329   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3330 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3331 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3332 # so that the user can short-circuit this test for compilers unknown to
3333 # Autoconf.
3334 for ac_file in $ac_files ''
3335 do
3336   test -f "$ac_file" || continue
3337   case $ac_file in
3338     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3339         ;;
3340     [ab].out )
3341         # We found the default executable, but exeext='' is most
3342         # certainly right.
3343         break;;
3344     *.* )
3345         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3346         then :; else
3347            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3348         fi
3349         # We set ac_cv_exeext here because the later test for it is not
3350         # safe: cross compilers may not add the suffix if given an `-o'
3351         # argument, so we may need to know it at that point already.
3352         # Even if this section looks crufty: it has the advantage of
3353         # actually working.
3354         break;;
3355     * )
3356         break;;
3357   esac
3358 done
3359 test "$ac_cv_exeext" = no && ac_cv_exeext=
3360
3361 else
3362   ac_file=''
3363 fi
3364
3365 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3366 $as_echo "$ac_file" >&6; }
3367 if test -z "$ac_file"; then
3368   $as_echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3370
3371 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3374 See \`config.log' for more details." >&5
3375 $as_echo "$as_me: error: C compiler cannot create executables
3376 See \`config.log' for more details." >&2;}
3377    { (exit 77); exit 77; }; }; }
3378 fi
3379
3380 ac_exeext=$ac_cv_exeext
3381
3382 # Check that the compiler produces executables we can run.  If not, either
3383 # the compiler is broken, or we cross compile.
3384 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3385 $as_echo_n "checking whether the C compiler works... " >&6; }
3386 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3387 # If not cross compiling, check that we can run a simple program.
3388 if test "$cross_compiling" != yes; then
3389   if { ac_try='./$ac_file'
3390   { (case "(($ac_try" in
3391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392   *) ac_try_echo=$ac_try;;
3393 esac
3394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3395 $as_echo "$ac_try_echo") >&5
3396   (eval "$ac_try") 2>&5
3397   ac_status=$?
3398   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399   (exit $ac_status); }; }; then
3400     cross_compiling=no
3401   else
3402     if test "$cross_compiling" = maybe; then
3403         cross_compiling=yes
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 run C compiled programs.
3408 If you meant to cross compile, use \`--host'.
3409 See \`config.log' for more details." >&5
3410 $as_echo "$as_me: error: cannot run C compiled programs.
3411 If you meant to cross compile, use \`--host'.
3412 See \`config.log' for more details." >&2;}
3413    { (exit 1); exit 1; }; }; }
3414     fi
3415   fi
3416 fi
3417 { $as_echo "$as_me:$LINENO: result: yes" >&5
3418 $as_echo "yes" >&6; }
3419
3420 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3421 ac_clean_files=$ac_clean_files_save
3422 # Check that the compiler produces executables we can run.  If not, either
3423 # the compiler is broken, or we cross compile.
3424 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3425 $as_echo_n "checking whether we are cross compiling... " >&6; }
3426 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3427 $as_echo "$cross_compiling" >&6; }
3428
3429 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3430 $as_echo_n "checking for suffix of executables... " >&6; }
3431 if { (ac_try="$ac_link"
3432 case "(($ac_try" in
3433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434   *) ac_try_echo=$ac_try;;
3435 esac
3436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3437 $as_echo "$ac_try_echo") >&5
3438   (eval "$ac_link") 2>&5
3439   ac_status=$?
3440   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441   (exit $ac_status); }; then
3442   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3443 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3444 # work properly (i.e., refer to `conftest.exe'), while it won't with
3445 # `rm'.
3446 for ac_file in conftest.exe conftest conftest.*; do
3447   test -f "$ac_file" || continue
3448   case $ac_file in
3449     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3450     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3451           break;;
3452     * ) break;;
3453   esac
3454 done
3455 else
3456   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3458 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3459 See \`config.log' for more details." >&5
3460 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3461 See \`config.log' for more details." >&2;}
3462    { (exit 1); exit 1; }; }; }
3463 fi
3464
3465 rm -f conftest$ac_cv_exeext
3466 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3467 $as_echo "$ac_cv_exeext" >&6; }
3468
3469 rm -f conftest.$ac_ext
3470 EXEEXT=$ac_cv_exeext
3471 ac_exeext=$EXEEXT
3472 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3473 $as_echo_n "checking for suffix of object files... " >&6; }
3474 if test "${ac_cv_objext+set}" = set; then
3475   $as_echo_n "(cached) " >&6
3476 else
3477   cat >conftest.$ac_ext <<_ACEOF
3478 /* confdefs.h.  */
3479 _ACEOF
3480 cat confdefs.h >>conftest.$ac_ext
3481 cat >>conftest.$ac_ext <<_ACEOF
3482 /* end confdefs.h.  */
3483
3484 int
3485 main ()
3486 {
3487
3488   ;
3489   return 0;
3490 }
3491 _ACEOF
3492 rm -f conftest.o conftest.obj
3493 if { (ac_try="$ac_compile"
3494 case "(($ac_try" in
3495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496   *) ac_try_echo=$ac_try;;
3497 esac
3498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3499 $as_echo "$ac_try_echo") >&5
3500   (eval "$ac_compile") 2>&5
3501   ac_status=$?
3502   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503   (exit $ac_status); }; then
3504   for ac_file in conftest.o conftest.obj conftest.*; do
3505   test -f "$ac_file" || continue;
3506   case $ac_file in
3507     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3508     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3509        break;;
3510   esac
3511 done
3512 else
3513   $as_echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3515
3516 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3518 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3519 See \`config.log' for more details." >&5
3520 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3521 See \`config.log' for more details." >&2;}
3522    { (exit 1); exit 1; }; }; }
3523 fi
3524
3525 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3526 fi
3527 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3528 $as_echo "$ac_cv_objext" >&6; }
3529 OBJEXT=$ac_cv_objext
3530 ac_objext=$OBJEXT
3531 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3532 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3533 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3534   $as_echo_n "(cached) " >&6
3535 else
3536   cat >conftest.$ac_ext <<_ACEOF
3537 /* confdefs.h.  */
3538 _ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h.  */
3542
3543 int
3544 main ()
3545 {
3546 #ifndef __GNUC__
3547        choke me
3548 #endif
3549
3550   ;
3551   return 0;
3552 }
3553 _ACEOF
3554 rm -f conftest.$ac_objext
3555 if { (ac_try="$ac_compile"
3556 case "(($ac_try" in
3557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558   *) ac_try_echo=$ac_try;;
3559 esac
3560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3561 $as_echo "$ac_try_echo") >&5
3562   (eval "$ac_compile") 2>conftest.er1
3563   ac_status=$?
3564   grep -v '^ *+' conftest.er1 >conftest.err
3565   rm -f conftest.er1
3566   cat conftest.err >&5
3567   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568   (exit $ac_status); } && {
3569          test -z "$ac_c_werror_flag" ||
3570          test ! -s conftest.err
3571        } && test -s conftest.$ac_objext; then
3572   ac_compiler_gnu=yes
3573 else
3574   $as_echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3576
3577         ac_compiler_gnu=no
3578 fi
3579
3580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3581 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3582
3583 fi
3584 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3585 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3586 if test $ac_compiler_gnu = yes; then
3587   GCC=yes
3588 else
3589   GCC=
3590 fi
3591 ac_test_CFLAGS=${CFLAGS+set}
3592 ac_save_CFLAGS=$CFLAGS
3593 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3594 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3595 if test "${ac_cv_prog_cc_g+set}" = set; then
3596   $as_echo_n "(cached) " >&6
3597 else
3598   ac_save_c_werror_flag=$ac_c_werror_flag
3599    ac_c_werror_flag=yes
3600    ac_cv_prog_cc_g=no
3601    CFLAGS="-g"
3602    cat >conftest.$ac_ext <<_ACEOF
3603 /* confdefs.h.  */
3604 _ACEOF
3605 cat confdefs.h >>conftest.$ac_ext
3606 cat >>conftest.$ac_ext <<_ACEOF
3607 /* end confdefs.h.  */
3608
3609 int
3610 main ()
3611 {
3612
3613   ;
3614   return 0;
3615 }
3616 _ACEOF
3617 rm -f conftest.$ac_objext
3618 if { (ac_try="$ac_compile"
3619 case "(($ac_try" in
3620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621   *) ac_try_echo=$ac_try;;
3622 esac
3623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3624 $as_echo "$ac_try_echo") >&5
3625   (eval "$ac_compile") 2>conftest.er1
3626   ac_status=$?
3627   grep -v '^ *+' conftest.er1 >conftest.err
3628   rm -f conftest.er1
3629   cat conftest.err >&5
3630   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631   (exit $ac_status); } && {
3632          test -z "$ac_c_werror_flag" ||
3633          test ! -s conftest.err
3634        } && test -s conftest.$ac_objext; then
3635   ac_cv_prog_cc_g=yes
3636 else
3637   $as_echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3639
3640         CFLAGS=""
3641       cat >conftest.$ac_ext <<_ACEOF
3642 /* confdefs.h.  */
3643 _ACEOF
3644 cat confdefs.h >>conftest.$ac_ext
3645 cat >>conftest.$ac_ext <<_ACEOF
3646 /* end confdefs.h.  */
3647
3648 int
3649 main ()
3650 {
3651
3652   ;
3653   return 0;
3654 }
3655 _ACEOF
3656 rm -f conftest.$ac_objext
3657 if { (ac_try="$ac_compile"
3658 case "(($ac_try" in
3659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660   *) ac_try_echo=$ac_try;;
3661 esac
3662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3663 $as_echo "$ac_try_echo") >&5
3664   (eval "$ac_compile") 2>conftest.er1
3665   ac_status=$?
3666   grep -v '^ *+' conftest.er1 >conftest.err
3667   rm -f conftest.er1
3668   cat conftest.err >&5
3669   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670   (exit $ac_status); } && {
3671          test -z "$ac_c_werror_flag" ||
3672          test ! -s conftest.err
3673        } && test -s conftest.$ac_objext; then
3674   :
3675 else
3676   $as_echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3678
3679         ac_c_werror_flag=$ac_save_c_werror_flag
3680          CFLAGS="-g"
3681          cat >conftest.$ac_ext <<_ACEOF
3682 /* confdefs.h.  */
3683 _ACEOF
3684 cat confdefs.h >>conftest.$ac_ext
3685 cat >>conftest.$ac_ext <<_ACEOF
3686 /* end confdefs.h.  */
3687
3688 int
3689 main ()
3690 {
3691
3692   ;
3693   return 0;
3694 }
3695 _ACEOF
3696 rm -f conftest.$ac_objext
3697 if { (ac_try="$ac_compile"
3698 case "(($ac_try" in
3699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700   *) ac_try_echo=$ac_try;;
3701 esac
3702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3703 $as_echo "$ac_try_echo") >&5
3704   (eval "$ac_compile") 2>conftest.er1
3705   ac_status=$?
3706   grep -v '^ *+' conftest.er1 >conftest.err
3707   rm -f conftest.er1
3708   cat conftest.err >&5
3709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710   (exit $ac_status); } && {
3711          test -z "$ac_c_werror_flag" ||
3712          test ! -s conftest.err
3713        } && test -s conftest.$ac_objext; then
3714   ac_cv_prog_cc_g=yes
3715 else
3716   $as_echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3718
3719
3720 fi
3721
3722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723 fi
3724
3725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726 fi
3727
3728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3729    ac_c_werror_flag=$ac_save_c_werror_flag
3730 fi
3731 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3732 $as_echo "$ac_cv_prog_cc_g" >&6; }
3733 if test "$ac_test_CFLAGS" = set; then
3734   CFLAGS=$ac_save_CFLAGS
3735 elif test $ac_cv_prog_cc_g = yes; then
3736   if test "$GCC" = yes; then
3737     CFLAGS="-g -O2"
3738   else
3739     CFLAGS="-g"
3740   fi
3741 else
3742   if test "$GCC" = yes; then
3743     CFLAGS="-O2"
3744   else
3745     CFLAGS=
3746   fi
3747 fi
3748 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3749 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3750 if test "${ac_cv_prog_cc_c89+set}" = set; then
3751   $as_echo_n "(cached) " >&6
3752 else
3753   ac_cv_prog_cc_c89=no
3754 ac_save_CC=$CC
3755 cat >conftest.$ac_ext <<_ACEOF
3756 /* confdefs.h.  */
3757 _ACEOF
3758 cat confdefs.h >>conftest.$ac_ext
3759 cat >>conftest.$ac_ext <<_ACEOF
3760 /* end confdefs.h.  */
3761 #include <stdarg.h>
3762 #include <stdio.h>
3763 #include <sys/types.h>
3764 #include <sys/stat.h>
3765 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3766 struct buf { int x; };
3767 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3768 static char *e (p, i)
3769      char **p;
3770      int i;
3771 {
3772   return p[i];
3773 }
3774 static char *f (char * (*g) (char **, int), char **p, ...)
3775 {
3776   char *s;
3777   va_list v;
3778   va_start (v,p);
3779   s = g (p, va_arg (v,int));
3780   va_end (v);
3781   return s;
3782 }
3783
3784 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3785    function prototypes and stuff, but not '\xHH' hex character constants.
3786    These don't provoke an error unfortunately, instead are silently treated
3787    as 'x'.  The following induces an error, until -std is added to get
3788    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3789    array size at least.  It's necessary to write '\x00'==0 to get something
3790    that's true only with -std.  */
3791 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3792
3793 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3794    inside strings and character constants.  */
3795 #define FOO(x) 'x'
3796 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3797
3798 int test (int i, double x);
3799 struct s1 {int (*f) (int a);};
3800 struct s2 {int (*f) (double a);};
3801 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3802 int argc;
3803 char **argv;
3804 int
3805 main ()
3806 {
3807 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3808   ;
3809   return 0;
3810 }
3811 _ACEOF
3812 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3813         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3814 do
3815   CC="$ac_save_CC $ac_arg"
3816   rm -f conftest.$ac_objext
3817 if { (ac_try="$ac_compile"
3818 case "(($ac_try" in
3819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820   *) ac_try_echo=$ac_try;;
3821 esac
3822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3823 $as_echo "$ac_try_echo") >&5
3824   (eval "$ac_compile") 2>conftest.er1
3825   ac_status=$?
3826   grep -v '^ *+' conftest.er1 >conftest.err
3827   rm -f conftest.er1
3828   cat conftest.err >&5
3829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830   (exit $ac_status); } && {
3831          test -z "$ac_c_werror_flag" ||
3832          test ! -s conftest.err
3833        } && test -s conftest.$ac_objext; then
3834   ac_cv_prog_cc_c89=$ac_arg
3835 else
3836   $as_echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3838
3839
3840 fi
3841
3842 rm -f core conftest.err conftest.$ac_objext
3843   test "x$ac_cv_prog_cc_c89" != "xno" && break
3844 done
3845 rm -f conftest.$ac_ext
3846 CC=$ac_save_CC
3847
3848 fi
3849 # AC_CACHE_VAL
3850 case "x$ac_cv_prog_cc_c89" in
3851   x)
3852     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3853 $as_echo "none needed" >&6; } ;;
3854   xno)
3855     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3856 $as_echo "unsupported" >&6; } ;;
3857   *)
3858     CC="$CC $ac_cv_prog_cc_c89"
3859     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3860 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3861 esac
3862
3863
3864 ac_ext=c
3865 ac_cpp='$CPP $CPPFLAGS'
3866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3869
3870
3871 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3872 # but has idiosyncrasies of its own.  We assume icc will define
3873 # __INTEL_COMPILER regardless of CFLAGS.
3874
3875 cat >conftest.$ac_ext <<_ACEOF
3876 /* confdefs.h.  */
3877 _ACEOF
3878 cat confdefs.h >>conftest.$ac_ext
3879 cat >>conftest.$ac_ext <<_ACEOF
3880 /* end confdefs.h.  */
3881
3882 int
3883 main ()
3884 {
3885 #ifndef __INTEL_COMPILER
3886 choke me
3887 #endif
3888   ;
3889   return 0;
3890 }
3891 _ACEOF
3892 rm -f conftest.$ac_objext
3893 if { (ac_try="$ac_compile"
3894 case "(($ac_try" in
3895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896   *) ac_try_echo=$ac_try;;
3897 esac
3898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3899 $as_echo "$ac_try_echo") >&5
3900   (eval "$ac_compile") 2>conftest.er1
3901   ac_status=$?
3902   grep -v '^ *+' conftest.er1 >conftest.err
3903   rm -f conftest.er1
3904   cat conftest.err >&5
3905   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906   (exit $ac_status); } && {
3907          test -z "$ac_c_werror_flag" ||
3908          test ! -s conftest.err
3909        } && test -s conftest.$ac_objext; then
3910   ICC=yes
3911 else
3912   $as_echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3914
3915         ICC=no
3916 fi
3917
3918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919
3920 # Check if it's Sun Studio compiler. We assume that
3921 # __SUNPRO_C will be defined for Sun Studio compilers
3922 cat >conftest.$ac_ext <<_ACEOF
3923 /* confdefs.h.  */
3924 _ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h.  */
3928
3929 int
3930 main ()
3931 {
3932 #ifndef __SUNPRO_C
3933 choke me
3934 #endif
3935   ;
3936   return 0;
3937 }
3938 _ACEOF
3939 rm -f conftest.$ac_objext
3940 if { (ac_try="$ac_compile"
3941 case "(($ac_try" in
3942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943   *) ac_try_echo=$ac_try;;
3944 esac
3945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3946 $as_echo "$ac_try_echo") >&5
3947   (eval "$ac_compile") 2>conftest.er1
3948   ac_status=$?
3949   grep -v '^ *+' conftest.er1 >conftest.err
3950   rm -f conftest.er1
3951   cat conftest.err >&5
3952   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953   (exit $ac_status); } && {
3954          test -z "$ac_c_werror_flag" ||
3955          test ! -s conftest.err
3956        } && test -s conftest.$ac_objext; then
3957   SUN_STUDIO_CC=yes
3958 else
3959   $as_echo "$as_me: failed program was:" >&5
3960 sed 's/^/| /' conftest.$ac_ext >&5
3961
3962         SUN_STUDIO_CC=no
3963 fi
3964
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966
3967
3968
3969 unset CFLAGS
3970
3971 #
3972 # Read the template
3973 #
3974 . "$srcdir/src/template/$template" || exit
3975
3976 # CFLAGS are selected so:
3977 # If the user specifies something in the environment, that is used.
3978 # else:  If the template file set something, that is used.
3979 # else:  If coverage was enabled, don't set anything.
3980 # else:  If the compiler is GCC, then we use -O2.
3981 # else:  If the compiler is something else, then we use -O, unless debugging.
3982
3983 if test "$ac_env_CFLAGS_set" = set; then
3984   CFLAGS=$ac_env_CFLAGS_value
3985 elif test "${CFLAGS+set}" = set; then
3986   : # (keep what template set)
3987 elif test "$enable_coverage" = yes; then
3988   : # no optimization by default
3989 elif test "$GCC" = yes; then
3990   CFLAGS="-O2"
3991 else
3992   # if the user selected debug mode, don't use -O
3993   if test "$enable_debug" != yes; then
3994     CFLAGS="-O"
3995   fi
3996 fi
3997
3998 # Some versions of GCC support some additional useful warning flags.
3999 # Check whether they are supported, and add them to CFLAGS if so.
4000 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
4001 # but has its own.  Also check other compiler-specific flags here.
4002
4003 if test "$GCC" = yes -a "$ICC" = no; then
4004   CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
4005   # These work in some but not all gcc versions
4006   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wdeclaration-after-statement" >&5
4007 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
4008 if test "${pgac_cv_prog_cc_cflags__Wdeclaration_after_statement+set}" = set; then
4009   $as_echo_n "(cached) " >&6
4010 else
4011   pgac_save_CFLAGS=$CFLAGS
4012 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
4013 ac_save_c_werror_flag=$ac_c_werror_flag
4014 ac_c_werror_flag=yes
4015 cat >conftest.$ac_ext <<_ACEOF
4016 /* confdefs.h.  */
4017 _ACEOF
4018 cat confdefs.h >>conftest.$ac_ext
4019 cat >>conftest.$ac_ext <<_ACEOF
4020 /* end confdefs.h.  */
4021
4022 int
4023 main ()
4024 {
4025
4026   ;
4027   return 0;
4028 }
4029 _ACEOF
4030 rm -f conftest.$ac_objext
4031 if { (ac_try="$ac_compile"
4032 case "(($ac_try" in
4033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4034   *) ac_try_echo=$ac_try;;
4035 esac
4036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4037 $as_echo "$ac_try_echo") >&5
4038   (eval "$ac_compile") 2>conftest.er1
4039   ac_status=$?
4040   grep -v '^ *+' conftest.er1 >conftest.err
4041   rm -f conftest.er1
4042   cat conftest.err >&5
4043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044   (exit $ac_status); } && {
4045          test -z "$ac_c_werror_flag" ||
4046          test ! -s conftest.err
4047        } && test -s conftest.$ac_objext; then
4048   pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
4049 else
4050   $as_echo "$as_me: failed program was:" >&5
4051 sed 's/^/| /' conftest.$ac_ext >&5
4052
4053         pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
4054 fi
4055
4056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057 ac_c_werror_flag=$ac_save_c_werror_flag
4058 CFLAGS="$pgac_save_CFLAGS"
4059 fi
4060 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
4061 $as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
4062 if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
4063   CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4064 fi
4065
4066   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wendif-labels" >&5
4067 $as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
4068 if test "${pgac_cv_prog_cc_cflags__Wendif_labels+set}" = set; then
4069   $as_echo_n "(cached) " >&6
4070 else
4071   pgac_save_CFLAGS=$CFLAGS
4072 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4073 ac_save_c_werror_flag=$ac_c_werror_flag
4074 ac_c_werror_flag=yes
4075 cat >conftest.$ac_ext <<_ACEOF
4076 /* confdefs.h.  */
4077 _ACEOF
4078 cat confdefs.h >>conftest.$ac_ext
4079 cat >>conftest.$ac_ext <<_ACEOF
4080 /* end confdefs.h.  */
4081
4082 int
4083 main ()
4084 {
4085
4086   ;
4087   return 0;
4088 }
4089 _ACEOF
4090 rm -f conftest.$ac_objext
4091 if { (ac_try="$ac_compile"
4092 case "(($ac_try" in
4093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094   *) ac_try_echo=$ac_try;;
4095 esac
4096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4097 $as_echo "$ac_try_echo") >&5
4098   (eval "$ac_compile") 2>conftest.er1
4099   ac_status=$?
4100   grep -v '^ *+' conftest.er1 >conftest.err
4101   rm -f conftest.er1
4102   cat conftest.err >&5
4103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104   (exit $ac_status); } && {
4105          test -z "$ac_c_werror_flag" ||
4106          test ! -s conftest.err
4107        } && test -s conftest.$ac_objext; then
4108   pgac_cv_prog_cc_cflags__Wendif_labels=yes
4109 else
4110   $as_echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4112
4113         pgac_cv_prog_cc_cflags__Wendif_labels=no
4114 fi
4115
4116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117 ac_c_werror_flag=$ac_save_c_werror_flag
4118 CFLAGS="$pgac_save_CFLAGS"
4119 fi
4120 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
4121 $as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
4122 if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
4123   CFLAGS="$CFLAGS -Wendif-labels"
4124 fi
4125
4126   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5
4127 $as_echo_n "checking whether $CC supports -Wmissing-format-attribute... " >&6; }
4128 if test "${pgac_cv_prog_cc_cflags__Wmissing_format_attribute+set}" = set; then
4129   $as_echo_n "(cached) " >&6
4130 else
4131   pgac_save_CFLAGS=$CFLAGS
4132 CFLAGS="$pgac_save_CFLAGS -Wmissing-format-attribute"
4133 ac_save_c_werror_flag=$ac_c_werror_flag
4134 ac_c_werror_flag=yes
4135 cat >conftest.$ac_ext <<_ACEOF
4136 /* confdefs.h.  */
4137 _ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h.  */
4141
4142 int
4143 main ()
4144 {
4145
4146   ;
4147   return 0;
4148 }
4149 _ACEOF
4150 rm -f conftest.$ac_objext
4151 if { (ac_try="$ac_compile"
4152 case "(($ac_try" in
4153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154   *) ac_try_echo=$ac_try;;
4155 esac
4156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4157 $as_echo "$ac_try_echo") >&5
4158   (eval "$ac_compile") 2>conftest.er1
4159   ac_status=$?
4160   grep -v '^ *+' conftest.er1 >conftest.err
4161   rm -f conftest.er1
4162   cat conftest.err >&5
4163   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164   (exit $ac_status); } && {
4165          test -z "$ac_c_werror_flag" ||
4166          test ! -s conftest.err
4167        } && test -s conftest.$ac_objext; then
4168   pgac_cv_prog_cc_cflags__Wmissing_format_attribute=yes
4169 else
4170   $as_echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4172
4173         pgac_cv_prog_cc_cflags__Wmissing_format_attribute=no
4174 fi
4175
4176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177 ac_c_werror_flag=$ac_save_c_werror_flag
4178 CFLAGS="$pgac_save_CFLAGS"
4179 fi
4180 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&5
4181 $as_echo "$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&6; }
4182 if test x"$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" = x"yes"; then
4183   CFLAGS="$CFLAGS -Wmissing-format-attribute"
4184 fi
4185
4186   # This was included in -Wall/-Wformat in older GCC versions
4187   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wformat-security" >&5
4188 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
4189 if test "${pgac_cv_prog_cc_cflags__Wformat_security+set}" = set; then
4190   $as_echo_n "(cached) " >&6
4191 else
4192   pgac_save_CFLAGS=$CFLAGS
4193 CFLAGS="$pgac_save_CFLAGS -Wformat-security"
4194 ac_save_c_werror_flag=$ac_c_werror_flag
4195 ac_c_werror_flag=yes
4196 cat >conftest.$ac_ext <<_ACEOF
4197 /* confdefs.h.  */
4198 _ACEOF
4199 cat confdefs.h >>conftest.$ac_ext
4200 cat >>conftest.$ac_ext <<_ACEOF
4201 /* end confdefs.h.  */
4202
4203 int
4204 main ()
4205 {
4206
4207   ;
4208   return 0;
4209 }
4210 _ACEOF
4211 rm -f conftest.$ac_objext
4212 if { (ac_try="$ac_compile"
4213 case "(($ac_try" in
4214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215   *) ac_try_echo=$ac_try;;
4216 esac
4217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4218 $as_echo "$ac_try_echo") >&5
4219   (eval "$ac_compile") 2>conftest.er1
4220   ac_status=$?
4221   grep -v '^ *+' conftest.er1 >conftest.err
4222   rm -f conftest.er1
4223   cat conftest.err >&5
4224   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225   (exit $ac_status); } && {
4226          test -z "$ac_c_werror_flag" ||
4227          test ! -s conftest.err
4228        } && test -s conftest.$ac_objext; then
4229   pgac_cv_prog_cc_cflags__Wformat_security=yes
4230 else
4231   $as_echo "$as_me: failed program was:" >&5
4232 sed 's/^/| /' conftest.$ac_ext >&5
4233
4234         pgac_cv_prog_cc_cflags__Wformat_security=no
4235 fi
4236
4237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4238 ac_c_werror_flag=$ac_save_c_werror_flag
4239 CFLAGS="$pgac_save_CFLAGS"
4240 fi
4241 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
4242 $as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
4243 if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
4244   CFLAGS="$CFLAGS -Wformat-security"
4245 fi
4246
4247   # Disable strict-aliasing rules; needed for gcc 3.3+
4248   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4249 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4250 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4251   $as_echo_n "(cached) " >&6
4252 else
4253   pgac_save_CFLAGS=$CFLAGS
4254 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4255 ac_save_c_werror_flag=$ac_c_werror_flag
4256 ac_c_werror_flag=yes
4257 cat >conftest.$ac_ext <<_ACEOF
4258 /* confdefs.h.  */
4259 _ACEOF
4260 cat confdefs.h >>conftest.$ac_ext
4261 cat >>conftest.$ac_ext <<_ACEOF
4262 /* end confdefs.h.  */
4263
4264 int
4265 main ()
4266 {
4267
4268   ;
4269   return 0;
4270 }
4271 _ACEOF
4272 rm -f conftest.$ac_objext
4273 if { (ac_try="$ac_compile"
4274 case "(($ac_try" in
4275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276   *) ac_try_echo=$ac_try;;
4277 esac
4278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4279 $as_echo "$ac_try_echo") >&5
4280   (eval "$ac_compile") 2>conftest.er1
4281   ac_status=$?
4282   grep -v '^ *+' conftest.er1 >conftest.err
4283   rm -f conftest.er1
4284   cat conftest.err >&5
4285   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286   (exit $ac_status); } && {
4287          test -z "$ac_c_werror_flag" ||
4288          test ! -s conftest.err
4289        } && test -s conftest.$ac_objext; then
4290   pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4291 else
4292   $as_echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4294
4295         pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4296 fi
4297
4298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299 ac_c_werror_flag=$ac_save_c_werror_flag
4300 CFLAGS="$pgac_save_CFLAGS"
4301 fi
4302 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4303 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4304 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4305   CFLAGS="$CFLAGS -fno-strict-aliasing"
4306 fi
4307
4308   # Disable optimizations that assume no overflow; needed for gcc 4.3+
4309   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fwrapv" >&5
4310 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4311 if test "${pgac_cv_prog_cc_cflags__fwrapv+set}" = set; then
4312   $as_echo_n "(cached) " >&6
4313 else
4314   pgac_save_CFLAGS=$CFLAGS
4315 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4316 ac_save_c_werror_flag=$ac_c_werror_flag
4317 ac_c_werror_flag=yes
4318 cat >conftest.$ac_ext <<_ACEOF
4319 /* confdefs.h.  */
4320 _ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h.  */
4324
4325 int
4326 main ()
4327 {
4328
4329   ;
4330   return 0;
4331 }
4332 _ACEOF
4333 rm -f conftest.$ac_objext
4334 if { (ac_try="$ac_compile"
4335 case "(($ac_try" in
4336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337   *) ac_try_echo=$ac_try;;
4338 esac
4339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4340 $as_echo "$ac_try_echo") >&5
4341   (eval "$ac_compile") 2>conftest.er1
4342   ac_status=$?
4343   grep -v '^ *+' conftest.er1 >conftest.err
4344   rm -f conftest.er1
4345   cat conftest.err >&5
4346   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347   (exit $ac_status); } && {
4348          test -z "$ac_c_werror_flag" ||
4349          test ! -s conftest.err
4350        } && test -s conftest.$ac_objext; then
4351   pgac_cv_prog_cc_cflags__fwrapv=yes
4352 else
4353   $as_echo "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4355
4356         pgac_cv_prog_cc_cflags__fwrapv=no
4357 fi
4358
4359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4360 ac_c_werror_flag=$ac_save_c_werror_flag
4361 CFLAGS="$pgac_save_CFLAGS"
4362 fi
4363 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4364 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4365 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4366   CFLAGS="$CFLAGS -fwrapv"
4367 fi
4368
4369 elif test "$ICC" = yes; then
4370   # Intel's compiler has a bug/misoptimization in checking for
4371   # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4372   { $as_echo "$as_me:$LINENO: checking whether $CC supports -mp1" >&5
4373 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4374 if test "${pgac_cv_prog_cc_cflags__mp1+set}" = set; then
4375   $as_echo_n "(cached) " >&6
4376 else
4377   pgac_save_CFLAGS=$CFLAGS
4378 CFLAGS="$pgac_save_CFLAGS -mp1"
4379 ac_save_c_werror_flag=$ac_c_werror_flag
4380 ac_c_werror_flag=yes
4381 cat >conftest.$ac_ext <<_ACEOF
4382 /* confdefs.h.  */
4383 _ACEOF
4384 cat confdefs.h >>conftest.$ac_ext
4385 cat >>conftest.$ac_ext <<_ACEOF
4386 /* end confdefs.h.  */
4387
4388 int
4389 main ()
4390 {
4391
4392   ;
4393   return 0;
4394 }
4395 _ACEOF
4396 rm -f conftest.$ac_objext
4397 if { (ac_try="$ac_compile"
4398 case "(($ac_try" in
4399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400   *) ac_try_echo=$ac_try;;
4401 esac
4402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4403 $as_echo "$ac_try_echo") >&5
4404   (eval "$ac_compile") 2>conftest.er1
4405   ac_status=$?
4406   grep -v '^ *+' conftest.er1 >conftest.err
4407   rm -f conftest.er1
4408   cat conftest.err >&5
4409   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410   (exit $ac_status); } && {
4411          test -z "$ac_c_werror_flag" ||
4412          test ! -s conftest.err
4413        } && test -s conftest.$ac_objext; then
4414   pgac_cv_prog_cc_cflags__mp1=yes
4415 else
4416   $as_echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.$ac_ext >&5
4418
4419         pgac_cv_prog_cc_cflags__mp1=no
4420 fi
4421
4422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4423 ac_c_werror_flag=$ac_save_c_werror_flag
4424 CFLAGS="$pgac_save_CFLAGS"
4425 fi
4426 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4427 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4428 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4429   CFLAGS="$CFLAGS -mp1"
4430 fi
4431
4432   # Make sure strict aliasing is off (though this is said to be the default)
4433   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4434 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4435 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4436   $as_echo_n "(cached) " >&6
4437 else
4438   pgac_save_CFLAGS=$CFLAGS
4439 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4440 ac_save_c_werror_flag=$ac_c_werror_flag
4441 ac_c_werror_flag=yes
4442 cat >conftest.$ac_ext <<_ACEOF
4443 /* confdefs.h.  */
4444 _ACEOF
4445 cat confdefs.h >>conftest.$ac_ext
4446 cat >>conftest.$ac_ext <<_ACEOF
4447 /* end confdefs.h.  */
4448
4449 int
4450 main ()
4451 {
4452
4453   ;
4454   return 0;
4455 }
4456 _ACEOF
4457 rm -f conftest.$ac_objext
4458 if { (ac_try="$ac_compile"
4459 case "(($ac_try" in
4460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461   *) ac_try_echo=$ac_try;;
4462 esac
4463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4464 $as_echo "$ac_try_echo") >&5
4465   (eval "$ac_compile") 2>conftest.er1
4466   ac_status=$?
4467   grep -v '^ *+' conftest.er1 >conftest.err
4468   rm -f conftest.er1
4469   cat conftest.err >&5
4470   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471   (exit $ac_status); } && {
4472          test -z "$ac_c_werror_flag" ||
4473          test ! -s conftest.err
4474        } && test -s conftest.$ac_objext; then
4475   pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4476 else
4477   $as_echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4479
4480         pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4481 fi
4482
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484 ac_c_werror_flag=$ac_save_c_werror_flag
4485 CFLAGS="$pgac_save_CFLAGS"
4486 fi
4487 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4488 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4489 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4490   CFLAGS="$CFLAGS -fno-strict-aliasing"
4491 fi
4492
4493 elif test "$PORTNAME" = "aix"; then
4494   # AIX's xlc has to have strict aliasing turned off too
4495   { $as_echo "$as_me:$LINENO: checking whether $CC supports -qnoansialias" >&5
4496 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4497 if test "${pgac_cv_prog_cc_cflags__qnoansialias+set}" = set; then
4498   $as_echo_n "(cached) " >&6
4499 else
4500   pgac_save_CFLAGS=$CFLAGS
4501 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4502 ac_save_c_werror_flag=$ac_c_werror_flag
4503 ac_c_werror_flag=yes
4504 cat >conftest.$ac_ext <<_ACEOF
4505 /* confdefs.h.  */
4506 _ACEOF
4507 cat confdefs.h >>conftest.$ac_ext
4508 cat >>conftest.$ac_ext <<_ACEOF
4509 /* end confdefs.h.  */
4510
4511 int
4512 main ()
4513 {
4514
4515   ;
4516   return 0;
4517 }
4518 _ACEOF
4519 rm -f conftest.$ac_objext
4520 if { (ac_try="$ac_compile"
4521 case "(($ac_try" in
4522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4523   *) ac_try_echo=$ac_try;;
4524 esac
4525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4526 $as_echo "$ac_try_echo") >&5
4527   (eval "$ac_compile") 2>conftest.er1
4528   ac_status=$?
4529   grep -v '^ *+' conftest.er1 >conftest.err
4530   rm -f conftest.er1
4531   cat conftest.err >&5
4532   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533   (exit $ac_status); } && {
4534          test -z "$ac_c_werror_flag" ||
4535          test ! -s conftest.err
4536        } && test -s conftest.$ac_objext; then
4537   pgac_cv_prog_cc_cflags__qnoansialias=yes
4538 else
4539   $as_echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4541
4542         pgac_cv_prog_cc_cflags__qnoansialias=no
4543 fi
4544
4545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4546 ac_c_werror_flag=$ac_save_c_werror_flag
4547 CFLAGS="$pgac_save_CFLAGS"
4548 fi
4549 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4550 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4551 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4552   CFLAGS="$CFLAGS -qnoansialias"
4553 fi
4554
4555 elif test "$PORTNAME" = "hpux"; then
4556   # On some versions of HP-UX, libm functions do not set errno by default.
4557   # Fix that by using +Olibmerrno if the compiler recognizes it.
4558   { $as_echo "$as_me:$LINENO: checking whether $CC supports +Olibmerrno" >&5
4559 $as_echo_n "checking whether $CC supports +Olibmerrno... " >&6; }
4560 if test "${pgac_cv_prog_cc_cflags_pOlibmerrno+set}" = set; then
4561   $as_echo_n "(cached) " >&6
4562 else
4563   pgac_save_CFLAGS=$CFLAGS
4564 CFLAGS="$pgac_save_CFLAGS +Olibmerrno"
4565 ac_save_c_werror_flag=$ac_c_werror_flag
4566 ac_c_werror_flag=yes
4567 cat >conftest.$ac_ext <<_ACEOF
4568 /* confdefs.h.  */
4569 _ACEOF
4570 cat confdefs.h >>conftest.$ac_ext
4571 cat >>conftest.$ac_ext <<_ACEOF
4572 /* end confdefs.h.  */
4573
4574 int
4575 main ()
4576 {
4577
4578   ;
4579   return 0;
4580 }
4581 _ACEOF
4582 rm -f conftest.$ac_objext
4583 if { (ac_try="$ac_compile"
4584 case "(($ac_try" in
4585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586   *) ac_try_echo=$ac_try;;
4587 esac
4588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4589 $as_echo "$ac_try_echo") >&5
4590   (eval "$ac_compile") 2>conftest.er1
4591   ac_status=$?
4592   grep -v '^ *+' conftest.er1 >conftest.err
4593   rm -f conftest.er1
4594   cat conftest.err >&5
4595   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596   (exit $ac_status); } && {
4597          test -z "$ac_c_werror_flag" ||
4598          test ! -s conftest.err
4599        } && test -s conftest.$ac_objext; then
4600   pgac_cv_prog_cc_cflags_pOlibmerrno=yes
4601 else
4602   $as_echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4604
4605         pgac_cv_prog_cc_cflags_pOlibmerrno=no
4606 fi
4607
4608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4609 ac_c_werror_flag=$ac_save_c_werror_flag
4610 CFLAGS="$pgac_save_CFLAGS"
4611 fi
4612 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags_pOlibmerrno" >&5
4613 $as_echo "$pgac_cv_prog_cc_cflags_pOlibmerrno" >&6; }
4614 if test x"$pgac_cv_prog_cc_cflags_pOlibmerrno" = x"yes"; then
4615   CFLAGS="$CFLAGS +Olibmerrno"
4616 fi
4617
4618 fi
4619
4620 # supply -g if --enable-debug
4621 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4622   CFLAGS="$CFLAGS -g"
4623 fi
4624
4625 # enable code coverage if --enable-coverage
4626 if test "$enable_coverage" = yes; then
4627   if test "$GCC" = yes; then
4628     CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4629   else
4630     { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4631 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4632    { (exit 1); exit 1; }; }
4633   fi
4634 fi
4635
4636 # enable profiling if --enable-profiling
4637 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4638   if test "$GCC" = yes; then
4639
4640 cat >>confdefs.h <<\_ACEOF
4641 #define PROFILE_PID_DIR 1
4642 _ACEOF
4643
4644     CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4645   else
4646     { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4647 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4648    { (exit 1); exit 1; }; }
4649   fi
4650 fi
4651
4652 # We already have this in Makefile.win32, but configure needs it too
4653 if test "$PORTNAME" = "win32"; then
4654   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4655 fi
4656
4657 # Check if the compiler still works with the template settings
4658 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4659 $as_echo_n "checking whether the C compiler still works... " >&6; }
4660 cat >conftest.$ac_ext <<_ACEOF
4661 /* confdefs.h.  */
4662 _ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h.  */
4666
4667 int
4668 main ()
4669 {
4670 return 0;
4671   ;
4672   return 0;
4673 }
4674 _ACEOF
4675 rm -f conftest.$ac_objext conftest$ac_exeext
4676 if { (ac_try="$ac_link"
4677 case "(($ac_try" in
4678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679   *) ac_try_echo=$ac_try;;
4680 esac
4681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4682 $as_echo "$ac_try_echo") >&5
4683   (eval "$ac_link") 2>conftest.er1
4684   ac_status=$?
4685   grep -v '^ *+' conftest.er1 >conftest.err
4686   rm -f conftest.er1
4687   cat conftest.err >&5
4688   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689   (exit $ac_status); } && {
4690          test -z "$ac_c_werror_flag" ||
4691          test ! -s conftest.err
4692        } && test -s conftest$ac_exeext && {
4693          test "$cross_compiling" = yes ||
4694          $as_test_x conftest$ac_exeext
4695        }; then
4696   { $as_echo "$as_me:$LINENO: result: yes" >&5
4697 $as_echo "yes" >&6; }
4698 else
4699   $as_echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4701
4702         { $as_echo "$as_me:$LINENO: result: no" >&5
4703 $as_echo "no" >&6; }
4704    { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4705 $as_echo "$as_me: error: cannot proceed" >&2;}
4706    { (exit 1); exit 1; }; }
4707 fi
4708
4709 rm -rf conftest.dSYM
4710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4711       conftest$ac_exeext conftest.$ac_ext
4712
4713 # Defend against gcc -ffast-math
4714 if test "$GCC" = yes; then
4715 cat >conftest.$ac_ext <<_ACEOF
4716 /* confdefs.h.  */
4717 _ACEOF
4718 cat confdefs.h >>conftest.$ac_ext
4719 cat >>conftest.$ac_ext <<_ACEOF
4720 /* end confdefs.h.  */
4721
4722 int
4723 main ()
4724 {
4725 #ifdef __FAST_MATH__
4726 choke me
4727 #endif
4728   ;
4729   return 0;
4730 }
4731 _ACEOF
4732 rm -f conftest.$ac_objext
4733 if { (ac_try="$ac_compile"
4734 case "(($ac_try" in
4735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4736   *) ac_try_echo=$ac_try;;
4737 esac
4738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4739 $as_echo "$ac_try_echo") >&5
4740   (eval "$ac_compile") 2>conftest.er1
4741   ac_status=$?
4742   grep -v '^ *+' conftest.er1 >conftest.err
4743   rm -f conftest.er1
4744   cat conftest.err >&5
4745   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746   (exit $ac_status); } && {
4747          test -z "$ac_c_werror_flag" ||
4748          test ! -s conftest.err
4749        } && test -s conftest.$ac_objext; then
4750   :
4751 else
4752   $as_echo "$as_me: failed program was:" >&5
4753 sed 's/^/| /' conftest.$ac_ext >&5
4754
4755         { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4756 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4757    { (exit 1); exit 1; }; }
4758 fi
4759
4760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761 fi
4762
4763 ac_ext=c
4764 ac_cpp='$CPP $CPPFLAGS'
4765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4768 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4769 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4770 # On Suns, sometimes $CPP names a directory.
4771 if test -n "$CPP" && test -d "$CPP"; then
4772   CPP=
4773 fi
4774 if test -z "$CPP"; then
4775   if test "${ac_cv_prog_CPP+set}" = set; then
4776   $as_echo_n "(cached) " >&6
4777 else
4778       # Double quotes because CPP needs to be expanded
4779     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4780     do
4781       ac_preproc_ok=false
4782 for ac_c_preproc_warn_flag in '' yes
4783 do
4784   # Use a header file that comes with gcc, so configuring glibc
4785   # with a fresh cross-compiler works.
4786   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4787   # <limits.h> exists even on freestanding compilers.
4788   # On the NeXT, cc -E runs the code through the compiler's parser,
4789   # not just through cpp. "Syntax error" is here to catch this case.
4790   cat >conftest.$ac_ext <<_ACEOF
4791 /* confdefs.h.  */
4792 _ACEOF
4793 cat confdefs.h >>conftest.$ac_ext
4794 cat >>conftest.$ac_ext <<_ACEOF
4795 /* end confdefs.h.  */
4796 #ifdef __STDC__
4797 # include <limits.h>
4798 #else
4799 # include <assert.h>
4800 #endif
4801                      Syntax error
4802 _ACEOF
4803 if { (ac_try="$ac_cpp conftest.$ac_ext"
4804 case "(($ac_try" in
4805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4806   *) ac_try_echo=$ac_try;;
4807 esac
4808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4809 $as_echo "$ac_try_echo") >&5
4810   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4811   ac_status=$?
4812   grep -v '^ *+' conftest.er1 >conftest.err
4813   rm -f conftest.er1
4814   cat conftest.err >&5
4815   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816   (exit $ac_status); } >/dev/null && {
4817          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4818          test ! -s conftest.err
4819        }; then
4820   :
4821 else
4822   $as_echo "$as_me: failed program was:" >&5
4823 sed 's/^/| /' conftest.$ac_ext >&5
4824
4825   # Broken: fails on valid input.
4826 continue
4827 fi
4828
4829 rm -f conftest.err conftest.$ac_ext
4830
4831   # OK, works on sane cases.  Now check whether nonexistent headers
4832   # can be detected and how.
4833   cat >conftest.$ac_ext <<_ACEOF
4834 /* confdefs.h.  */
4835 _ACEOF
4836 cat confdefs.h >>conftest.$ac_ext
4837 cat >>conftest.$ac_ext <<_ACEOF
4838 /* end confdefs.h.  */
4839 #include <ac_nonexistent.h>
4840 _ACEOF
4841 if { (ac_try="$ac_cpp conftest.$ac_ext"
4842 case "(($ac_try" in
4843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4844   *) ac_try_echo=$ac_try;;
4845 esac
4846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4847 $as_echo "$ac_try_echo") >&5
4848   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4849   ac_status=$?
4850   grep -v '^ *+' conftest.er1 >conftest.err
4851   rm -f conftest.er1
4852   cat conftest.err >&5
4853   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854   (exit $ac_status); } >/dev/null && {
4855          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4856          test ! -s conftest.err
4857        }; then
4858   # Broken: success on invalid input.
4859 continue
4860 else
4861   $as_echo "$as_me: failed program was:" >&5
4862 sed 's/^/| /' conftest.$ac_ext >&5
4863
4864   # Passes both tests.
4865 ac_preproc_ok=:
4866 break
4867 fi
4868
4869 rm -f conftest.err conftest.$ac_ext
4870
4871 done
4872 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4873 rm -f conftest.err conftest.$ac_ext
4874 if $ac_preproc_ok; then
4875   break
4876 fi
4877
4878     done
4879     ac_cv_prog_CPP=$CPP
4880
4881 fi
4882   CPP=$ac_cv_prog_CPP
4883 else
4884   ac_cv_prog_CPP=$CPP
4885 fi
4886 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4887 $as_echo "$CPP" >&6; }
4888 ac_preproc_ok=false
4889 for ac_c_preproc_warn_flag in '' yes
4890 do
4891   # Use a header file that comes with gcc, so configuring glibc
4892   # with a fresh cross-compiler works.
4893   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4894   # <limits.h> exists even on freestanding compilers.
4895   # On the NeXT, cc -E runs the code through the compiler's parser,
4896   # not just through cpp. "Syntax error" is here to catch this case.
4897   cat >conftest.$ac_ext <<_ACEOF
4898 /* confdefs.h.  */
4899 _ACEOF
4900 cat confdefs.h >>conftest.$ac_ext
4901 cat >>conftest.$ac_ext <<_ACEOF
4902 /* end confdefs.h.  */
4903 #ifdef __STDC__
4904 # include <limits.h>
4905 #else
4906 # include <assert.h>
4907 #endif
4908                      Syntax error
4909 _ACEOF
4910 if { (ac_try="$ac_cpp conftest.$ac_ext"
4911 case "(($ac_try" in
4912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4913   *) ac_try_echo=$ac_try;;
4914 esac
4915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4916 $as_echo "$ac_try_echo") >&5
4917   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4918   ac_status=$?
4919   grep -v '^ *+' conftest.er1 >conftest.err
4920   rm -f conftest.er1
4921   cat conftest.err >&5
4922   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923   (exit $ac_status); } >/dev/null && {
4924          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4925          test ! -s conftest.err
4926        }; then
4927   :
4928 else
4929   $as_echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4931
4932   # Broken: fails on valid input.
4933 continue
4934 fi
4935
4936 rm -f conftest.err conftest.$ac_ext
4937
4938   # OK, works on sane cases.  Now check whether nonexistent headers
4939   # can be detected and how.
4940   cat >conftest.$ac_ext <<_ACEOF
4941 /* confdefs.h.  */
4942 _ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h.  */
4946 #include <ac_nonexistent.h>
4947 _ACEOF
4948 if { (ac_try="$ac_cpp conftest.$ac_ext"
4949 case "(($ac_try" in
4950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4951   *) ac_try_echo=$ac_try;;
4952 esac
4953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4954 $as_echo "$ac_try_echo") >&5
4955   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4956   ac_status=$?
4957   grep -v '^ *+' conftest.er1 >conftest.err
4958   rm -f conftest.er1
4959   cat conftest.err >&5
4960   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961   (exit $ac_status); } >/dev/null && {
4962          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4963          test ! -s conftest.err
4964        }; then
4965   # Broken: success on invalid input.
4966 continue
4967 else
4968   $as_echo "$as_me: failed program was:" >&5
4969 sed 's/^/| /' conftest.$ac_ext >&5
4970
4971   # Passes both tests.
4972 ac_preproc_ok=:
4973 break
4974 fi
4975
4976 rm -f conftest.err conftest.$ac_ext
4977
4978 done
4979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4980 rm -f conftest.err conftest.$ac_ext
4981 if $ac_preproc_ok; then
4982   :
4983 else
4984   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4986 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4987 See \`config.log' for more details." >&5
4988 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4989 See \`config.log' for more details." >&2;}
4990    { (exit 1); exit 1; }; }; }
4991 fi
4992
4993 ac_ext=c
4994 ac_cpp='$CPP $CPPFLAGS'
4995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4998
4999
5000
5001
5002 #
5003 # Set up TAS assembly code if needed; the template file has now had its
5004 # chance to request this.
5005 #
5006 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
5007
5008
5009 if test "$need_tas" = yes ; then
5010   TAS=tas.o
5011 else
5012   TAS=""
5013 fi
5014
5015
5016
5017 #
5018 # Automatic dependency tracking
5019 #
5020
5021
5022 # Check whether --enable-depend was given.
5023 if test "${enable_depend+set}" = set; then
5024   enableval=$enable_depend;
5025   case $enableval in
5026     yes)
5027       autodepend=yes
5028       ;;
5029     no)
5030       :
5031       ;;
5032     *)
5033       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
5034 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
5035    { (exit 1); exit 1; }; }
5036       ;;
5037   esac
5038
5039 else
5040   enable_depend=no
5041
5042 fi
5043
5044
5045
5046
5047
5048 #
5049 # Enable assert checks
5050 #
5051
5052
5053 # Check whether --enable-cassert was given.
5054 if test "${enable_cassert+set}" = set; then
5055   enableval=$enable_cassert;
5056   case $enableval in
5057     yes)
5058
5059 cat >>confdefs.h <<\_ACEOF
5060 #define USE_ASSERT_CHECKING 1
5061 _ACEOF
5062
5063       ;;
5064     no)
5065       :
5066       ;;
5067     *)
5068       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
5069 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
5070    { (exit 1); exit 1; }; }
5071       ;;
5072   esac
5073
5074 else
5075   enable_cassert=no
5076
5077 fi
5078
5079
5080
5081
5082 #
5083 # Include directories
5084 #
5085 ac_save_IFS=$IFS
5086 IFS="${IFS}${PATH_SEPARATOR}"
5087 # SRCH_INC comes from the template file
5088 for dir in $with_includes $SRCH_INC; do
5089   if test -d "$dir"; then
5090     INCLUDES="$INCLUDES -I$dir"
5091   else
5092     { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
5093 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
5094   fi
5095 done
5096 IFS=$ac_save_IFS
5097
5098
5099
5100 #
5101 # Library directories
5102 #
5103 ac_save_IFS=$IFS
5104 IFS="${IFS}${PATH_SEPARATOR}"
5105 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
5106 for dir in $LIBRARY_DIRS $SRCH_LIB; do
5107   if test -d "$dir"; then
5108     LIBDIRS="$LIBDIRS -L$dir"
5109   else
5110     { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
5111 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
5112   fi
5113 done
5114 IFS=$ac_save_IFS
5115
5116 #
5117 # Enable thread-safe client libraries
5118 #
5119 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
5120 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
5121
5122
5123 # Check whether --enable-thread-safety was given.
5124 if test "${enable_thread_safety+set}" = set; then
5125   enableval=$enable_thread_safety;
5126   case $enableval in
5127     yes)
5128       :
5129       ;;
5130     no)
5131       :
5132       ;;
5133     *)
5134       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
5135 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
5136    { (exit 1); exit 1; }; }
5137       ;;
5138   esac
5139
5140 else
5141   enable_thread_safety=yes
5142
5143 fi
5144
5145
5146 if test "$enable_thread_safety" = yes; then
5147
5148 cat >>confdefs.h <<\_ACEOF
5149 #define ENABLE_THREAD_SAFETY 1
5150 _ACEOF
5151
5152 fi
5153 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
5154 $as_echo "$enable_thread_safety" >&6; }
5155
5156
5157 #
5158 # Optionally build Tcl modules (PL/Tcl)
5159 #
5160 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
5161 $as_echo_n "checking whether to build with Tcl... " >&6; }
5162
5163
5164
5165 # Check whether --with-tcl was given.
5166 if test "${with_tcl+set}" = set; then
5167   withval=$with_tcl;
5168   case $withval in
5169     yes)
5170       :
5171       ;;
5172     no)
5173       :
5174       ;;
5175     *)
5176       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
5177 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
5178    { (exit 1); exit 1; }; }
5179       ;;
5180   esac
5181
5182 else
5183   with_tcl=no
5184
5185 fi
5186
5187
5188 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
5189 $as_echo "$with_tcl" >&6; }
5190
5191
5192 # We see if the path to the Tcl/Tk configuration scripts is specified.
5193 # This will override the use of tclsh to find the paths to search.
5194
5195
5196
5197
5198 # Check whether --with-tclconfig was given.
5199 if test "${with_tclconfig+set}" = set; then
5200   withval=$with_tclconfig;
5201   case $withval in
5202     yes)
5203       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5204 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5205    { (exit 1); exit 1; }; }
5206       ;;
5207     no)
5208       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5209 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5210    { (exit 1); exit 1; }; }
5211       ;;
5212     *)
5213
5214       ;;
5215   esac
5216
5217 fi
5218
5219
5220
5221 #
5222 # Optionally build Perl modules (PL/Perl)
5223 #
5224 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
5225 $as_echo_n "checking whether to build Perl modules... " >&6; }
5226
5227
5228
5229 # Check whether --with-perl was given.
5230 if test "${with_perl+set}" = set; then
5231   withval=$with_perl;
5232   case $withval in
5233     yes)
5234       :
5235       ;;
5236     no)
5237       :
5238       ;;
5239     *)
5240       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
5241 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
5242    { (exit 1); exit 1; }; }
5243       ;;
5244   esac
5245
5246 else
5247   with_perl=no
5248
5249 fi
5250
5251
5252 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
5253 $as_echo "$with_perl" >&6; }
5254
5255
5256 #
5257 # Optionally build Python modules (PL/Python)
5258 #
5259 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5260 $as_echo_n "checking whether to build Python modules... " >&6; }
5261
5262
5263
5264 # Check whether --with-python was given.
5265 if test "${with_python+set}" = set; then
5266   withval=$with_python;
5267   case $withval in
5268     yes)
5269       :
5270       ;;
5271     no)
5272       :
5273       ;;
5274     *)
5275       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5276 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5277    { (exit 1); exit 1; }; }
5278       ;;
5279   esac
5280
5281 else
5282   with_python=no
5283
5284 fi
5285
5286
5287 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5288 $as_echo "$with_python" >&6; }
5289
5290
5291 #
5292 # GSSAPI
5293 #
5294 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5295 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5296
5297
5298
5299 # Check whether --with-gssapi was given.
5300 if test "${with_gssapi+set}" = set; then
5301   withval=$with_gssapi;
5302   case $withval in
5303     yes)
5304
5305
5306 cat >>confdefs.h <<\_ACEOF
5307 #define ENABLE_GSS 1
5308 _ACEOF
5309
5310   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5311
5312       ;;
5313     no)
5314       :
5315       ;;
5316     *)
5317       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5318 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5319    { (exit 1); exit 1; }; }
5320       ;;
5321   esac
5322
5323 else
5324   with_gssapi=no
5325
5326 fi
5327
5328
5329 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5330 $as_echo "$with_gssapi" >&6; }
5331
5332
5333 #
5334 # Kerberos 5
5335 #
5336 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5337 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5338
5339
5340
5341 # Check whether --with-krb5 was given.
5342 if test "${with_krb5+set}" = set; then
5343   withval=$with_krb5;
5344   case $withval in
5345     yes)
5346
5347
5348 cat >>confdefs.h <<\_ACEOF
5349 #define KRB5 1
5350 _ACEOF
5351
5352   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5353
5354       ;;
5355     no)
5356       :
5357       ;;
5358     *)
5359       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5360 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5361    { (exit 1); exit 1; }; }
5362       ;;
5363   esac
5364
5365 else
5366   with_krb5=no
5367
5368 fi
5369
5370
5371 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5372 $as_echo "$with_krb5" >&6; }
5373
5374
5375
5376
5377
5378
5379 #
5380 # Kerberos configuration parameters
5381 #
5382
5383
5384
5385 # Check whether --with-krb-srvnam was given.
5386 if test "${with_krb_srvnam+set}" = set; then
5387   withval=$with_krb_srvnam;
5388   case $withval in
5389     yes)
5390       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5391 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5392    { (exit 1); exit 1; }; }
5393       ;;
5394     no)
5395       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5396 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5397    { (exit 1); exit 1; }; }
5398       ;;
5399     *)
5400
5401       ;;
5402   esac
5403
5404 else
5405   with_krb_srvnam="postgres"
5406 fi
5407
5408
5409
5410 cat >>confdefs.h <<_ACEOF
5411 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5412 _ACEOF
5413
5414
5415
5416 #
5417 # PAM
5418 #
5419 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5420 $as_echo_n "checking whether to build with PAM support... " >&6; }
5421
5422
5423
5424 # Check whether --with-pam was given.
5425 if test "${with_pam+set}" = set; then
5426   withval=$with_pam;
5427   case $withval in
5428     yes)
5429
5430 cat >>confdefs.h <<\_ACEOF
5431 #define USE_PAM 1
5432 _ACEOF
5433
5434       ;;
5435     no)
5436       :
5437       ;;
5438     *)
5439       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5440 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5441    { (exit 1); exit 1; }; }
5442       ;;
5443   esac
5444
5445 else
5446   with_pam=no
5447
5448 fi
5449
5450
5451 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5452 $as_echo "$with_pam" >&6; }
5453
5454
5455
5456 #
5457 # LDAP
5458 #
5459 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5460 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5461
5462
5463
5464 # Check whether --with-ldap was given.
5465 if test "${with_ldap+set}" = set; then
5466   withval=$with_ldap;
5467   case $withval in
5468     yes)
5469
5470 cat >>confdefs.h <<\_ACEOF
5471 #define USE_LDAP 1
5472 _ACEOF
5473
5474       ;;
5475     no)
5476       :
5477       ;;
5478     *)
5479       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5480 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5481    { (exit 1); exit 1; }; }
5482       ;;
5483   esac
5484
5485 else
5486   with_ldap=no
5487
5488 fi
5489
5490
5491 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5492 $as_echo "$with_ldap" >&6; }
5493
5494
5495
5496 #
5497 # Bonjour
5498 #
5499 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5500 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5501
5502
5503
5504 # Check whether --with-bonjour was given.
5505 if test "${with_bonjour+set}" = set; then
5506   withval=$with_bonjour;
5507   case $withval in
5508     yes)
5509
5510 cat >>confdefs.h <<\_ACEOF
5511 #define USE_BONJOUR 1
5512 _ACEOF
5513
5514       ;;
5515     no)
5516       :
5517       ;;
5518     *)
5519       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5520 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5521    { (exit 1); exit 1; }; }
5522       ;;
5523   esac
5524
5525 else
5526   with_bonjour=no
5527
5528 fi
5529
5530
5531 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5532 $as_echo "$with_bonjour" >&6; }
5533
5534
5535
5536 #
5537 # OpenSSL
5538 #
5539 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5540 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5541
5542
5543
5544 # Check whether --with-openssl was given.
5545 if test "${with_openssl+set}" = set; then
5546   withval=$with_openssl;
5547   case $withval in
5548     yes)
5549
5550 cat >>confdefs.h <<\_ACEOF
5551 #define USE_SSL 1
5552 _ACEOF
5553
5554       ;;
5555     no)
5556       :
5557       ;;
5558     *)
5559       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5560 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5561    { (exit 1); exit 1; }; }
5562       ;;
5563   esac
5564
5565 else
5566   with_openssl=no
5567
5568 fi
5569
5570
5571 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5572 $as_echo "$with_openssl" >&6; }
5573
5574
5575 #
5576 # SELinux
5577 #
5578 { $as_echo "$as_me:$LINENO: checking whether to build with SELinux support" >&5
5579 $as_echo_n "checking whether to build with SELinux support... " >&6; }
5580
5581
5582
5583 # Check whether --with-selinux was given.
5584 if test "${with_selinux+set}" = set; then
5585   withval=$with_selinux;
5586   case $withval in
5587     yes)
5588       :
5589       ;;
5590     no)
5591       :
5592       ;;
5593     *)
5594       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-selinux option" >&5
5595 $as_echo "$as_me: error: no argument expected for --with-selinux option" >&2;}
5596    { (exit 1); exit 1; }; }
5597       ;;
5598   esac
5599
5600 else
5601   with_selinux=no
5602
5603 fi
5604
5605
5606
5607 { $as_echo "$as_me:$LINENO: result: $with_selinux" >&5
5608 $as_echo "$with_selinux" >&6; }
5609
5610 #
5611 # Readline
5612 #
5613
5614
5615
5616 # Check whether --with-readline was given.
5617 if test "${with_readline+set}" = set; then
5618   withval=$with_readline;
5619   case $withval in
5620     yes)
5621       :
5622       ;;
5623     no)
5624       :
5625       ;;
5626     *)
5627       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5628 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5629    { (exit 1); exit 1; }; }
5630       ;;
5631   esac
5632
5633 else
5634   with_readline=yes
5635
5636 fi
5637
5638
5639 # readline on MinGW has problems with backslashes in psql and other bugs.
5640 # This is particularly a problem with non-US code pages.
5641 # Therefore disable its use until we understand the cause. 2004-07-20
5642 if test "$PORTNAME" = "win32"; then
5643   if test "$with_readline" = yes; then
5644     { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5645 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5646     with_readline=no
5647   fi
5648 fi
5649
5650
5651 #
5652 # Prefer libedit
5653 #
5654
5655
5656
5657 # Check whether --with-libedit-preferred was given.
5658 if test "${with_libedit_preferred+set}" = set; then
5659   withval=$with_libedit_preferred;
5660   case $withval in
5661     yes)
5662       :
5663       ;;
5664     no)
5665       :
5666       ;;
5667     *)
5668       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5669 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5670    { (exit 1); exit 1; }; }
5671       ;;
5672   esac
5673
5674 else
5675   with_libedit_preferred=no
5676
5677 fi
5678
5679
5680
5681
5682 #
5683 # OSSP UUID library
5684 #
5685
5686
5687
5688 # Check whether --with-ossp-uuid was given.
5689 if test "${with_ossp_uuid+set}" = set; then
5690   withval=$with_ossp_uuid;
5691   case $withval in
5692     yes)
5693       :
5694       ;;
5695     no)
5696       :
5697       ;;
5698     *)
5699       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5700 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5701    { (exit 1); exit 1; }; }
5702       ;;
5703   esac
5704
5705 else
5706   with_ossp_uuid=no
5707
5708 fi
5709
5710
5711
5712
5713
5714 #
5715 # XML
5716 #
5717
5718
5719
5720 # Check whether --with-libxml was given.
5721 if test "${with_libxml+set}" = set; then
5722   withval=$with_libxml;
5723   case $withval in
5724     yes)
5725
5726 cat >>confdefs.h <<\_ACEOF
5727 #define USE_LIBXML 1
5728 _ACEOF
5729
5730       ;;
5731     no)
5732       :
5733       ;;
5734     *)
5735       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5736 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5737    { (exit 1); exit 1; }; }
5738       ;;
5739   esac
5740
5741 else
5742   with_libxml=no
5743
5744 fi
5745
5746
5747
5748 if test "$with_libxml" = yes ; then
5749   for ac_prog in xml2-config
5750 do
5751   # Extract the first word of "$ac_prog", so it can be a program name with args.
5752 set dummy $ac_prog; ac_word=$2
5753 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5754 $as_echo_n "checking for $ac_word... " >&6; }
5755 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5756   $as_echo_n "(cached) " >&6
5757 else
5758   if test -n "$XML2_CONFIG"; then
5759   ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5760 else
5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762 for as_dir in $PATH
5763 do
5764   IFS=$as_save_IFS
5765   test -z "$as_dir" && as_dir=.
5766   for ac_exec_ext in '' $ac_executable_extensions; do
5767   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5768     ac_cv_prog_XML2_CONFIG="$ac_prog"
5769     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5770     break 2
5771   fi
5772 done
5773 done
5774 IFS=$as_save_IFS
5775
5776 fi
5777 fi
5778 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5779 if test -n "$XML2_CONFIG"; then
5780   { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5781 $as_echo "$XML2_CONFIG" >&6; }
5782 else
5783   { $as_echo "$as_me:$LINENO: result: no" >&5
5784 $as_echo "no" >&6; }
5785 fi
5786
5787
5788   test -n "$XML2_CONFIG" && break
5789 done
5790
5791   if test -n "$XML2_CONFIG"; then
5792     for pgac_option in `$XML2_CONFIG --cflags`; do
5793       case $pgac_option in
5794         -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5795       esac
5796     done
5797     for pgac_option in `$XML2_CONFIG --libs`; do
5798       case $pgac_option in
5799         -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5800       esac
5801     done
5802   fi
5803 fi
5804
5805
5806
5807 #
5808 # XSLT
5809 #
5810
5811
5812
5813 # Check whether --with-libxslt was given.
5814 if test "${with_libxslt+set}" = set; then
5815   withval=$with_libxslt;
5816   case $withval in
5817     yes)
5818
5819 cat >>confdefs.h <<\_ACEOF
5820 #define USE_LIBXSLT 1
5821 _ACEOF
5822
5823       ;;
5824     no)
5825       :
5826       ;;
5827     *)
5828       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5829 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5830    { (exit 1); exit 1; }; }
5831       ;;
5832   esac
5833
5834 else
5835   with_libxslt=no
5836
5837 fi
5838
5839
5840
5841
5842
5843
5844 #
5845 # tzdata
5846 #
5847
5848
5849
5850 # Check whether --with-system-tzdata was given.
5851 if test "${with_system_tzdata+set}" = set; then
5852   withval=$with_system_tzdata;
5853   case $withval in
5854     yes)
5855       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5856 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5857    { (exit 1); exit 1; }; }
5858       ;;
5859     no)
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     *)
5865
5866       ;;
5867   esac
5868
5869 fi
5870
5871
5872
5873
5874 #
5875 # Zlib
5876 #
5877
5878
5879
5880 # Check whether --with-zlib was given.
5881 if test "${with_zlib+set}" = set; then
5882   withval=$with_zlib;
5883   case $withval in
5884     yes)
5885       :
5886       ;;
5887     no)
5888       :
5889       ;;
5890     *)
5891       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5892 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5893    { (exit 1); exit 1; }; }
5894       ;;
5895   esac
5896
5897 else
5898   with_zlib=yes
5899
5900 fi
5901
5902
5903
5904
5905 #
5906 # Elf
5907 #
5908
5909 # Assume system is ELF if it predefines __ELF__ as 1,
5910 # otherwise believe host_os based default.
5911 case $host_os in
5912     freebsd1*|freebsd2*) elf=no;;
5913     freebsd3*|freebsd4*) elf=yes;;
5914 esac
5915
5916
5917 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5918 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5919 if test "${ac_cv_path_GREP+set}" = set; then
5920   $as_echo_n "(cached) " >&6
5921 else
5922   if test -z "$GREP"; then
5923   ac_path_GREP_found=false
5924   # Loop through the user's path and test for each of PROGNAME-LIST
5925   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5927 do
5928   IFS=$as_save_IFS
5929   test -z "$as_dir" && as_dir=.
5930   for ac_prog in grep ggrep; do
5931     for ac_exec_ext in '' $ac_executable_extensions; do
5932       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5933       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5934 # Check for GNU ac_path_GREP and select it if it is found.
5935   # Check for GNU $ac_path_GREP
5936 case `"$ac_path_GREP" --version 2>&1` in
5937 *GNU*)
5938   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5939 *)
5940   ac_count=0
5941   $as_echo_n 0123456789 >"conftest.in"
5942   while :
5943   do
5944     cat "conftest.in" "conftest.in" >"conftest.tmp"
5945     mv "conftest.tmp" "conftest.in"
5946     cp "conftest.in" "conftest.nl"
5947     $as_echo 'GREP' >> "conftest.nl"
5948     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5949     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5950     ac_count=`expr $ac_count + 1`
5951     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5952       # Best one so far, save it but keep looking for a better one
5953       ac_cv_path_GREP="$ac_path_GREP"
5954       ac_path_GREP_max=$ac_count
5955     fi
5956     # 10*(2^10) chars as input seems more than enough
5957     test $ac_count -gt 10 && break
5958   done
5959   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5960 esac
5961
5962       $ac_path_GREP_found && break 3
5963     done
5964   done
5965 done
5966 IFS=$as_save_IFS
5967   if test -z "$ac_cv_path_GREP"; then
5968     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5969 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5970    { (exit 1); exit 1; }; }
5971   fi
5972 else
5973   ac_cv_path_GREP=$GREP
5974 fi
5975
5976 fi
5977 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5978 $as_echo "$ac_cv_path_GREP" >&6; }
5979  GREP="$ac_cv_path_GREP"
5980
5981
5982 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5983 $as_echo_n "checking for egrep... " >&6; }
5984 if test "${ac_cv_path_EGREP+set}" = set; then
5985   $as_echo_n "(cached) " >&6
5986 else
5987   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5988    then ac_cv_path_EGREP="$GREP -E"
5989    else
5990      if test -z "$EGREP"; then
5991   ac_path_EGREP_found=false
5992   # Loop through the user's path and test for each of PROGNAME-LIST
5993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5995 do
5996   IFS=$as_save_IFS
5997   test -z "$as_dir" && as_dir=.
5998   for ac_prog in egrep; do
5999     for ac_exec_ext in '' $ac_executable_extensions; do
6000       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6001       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6002 # Check for GNU ac_path_EGREP and select it if it is found.
6003   # Check for GNU $ac_path_EGREP
6004 case `"$ac_path_EGREP" --version 2>&1` in
6005 *GNU*)
6006   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6007 *)
6008   ac_count=0
6009   $as_echo_n 0123456789 >"conftest.in"
6010   while :
6011   do
6012     cat "conftest.in" "conftest.in" >"conftest.tmp"
6013     mv "conftest.tmp" "conftest.in"
6014     cp "conftest.in" "conftest.nl"
6015     $as_echo 'EGREP' >> "conftest.nl"
6016     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6017     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6018     ac_count=`expr $ac_count + 1`
6019     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6020       # Best one so far, save it but keep looking for a better one
6021       ac_cv_path_EGREP="$ac_path_EGREP"
6022       ac_path_EGREP_max=$ac_count
6023     fi
6024     # 10*(2^10) chars as input seems more than enough
6025     test $ac_count -gt 10 && break
6026   done
6027   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6028 esac
6029
6030       $ac_path_EGREP_found && break 3
6031     done
6032   done
6033 done
6034 IFS=$as_save_IFS
6035   if test -z "$ac_cv_path_EGREP"; then
6036     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6037 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6038    { (exit 1); exit 1; }; }
6039   fi
6040 else
6041   ac_cv_path_EGREP=$EGREP
6042 fi
6043
6044    fi
6045 fi
6046 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6047 $as_echo "$ac_cv_path_EGREP" >&6; }
6048  EGREP="$ac_cv_path_EGREP"
6049
6050
6051 cat >conftest.$ac_ext <<_ACEOF
6052 /* confdefs.h.  */
6053 _ACEOF
6054 cat confdefs.h >>conftest.$ac_ext
6055 cat >>conftest.$ac_ext <<_ACEOF
6056 /* end confdefs.h.  */
6057 #if __ELF__
6058   yes
6059 #endif
6060
6061 _ACEOF
6062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6063   $EGREP "yes" >/dev/null 2>&1; then
6064   ELF_SYS=true
6065 else
6066   if test "X$elf" = "Xyes" ; then
6067   ELF_SYS=true
6068 else
6069   ELF_SYS=
6070 fi
6071 fi
6072 rm -f conftest*
6073
6074
6075
6076 #
6077 # Assignments
6078 #
6079
6080 CPPFLAGS="$CPPFLAGS $INCLUDES"
6081 LDFLAGS="$LDFLAGS $LIBDIRS"
6082
6083
6084
6085
6086
6087 # Check whether --with-gnu-ld was given.
6088 if test "${with_gnu_ld+set}" = set; then
6089   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6090 else
6091   with_gnu_ld=no
6092 fi
6093
6094 ac_prog=ld
6095 if test "$GCC" = yes; then
6096   # Check if gcc -print-prog-name=ld gives a path.
6097   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6098 $as_echo_n "checking for ld used by GCC... " >&6; }
6099   case $host in
6100   *-*-mingw*)
6101     # gcc leaves a trailing carriage return which upsets mingw
6102     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6103   *)
6104     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6105   esac
6106   case "$ac_prog" in
6107     # Accept absolute paths.
6108     [\\/]* | [A-Za-z]:[\\/]*)
6109       re_direlt='/[^/][^/]*/\.\./'
6110       # Canonicalize the path of ld
6111       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6112       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6113         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6114       done
6115       test -z "$LD" && LD="$ac_prog"
6116       ;;
6117   "")
6118     # If it fails, then pretend we aren't using GCC.
6119     ac_prog=ld
6120     ;;
6121   *)
6122     # If it is relative, then search for the first ld in PATH.
6123     with_gnu_ld=unknown
6124     ;;
6125   esac
6126 elif test "$with_gnu_ld" = yes; then
6127   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6128 $as_echo_n "checking for GNU ld... " >&6; }
6129 else
6130   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6131 $as_echo_n "checking for non-GNU ld... " >&6; }
6132 fi
6133 if test "${ac_cv_path_LD+set}" = set; then
6134   $as_echo_n "(cached) " >&6
6135 else
6136   if test -z "$LD"; then
6137   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6138   for ac_dir in $PATH; do
6139     test -z "$ac_dir" && ac_dir=.
6140     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6141       ac_cv_path_LD="$ac_dir/$ac_prog"
6142       # Check to see if the program is GNU ld.  I'd rather use --version,
6143       # but apparently some GNU ld's only accept -v.
6144       # Break only if it was the GNU/non-GNU ld that we prefer.
6145       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6146         test "$with_gnu_ld" != no && break
6147       else
6148         test "$with_gnu_ld" != yes && break
6149       fi
6150     fi
6151   done
6152   IFS="$ac_save_ifs"
6153 else
6154   ac_cv_path_LD="$LD" # Let the user override the test with a path.
6155 fi
6156 fi
6157
6158 LD="$ac_cv_path_LD"
6159 if test -n "$LD"; then
6160   { $as_echo "$as_me:$LINENO: result: $LD" >&5
6161 $as_echo "$LD" >&6; }
6162 else
6163   { $as_echo "$as_me:$LINENO: result: no" >&5
6164 $as_echo "no" >&6; }
6165 fi
6166 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6167 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6168    { (exit 1); exit 1; }; }
6169 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6170 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6171 if test "${ac_cv_prog_gnu_ld+set}" = set; then
6172   $as_echo_n "(cached) " >&6
6173 else
6174   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6175 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6176   ac_cv_prog_gnu_ld=yes
6177 else
6178   ac_cv_prog_gnu_ld=no
6179 fi
6180 fi
6181 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
6182 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6183 with_gnu_ld=$ac_cv_prog_gnu_ld
6184
6185
6186
6187
6188 case $host_os in sysv5*)
6189   { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
6190 $as_echo_n "checking whether ld -R works... " >&6; }
6191 if test "${pgac_cv_prog_ld_R+set}" = set; then
6192   $as_echo_n "(cached) " >&6
6193 else
6194
6195     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
6196     cat >conftest.$ac_ext <<_ACEOF
6197 /* confdefs.h.  */
6198 _ACEOF
6199 cat confdefs.h >>conftest.$ac_ext
6200 cat >>conftest.$ac_ext <<_ACEOF
6201 /* end confdefs.h.  */
6202
6203 int
6204 main ()
6205 {
6206
6207   ;
6208   return 0;
6209 }
6210 _ACEOF
6211 rm -f conftest.$ac_objext conftest$ac_exeext
6212 if { (ac_try="$ac_link"
6213 case "(($ac_try" in
6214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6215   *) ac_try_echo=$ac_try;;
6216 esac
6217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6218 $as_echo "$ac_try_echo") >&5
6219   (eval "$ac_link") 2>conftest.er1
6220   ac_status=$?
6221   grep -v '^ *+' conftest.er1 >conftest.err
6222   rm -f conftest.er1
6223   cat conftest.err >&5
6224   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225   (exit $ac_status); } && {
6226          test -z "$ac_c_werror_flag" ||
6227          test ! -s conftest.err
6228        } && test -s conftest$ac_exeext && {
6229          test "$cross_compiling" = yes ||
6230          $as_test_x conftest$ac_exeext
6231        }; then
6232   pgac_cv_prog_ld_R=yes
6233 else
6234   $as_echo "$as_me: failed program was:" >&5
6235 sed 's/^/| /' conftest.$ac_ext >&5
6236
6237         pgac_cv_prog_ld_R=no
6238 fi
6239
6240 rm -rf conftest.dSYM
6241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6242       conftest$ac_exeext conftest.$ac_ext
6243     LDFLAGS=$pgac_save_LDFLAGS
6244
6245 fi
6246 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
6247 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6248   ld_R_works=$pgac_cv_prog_ld_R
6249
6250 esac
6251 if test -n "$ac_tool_prefix"; then
6252   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6253 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6254 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6255 $as_echo_n "checking for $ac_word... " >&6; }
6256 if test "${ac_cv_prog_RANLIB+set}" = set; then
6257   $as_echo_n "(cached) " >&6
6258 else
6259   if test -n "$RANLIB"; then
6260   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6261 else
6262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 for as_dir in $PATH
6264 do
6265   IFS=$as_save_IFS
6266   test -z "$as_dir" && as_dir=.
6267   for ac_exec_ext in '' $ac_executable_extensions; do
6268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6269     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6270     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6271     break 2
6272   fi
6273 done
6274 done
6275 IFS=$as_save_IFS
6276
6277 fi
6278 fi
6279 RANLIB=$ac_cv_prog_RANLIB
6280 if test -n "$RANLIB"; then
6281   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6282 $as_echo "$RANLIB" >&6; }
6283 else
6284   { $as_echo "$as_me:$LINENO: result: no" >&5
6285 $as_echo "no" >&6; }
6286 fi
6287
6288
6289 fi
6290 if test -z "$ac_cv_prog_RANLIB"; then
6291   ac_ct_RANLIB=$RANLIB
6292   # Extract the first word of "ranlib", so it can be a program name with args.
6293 set dummy ranlib; ac_word=$2
6294 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6295 $as_echo_n "checking for $ac_word... " >&6; }
6296 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6297   $as_echo_n "(cached) " >&6
6298 else
6299   if test -n "$ac_ct_RANLIB"; then
6300   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6301 else
6302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303 for as_dir in $PATH
6304 do
6305   IFS=$as_save_IFS
6306   test -z "$as_dir" && as_dir=.
6307   for ac_exec_ext in '' $ac_executable_extensions; do
6308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6309     ac_cv_prog_ac_ct_RANLIB="ranlib"
6310     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6311     break 2
6312   fi
6313 done
6314 done
6315 IFS=$as_save_IFS
6316
6317 fi
6318 fi
6319 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6320 if test -n "$ac_ct_RANLIB"; then
6321   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6322 $as_echo "$ac_ct_RANLIB" >&6; }
6323 else
6324   { $as_echo "$as_me:$LINENO: result: no" >&5
6325 $as_echo "no" >&6; }
6326 fi
6327
6328   if test "x$ac_ct_RANLIB" = x; then
6329     RANLIB=":"
6330   else
6331     case $cross_compiling:$ac_tool_warned in
6332 yes:)
6333 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6335 ac_tool_warned=yes ;;
6336 esac
6337     RANLIB=$ac_ct_RANLIB
6338   fi
6339 else
6340   RANLIB="$ac_cv_prog_RANLIB"
6341 fi
6342
6343
6344   if test -n "$ac_tool_prefix"; then
6345   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6346 set dummy ${ac_tool_prefix}strip; ac_word=$2
6347 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6348 $as_echo_n "checking for $ac_word... " >&6; }
6349 if test "${ac_cv_prog_STRIP+set}" = set; then
6350   $as_echo_n "(cached) " >&6
6351 else
6352   if test -n "$STRIP"; then
6353   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6354 else
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 for as_dir in $PATH
6357 do
6358   IFS=$as_save_IFS
6359   test -z "$as_dir" && as_dir=.
6360   for ac_exec_ext in '' $ac_executable_extensions; do
6361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6362     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6363     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6364     break 2
6365   fi
6366 done
6367 done
6368 IFS=$as_save_IFS
6369
6370 fi
6371 fi
6372 STRIP=$ac_cv_prog_STRIP
6373 if test -n "$STRIP"; then
6374   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6375 $as_echo "$STRIP" >&6; }
6376 else
6377   { $as_echo "$as_me:$LINENO: result: no" >&5
6378 $as_echo "no" >&6; }
6379 fi
6380
6381
6382 fi
6383 if test -z "$ac_cv_prog_STRIP"; then
6384   ac_ct_STRIP=$STRIP
6385   # Extract the first word of "strip", so it can be a program name with args.
6386 set dummy strip; ac_word=$2
6387 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6388 $as_echo_n "checking for $ac_word... " >&6; }
6389 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6390   $as_echo_n "(cached) " >&6
6391 else
6392   if test -n "$ac_ct_STRIP"; then
6393   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6394 else
6395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396 for as_dir in $PATH
6397 do
6398   IFS=$as_save_IFS
6399   test -z "$as_dir" && as_dir=.
6400   for ac_exec_ext in '' $ac_executable_extensions; do
6401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6402     ac_cv_prog_ac_ct_STRIP="strip"
6403     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6404     break 2
6405   fi
6406 done
6407 done
6408 IFS=$as_save_IFS
6409
6410 fi
6411 fi
6412 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6413 if test -n "$ac_ct_STRIP"; then
6414   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6415 $as_echo "$ac_ct_STRIP" >&6; }
6416 else
6417   { $as_echo "$as_me:$LINENO: result: no" >&5
6418 $as_echo "no" >&6; }
6419 fi
6420
6421   if test "x$ac_ct_STRIP" = x; then
6422     STRIP=":"
6423   else
6424     case $cross_compiling:$ac_tool_warned in
6425 yes:)
6426 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6428 ac_tool_warned=yes ;;
6429 esac
6430     STRIP=$ac_ct_STRIP
6431   fi
6432 else
6433   STRIP="$ac_cv_prog_STRIP"
6434 fi
6435
6436
6437   { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6438 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6439   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6440     STRIP_STATIC_LIB="$STRIP -x"
6441     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6442     { $as_echo "$as_me:$LINENO: result: yes" >&5
6443 $as_echo "yes" >&6; }
6444   else
6445     STRIP_STATIC_LIB=:
6446     STRIP_SHARED_LIB=:
6447     { $as_echo "$as_me:$LINENO: result: no" >&5
6448 $as_echo "no" >&6; }
6449   fi
6450
6451
6452
6453 if test -n "$ac_tool_prefix"; then
6454   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6455 set dummy ${ac_tool_prefix}ar; ac_word=$2
6456 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6457 $as_echo_n "checking for $ac_word... " >&6; }
6458 if test "${ac_cv_prog_AR+set}" = set; then
6459   $as_echo_n "(cached) " >&6
6460 else
6461   if test -n "$AR"; then
6462   ac_cv_prog_AR="$AR" # Let the user override the test.
6463 else
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 for as_dir in $PATH
6466 do
6467   IFS=$as_save_IFS
6468   test -z "$as_dir" && as_dir=.
6469   for ac_exec_ext in '' $ac_executable_extensions; do
6470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6471     ac_cv_prog_AR="${ac_tool_prefix}ar"
6472     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6473     break 2
6474   fi
6475 done
6476 done
6477 IFS=$as_save_IFS
6478
6479 fi
6480 fi
6481 AR=$ac_cv_prog_AR
6482 if test -n "$AR"; then
6483   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6484 $as_echo "$AR" >&6; }
6485 else
6486   { $as_echo "$as_me:$LINENO: result: no" >&5
6487 $as_echo "no" >&6; }
6488 fi
6489
6490
6491 fi
6492 if test -z "$ac_cv_prog_AR"; then
6493   ac_ct_AR=$AR
6494   # Extract the first word of "ar", so it can be a program name with args.
6495 set dummy ar; ac_word=$2
6496 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6497 $as_echo_n "checking for $ac_word... " >&6; }
6498 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6499   $as_echo_n "(cached) " >&6
6500 else
6501   if test -n "$ac_ct_AR"; then
6502   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6503 else
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 for as_dir in $PATH
6506 do
6507   IFS=$as_save_IFS
6508   test -z "$as_dir" && as_dir=.
6509   for ac_exec_ext in '' $ac_executable_extensions; do
6510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6511     ac_cv_prog_ac_ct_AR="ar"
6512     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6513     break 2
6514   fi
6515 done
6516 done
6517 IFS=$as_save_IFS
6518
6519 fi
6520 fi
6521 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6522 if test -n "$ac_ct_AR"; then
6523   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6524 $as_echo "$ac_ct_AR" >&6; }
6525 else
6526   { $as_echo "$as_me:$LINENO: result: no" >&5
6527 $as_echo "no" >&6; }
6528 fi
6529
6530   if test "x$ac_ct_AR" = x; then
6531     AR="ar"
6532   else
6533     case $cross_compiling:$ac_tool_warned in
6534 yes:)
6535 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6537 ac_tool_warned=yes ;;
6538 esac
6539     AR=$ac_ct_AR
6540   fi
6541 else
6542   AR="$ac_cv_prog_AR"
6543 fi
6544
6545 if test "$PORTNAME" = "win32"; then
6546   if test -n "$ac_tool_prefix"; then
6547   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6548 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6549 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6550 $as_echo_n "checking for $ac_word... " >&6; }
6551 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6552   $as_echo_n "(cached) " >&6
6553 else
6554   if test -n "$DLLTOOL"; then
6555   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6556 else
6557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558 for as_dir in $PATH
6559 do
6560   IFS=$as_save_IFS
6561   test -z "$as_dir" && as_dir=.
6562   for ac_exec_ext in '' $ac_executable_extensions; do
6563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6564     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6565     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6566     break 2
6567   fi
6568 done
6569 done
6570 IFS=$as_save_IFS
6571
6572 fi
6573 fi
6574 DLLTOOL=$ac_cv_prog_DLLTOOL
6575 if test -n "$DLLTOOL"; then
6576   { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6577 $as_echo "$DLLTOOL" >&6; }
6578 else
6579   { $as_echo "$as_me:$LINENO: result: no" >&5
6580 $as_echo "no" >&6; }
6581 fi
6582
6583
6584 fi
6585 if test -z "$ac_cv_prog_DLLTOOL"; then
6586   ac_ct_DLLTOOL=$DLLTOOL
6587   # Extract the first word of "dlltool", so it can be a program name with args.
6588 set dummy dlltool; ac_word=$2
6589 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6590 $as_echo_n "checking for $ac_word... " >&6; }
6591 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6592   $as_echo_n "(cached) " >&6
6593 else
6594   if test -n "$ac_ct_DLLTOOL"; then
6595   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6596 else
6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 for as_dir in $PATH
6599 do
6600   IFS=$as_save_IFS
6601   test -z "$as_dir" && as_dir=.
6602   for ac_exec_ext in '' $ac_executable_extensions; do
6603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6604     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6605     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6606     break 2
6607   fi
6608 done
6609 done
6610 IFS=$as_save_IFS
6611
6612 fi
6613 fi
6614 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6615 if test -n "$ac_ct_DLLTOOL"; then
6616   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6617 $as_echo "$ac_ct_DLLTOOL" >&6; }
6618 else
6619   { $as_echo "$as_me:$LINENO: result: no" >&5
6620 $as_echo "no" >&6; }
6621 fi
6622
6623   if test "x$ac_ct_DLLTOOL" = x; then
6624     DLLTOOL="dlltool"
6625   else
6626     case $cross_compiling:$ac_tool_warned in
6627 yes:)
6628 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6630 ac_tool_warned=yes ;;
6631 esac
6632     DLLTOOL=$ac_ct_DLLTOOL
6633   fi
6634 else
6635   DLLTOOL="$ac_cv_prog_DLLTOOL"
6636 fi
6637
6638   if test -n "$ac_tool_prefix"; then
6639   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6640 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6641 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6642 $as_echo_n "checking for $ac_word... " >&6; }
6643 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6644   $as_echo_n "(cached) " >&6
6645 else
6646   if test -n "$DLLWRAP"; then
6647   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6648 else
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 for as_dir in $PATH
6651 do
6652   IFS=$as_save_IFS
6653   test -z "$as_dir" && as_dir=.
6654   for ac_exec_ext in '' $ac_executable_extensions; do
6655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6656     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6657     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6658     break 2
6659   fi
6660 done
6661 done
6662 IFS=$as_save_IFS
6663
6664 fi
6665 fi
6666 DLLWRAP=$ac_cv_prog_DLLWRAP
6667 if test -n "$DLLWRAP"; then
6668   { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6669 $as_echo "$DLLWRAP" >&6; }
6670 else
6671   { $as_echo "$as_me:$LINENO: result: no" >&5
6672 $as_echo "no" >&6; }
6673 fi
6674
6675
6676 fi
6677 if test -z "$ac_cv_prog_DLLWRAP"; then
6678   ac_ct_DLLWRAP=$DLLWRAP
6679   # Extract the first word of "dllwrap", so it can be a program name with args.
6680 set dummy dllwrap; ac_word=$2
6681 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6682 $as_echo_n "checking for $ac_word... " >&6; }
6683 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6684   $as_echo_n "(cached) " >&6
6685 else
6686   if test -n "$ac_ct_DLLWRAP"; then
6687   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6688 else
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 for as_dir in $PATH
6691 do
6692   IFS=$as_save_IFS
6693   test -z "$as_dir" && as_dir=.
6694   for ac_exec_ext in '' $ac_executable_extensions; do
6695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6696     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6697     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6698     break 2
6699   fi
6700 done
6701 done
6702 IFS=$as_save_IFS
6703
6704 fi
6705 fi
6706 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6707 if test -n "$ac_ct_DLLWRAP"; then
6708   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6709 $as_echo "$ac_ct_DLLWRAP" >&6; }
6710 else
6711   { $as_echo "$as_me:$LINENO: result: no" >&5
6712 $as_echo "no" >&6; }
6713 fi
6714
6715   if test "x$ac_ct_DLLWRAP" = x; then
6716     DLLWRAP="dllwrap"
6717   else
6718     case $cross_compiling:$ac_tool_warned in
6719 yes:)
6720 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6722 ac_tool_warned=yes ;;
6723 esac
6724     DLLWRAP=$ac_ct_DLLWRAP
6725   fi
6726 else
6727   DLLWRAP="$ac_cv_prog_DLLWRAP"
6728 fi
6729
6730   if test -n "$ac_tool_prefix"; then
6731   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6732 set dummy ${ac_tool_prefix}windres; ac_word=$2
6733 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6734 $as_echo_n "checking for $ac_word... " >&6; }
6735 if test "${ac_cv_prog_WINDRES+set}" = set; then
6736   $as_echo_n "(cached) " >&6
6737 else
6738   if test -n "$WINDRES"; then
6739   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6740 else
6741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742 for as_dir in $PATH
6743 do
6744   IFS=$as_save_IFS
6745   test -z "$as_dir" && as_dir=.
6746   for ac_exec_ext in '' $ac_executable_extensions; do
6747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6748     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6749     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6750     break 2
6751   fi
6752 done
6753 done
6754 IFS=$as_save_IFS
6755
6756 fi
6757 fi
6758 WINDRES=$ac_cv_prog_WINDRES
6759 if test -n "$WINDRES"; then
6760   { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6761 $as_echo "$WINDRES" >&6; }
6762 else
6763   { $as_echo "$as_me:$LINENO: result: no" >&5
6764 $as_echo "no" >&6; }
6765 fi
6766
6767
6768 fi
6769 if test -z "$ac_cv_prog_WINDRES"; then
6770   ac_ct_WINDRES=$WINDRES
6771   # Extract the first word of "windres", so it can be a program name with args.
6772 set dummy windres; ac_word=$2
6773 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6774 $as_echo_n "checking for $ac_word... " >&6; }
6775 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6776   $as_echo_n "(cached) " >&6
6777 else
6778   if test -n "$ac_ct_WINDRES"; then
6779   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6780 else
6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 for as_dir in $PATH
6783 do
6784   IFS=$as_save_IFS
6785   test -z "$as_dir" && as_dir=.
6786   for ac_exec_ext in '' $ac_executable_extensions; do
6787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6788     ac_cv_prog_ac_ct_WINDRES="windres"
6789     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6790     break 2
6791   fi
6792 done
6793 done
6794 IFS=$as_save_IFS
6795
6796 fi
6797 fi
6798 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6799 if test -n "$ac_ct_WINDRES"; then
6800   { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6801 $as_echo "$ac_ct_WINDRES" >&6; }
6802 else
6803   { $as_echo "$as_me:$LINENO: result: no" >&5
6804 $as_echo "no" >&6; }
6805 fi
6806
6807   if test "x$ac_ct_WINDRES" = x; then
6808     WINDRES="windres"
6809   else
6810     case $cross_compiling:$ac_tool_warned in
6811 yes:)
6812 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6814 ac_tool_warned=yes ;;
6815 esac
6816     WINDRES=$ac_ct_WINDRES
6817   fi
6818 else
6819   WINDRES="$ac_cv_prog_WINDRES"
6820 fi
6821
6822 fi
6823
6824 # Extract the first word of "tar", so it can be a program name with args.
6825 set dummy tar; ac_word=$2
6826 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6827 $as_echo_n "checking for $ac_word... " >&6; }
6828 if test "${ac_cv_path_TAR+set}" = set; then
6829   $as_echo_n "(cached) " >&6
6830 else
6831   case $TAR in
6832   [\\/]* | ?:[\\/]*)
6833   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6834   ;;
6835   *)
6836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837 for as_dir in $PATH
6838 do
6839   IFS=$as_save_IFS
6840   test -z "$as_dir" && as_dir=.
6841   for ac_exec_ext in '' $ac_executable_extensions; do
6842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6843     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6844     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6845     break 2
6846   fi
6847 done
6848 done
6849 IFS=$as_save_IFS
6850
6851   ;;
6852 esac
6853 fi
6854 TAR=$ac_cv_path_TAR
6855 if test -n "$TAR"; then
6856   { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6857 $as_echo "$TAR" >&6; }
6858 else
6859   { $as_echo "$as_me:$LINENO: result: no" >&5
6860 $as_echo "no" >&6; }
6861 fi
6862
6863
6864 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6865 $as_echo_n "checking whether ln -s works... " >&6; }
6866 LN_S=$as_ln_s
6867 if test "$LN_S" = "ln -s"; then
6868   { $as_echo "$as_me:$LINENO: result: yes" >&5
6869 $as_echo "yes" >&6; }
6870 else
6871   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6872 $as_echo "no, using $LN_S" >&6; }
6873 fi
6874
6875 for ac_prog in gawk mawk nawk awk
6876 do
6877   # Extract the first word of "$ac_prog", so it can be a program name with args.
6878 set dummy $ac_prog; ac_word=$2
6879 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6880 $as_echo_n "checking for $ac_word... " >&6; }
6881 if test "${ac_cv_prog_AWK+set}" = set; then
6882   $as_echo_n "(cached) " >&6
6883 else
6884   if test -n "$AWK"; then
6885   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6886 else
6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888 for as_dir in $PATH
6889 do
6890   IFS=$as_save_IFS
6891   test -z "$as_dir" && as_dir=.
6892   for ac_exec_ext in '' $ac_executable_extensions; do
6893   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6894     ac_cv_prog_AWK="$ac_prog"
6895     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6896     break 2
6897   fi
6898 done
6899 done
6900 IFS=$as_save_IFS
6901
6902 fi
6903 fi
6904 AWK=$ac_cv_prog_AWK
6905 if test -n "$AWK"; then
6906   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
6907 $as_echo "$AWK" >&6; }
6908 else
6909   { $as_echo "$as_me:$LINENO: result: no" >&5
6910 $as_echo "no" >&6; }
6911 fi
6912
6913
6914   test -n "$AWK" && break
6915 done
6916
6917 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
6918 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6919 if test -z "$MKDIR_P"; then
6920   if test "${ac_cv_path_mkdir+set}" = set; then
6921   $as_echo_n "(cached) " >&6
6922 else
6923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6925 do
6926   IFS=$as_save_IFS
6927   test -z "$as_dir" && as_dir=.
6928   for ac_prog in mkdir gmkdir; do
6929          for ac_exec_ext in '' $ac_executable_extensions; do
6930            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
6931            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6932              'mkdir (GNU coreutils) '* | \
6933              'mkdir (coreutils) '* | \
6934              'mkdir (fileutils) '4.1*)
6935                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6936                break 3;;
6937            esac
6938          done
6939        done
6940 done
6941 IFS=$as_save_IFS
6942
6943 fi
6944
6945   if test "${ac_cv_path_mkdir+set}" = set; then
6946     MKDIR_P="$ac_cv_path_mkdir -p"
6947   else
6948     # As a last resort, use the slow shell script.  Don't cache a
6949     # value for MKDIR_P within a source directory, because that will
6950     # break other packages using the cache if that directory is
6951     # removed, or if the value is a relative name.
6952     test -d ./--version && rmdir ./--version
6953     MKDIR_P="$ac_install_sh -d"
6954   fi
6955 fi
6956 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
6957 $as_echo "$MKDIR_P" >&6; }
6958
6959 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
6960 # a relative path to it in each makefile where it subsitutes it. This clashes
6961 # with our Makefile.global concept. This workaround helps.
6962 case $MKDIR_P in
6963   *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
6964 esac
6965
6966 # Let the user override the search
6967 if test -z "$BISON"; then
6968   for ac_prog in bison
6969 do
6970   # Extract the first word of "$ac_prog", so it can be a program name with args.
6971 set dummy $ac_prog; ac_word=$2
6972 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6973 $as_echo_n "checking for $ac_word... " >&6; }
6974 if test "${ac_cv_path_BISON+set}" = set; then
6975   $as_echo_n "(cached) " >&6
6976 else
6977   case $BISON in
6978   [\\/]* | ?:[\\/]*)
6979   ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
6980   ;;
6981   *)
6982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983 for as_dir in $PATH
6984 do
6985   IFS=$as_save_IFS
6986   test -z "$as_dir" && as_dir=.
6987   for ac_exec_ext in '' $ac_executable_extensions; do
6988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6989     ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
6990     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6991     break 2
6992   fi
6993 done
6994 done
6995 IFS=$as_save_IFS
6996
6997   ;;
6998 esac
6999 fi
7000 BISON=$ac_cv_path_BISON
7001 if test -n "$BISON"; then
7002   { $as_echo "$as_me:$LINENO: result: $BISON" >&5
7003 $as_echo "$BISON" >&6; }
7004 else
7005   { $as_echo "$as_me:$LINENO: result: no" >&5
7006 $as_echo "no" >&6; }
7007 fi
7008
7009
7010   test -n "$BISON" && break
7011 done
7012
7013 fi
7014
7015 if test "$BISON"; then
7016   pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
7017   { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
7018 $as_echo "$as_me: using $pgac_bison_version" >&6;}
7019   if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
7020   then
7021     { $as_echo "$as_me:$LINENO: WARNING:
7022 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7023 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
7024 $as_echo "$as_me: WARNING:
7025 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7026 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
7027     BISON=""
7028   fi
7029 fi
7030
7031 if test -z "$BISON"; then
7032   { $as_echo "$as_me:$LINENO: WARNING:
7033 *** Without Bison you will not be able to build PostgreSQL from Git nor
7034 *** change any of the parser definition files.  You can obtain Bison from
7035 *** a GNU mirror site.  (If you are using the official distribution of
7036 *** PostgreSQL then you do not need to worry about this, because the Bison
7037 *** output is pre-generated.)" >&5
7038 $as_echo "$as_me: WARNING:
7039 *** Without Bison you will not be able to build PostgreSQL from Git nor
7040 *** change any of the parser definition files.  You can obtain Bison from
7041 *** a GNU mirror site.  (If you are using the official distribution of
7042 *** PostgreSQL then you do not need to worry about this, because the Bison
7043 *** output is pre-generated.)" >&2;}
7044 fi
7045 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
7046
7047
7048 { $as_echo "$as_me:$LINENO: checking for flex" >&5
7049 $as_echo_n "checking for flex... " >&6; }
7050 if test "${pgac_cv_path_flex+set}" = set; then
7051   $as_echo_n "(cached) " >&6
7052 else
7053   # Let the user override the test
7054 if test -n "$FLEX"; then
7055   pgac_cv_path_flex=$FLEX
7056 else
7057   pgac_save_IFS=$IFS
7058   IFS=$PATH_SEPARATOR
7059   for pgac_dir in $PATH; do
7060     IFS=$pgac_save_IFS
7061     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
7062       pgac_dir=`pwd`
7063     fi
7064     for pgac_prog in flex lex; do
7065       pgac_candidate="$pgac_dir/$pgac_prog"
7066       if test -f "$pgac_candidate" \
7067         && $pgac_candidate --version </dev/null >/dev/null 2>&1
7068       then
7069         echo '%%'  > conftest.l
7070         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
7071           pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
7072           if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
7073           then
7074             pgac_cv_path_flex=$pgac_candidate
7075             break 2
7076           else
7077             { $as_echo "$as_me:$LINENO: WARNING:
7078 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7079 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
7080 $as_echo "$as_me: WARNING:
7081 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7082 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
7083           fi
7084         fi
7085       fi
7086     done
7087   done
7088   rm -f conftest.l lex.yy.c
7089   : ${pgac_cv_path_flex=no}
7090 fi
7091
7092 fi
7093 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
7094 $as_echo "$pgac_cv_path_flex" >&6; }
7095 if test x"$pgac_cv_path_flex" = x"no"; then
7096   { $as_echo "$as_me:$LINENO: WARNING:
7097 *** Without Flex you will not be able to build PostgreSQL from Git nor
7098 *** change any of the scanner definition files.  You can obtain Flex from
7099 *** a GNU mirror site.  (If you are using the official distribution of
7100 *** PostgreSQL then you do not need to worry about this because the Flex
7101 *** output is pre-generated.)" >&5
7102 $as_echo "$as_me: WARNING:
7103 *** Without Flex you will not be able to build PostgreSQL from Git nor
7104 *** change any of the scanner definition files.  You can obtain Flex from
7105 *** a GNU mirror site.  (If you are using the official distribution of
7106 *** PostgreSQL then you do not need to worry about this because the Flex
7107 *** output is pre-generated.)" >&2;}
7108
7109   FLEX=
7110 else
7111   FLEX=$pgac_cv_path_flex
7112   pgac_flex_version=`$FLEX --version 2>/dev/null`
7113   { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
7114 $as_echo "$as_me: using $pgac_flex_version" >&6;}
7115 fi
7116
7117
7118
7119
7120
7121 # Let the user override the search
7122 if test -z "$PERL"; then
7123   # Extract the first word of "perl", so it can be a program name with args.
7124 set dummy perl; ac_word=$2
7125 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7126 $as_echo_n "checking for $ac_word... " >&6; }
7127 if test "${ac_cv_path_PERL+set}" = set; then
7128   $as_echo_n "(cached) " >&6
7129 else
7130   case $PERL in
7131   [\\/]* | ?:[\\/]*)
7132   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7133   ;;
7134   *)
7135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138   IFS=$as_save_IFS
7139   test -z "$as_dir" && as_dir=.
7140   for ac_exec_ext in '' $ac_executable_extensions; do
7141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7142     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7143     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144     break 2
7145   fi
7146 done
7147 done
7148 IFS=$as_save_IFS
7149
7150   ;;
7151 esac
7152 fi
7153 PERL=$ac_cv_path_PERL
7154 if test -n "$PERL"; then
7155   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
7156 $as_echo "$PERL" >&6; }
7157 else
7158   { $as_echo "$as_me:$LINENO: result: no" >&5
7159 $as_echo "no" >&6; }
7160 fi
7161
7162
7163 fi
7164
7165 if test "$PERL"; then
7166   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'`
7167   { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
7168 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
7169   if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
7170     $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
7171   then
7172     { $as_echo "$as_me:$LINENO: WARNING:
7173 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7174 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
7175 $as_echo "$as_me: WARNING:
7176 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7177 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
7178     PERL=""
7179   fi
7180 fi
7181
7182 if test -z "$PERL"; then
7183   { $as_echo "$as_me:$LINENO: WARNING:
7184 *** Without Perl you will not be able to build PostgreSQL from Git.
7185 *** You can obtain Perl from any CPAN mirror site.
7186 *** (If you are using the official distribution of PostgreSQL then you do not
7187 *** need to worry about this, because the Perl output is pre-generated.)" >&5
7188 $as_echo "$as_me: WARNING:
7189 *** Without Perl you will not be able to build PostgreSQL from Git.
7190 *** You can obtain Perl from any CPAN mirror site.
7191 *** (If you are using the official distribution of PostgreSQL then you do not
7192 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
7193 fi
7194
7195 if test "$with_perl" = yes; then
7196   if test -z "$PERL"; then
7197     { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
7198 $as_echo "$as_me: error: Perl not found" >&2;}
7199    { (exit 1); exit 1; }; }
7200   fi
7201
7202 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
7203 $as_echo_n "checking for Perl archlibexp... " >&6; }
7204 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7205 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
7206 $as_echo "$perl_archlibexp" >&6; }
7207 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
7208 $as_echo_n "checking for Perl privlibexp... " >&6; }
7209 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7210 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
7211 $as_echo "$perl_privlibexp" >&6; }
7212 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
7213 $as_echo_n "checking for Perl useshrplib... " >&6; }
7214 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7215 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
7216 $as_echo "$perl_useshrplib" >&6; }
7217
7218 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
7219 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
7220 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7221 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7222 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7223 if test -z "$perl_embed_ldflags" ; then
7224         { $as_echo "$as_me:$LINENO: result: no" >&5
7225 $as_echo "no" >&6; }
7226         { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
7227 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7228 installed." >&5
7229 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
7230 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7231 installed." >&2;}
7232    { (exit 1); exit 1; }; }
7233 else
7234         { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
7235 $as_echo "$perl_embed_ldflags" >&6; }
7236 fi
7237
7238 fi
7239
7240 if test "$with_python" = yes; then
7241   # Extract the first word of "python", so it can be a program name with args.
7242 set dummy python; 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_PYTHON+set}" = set; then
7246   $as_echo_n "(cached) " >&6
7247 else
7248   case $PYTHON in
7249   [\\/]* | ?:[\\/]*)
7250   ac_cv_path_PYTHON="$PYTHON" # 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_PYTHON="$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 PYTHON=$ac_cv_path_PYTHON
7272 if test -n "$PYTHON"; then
7273   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
7274 $as_echo "$PYTHON" >&6; }
7275 else
7276   { $as_echo "$as_me:$LINENO: result: no" >&5
7277 $as_echo "no" >&6; }
7278 fi
7279
7280
7281 if test x"$PYTHON" = x""; then
7282   { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
7283 $as_echo "$as_me: error: Python not found" >&2;}
7284    { (exit 1); exit 1; }; }
7285 fi
7286
7287
7288 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
7289 $as_echo_n "checking for Python distutils module... " >&6; }
7290 if "${PYTHON}" -c 'import distutils' 2>&5
7291 then
7292     { $as_echo "$as_me:$LINENO: result: yes" >&5
7293 $as_echo "yes" >&6; }
7294 else
7295     { $as_echo "$as_me:$LINENO: result: no" >&5
7296 $as_echo "no" >&6; }
7297     { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7298 $as_echo "$as_me: error: distutils module not found" >&2;}
7299    { (exit 1); exit 1; }; }
7300 fi
7301 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7302 $as_echo_n "checking Python configuration directory... " >&6; }
7303 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7304 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7305 python_configdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
7306 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
7307
7308 # This should be enough of a message.
7309 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7310 $as_echo "$python_configdir" >&6; }
7311
7312
7313 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7314 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7315
7316 python_libdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7317 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7318 python_so=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7319 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7320
7321 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7322 then
7323         # New way: use the official shared library
7324         ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7325         python_libspec="-L${python_libdir} -l${ldlibrary}"
7326 else
7327         # Old way: use libpython from python_configdir
7328         python_libdir="${python_configdir}"
7329         # LDVERSION was introduced in Python 3.2.
7330         python_ldversion=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDVERSION'))))"`
7331         if test x"${python_ldversion}" = x""; then
7332                 python_ldversion=$python_version
7333         fi
7334         python_libspec="-L${python_libdir} -lpython${python_ldversion}"
7335 fi
7336
7337 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7338
7339 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7340 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7341
7342
7343 # threaded python is not supported on bsd's
7344 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7345 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7346 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7347 if test "$pythreads" = "1"; then
7348   { $as_echo "$as_me:$LINENO: result: yes" >&5
7349 $as_echo "yes" >&6; }
7350   case $host_os in
7351   openbsd*|freebsd*)
7352     { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7353 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7354    { (exit 1); exit 1; }; }
7355     ;;
7356   esac
7357 else
7358   { $as_echo "$as_me:$LINENO: result: no" >&5
7359 $as_echo "no" >&6; }
7360 fi
7361
7362
7363 fi
7364
7365 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7366   # Extract the first word of "zic", so it can be a program name with args.
7367 set dummy zic; ac_word=$2
7368 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7369 $as_echo_n "checking for $ac_word... " >&6; }
7370 if test "${ac_cv_path_ZIC+set}" = set; then
7371   $as_echo_n "(cached) " >&6
7372 else
7373   case $ZIC in
7374   [\\/]* | ?:[\\/]*)
7375   ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7376   ;;
7377   *)
7378   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379 for as_dir in $PATH
7380 do
7381   IFS=$as_save_IFS
7382   test -z "$as_dir" && as_dir=.
7383   for ac_exec_ext in '' $ac_executable_extensions; do
7384   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7385     ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7386     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7387     break 2
7388   fi
7389 done
7390 done
7391 IFS=$as_save_IFS
7392
7393   ;;
7394 esac
7395 fi
7396 ZIC=$ac_cv_path_ZIC
7397 if test -n "$ZIC"; then
7398   { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7399 $as_echo "$ZIC" >&6; }
7400 else
7401   { $as_echo "$as_me:$LINENO: result: no" >&5
7402 $as_echo "no" >&6; }
7403 fi
7404
7405
7406   if test -z "$ZIC"; then
7407     { { $as_echo "$as_me:$LINENO: error:
7408 When cross-compiling, either use the option --with-system-tzdata to use
7409 existing time-zone data, or set the environment variable ZIC to a zic
7410 program to use during the build." >&5
7411 $as_echo "$as_me: error:
7412 When cross-compiling, either use the option --with-system-tzdata to use
7413 existing time-zone data, or set the environment variable ZIC to a zic
7414 program to use during the build." >&2;}
7415    { (exit 1); exit 1; }; }
7416   fi
7417 fi
7418
7419
7420 ##
7421 ## Libraries
7422 ##
7423 ## Most libraries are included only if they demonstrably provide a function
7424 ## we need, but libm is an exception: always include it, because there are
7425 ## too many compilers that play cute optimization games that will break
7426 ## probes for standard functions such as pow().
7427 ##
7428
7429
7430 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7431 $as_echo_n "checking for main in -lm... " >&6; }
7432 if test "${ac_cv_lib_m_main+set}" = set; then
7433   $as_echo_n "(cached) " >&6
7434 else
7435   ac_check_lib_save_LIBS=$LIBS
7436 LIBS="-lm  $LIBS"
7437 cat >conftest.$ac_ext <<_ACEOF
7438 /* confdefs.h.  */
7439 _ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h.  */
7443
7444
7445 int
7446 main ()
7447 {
7448 return main ();
7449   ;
7450   return 0;
7451 }
7452 _ACEOF
7453 rm -f conftest.$ac_objext conftest$ac_exeext
7454 if { (ac_try="$ac_link"
7455 case "(($ac_try" in
7456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7457   *) ac_try_echo=$ac_try;;
7458 esac
7459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7460 $as_echo "$ac_try_echo") >&5
7461   (eval "$ac_link") 2>conftest.er1
7462   ac_status=$?
7463   grep -v '^ *+' conftest.er1 >conftest.err
7464   rm -f conftest.er1
7465   cat conftest.err >&5
7466   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467   (exit $ac_status); } && {
7468          test -z "$ac_c_werror_flag" ||
7469          test ! -s conftest.err
7470        } && test -s conftest$ac_exeext && {
7471          test "$cross_compiling" = yes ||
7472          $as_test_x conftest$ac_exeext
7473        }; then
7474   ac_cv_lib_m_main=yes
7475 else
7476   $as_echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.$ac_ext >&5
7478
7479         ac_cv_lib_m_main=no
7480 fi
7481
7482 rm -rf conftest.dSYM
7483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7484       conftest$ac_exeext conftest.$ac_ext
7485 LIBS=$ac_check_lib_save_LIBS
7486 fi
7487 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7488 $as_echo "$ac_cv_lib_m_main" >&6; }
7489 if test "x$ac_cv_lib_m_main" = x""yes; then
7490   cat >>confdefs.h <<_ACEOF
7491 #define HAVE_LIBM 1
7492 _ACEOF
7493
7494   LIBS="-lm $LIBS"
7495
7496 fi
7497
7498 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7499 $as_echo_n "checking for library containing setproctitle... " >&6; }
7500 if test "${ac_cv_search_setproctitle+set}" = set; then
7501   $as_echo_n "(cached) " >&6
7502 else
7503   ac_func_search_save_LIBS=$LIBS
7504 cat >conftest.$ac_ext <<_ACEOF
7505 /* confdefs.h.  */
7506 _ACEOF
7507 cat confdefs.h >>conftest.$ac_ext
7508 cat >>conftest.$ac_ext <<_ACEOF
7509 /* end confdefs.h.  */
7510
7511 /* Override any GCC internal prototype to avoid an error.
7512    Use char because int might match the return type of a GCC
7513    builtin and then its argument prototype would still apply.  */
7514 #ifdef __cplusplus
7515 extern "C"
7516 #endif
7517 char setproctitle ();
7518 int
7519 main ()
7520 {
7521 return setproctitle ();
7522   ;
7523   return 0;
7524 }
7525 _ACEOF
7526 for ac_lib in '' util; do
7527   if test -z "$ac_lib"; then
7528     ac_res="none required"
7529   else
7530     ac_res=-l$ac_lib
7531     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7532   fi
7533   rm -f conftest.$ac_objext conftest$ac_exeext
7534 if { (ac_try="$ac_link"
7535 case "(($ac_try" in
7536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537   *) ac_try_echo=$ac_try;;
7538 esac
7539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7540 $as_echo "$ac_try_echo") >&5
7541   (eval "$ac_link") 2>conftest.er1
7542   ac_status=$?
7543   grep -v '^ *+' conftest.er1 >conftest.err
7544   rm -f conftest.er1
7545   cat conftest.err >&5
7546   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547   (exit $ac_status); } && {
7548          test -z "$ac_c_werror_flag" ||
7549          test ! -s conftest.err
7550        } && test -s conftest$ac_exeext && {
7551          test "$cross_compiling" = yes ||
7552          $as_test_x conftest$ac_exeext
7553        }; then
7554   ac_cv_search_setproctitle=$ac_res
7555 else
7556   $as_echo "$as_me: failed program was:" >&5
7557 sed 's/^/| /' conftest.$ac_ext >&5
7558
7559
7560 fi
7561
7562 rm -rf conftest.dSYM
7563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7564       conftest$ac_exeext
7565   if test "${ac_cv_search_setproctitle+set}" = set; then
7566   break
7567 fi
7568 done
7569 if test "${ac_cv_search_setproctitle+set}" = set; then
7570   :
7571 else
7572   ac_cv_search_setproctitle=no
7573 fi
7574 rm conftest.$ac_ext
7575 LIBS=$ac_func_search_save_LIBS
7576 fi
7577 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7578 $as_echo "$ac_cv_search_setproctitle" >&6; }
7579 ac_res=$ac_cv_search_setproctitle
7580 if test "$ac_res" != no; then
7581   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7582
7583 fi
7584
7585 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7586 $as_echo_n "checking for library containing dlopen... " >&6; }
7587 if test "${ac_cv_search_dlopen+set}" = set; then
7588   $as_echo_n "(cached) " >&6
7589 else
7590   ac_func_search_save_LIBS=$LIBS
7591 cat >conftest.$ac_ext <<_ACEOF
7592 /* confdefs.h.  */
7593 _ACEOF
7594 cat confdefs.h >>conftest.$ac_ext
7595 cat >>conftest.$ac_ext <<_ACEOF
7596 /* end confdefs.h.  */
7597
7598 /* Override any GCC internal prototype to avoid an error.
7599    Use char because int might match the return type of a GCC
7600    builtin and then its argument prototype would still apply.  */
7601 #ifdef __cplusplus
7602 extern "C"
7603 #endif
7604 char dlopen ();
7605 int
7606 main ()
7607 {
7608 return dlopen ();
7609   ;
7610   return 0;
7611 }
7612 _ACEOF
7613 for ac_lib in '' dl; do
7614   if test -z "$ac_lib"; then
7615     ac_res="none required"
7616   else
7617     ac_res=-l$ac_lib
7618     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7619   fi
7620   rm -f conftest.$ac_objext conftest$ac_exeext
7621 if { (ac_try="$ac_link"
7622 case "(($ac_try" in
7623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624   *) ac_try_echo=$ac_try;;
7625 esac
7626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7627 $as_echo "$ac_try_echo") >&5
7628   (eval "$ac_link") 2>conftest.er1
7629   ac_status=$?
7630   grep -v '^ *+' conftest.er1 >conftest.err
7631   rm -f conftest.er1
7632   cat conftest.err >&5
7633   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634   (exit $ac_status); } && {
7635          test -z "$ac_c_werror_flag" ||
7636          test ! -s conftest.err
7637        } && test -s conftest$ac_exeext && {
7638          test "$cross_compiling" = yes ||
7639          $as_test_x conftest$ac_exeext
7640        }; then
7641   ac_cv_search_dlopen=$ac_res
7642 else
7643   $as_echo "$as_me: failed program was:" >&5
7644 sed 's/^/| /' conftest.$ac_ext >&5
7645
7646
7647 fi
7648
7649 rm -rf conftest.dSYM
7650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7651       conftest$ac_exeext
7652   if test "${ac_cv_search_dlopen+set}" = set; then
7653   break
7654 fi
7655 done
7656 if test "${ac_cv_search_dlopen+set}" = set; then
7657   :
7658 else
7659   ac_cv_search_dlopen=no
7660 fi
7661 rm conftest.$ac_ext
7662 LIBS=$ac_func_search_save_LIBS
7663 fi
7664 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7665 $as_echo "$ac_cv_search_dlopen" >&6; }
7666 ac_res=$ac_cv_search_dlopen
7667 if test "$ac_res" != no; then
7668   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7669
7670 fi
7671
7672 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7673 $as_echo_n "checking for library containing socket... " >&6; }
7674 if test "${ac_cv_search_socket+set}" = set; then
7675   $as_echo_n "(cached) " >&6
7676 else
7677   ac_func_search_save_LIBS=$LIBS
7678 cat >conftest.$ac_ext <<_ACEOF
7679 /* confdefs.h.  */
7680 _ACEOF
7681 cat confdefs.h >>conftest.$ac_ext
7682 cat >>conftest.$ac_ext <<_ACEOF
7683 /* end confdefs.h.  */
7684
7685 /* Override any GCC internal prototype to avoid an error.
7686    Use char because int might match the return type of a GCC
7687    builtin and then its argument prototype would still apply.  */
7688 #ifdef __cplusplus
7689 extern "C"
7690 #endif
7691 char socket ();
7692 int
7693 main ()
7694 {
7695 return socket ();
7696   ;
7697   return 0;
7698 }
7699 _ACEOF
7700 for ac_lib in '' socket wsock32; do
7701   if test -z "$ac_lib"; then
7702     ac_res="none required"
7703   else
7704     ac_res=-l$ac_lib
7705     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7706   fi
7707   rm -f conftest.$ac_objext conftest$ac_exeext
7708 if { (ac_try="$ac_link"
7709 case "(($ac_try" in
7710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7711   *) ac_try_echo=$ac_try;;
7712 esac
7713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7714 $as_echo "$ac_try_echo") >&5
7715   (eval "$ac_link") 2>conftest.er1
7716   ac_status=$?
7717   grep -v '^ *+' conftest.er1 >conftest.err
7718   rm -f conftest.er1
7719   cat conftest.err >&5
7720   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721   (exit $ac_status); } && {
7722          test -z "$ac_c_werror_flag" ||
7723          test ! -s conftest.err
7724        } && test -s conftest$ac_exeext && {
7725          test "$cross_compiling" = yes ||
7726          $as_test_x conftest$ac_exeext
7727        }; then
7728   ac_cv_search_socket=$ac_res
7729 else
7730   $as_echo "$as_me: failed program was:" >&5
7731 sed 's/^/| /' conftest.$ac_ext >&5
7732
7733
7734 fi
7735
7736 rm -rf conftest.dSYM
7737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7738       conftest$ac_exeext
7739   if test "${ac_cv_search_socket+set}" = set; then
7740   break
7741 fi
7742 done
7743 if test "${ac_cv_search_socket+set}" = set; then
7744   :
7745 else
7746   ac_cv_search_socket=no
7747 fi
7748 rm conftest.$ac_ext
7749 LIBS=$ac_func_search_save_LIBS
7750 fi
7751 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7752 $as_echo "$ac_cv_search_socket" >&6; }
7753 ac_res=$ac_cv_search_socket
7754 if test "$ac_res" != no; then
7755   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7756
7757 fi
7758
7759 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7760 $as_echo_n "checking for library containing shl_load... " >&6; }
7761 if test "${ac_cv_search_shl_load+set}" = set; then
7762   $as_echo_n "(cached) " >&6
7763 else
7764   ac_func_search_save_LIBS=$LIBS
7765 cat >conftest.$ac_ext <<_ACEOF
7766 /* confdefs.h.  */
7767 _ACEOF
7768 cat confdefs.h >>conftest.$ac_ext
7769 cat >>conftest.$ac_ext <<_ACEOF
7770 /* end confdefs.h.  */
7771
7772 /* Override any GCC internal prototype to avoid an error.
7773    Use char because int might match the return type of a GCC
7774    builtin and then its argument prototype would still apply.  */
7775 #ifdef __cplusplus
7776 extern "C"
7777 #endif
7778 char shl_load ();
7779 int
7780 main ()
7781 {
7782 return shl_load ();
7783   ;
7784   return 0;
7785 }
7786 _ACEOF
7787 for ac_lib in '' dld; do
7788   if test -z "$ac_lib"; then
7789     ac_res="none required"
7790   else
7791     ac_res=-l$ac_lib
7792     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7793   fi
7794   rm -f conftest.$ac_objext conftest$ac_exeext
7795 if { (ac_try="$ac_link"
7796 case "(($ac_try" in
7797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7798   *) ac_try_echo=$ac_try;;
7799 esac
7800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7801 $as_echo "$ac_try_echo") >&5
7802   (eval "$ac_link") 2>conftest.er1
7803   ac_status=$?
7804   grep -v '^ *+' conftest.er1 >conftest.err
7805   rm -f conftest.er1
7806   cat conftest.err >&5
7807   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808   (exit $ac_status); } && {
7809          test -z "$ac_c_werror_flag" ||
7810          test ! -s conftest.err
7811        } && test -s conftest$ac_exeext && {
7812          test "$cross_compiling" = yes ||
7813          $as_test_x conftest$ac_exeext
7814        }; then
7815   ac_cv_search_shl_load=$ac_res
7816 else
7817   $as_echo "$as_me: failed program was:" >&5
7818 sed 's/^/| /' conftest.$ac_ext >&5
7819
7820
7821 fi
7822
7823 rm -rf conftest.dSYM
7824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7825       conftest$ac_exeext
7826   if test "${ac_cv_search_shl_load+set}" = set; then
7827   break
7828 fi
7829 done
7830 if test "${ac_cv_search_shl_load+set}" = set; then
7831   :
7832 else
7833   ac_cv_search_shl_load=no
7834 fi
7835 rm conftest.$ac_ext
7836 LIBS=$ac_func_search_save_LIBS
7837 fi
7838 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7839 $as_echo "$ac_cv_search_shl_load" >&6; }
7840 ac_res=$ac_cv_search_shl_load
7841 if test "$ac_res" != no; then
7842   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7843
7844 fi
7845
7846 # We only use libld in port/dynloader/aix.c
7847 case $host_os in
7848      aix*)
7849         { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7850 $as_echo_n "checking for library containing ldopen... " >&6; }
7851 if test "${ac_cv_search_ldopen+set}" = set; then
7852   $as_echo_n "(cached) " >&6
7853 else
7854   ac_func_search_save_LIBS=$LIBS
7855 cat >conftest.$ac_ext <<_ACEOF
7856 /* confdefs.h.  */
7857 _ACEOF
7858 cat confdefs.h >>conftest.$ac_ext
7859 cat >>conftest.$ac_ext <<_ACEOF
7860 /* end confdefs.h.  */
7861
7862 /* Override any GCC internal prototype to avoid an error.
7863    Use char because int might match the return type of a GCC
7864    builtin and then its argument prototype would still apply.  */
7865 #ifdef __cplusplus
7866 extern "C"
7867 #endif
7868 char ldopen ();
7869 int
7870 main ()
7871 {
7872 return ldopen ();
7873   ;
7874   return 0;
7875 }
7876 _ACEOF
7877 for ac_lib in '' ld; do
7878   if test -z "$ac_lib"; then
7879     ac_res="none required"
7880   else
7881     ac_res=-l$ac_lib
7882     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7883   fi
7884   rm -f conftest.$ac_objext conftest$ac_exeext
7885 if { (ac_try="$ac_link"
7886 case "(($ac_try" in
7887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7888   *) ac_try_echo=$ac_try;;
7889 esac
7890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7891 $as_echo "$ac_try_echo") >&5
7892   (eval "$ac_link") 2>conftest.er1
7893   ac_status=$?
7894   grep -v '^ *+' conftest.er1 >conftest.err
7895   rm -f conftest.er1
7896   cat conftest.err >&5
7897   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898   (exit $ac_status); } && {
7899          test -z "$ac_c_werror_flag" ||
7900          test ! -s conftest.err
7901        } && test -s conftest$ac_exeext && {
7902          test "$cross_compiling" = yes ||
7903          $as_test_x conftest$ac_exeext
7904        }; then
7905   ac_cv_search_ldopen=$ac_res
7906 else
7907   $as_echo "$as_me: failed program was:" >&5
7908 sed 's/^/| /' conftest.$ac_ext >&5
7909
7910
7911 fi
7912
7913 rm -rf conftest.dSYM
7914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7915       conftest$ac_exeext
7916   if test "${ac_cv_search_ldopen+set}" = set; then
7917   break
7918 fi
7919 done
7920 if test "${ac_cv_search_ldopen+set}" = set; then
7921   :
7922 else
7923   ac_cv_search_ldopen=no
7924 fi
7925 rm conftest.$ac_ext
7926 LIBS=$ac_func_search_save_LIBS
7927 fi
7928 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7929 $as_echo "$ac_cv_search_ldopen" >&6; }
7930 ac_res=$ac_cv_search_ldopen
7931 if test "$ac_res" != no; then
7932   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7933
7934 fi
7935
7936         ;;
7937 esac
7938 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7939 $as_echo_n "checking for library containing getopt_long... " >&6; }
7940 if test "${ac_cv_search_getopt_long+set}" = set; then
7941   $as_echo_n "(cached) " >&6
7942 else
7943   ac_func_search_save_LIBS=$LIBS
7944 cat >conftest.$ac_ext <<_ACEOF
7945 /* confdefs.h.  */
7946 _ACEOF
7947 cat confdefs.h >>conftest.$ac_ext
7948 cat >>conftest.$ac_ext <<_ACEOF
7949 /* end confdefs.h.  */
7950
7951 /* Override any GCC internal prototype to avoid an error.
7952    Use char because int might match the return type of a GCC
7953    builtin and then its argument prototype would still apply.  */
7954 #ifdef __cplusplus
7955 extern "C"
7956 #endif
7957 char getopt_long ();
7958 int
7959 main ()
7960 {
7961 return getopt_long ();
7962   ;
7963   return 0;
7964 }
7965 _ACEOF
7966 for ac_lib in '' getopt gnugetopt; do
7967   if test -z "$ac_lib"; then
7968     ac_res="none required"
7969   else
7970     ac_res=-l$ac_lib
7971     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7972   fi
7973   rm -f conftest.$ac_objext conftest$ac_exeext
7974 if { (ac_try="$ac_link"
7975 case "(($ac_try" in
7976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977   *) ac_try_echo=$ac_try;;
7978 esac
7979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7980 $as_echo "$ac_try_echo") >&5
7981   (eval "$ac_link") 2>conftest.er1
7982   ac_status=$?
7983   grep -v '^ *+' conftest.er1 >conftest.err
7984   rm -f conftest.er1
7985   cat conftest.err >&5
7986   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987   (exit $ac_status); } && {
7988          test -z "$ac_c_werror_flag" ||
7989          test ! -s conftest.err
7990        } && test -s conftest$ac_exeext && {
7991          test "$cross_compiling" = yes ||
7992          $as_test_x conftest$ac_exeext
7993        }; then
7994   ac_cv_search_getopt_long=$ac_res
7995 else
7996   $as_echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.$ac_ext >&5
7998
7999
8000 fi
8001
8002 rm -rf conftest.dSYM
8003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8004       conftest$ac_exeext
8005   if test "${ac_cv_search_getopt_long+set}" = set; then
8006   break
8007 fi
8008 done
8009 if test "${ac_cv_search_getopt_long+set}" = set; then
8010   :
8011 else
8012   ac_cv_search_getopt_long=no
8013 fi
8014 rm conftest.$ac_ext
8015 LIBS=$ac_func_search_save_LIBS
8016 fi
8017 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
8018 $as_echo "$ac_cv_search_getopt_long" >&6; }
8019 ac_res=$ac_cv_search_getopt_long
8020 if test "$ac_res" != no; then
8021   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8022
8023 fi
8024
8025 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
8026 $as_echo_n "checking for library containing crypt... " >&6; }
8027 if test "${ac_cv_search_crypt+set}" = set; then
8028   $as_echo_n "(cached) " >&6
8029 else
8030   ac_func_search_save_LIBS=$LIBS
8031 cat >conftest.$ac_ext <<_ACEOF
8032 /* confdefs.h.  */
8033 _ACEOF
8034 cat confdefs.h >>conftest.$ac_ext
8035 cat >>conftest.$ac_ext <<_ACEOF
8036 /* end confdefs.h.  */
8037
8038 /* Override any GCC internal prototype to avoid an error.
8039    Use char because int might match the return type of a GCC
8040    builtin and then its argument prototype would still apply.  */
8041 #ifdef __cplusplus
8042 extern "C"
8043 #endif
8044 char crypt ();
8045 int
8046 main ()
8047 {
8048 return crypt ();
8049   ;
8050   return 0;
8051 }
8052 _ACEOF
8053 for ac_lib in '' crypt; do
8054   if test -z "$ac_lib"; then
8055     ac_res="none required"
8056   else
8057     ac_res=-l$ac_lib
8058     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8059   fi
8060   rm -f conftest.$ac_objext conftest$ac_exeext
8061 if { (ac_try="$ac_link"
8062 case "(($ac_try" in
8063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8064   *) ac_try_echo=$ac_try;;
8065 esac
8066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8067 $as_echo "$ac_try_echo") >&5
8068   (eval "$ac_link") 2>conftest.er1
8069   ac_status=$?
8070   grep -v '^ *+' conftest.er1 >conftest.err
8071   rm -f conftest.er1
8072   cat conftest.err >&5
8073   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074   (exit $ac_status); } && {
8075          test -z "$ac_c_werror_flag" ||
8076          test ! -s conftest.err
8077        } && test -s conftest$ac_exeext && {
8078          test "$cross_compiling" = yes ||
8079          $as_test_x conftest$ac_exeext
8080        }; then
8081   ac_cv_search_crypt=$ac_res
8082 else
8083   $as_echo "$as_me: failed program was:" >&5
8084 sed 's/^/| /' conftest.$ac_ext >&5
8085
8086
8087 fi
8088
8089 rm -rf conftest.dSYM
8090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8091       conftest$ac_exeext
8092   if test "${ac_cv_search_crypt+set}" = set; then
8093   break
8094 fi
8095 done
8096 if test "${ac_cv_search_crypt+set}" = set; then
8097   :
8098 else
8099   ac_cv_search_crypt=no
8100 fi
8101 rm conftest.$ac_ext
8102 LIBS=$ac_func_search_save_LIBS
8103 fi
8104 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
8105 $as_echo "$ac_cv_search_crypt" >&6; }
8106 ac_res=$ac_cv_search_crypt
8107 if test "$ac_res" != no; then
8108   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8109
8110 fi
8111
8112 # Solaris:
8113 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
8114 $as_echo_n "checking for library containing fdatasync... " >&6; }
8115 if test "${ac_cv_search_fdatasync+set}" = set; then
8116   $as_echo_n "(cached) " >&6
8117 else
8118   ac_func_search_save_LIBS=$LIBS
8119 cat >conftest.$ac_ext <<_ACEOF
8120 /* confdefs.h.  */
8121 _ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h.  */
8125
8126 /* Override any GCC internal prototype to avoid an error.
8127    Use char because int might match the return type of a GCC
8128    builtin and then its argument prototype would still apply.  */
8129 #ifdef __cplusplus
8130 extern "C"
8131 #endif
8132 char fdatasync ();
8133 int
8134 main ()
8135 {
8136 return fdatasync ();
8137   ;
8138   return 0;
8139 }
8140 _ACEOF
8141 for ac_lib in '' rt posix4; do
8142   if test -z "$ac_lib"; then
8143     ac_res="none required"
8144   else
8145     ac_res=-l$ac_lib
8146     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8147   fi
8148   rm -f conftest.$ac_objext conftest$ac_exeext
8149 if { (ac_try="$ac_link"
8150 case "(($ac_try" in
8151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8152   *) ac_try_echo=$ac_try;;
8153 esac
8154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8155 $as_echo "$ac_try_echo") >&5
8156   (eval "$ac_link") 2>conftest.er1
8157   ac_status=$?
8158   grep -v '^ *+' conftest.er1 >conftest.err
8159   rm -f conftest.er1
8160   cat conftest.err >&5
8161   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162   (exit $ac_status); } && {
8163          test -z "$ac_c_werror_flag" ||
8164          test ! -s conftest.err
8165        } && test -s conftest$ac_exeext && {
8166          test "$cross_compiling" = yes ||
8167          $as_test_x conftest$ac_exeext
8168        }; then
8169   ac_cv_search_fdatasync=$ac_res
8170 else
8171   $as_echo "$as_me: failed program was:" >&5
8172 sed 's/^/| /' conftest.$ac_ext >&5
8173
8174
8175 fi
8176
8177 rm -rf conftest.dSYM
8178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8179       conftest$ac_exeext
8180   if test "${ac_cv_search_fdatasync+set}" = set; then
8181   break
8182 fi
8183 done
8184 if test "${ac_cv_search_fdatasync+set}" = set; then
8185   :
8186 else
8187   ac_cv_search_fdatasync=no
8188 fi
8189 rm conftest.$ac_ext
8190 LIBS=$ac_func_search_save_LIBS
8191 fi
8192 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
8193 $as_echo "$ac_cv_search_fdatasync" >&6; }
8194 ac_res=$ac_cv_search_fdatasync
8195 if test "$ac_res" != no; then
8196   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8197
8198 fi
8199
8200 # Required for thread_test.c on Solaris 2.5:
8201 # Other ports use it too (HP-UX) so test unconditionally
8202 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
8203 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
8204 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8205   $as_echo_n "(cached) " >&6
8206 else
8207   ac_func_search_save_LIBS=$LIBS
8208 cat >conftest.$ac_ext <<_ACEOF
8209 /* confdefs.h.  */
8210 _ACEOF
8211 cat confdefs.h >>conftest.$ac_ext
8212 cat >>conftest.$ac_ext <<_ACEOF
8213 /* end confdefs.h.  */
8214
8215 /* Override any GCC internal prototype to avoid an error.
8216    Use char because int might match the return type of a GCC
8217    builtin and then its argument prototype would still apply.  */
8218 #ifdef __cplusplus
8219 extern "C"
8220 #endif
8221 char gethostbyname_r ();
8222 int
8223 main ()
8224 {
8225 return gethostbyname_r ();
8226   ;
8227   return 0;
8228 }
8229 _ACEOF
8230 for ac_lib in '' nsl; do
8231   if test -z "$ac_lib"; then
8232     ac_res="none required"
8233   else
8234     ac_res=-l$ac_lib
8235     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8236   fi
8237   rm -f conftest.$ac_objext conftest$ac_exeext
8238 if { (ac_try="$ac_link"
8239 case "(($ac_try" in
8240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8241   *) ac_try_echo=$ac_try;;
8242 esac
8243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8244 $as_echo "$ac_try_echo") >&5
8245   (eval "$ac_link") 2>conftest.er1
8246   ac_status=$?
8247   grep -v '^ *+' conftest.er1 >conftest.err
8248   rm -f conftest.er1
8249   cat conftest.err >&5
8250   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251   (exit $ac_status); } && {
8252          test -z "$ac_c_werror_flag" ||
8253          test ! -s conftest.err
8254        } && test -s conftest$ac_exeext && {
8255          test "$cross_compiling" = yes ||
8256          $as_test_x conftest$ac_exeext
8257        }; then
8258   ac_cv_search_gethostbyname_r=$ac_res
8259 else
8260   $as_echo "$as_me: failed program was:" >&5
8261 sed 's/^/| /' conftest.$ac_ext >&5
8262
8263
8264 fi
8265
8266 rm -rf conftest.dSYM
8267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8268       conftest$ac_exeext
8269   if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8270   break
8271 fi
8272 done
8273 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8274   :
8275 else
8276   ac_cv_search_gethostbyname_r=no
8277 fi
8278 rm conftest.$ac_ext
8279 LIBS=$ac_func_search_save_LIBS
8280 fi
8281 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
8282 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
8283 ac_res=$ac_cv_search_gethostbyname_r
8284 if test "$ac_res" != no; then
8285   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8286
8287 fi
8288
8289 # Cygwin:
8290 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
8291 $as_echo_n "checking for library containing shmget... " >&6; }
8292 if test "${ac_cv_search_shmget+set}" = set; then
8293   $as_echo_n "(cached) " >&6
8294 else
8295   ac_func_search_save_LIBS=$LIBS
8296 cat >conftest.$ac_ext <<_ACEOF
8297 /* confdefs.h.  */
8298 _ACEOF
8299 cat confdefs.h >>conftest.$ac_ext
8300 cat >>conftest.$ac_ext <<_ACEOF
8301 /* end confdefs.h.  */
8302
8303 /* Override any GCC internal prototype to avoid an error.
8304    Use char because int might match the return type of a GCC
8305    builtin and then its argument prototype would still apply.  */
8306 #ifdef __cplusplus
8307 extern "C"
8308 #endif
8309 char shmget ();
8310 int
8311 main ()
8312 {
8313 return shmget ();
8314   ;
8315   return 0;
8316 }
8317 _ACEOF
8318 for ac_lib in '' cygipc; do
8319   if test -z "$ac_lib"; then
8320     ac_res="none required"
8321   else
8322     ac_res=-l$ac_lib
8323     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8324   fi
8325   rm -f conftest.$ac_objext conftest$ac_exeext
8326 if { (ac_try="$ac_link"
8327 case "(($ac_try" in
8328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8329   *) ac_try_echo=$ac_try;;
8330 esac
8331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8332 $as_echo "$ac_try_echo") >&5
8333   (eval "$ac_link") 2>conftest.er1
8334   ac_status=$?
8335   grep -v '^ *+' conftest.er1 >conftest.err
8336   rm -f conftest.er1
8337   cat conftest.err >&5
8338   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339   (exit $ac_status); } && {
8340          test -z "$ac_c_werror_flag" ||
8341          test ! -s conftest.err
8342        } && test -s conftest$ac_exeext && {
8343          test "$cross_compiling" = yes ||
8344          $as_test_x conftest$ac_exeext
8345        }; then
8346   ac_cv_search_shmget=$ac_res
8347 else
8348   $as_echo "$as_me: failed program was:" >&5
8349 sed 's/^/| /' conftest.$ac_ext >&5
8350
8351
8352 fi
8353
8354 rm -rf conftest.dSYM
8355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8356       conftest$ac_exeext
8357   if test "${ac_cv_search_shmget+set}" = set; then
8358   break
8359 fi
8360 done
8361 if test "${ac_cv_search_shmget+set}" = set; then
8362   :
8363 else
8364   ac_cv_search_shmget=no
8365 fi
8366 rm conftest.$ac_ext
8367 LIBS=$ac_func_search_save_LIBS
8368 fi
8369 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8370 $as_echo "$ac_cv_search_shmget" >&6; }
8371 ac_res=$ac_cv_search_shmget
8372 if test "$ac_res" != no; then
8373   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8374
8375 fi
8376
8377
8378 if test "$with_readline" = yes; then
8379
8380
8381 { $as_echo "$as_me:$LINENO: checking for library containing readline" >&5
8382 $as_echo_n "checking for library containing readline... " >&6; }
8383 if test "${pgac_cv_check_readline+set}" = set; then
8384   $as_echo_n "(cached) " >&6
8385 else
8386   pgac_cv_check_readline=no
8387 pgac_save_LIBS=$LIBS
8388 if test x"$with_libedit_preferred" != x"yes"
8389 then    READLINE_ORDER="-lreadline -ledit"
8390 else    READLINE_ORDER="-ledit -lreadline"
8391 fi
8392 for pgac_rllib in $READLINE_ORDER ; do
8393   for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8394     LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8395     cat >conftest.$ac_ext <<_ACEOF
8396 /* confdefs.h.  */
8397 _ACEOF
8398 cat confdefs.h >>conftest.$ac_ext
8399 cat >>conftest.$ac_ext <<_ACEOF
8400 /* end confdefs.h.  */
8401
8402 /* Override any GCC internal prototype to avoid an error.
8403    Use char because int might match the return type of a GCC
8404    builtin and then its argument prototype would still apply.  */
8405 #ifdef __cplusplus
8406 extern "C"
8407 #endif
8408 char readline ();
8409 int
8410 main ()
8411 {
8412 return readline ();
8413   ;
8414   return 0;
8415 }
8416 _ACEOF
8417 rm -f conftest.$ac_objext conftest$ac_exeext
8418 if { (ac_try="$ac_link"
8419 case "(($ac_try" in
8420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8421   *) ac_try_echo=$ac_try;;
8422 esac
8423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8424 $as_echo "$ac_try_echo") >&5
8425   (eval "$ac_link") 2>conftest.er1
8426   ac_status=$?
8427   grep -v '^ *+' conftest.er1 >conftest.err
8428   rm -f conftest.er1
8429   cat conftest.err >&5
8430   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431   (exit $ac_status); } && {
8432          test -z "$ac_c_werror_flag" ||
8433          test ! -s conftest.err
8434        } && test -s conftest$ac_exeext && {
8435          test "$cross_compiling" = yes ||
8436          $as_test_x conftest$ac_exeext
8437        }; then
8438
8439       # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8440       # recognize dependent libraries; assume curses is needed if we didn't
8441       # find any dependency.
8442       case $host_os in
8443         netbsd* | openbsd* | irix*)
8444           if test x"$pgac_lib" = x"" ; then
8445             pgac_lib=" -lcurses"
8446           fi ;;
8447       esac
8448
8449       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8450       break
8451
8452 else
8453   $as_echo "$as_me: failed program was:" >&5
8454 sed 's/^/| /' conftest.$ac_ext >&5
8455
8456
8457 fi
8458
8459 rm -rf conftest.dSYM
8460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8461       conftest$ac_exeext conftest.$ac_ext
8462   done
8463   if test "$pgac_cv_check_readline" != no ; then
8464     break
8465   fi
8466 done
8467 LIBS=$pgac_save_LIBS
8468
8469 fi
8470 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_readline" >&5
8471 $as_echo "$pgac_cv_check_readline" >&6; }
8472 if test "$pgac_cv_check_readline" != no ; then
8473   LIBS="$pgac_cv_check_readline $LIBS"
8474
8475 cat >>confdefs.h <<\_ACEOF
8476 #define HAVE_LIBREADLINE 1
8477 _ACEOF
8478
8479 fi
8480
8481
8482   if test x"$pgac_cv_check_readline" = x"no"; then
8483     { { $as_echo "$as_me:$LINENO: error: readline library not found
8484 If you have readline already installed, see config.log for details on the
8485 failure.  It is possible the compiler isn't looking in the proper directory.
8486 Use --without-readline to disable readline support." >&5
8487 $as_echo "$as_me: error: readline library not found
8488 If you have readline already installed, see config.log for details on the
8489 failure.  It is possible the compiler isn't looking in the proper directory.
8490 Use --without-readline to disable readline support." >&2;}
8491    { (exit 1); exit 1; }; }
8492   fi
8493 fi
8494
8495 if test "$with_zlib" = yes; then
8496
8497 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8498 $as_echo_n "checking for inflate in -lz... " >&6; }
8499 if test "${ac_cv_lib_z_inflate+set}" = set; then
8500   $as_echo_n "(cached) " >&6
8501 else
8502   ac_check_lib_save_LIBS=$LIBS
8503 LIBS="-lz  $LIBS"
8504 cat >conftest.$ac_ext <<_ACEOF
8505 /* confdefs.h.  */
8506 _ACEOF
8507 cat confdefs.h >>conftest.$ac_ext
8508 cat >>conftest.$ac_ext <<_ACEOF
8509 /* end confdefs.h.  */
8510
8511 /* Override any GCC internal prototype to avoid an error.
8512    Use char because int might match the return type of a GCC
8513    builtin and then its argument prototype would still apply.  */
8514 #ifdef __cplusplus
8515 extern "C"
8516 #endif
8517 char inflate ();
8518 int
8519 main ()
8520 {
8521 return inflate ();
8522   ;
8523   return 0;
8524 }
8525 _ACEOF
8526 rm -f conftest.$ac_objext conftest$ac_exeext
8527 if { (ac_try="$ac_link"
8528 case "(($ac_try" in
8529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530   *) ac_try_echo=$ac_try;;
8531 esac
8532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8533 $as_echo "$ac_try_echo") >&5
8534   (eval "$ac_link") 2>conftest.er1
8535   ac_status=$?
8536   grep -v '^ *+' conftest.er1 >conftest.err
8537   rm -f conftest.er1
8538   cat conftest.err >&5
8539   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540   (exit $ac_status); } && {
8541          test -z "$ac_c_werror_flag" ||
8542          test ! -s conftest.err
8543        } && test -s conftest$ac_exeext && {
8544          test "$cross_compiling" = yes ||
8545          $as_test_x conftest$ac_exeext
8546        }; then
8547   ac_cv_lib_z_inflate=yes
8548 else
8549   $as_echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.$ac_ext >&5
8551
8552         ac_cv_lib_z_inflate=no
8553 fi
8554
8555 rm -rf conftest.dSYM
8556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8557       conftest$ac_exeext conftest.$ac_ext
8558 LIBS=$ac_check_lib_save_LIBS
8559 fi
8560 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8561 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8562 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8563   cat >>confdefs.h <<_ACEOF
8564 #define HAVE_LIBZ 1
8565 _ACEOF
8566
8567   LIBS="-lz $LIBS"
8568
8569 else
8570   { { $as_echo "$as_me:$LINENO: error: zlib library not found
8571 If you have zlib already installed, see config.log for details on the
8572 failure.  It is possible the compiler isn't looking in the proper directory.
8573 Use --without-zlib to disable zlib support." >&5
8574 $as_echo "$as_me: error: zlib library not found
8575 If you have zlib already installed, see config.log for details on the
8576 failure.  It is possible the compiler isn't looking in the proper directory.
8577 Use --without-zlib to disable zlib support." >&2;}
8578    { (exit 1); exit 1; }; }
8579 fi
8580
8581 fi
8582
8583 if test "$enable_spinlocks" = yes; then
8584
8585 cat >>confdefs.h <<\_ACEOF
8586 #define HAVE_SPINLOCKS 1
8587 _ACEOF
8588
8589 else
8590   { $as_echo "$as_me:$LINENO: WARNING:
8591 *** Not using spinlocks will cause poor performance." >&5
8592 $as_echo "$as_me: WARNING:
8593 *** Not using spinlocks will cause poor performance." >&2;}
8594 fi
8595
8596 if test "$with_gssapi" = yes ; then
8597   if test "$PORTNAME" != "win32"; then
8598     { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8599 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8600 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8601   $as_echo_n "(cached) " >&6
8602 else
8603   ac_func_search_save_LIBS=$LIBS
8604 cat >conftest.$ac_ext <<_ACEOF
8605 /* confdefs.h.  */
8606 _ACEOF
8607 cat confdefs.h >>conftest.$ac_ext
8608 cat >>conftest.$ac_ext <<_ACEOF
8609 /* end confdefs.h.  */
8610
8611 /* Override any GCC internal prototype to avoid an error.
8612    Use char because int might match the return type of a GCC
8613    builtin and then its argument prototype would still apply.  */
8614 #ifdef __cplusplus
8615 extern "C"
8616 #endif
8617 char gss_init_sec_context ();
8618 int
8619 main ()
8620 {
8621 return gss_init_sec_context ();
8622   ;
8623   return 0;
8624 }
8625 _ACEOF
8626 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8627   if test -z "$ac_lib"; then
8628     ac_res="none required"
8629   else
8630     ac_res=-l$ac_lib
8631     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8632   fi
8633   rm -f conftest.$ac_objext conftest$ac_exeext
8634 if { (ac_try="$ac_link"
8635 case "(($ac_try" in
8636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8637   *) ac_try_echo=$ac_try;;
8638 esac
8639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8640 $as_echo "$ac_try_echo") >&5
8641   (eval "$ac_link") 2>conftest.er1
8642   ac_status=$?
8643   grep -v '^ *+' conftest.er1 >conftest.err
8644   rm -f conftest.er1
8645   cat conftest.err >&5
8646   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647   (exit $ac_status); } && {
8648          test -z "$ac_c_werror_flag" ||
8649          test ! -s conftest.err
8650        } && test -s conftest$ac_exeext && {
8651          test "$cross_compiling" = yes ||
8652          $as_test_x conftest$ac_exeext
8653        }; then
8654   ac_cv_search_gss_init_sec_context=$ac_res
8655 else
8656   $as_echo "$as_me: failed program was:" >&5
8657 sed 's/^/| /' conftest.$ac_ext >&5
8658
8659
8660 fi
8661
8662 rm -rf conftest.dSYM
8663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8664       conftest$ac_exeext
8665   if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8666   break
8667 fi
8668 done
8669 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8670   :
8671 else
8672   ac_cv_search_gss_init_sec_context=no
8673 fi
8674 rm conftest.$ac_ext
8675 LIBS=$ac_func_search_save_LIBS
8676 fi
8677 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8678 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8679 ac_res=$ac_cv_search_gss_init_sec_context
8680 if test "$ac_res" != no; then
8681   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8682
8683 else
8684   { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8685 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8686    { (exit 1); exit 1; }; }
8687 fi
8688
8689   else
8690     LIBS="$LIBS -lgssapi32"
8691   fi
8692 fi
8693
8694 if test "$with_krb5" = yes ; then
8695   if test "$PORTNAME" != "win32"; then
8696      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8697 $as_echo_n "checking for library containing com_err... " >&6; }
8698 if test "${ac_cv_search_com_err+set}" = set; then
8699   $as_echo_n "(cached) " >&6
8700 else
8701   ac_func_search_save_LIBS=$LIBS
8702 cat >conftest.$ac_ext <<_ACEOF
8703 /* confdefs.h.  */
8704 _ACEOF
8705 cat confdefs.h >>conftest.$ac_ext
8706 cat >>conftest.$ac_ext <<_ACEOF
8707 /* end confdefs.h.  */
8708
8709 /* Override any GCC internal prototype to avoid an error.
8710    Use char because int might match the return type of a GCC
8711    builtin and then its argument prototype would still apply.  */
8712 #ifdef __cplusplus
8713 extern "C"
8714 #endif
8715 char com_err ();
8716 int
8717 main ()
8718 {
8719 return com_err ();
8720   ;
8721   return 0;
8722 }
8723 _ACEOF
8724 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8725   if test -z "$ac_lib"; then
8726     ac_res="none required"
8727   else
8728     ac_res=-l$ac_lib
8729     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8730   fi
8731   rm -f conftest.$ac_objext conftest$ac_exeext
8732 if { (ac_try="$ac_link"
8733 case "(($ac_try" in
8734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8735   *) ac_try_echo=$ac_try;;
8736 esac
8737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8738 $as_echo "$ac_try_echo") >&5
8739   (eval "$ac_link") 2>conftest.er1
8740   ac_status=$?
8741   grep -v '^ *+' conftest.er1 >conftest.err
8742   rm -f conftest.er1
8743   cat conftest.err >&5
8744   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745   (exit $ac_status); } && {
8746          test -z "$ac_c_werror_flag" ||
8747          test ! -s conftest.err
8748        } && test -s conftest$ac_exeext && {
8749          test "$cross_compiling" = yes ||
8750          $as_test_x conftest$ac_exeext
8751        }; then
8752   ac_cv_search_com_err=$ac_res
8753 else
8754   $as_echo "$as_me: failed program was:" >&5
8755 sed 's/^/| /' conftest.$ac_ext >&5
8756
8757
8758 fi
8759
8760 rm -rf conftest.dSYM
8761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8762       conftest$ac_exeext
8763   if test "${ac_cv_search_com_err+set}" = set; then
8764   break
8765 fi
8766 done
8767 if test "${ac_cv_search_com_err+set}" = set; then
8768   :
8769 else
8770   ac_cv_search_com_err=no
8771 fi
8772 rm conftest.$ac_ext
8773 LIBS=$ac_func_search_save_LIBS
8774 fi
8775 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8776 $as_echo "$ac_cv_search_com_err" >&6; }
8777 ac_res=$ac_cv_search_com_err
8778 if test "$ac_res" != no; then
8779   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8780
8781 else
8782   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8783 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8784    { (exit 1); exit 1; }; }
8785 fi
8786
8787      { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8788 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8789 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8790   $as_echo_n "(cached) " >&6
8791 else
8792   ac_func_search_save_LIBS=$LIBS
8793 cat >conftest.$ac_ext <<_ACEOF
8794 /* confdefs.h.  */
8795 _ACEOF
8796 cat confdefs.h >>conftest.$ac_ext
8797 cat >>conftest.$ac_ext <<_ACEOF
8798 /* end confdefs.h.  */
8799
8800 /* Override any GCC internal prototype to avoid an error.
8801    Use char because int might match the return type of a GCC
8802    builtin and then its argument prototype would still apply.  */
8803 #ifdef __cplusplus
8804 extern "C"
8805 #endif
8806 char krb5_sendauth ();
8807 int
8808 main ()
8809 {
8810 return krb5_sendauth ();
8811   ;
8812   return 0;
8813 }
8814 _ACEOF
8815 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8816   if test -z "$ac_lib"; then
8817     ac_res="none required"
8818   else
8819     ac_res=-l$ac_lib
8820     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8821   fi
8822   rm -f conftest.$ac_objext conftest$ac_exeext
8823 if { (ac_try="$ac_link"
8824 case "(($ac_try" in
8825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8826   *) ac_try_echo=$ac_try;;
8827 esac
8828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8829 $as_echo "$ac_try_echo") >&5
8830   (eval "$ac_link") 2>conftest.er1
8831   ac_status=$?
8832   grep -v '^ *+' conftest.er1 >conftest.err
8833   rm -f conftest.er1
8834   cat conftest.err >&5
8835   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836   (exit $ac_status); } && {
8837          test -z "$ac_c_werror_flag" ||
8838          test ! -s conftest.err
8839        } && test -s conftest$ac_exeext && {
8840          test "$cross_compiling" = yes ||
8841          $as_test_x conftest$ac_exeext
8842        }; then
8843   ac_cv_search_krb5_sendauth=$ac_res
8844 else
8845   $as_echo "$as_me: failed program was:" >&5
8846 sed 's/^/| /' conftest.$ac_ext >&5
8847
8848
8849 fi
8850
8851 rm -rf conftest.dSYM
8852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8853       conftest$ac_exeext
8854   if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8855   break
8856 fi
8857 done
8858 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8859   :
8860 else
8861   ac_cv_search_krb5_sendauth=no
8862 fi
8863 rm conftest.$ac_ext
8864 LIBS=$ac_func_search_save_LIBS
8865 fi
8866 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8867 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
8868 ac_res=$ac_cv_search_krb5_sendauth
8869 if test "$ac_res" != no; then
8870   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8871
8872 else
8873   { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8874 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8875    { (exit 1); exit 1; }; }
8876 fi
8877
8878   else
8879      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8880 $as_echo_n "checking for library containing com_err... " >&6; }
8881 if test "${ac_cv_search_com_err+set}" = set; then
8882   $as_echo_n "(cached) " >&6
8883 else
8884   ac_func_search_save_LIBS=$LIBS
8885 cat >conftest.$ac_ext <<_ACEOF
8886 /* confdefs.h.  */
8887 _ACEOF
8888 cat confdefs.h >>conftest.$ac_ext
8889 cat >>conftest.$ac_ext <<_ACEOF
8890 /* end confdefs.h.  */
8891
8892 /* Override any GCC internal prototype to avoid an error.
8893    Use char because int might match the return type of a GCC
8894    builtin and then its argument prototype would still apply.  */
8895 #ifdef __cplusplus
8896 extern "C"
8897 #endif
8898 char com_err ();
8899 int
8900 main ()
8901 {
8902 return com_err ();
8903   ;
8904   return 0;
8905 }
8906 _ACEOF
8907 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8908   if test -z "$ac_lib"; then
8909     ac_res="none required"
8910   else
8911     ac_res=-l$ac_lib
8912     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8913   fi
8914   rm -f conftest.$ac_objext conftest$ac_exeext
8915 if { (ac_try="$ac_link"
8916 case "(($ac_try" in
8917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8918   *) ac_try_echo=$ac_try;;
8919 esac
8920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8921 $as_echo "$ac_try_echo") >&5
8922   (eval "$ac_link") 2>conftest.er1
8923   ac_status=$?
8924   grep -v '^ *+' conftest.er1 >conftest.err
8925   rm -f conftest.er1
8926   cat conftest.err >&5
8927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928   (exit $ac_status); } && {
8929          test -z "$ac_c_werror_flag" ||
8930          test ! -s conftest.err
8931        } && test -s conftest$ac_exeext && {
8932          test "$cross_compiling" = yes ||
8933          $as_test_x conftest$ac_exeext
8934        }; then
8935   ac_cv_search_com_err=$ac_res
8936 else
8937   $as_echo "$as_me: failed program was:" >&5
8938 sed 's/^/| /' conftest.$ac_ext >&5
8939
8940
8941 fi
8942
8943 rm -rf conftest.dSYM
8944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8945       conftest$ac_exeext
8946   if test "${ac_cv_search_com_err+set}" = set; then
8947   break
8948 fi
8949 done
8950 if test "${ac_cv_search_com_err+set}" = set; then
8951   :
8952 else
8953   ac_cv_search_com_err=no
8954 fi
8955 rm conftest.$ac_ext
8956 LIBS=$ac_func_search_save_LIBS
8957 fi
8958 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8959 $as_echo "$ac_cv_search_com_err" >&6; }
8960 ac_res=$ac_cv_search_com_err
8961 if test "$ac_res" != no; then
8962   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8963
8964 else
8965   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8966 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8967    { (exit 1); exit 1; }; }
8968 fi
8969
8970   fi
8971 fi
8972
8973 if test "$with_openssl" = yes ; then
8974     if test "$PORTNAME" != "win32"; then
8975
8976 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8977 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
8978 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
8979   $as_echo_n "(cached) " >&6
8980 else
8981   ac_check_lib_save_LIBS=$LIBS
8982 LIBS="-lcrypto  $LIBS"
8983 cat >conftest.$ac_ext <<_ACEOF
8984 /* confdefs.h.  */
8985 _ACEOF
8986 cat confdefs.h >>conftest.$ac_ext
8987 cat >>conftest.$ac_ext <<_ACEOF
8988 /* end confdefs.h.  */
8989
8990 /* Override any GCC internal prototype to avoid an error.
8991    Use char because int might match the return type of a GCC
8992    builtin and then its argument prototype would still apply.  */
8993 #ifdef __cplusplus
8994 extern "C"
8995 #endif
8996 char CRYPTO_new_ex_data ();
8997 int
8998 main ()
8999 {
9000 return CRYPTO_new_ex_data ();
9001   ;
9002   return 0;
9003 }
9004 _ACEOF
9005 rm -f conftest.$ac_objext conftest$ac_exeext
9006 if { (ac_try="$ac_link"
9007 case "(($ac_try" in
9008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9009   *) ac_try_echo=$ac_try;;
9010 esac
9011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9012 $as_echo "$ac_try_echo") >&5
9013   (eval "$ac_link") 2>conftest.er1
9014   ac_status=$?
9015   grep -v '^ *+' conftest.er1 >conftest.err
9016   rm -f conftest.er1
9017   cat conftest.err >&5
9018   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019   (exit $ac_status); } && {
9020          test -z "$ac_c_werror_flag" ||
9021          test ! -s conftest.err
9022        } && test -s conftest$ac_exeext && {
9023          test "$cross_compiling" = yes ||
9024          $as_test_x conftest$ac_exeext
9025        }; then
9026   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
9027 else
9028   $as_echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9030
9031         ac_cv_lib_crypto_CRYPTO_new_ex_data=no
9032 fi
9033
9034 rm -rf conftest.dSYM
9035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9036       conftest$ac_exeext conftest.$ac_ext
9037 LIBS=$ac_check_lib_save_LIBS
9038 fi
9039 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
9040 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
9041 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
9042   cat >>confdefs.h <<_ACEOF
9043 #define HAVE_LIBCRYPTO 1
9044 _ACEOF
9045
9046   LIBS="-lcrypto $LIBS"
9047
9048 else
9049   { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
9050 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
9051    { (exit 1); exit 1; }; }
9052 fi
9053
9054
9055 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
9056 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
9057 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
9058   $as_echo_n "(cached) " >&6
9059 else
9060   ac_check_lib_save_LIBS=$LIBS
9061 LIBS="-lssl  $LIBS"
9062 cat >conftest.$ac_ext <<_ACEOF
9063 /* confdefs.h.  */
9064 _ACEOF
9065 cat confdefs.h >>conftest.$ac_ext
9066 cat >>conftest.$ac_ext <<_ACEOF
9067 /* end confdefs.h.  */
9068
9069 /* Override any GCC internal prototype to avoid an error.
9070    Use char because int might match the return type of a GCC
9071    builtin and then its argument prototype would still apply.  */
9072 #ifdef __cplusplus
9073 extern "C"
9074 #endif
9075 char SSL_library_init ();
9076 int
9077 main ()
9078 {
9079 return SSL_library_init ();
9080   ;
9081   return 0;
9082 }
9083 _ACEOF
9084 rm -f conftest.$ac_objext conftest$ac_exeext
9085 if { (ac_try="$ac_link"
9086 case "(($ac_try" in
9087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9088   *) ac_try_echo=$ac_try;;
9089 esac
9090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9091 $as_echo "$ac_try_echo") >&5
9092   (eval "$ac_link") 2>conftest.er1
9093   ac_status=$?
9094   grep -v '^ *+' conftest.er1 >conftest.err
9095   rm -f conftest.er1
9096   cat conftest.err >&5
9097   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098   (exit $ac_status); } && {
9099          test -z "$ac_c_werror_flag" ||
9100          test ! -s conftest.err
9101        } && test -s conftest$ac_exeext && {
9102          test "$cross_compiling" = yes ||
9103          $as_test_x conftest$ac_exeext
9104        }; then
9105   ac_cv_lib_ssl_SSL_library_init=yes
9106 else
9107   $as_echo "$as_me: failed program was:" >&5
9108 sed 's/^/| /' conftest.$ac_ext >&5
9109
9110         ac_cv_lib_ssl_SSL_library_init=no
9111 fi
9112
9113 rm -rf conftest.dSYM
9114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9115       conftest$ac_exeext conftest.$ac_ext
9116 LIBS=$ac_check_lib_save_LIBS
9117 fi
9118 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
9119 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
9120 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
9121   cat >>confdefs.h <<_ACEOF
9122 #define HAVE_LIBSSL 1
9123 _ACEOF
9124
9125   LIBS="-lssl $LIBS"
9126
9127 else
9128   { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
9129 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
9130    { (exit 1); exit 1; }; }
9131 fi
9132
9133   else
9134
9135 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
9136 $as_echo_n "checking for CRYPTO_new_ex_data in -leay32... " >&6; }
9137 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
9138   $as_echo_n "(cached) " >&6
9139 else
9140   ac_check_lib_save_LIBS=$LIBS
9141 LIBS="-leay32  $LIBS"
9142 cat >conftest.$ac_ext <<_ACEOF
9143 /* confdefs.h.  */
9144 _ACEOF
9145 cat confdefs.h >>conftest.$ac_ext
9146 cat >>conftest.$ac_ext <<_ACEOF
9147 /* end confdefs.h.  */
9148
9149 /* Override any GCC internal prototype to avoid an error.
9150    Use char because int might match the return type of a GCC
9151    builtin and then its argument prototype would still apply.  */
9152 #ifdef __cplusplus
9153 extern "C"
9154 #endif
9155 char CRYPTO_new_ex_data ();
9156 int
9157 main ()
9158 {
9159 return CRYPTO_new_ex_data ();
9160   ;
9161   return 0;
9162 }
9163 _ACEOF
9164 rm -f conftest.$ac_objext conftest$ac_exeext
9165 if { (ac_try="$ac_link"
9166 case "(($ac_try" in
9167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9168   *) ac_try_echo=$ac_try;;
9169 esac
9170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9171 $as_echo "$ac_try_echo") >&5
9172   (eval "$ac_link") 2>conftest.er1
9173   ac_status=$?
9174   grep -v '^ *+' conftest.er1 >conftest.err
9175   rm -f conftest.er1
9176   cat conftest.err >&5
9177   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178   (exit $ac_status); } && {
9179          test -z "$ac_c_werror_flag" ||
9180          test ! -s conftest.err
9181        } && test -s conftest$ac_exeext && {
9182          test "$cross_compiling" = yes ||
9183          $as_test_x conftest$ac_exeext
9184        }; then
9185   ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
9186 else
9187   $as_echo "$as_me: failed program was:" >&5
9188 sed 's/^/| /' conftest.$ac_ext >&5
9189
9190         ac_cv_lib_eay32_CRYPTO_new_ex_data=no
9191 fi
9192
9193 rm -rf conftest.dSYM
9194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9195       conftest$ac_exeext conftest.$ac_ext
9196 LIBS=$ac_check_lib_save_LIBS
9197 fi
9198 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
9199 $as_echo "$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
9200 if test "x$ac_cv_lib_eay32_CRYPTO_new_ex_data" = x""yes; then
9201   cat >>confdefs.h <<_ACEOF
9202 #define HAVE_LIBEAY32 1
9203 _ACEOF
9204
9205   LIBS="-leay32 $LIBS"
9206
9207 else
9208   { { $as_echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
9209 $as_echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
9210    { (exit 1); exit 1; }; }
9211 fi
9212
9213
9214 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
9215 $as_echo_n "checking for SSL_library_init in -lssleay32... " >&6; }
9216 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
9217   $as_echo_n "(cached) " >&6
9218 else
9219   ac_check_lib_save_LIBS=$LIBS
9220 LIBS="-lssleay32  $LIBS"
9221 cat >conftest.$ac_ext <<_ACEOF
9222 /* confdefs.h.  */
9223 _ACEOF
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
9226 /* end confdefs.h.  */
9227
9228 /* Override any GCC internal prototype to avoid an error.
9229    Use char because int might match the return type of a GCC
9230    builtin and then its argument prototype would still apply.  */
9231 #ifdef __cplusplus
9232 extern "C"
9233 #endif
9234 char SSL_library_init ();
9235 int
9236 main ()
9237 {
9238 return SSL_library_init ();
9239   ;
9240   return 0;
9241 }
9242 _ACEOF
9243 rm -f conftest.$ac_objext conftest$ac_exeext
9244 if { (ac_try="$ac_link"
9245 case "(($ac_try" in
9246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9247   *) ac_try_echo=$ac_try;;
9248 esac
9249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9250 $as_echo "$ac_try_echo") >&5
9251   (eval "$ac_link") 2>conftest.er1
9252   ac_status=$?
9253   grep -v '^ *+' conftest.er1 >conftest.err
9254   rm -f conftest.er1
9255   cat conftest.err >&5
9256   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257   (exit $ac_status); } && {
9258          test -z "$ac_c_werror_flag" ||
9259          test ! -s conftest.err
9260        } && test -s conftest$ac_exeext && {
9261          test "$cross_compiling" = yes ||
9262          $as_test_x conftest$ac_exeext
9263        }; then
9264   ac_cv_lib_ssleay32_SSL_library_init=yes
9265 else
9266   $as_echo "$as_me: failed program was:" >&5
9267 sed 's/^/| /' conftest.$ac_ext >&5
9268
9269         ac_cv_lib_ssleay32_SSL_library_init=no
9270 fi
9271
9272 rm -rf conftest.dSYM
9273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9274       conftest$ac_exeext conftest.$ac_ext
9275 LIBS=$ac_check_lib_save_LIBS
9276 fi
9277 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
9278 $as_echo "$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
9279 if test "x$ac_cv_lib_ssleay32_SSL_library_init" = x""yes; then
9280   cat >>confdefs.h <<_ACEOF
9281 #define HAVE_LIBSSLEAY32 1
9282 _ACEOF
9283
9284   LIBS="-lssleay32 $LIBS"
9285
9286 else
9287   { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
9288 $as_echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
9289    { (exit 1); exit 1; }; }
9290 fi
9291
9292   fi
9293 fi
9294
9295 if test "$with_pam" = yes ; then
9296
9297 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9298 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9299 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9300   $as_echo_n "(cached) " >&6
9301 else
9302   ac_check_lib_save_LIBS=$LIBS
9303 LIBS="-lpam  $LIBS"
9304 cat >conftest.$ac_ext <<_ACEOF
9305 /* confdefs.h.  */
9306 _ACEOF
9307 cat confdefs.h >>conftest.$ac_ext
9308 cat >>conftest.$ac_ext <<_ACEOF
9309 /* end confdefs.h.  */
9310
9311 /* Override any GCC internal prototype to avoid an error.
9312    Use char because int might match the return type of a GCC
9313    builtin and then its argument prototype would still apply.  */
9314 #ifdef __cplusplus
9315 extern "C"
9316 #endif
9317 char pam_start ();
9318 int
9319 main ()
9320 {
9321 return pam_start ();
9322   ;
9323   return 0;
9324 }
9325 _ACEOF
9326 rm -f conftest.$ac_objext conftest$ac_exeext
9327 if { (ac_try="$ac_link"
9328 case "(($ac_try" in
9329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9330   *) ac_try_echo=$ac_try;;
9331 esac
9332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9333 $as_echo "$ac_try_echo") >&5
9334   (eval "$ac_link") 2>conftest.er1
9335   ac_status=$?
9336   grep -v '^ *+' conftest.er1 >conftest.err
9337   rm -f conftest.er1
9338   cat conftest.err >&5
9339   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340   (exit $ac_status); } && {
9341          test -z "$ac_c_werror_flag" ||
9342          test ! -s conftest.err
9343        } && test -s conftest$ac_exeext && {
9344          test "$cross_compiling" = yes ||
9345          $as_test_x conftest$ac_exeext
9346        }; then
9347   ac_cv_lib_pam_pam_start=yes
9348 else
9349   $as_echo "$as_me: failed program was:" >&5
9350 sed 's/^/| /' conftest.$ac_ext >&5
9351
9352         ac_cv_lib_pam_pam_start=no
9353 fi
9354
9355 rm -rf conftest.dSYM
9356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9357       conftest$ac_exeext conftest.$ac_ext
9358 LIBS=$ac_check_lib_save_LIBS
9359 fi
9360 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9361 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9362 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9363   cat >>confdefs.h <<_ACEOF
9364 #define HAVE_LIBPAM 1
9365 _ACEOF
9366
9367   LIBS="-lpam $LIBS"
9368
9369 else
9370   { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9371 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9372    { (exit 1); exit 1; }; }
9373 fi
9374
9375 fi
9376
9377 if test "$with_libxml" = yes ; then
9378
9379 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9380 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9381 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9382   $as_echo_n "(cached) " >&6
9383 else
9384   ac_check_lib_save_LIBS=$LIBS
9385 LIBS="-lxml2  $LIBS"
9386 cat >conftest.$ac_ext <<_ACEOF
9387 /* confdefs.h.  */
9388 _ACEOF
9389 cat confdefs.h >>conftest.$ac_ext
9390 cat >>conftest.$ac_ext <<_ACEOF
9391 /* end confdefs.h.  */
9392
9393 /* Override any GCC internal prototype to avoid an error.
9394    Use char because int might match the return type of a GCC
9395    builtin and then its argument prototype would still apply.  */
9396 #ifdef __cplusplus
9397 extern "C"
9398 #endif
9399 char xmlSaveToBuffer ();
9400 int
9401 main ()
9402 {
9403 return xmlSaveToBuffer ();
9404   ;
9405   return 0;
9406 }
9407 _ACEOF
9408 rm -f conftest.$ac_objext conftest$ac_exeext
9409 if { (ac_try="$ac_link"
9410 case "(($ac_try" in
9411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9412   *) ac_try_echo=$ac_try;;
9413 esac
9414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9415 $as_echo "$ac_try_echo") >&5
9416   (eval "$ac_link") 2>conftest.er1
9417   ac_status=$?
9418   grep -v '^ *+' conftest.er1 >conftest.err
9419   rm -f conftest.er1
9420   cat conftest.err >&5
9421   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422   (exit $ac_status); } && {
9423          test -z "$ac_c_werror_flag" ||
9424          test ! -s conftest.err
9425        } && test -s conftest$ac_exeext && {
9426          test "$cross_compiling" = yes ||
9427          $as_test_x conftest$ac_exeext
9428        }; then
9429   ac_cv_lib_xml2_xmlSaveToBuffer=yes
9430 else
9431   $as_echo "$as_me: failed program was:" >&5
9432 sed 's/^/| /' conftest.$ac_ext >&5
9433
9434         ac_cv_lib_xml2_xmlSaveToBuffer=no
9435 fi
9436
9437 rm -rf conftest.dSYM
9438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9439       conftest$ac_exeext conftest.$ac_ext
9440 LIBS=$ac_check_lib_save_LIBS
9441 fi
9442 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9443 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9444 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9445   cat >>confdefs.h <<_ACEOF
9446 #define HAVE_LIBXML2 1
9447 _ACEOF
9448
9449   LIBS="-lxml2 $LIBS"
9450
9451 else
9452   { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9453 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9454    { (exit 1); exit 1; }; }
9455 fi
9456
9457 fi
9458
9459 if test "$with_libxslt" = yes ; then
9460
9461 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9462 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9463 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9464   $as_echo_n "(cached) " >&6
9465 else
9466   ac_check_lib_save_LIBS=$LIBS
9467 LIBS="-lxslt  $LIBS"
9468 cat >conftest.$ac_ext <<_ACEOF
9469 /* confdefs.h.  */
9470 _ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h.  */
9474
9475 /* Override any GCC internal prototype to avoid an error.
9476    Use char because int might match the return type of a GCC
9477    builtin and then its argument prototype would still apply.  */
9478 #ifdef __cplusplus
9479 extern "C"
9480 #endif
9481 char xsltCleanupGlobals ();
9482 int
9483 main ()
9484 {
9485 return xsltCleanupGlobals ();
9486   ;
9487   return 0;
9488 }
9489 _ACEOF
9490 rm -f conftest.$ac_objext conftest$ac_exeext
9491 if { (ac_try="$ac_link"
9492 case "(($ac_try" in
9493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9494   *) ac_try_echo=$ac_try;;
9495 esac
9496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9497 $as_echo "$ac_try_echo") >&5
9498   (eval "$ac_link") 2>conftest.er1
9499   ac_status=$?
9500   grep -v '^ *+' conftest.er1 >conftest.err
9501   rm -f conftest.er1
9502   cat conftest.err >&5
9503   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504   (exit $ac_status); } && {
9505          test -z "$ac_c_werror_flag" ||
9506          test ! -s conftest.err
9507        } && test -s conftest$ac_exeext && {
9508          test "$cross_compiling" = yes ||
9509          $as_test_x conftest$ac_exeext
9510        }; then
9511   ac_cv_lib_xslt_xsltCleanupGlobals=yes
9512 else
9513   $as_echo "$as_me: failed program was:" >&5
9514 sed 's/^/| /' conftest.$ac_ext >&5
9515
9516         ac_cv_lib_xslt_xsltCleanupGlobals=no
9517 fi
9518
9519 rm -rf conftest.dSYM
9520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9521       conftest$ac_exeext conftest.$ac_ext
9522 LIBS=$ac_check_lib_save_LIBS
9523 fi
9524 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9525 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9526 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9527   cat >>confdefs.h <<_ACEOF
9528 #define HAVE_LIBXSLT 1
9529 _ACEOF
9530
9531   LIBS="-lxslt $LIBS"
9532
9533 else
9534   { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9535 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9536    { (exit 1); exit 1; }; }
9537 fi
9538
9539 fi
9540
9541 # for contrib/sepgsql
9542 if test "$with_selinux" = yes; then
9543
9544 { $as_echo "$as_me:$LINENO: checking for selinux_status_open in -lselinux" >&5
9545 $as_echo_n "checking for selinux_status_open in -lselinux... " >&6; }
9546 if test "${ac_cv_lib_selinux_selinux_status_open+set}" = set; then
9547   $as_echo_n "(cached) " >&6
9548 else
9549   ac_check_lib_save_LIBS=$LIBS
9550 LIBS="-lselinux  $LIBS"
9551 cat >conftest.$ac_ext <<_ACEOF
9552 /* confdefs.h.  */
9553 _ACEOF
9554 cat confdefs.h >>conftest.$ac_ext
9555 cat >>conftest.$ac_ext <<_ACEOF
9556 /* end confdefs.h.  */
9557
9558 /* Override any GCC internal prototype to avoid an error.
9559    Use char because int might match the return type of a GCC
9560    builtin and then its argument prototype would still apply.  */
9561 #ifdef __cplusplus
9562 extern "C"
9563 #endif
9564 char selinux_status_open ();
9565 int
9566 main ()
9567 {
9568 return selinux_status_open ();
9569   ;
9570   return 0;
9571 }
9572 _ACEOF
9573 rm -f conftest.$ac_objext conftest$ac_exeext
9574 if { (ac_try="$ac_link"
9575 case "(($ac_try" in
9576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9577   *) ac_try_echo=$ac_try;;
9578 esac
9579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9580 $as_echo "$ac_try_echo") >&5
9581   (eval "$ac_link") 2>conftest.er1
9582   ac_status=$?
9583   grep -v '^ *+' conftest.er1 >conftest.err
9584   rm -f conftest.er1
9585   cat conftest.err >&5
9586   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587   (exit $ac_status); } && {
9588          test -z "$ac_c_werror_flag" ||
9589          test ! -s conftest.err
9590        } && test -s conftest$ac_exeext && {
9591          test "$cross_compiling" = yes ||
9592          $as_test_x conftest$ac_exeext
9593        }; then
9594   ac_cv_lib_selinux_selinux_status_open=yes
9595 else
9596   $as_echo "$as_me: failed program was:" >&5
9597 sed 's/^/| /' conftest.$ac_ext >&5
9598
9599         ac_cv_lib_selinux_selinux_status_open=no
9600 fi
9601
9602 rm -rf conftest.dSYM
9603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9604       conftest$ac_exeext conftest.$ac_ext
9605 LIBS=$ac_check_lib_save_LIBS
9606 fi
9607 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_selinux_status_open" >&5
9608 $as_echo "$ac_cv_lib_selinux_selinux_status_open" >&6; }
9609 if test "x$ac_cv_lib_selinux_selinux_status_open" = x""yes; then
9610   cat >>confdefs.h <<_ACEOF
9611 #define HAVE_LIBSELINUX 1
9612 _ACEOF
9613
9614   LIBS="-lselinux $LIBS"
9615
9616 else
9617   { { $as_echo "$as_me:$LINENO: error: library 'libselinux', version 2.0.99 or newer, is required for SELinux support" >&5
9618 $as_echo "$as_me: error: library 'libselinux', version 2.0.99 or newer, is required for SELinux support" >&2;}
9619    { (exit 1); exit 1; }; }
9620 fi
9621
9622 fi
9623
9624 # for contrib/uuid-ossp
9625 if test "$with_ossp_uuid" = yes ; then
9626   { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9627 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9628 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9629   $as_echo_n "(cached) " >&6
9630 else
9631   ac_check_lib_save_LIBS=$LIBS
9632 LIBS="-lossp-uuid  $LIBS"
9633 cat >conftest.$ac_ext <<_ACEOF
9634 /* confdefs.h.  */
9635 _ACEOF
9636 cat confdefs.h >>conftest.$ac_ext
9637 cat >>conftest.$ac_ext <<_ACEOF
9638 /* end confdefs.h.  */
9639
9640 /* Override any GCC internal prototype to avoid an error.
9641    Use char because int might match the return type of a GCC
9642    builtin and then its argument prototype would still apply.  */
9643 #ifdef __cplusplus
9644 extern "C"
9645 #endif
9646 char uuid_export ();
9647 int
9648 main ()
9649 {
9650 return uuid_export ();
9651   ;
9652   return 0;
9653 }
9654 _ACEOF
9655 rm -f conftest.$ac_objext conftest$ac_exeext
9656 if { (ac_try="$ac_link"
9657 case "(($ac_try" in
9658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9659   *) ac_try_echo=$ac_try;;
9660 esac
9661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9662 $as_echo "$ac_try_echo") >&5
9663   (eval "$ac_link") 2>conftest.er1
9664   ac_status=$?
9665   grep -v '^ *+' conftest.er1 >conftest.err
9666   rm -f conftest.er1
9667   cat conftest.err >&5
9668   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669   (exit $ac_status); } && {
9670          test -z "$ac_c_werror_flag" ||
9671          test ! -s conftest.err
9672        } && test -s conftest$ac_exeext && {
9673          test "$cross_compiling" = yes ||
9674          $as_test_x conftest$ac_exeext
9675        }; then
9676   ac_cv_lib_ossp_uuid_uuid_export=yes
9677 else
9678   $as_echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.$ac_ext >&5
9680
9681         ac_cv_lib_ossp_uuid_uuid_export=no
9682 fi
9683
9684 rm -rf conftest.dSYM
9685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9686       conftest$ac_exeext conftest.$ac_ext
9687 LIBS=$ac_check_lib_save_LIBS
9688 fi
9689 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9690 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9691 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9692   OSSP_UUID_LIBS="-lossp-uuid"
9693 else
9694   { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9695 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9696 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9697   $as_echo_n "(cached) " >&6
9698 else
9699   ac_check_lib_save_LIBS=$LIBS
9700 LIBS="-luuid  $LIBS"
9701 cat >conftest.$ac_ext <<_ACEOF
9702 /* confdefs.h.  */
9703 _ACEOF
9704 cat confdefs.h >>conftest.$ac_ext
9705 cat >>conftest.$ac_ext <<_ACEOF
9706 /* end confdefs.h.  */
9707
9708 /* Override any GCC internal prototype to avoid an error.
9709    Use char because int might match the return type of a GCC
9710    builtin and then its argument prototype would still apply.  */
9711 #ifdef __cplusplus
9712 extern "C"
9713 #endif
9714 char uuid_export ();
9715 int
9716 main ()
9717 {
9718 return uuid_export ();
9719   ;
9720   return 0;
9721 }
9722 _ACEOF
9723 rm -f conftest.$ac_objext conftest$ac_exeext
9724 if { (ac_try="$ac_link"
9725 case "(($ac_try" in
9726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9727   *) ac_try_echo=$ac_try;;
9728 esac
9729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9730 $as_echo "$ac_try_echo") >&5
9731   (eval "$ac_link") 2>conftest.er1
9732   ac_status=$?
9733   grep -v '^ *+' conftest.er1 >conftest.err
9734   rm -f conftest.er1
9735   cat conftest.err >&5
9736   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737   (exit $ac_status); } && {
9738          test -z "$ac_c_werror_flag" ||
9739          test ! -s conftest.err
9740        } && test -s conftest$ac_exeext && {
9741          test "$cross_compiling" = yes ||
9742          $as_test_x conftest$ac_exeext
9743        }; then
9744   ac_cv_lib_uuid_uuid_export=yes
9745 else
9746   $as_echo "$as_me: failed program was:" >&5
9747 sed 's/^/| /' conftest.$ac_ext >&5
9748
9749         ac_cv_lib_uuid_uuid_export=no
9750 fi
9751
9752 rm -rf conftest.dSYM
9753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9754       conftest$ac_exeext conftest.$ac_ext
9755 LIBS=$ac_check_lib_save_LIBS
9756 fi
9757 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9758 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9759 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9760   OSSP_UUID_LIBS="-luuid"
9761 else
9762   { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9763 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9764    { (exit 1); exit 1; }; }
9765 fi
9766
9767 fi
9768
9769 fi
9770
9771
9772
9773 ##
9774 ## Header files
9775 ##
9776
9777 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9778 $as_echo_n "checking for ANSI C header files... " >&6; }
9779 if test "${ac_cv_header_stdc+set}" = set; then
9780   $as_echo_n "(cached) " >&6
9781 else
9782   cat >conftest.$ac_ext <<_ACEOF
9783 /* confdefs.h.  */
9784 _ACEOF
9785 cat confdefs.h >>conftest.$ac_ext
9786 cat >>conftest.$ac_ext <<_ACEOF
9787 /* end confdefs.h.  */
9788 #include <stdlib.h>
9789 #include <stdarg.h>
9790 #include <string.h>
9791 #include <float.h>
9792
9793 int
9794 main ()
9795 {
9796
9797   ;
9798   return 0;
9799 }
9800 _ACEOF
9801 rm -f conftest.$ac_objext
9802 if { (ac_try="$ac_compile"
9803 case "(($ac_try" in
9804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9805   *) ac_try_echo=$ac_try;;
9806 esac
9807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9808 $as_echo "$ac_try_echo") >&5
9809   (eval "$ac_compile") 2>conftest.er1
9810   ac_status=$?
9811   grep -v '^ *+' conftest.er1 >conftest.err
9812   rm -f conftest.er1
9813   cat conftest.err >&5
9814   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815   (exit $ac_status); } && {
9816          test -z "$ac_c_werror_flag" ||
9817          test ! -s conftest.err
9818        } && test -s conftest.$ac_objext; then
9819   ac_cv_header_stdc=yes
9820 else
9821   $as_echo "$as_me: failed program was:" >&5
9822 sed 's/^/| /' conftest.$ac_ext >&5
9823
9824         ac_cv_header_stdc=no
9825 fi
9826
9827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9828
9829 if test $ac_cv_header_stdc = yes; then
9830   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9831   cat >conftest.$ac_ext <<_ACEOF
9832 /* confdefs.h.  */
9833 _ACEOF
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h.  */
9837 #include <string.h>
9838
9839 _ACEOF
9840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9841   $EGREP "memchr" >/dev/null 2>&1; then
9842   :
9843 else
9844   ac_cv_header_stdc=no
9845 fi
9846 rm -f conftest*
9847
9848 fi
9849
9850 if test $ac_cv_header_stdc = yes; then
9851   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9852   cat >conftest.$ac_ext <<_ACEOF
9853 /* confdefs.h.  */
9854 _ACEOF
9855 cat confdefs.h >>conftest.$ac_ext
9856 cat >>conftest.$ac_ext <<_ACEOF
9857 /* end confdefs.h.  */
9858 #include <stdlib.h>
9859
9860 _ACEOF
9861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9862   $EGREP "free" >/dev/null 2>&1; then
9863   :
9864 else
9865   ac_cv_header_stdc=no
9866 fi
9867 rm -f conftest*
9868
9869 fi
9870
9871 if test $ac_cv_header_stdc = yes; then
9872   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9873   if test "$cross_compiling" = yes; then
9874   :
9875 else
9876   cat >conftest.$ac_ext <<_ACEOF
9877 /* confdefs.h.  */
9878 _ACEOF
9879 cat confdefs.h >>conftest.$ac_ext
9880 cat >>conftest.$ac_ext <<_ACEOF
9881 /* end confdefs.h.  */
9882 #include <ctype.h>
9883 #include <stdlib.h>
9884 #if ((' ' & 0x0FF) == 0x020)
9885 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9886 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9887 #else
9888 # define ISLOWER(c) \
9889                    (('a' <= (c) && (c) <= 'i') \
9890                      || ('j' <= (c) && (c) <= 'r') \
9891                      || ('s' <= (c) && (c) <= 'z'))
9892 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9893 #endif
9894
9895 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9896 int
9897 main ()
9898 {
9899   int i;
9900   for (i = 0; i < 256; i++)
9901     if (XOR (islower (i), ISLOWER (i))
9902         || toupper (i) != TOUPPER (i))
9903       return 2;
9904   return 0;
9905 }
9906 _ACEOF
9907 rm -f conftest$ac_exeext
9908 if { (ac_try="$ac_link"
9909 case "(($ac_try" in
9910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9911   *) ac_try_echo=$ac_try;;
9912 esac
9913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9914 $as_echo "$ac_try_echo") >&5
9915   (eval "$ac_link") 2>&5
9916   ac_status=$?
9917   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9919   { (case "(($ac_try" in
9920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9921   *) ac_try_echo=$ac_try;;
9922 esac
9923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9924 $as_echo "$ac_try_echo") >&5
9925   (eval "$ac_try") 2>&5
9926   ac_status=$?
9927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928   (exit $ac_status); }; }; then
9929   :
9930 else
9931   $as_echo "$as_me: program exited with status $ac_status" >&5
9932 $as_echo "$as_me: failed program was:" >&5
9933 sed 's/^/| /' conftest.$ac_ext >&5
9934
9935 ( exit $ac_status )
9936 ac_cv_header_stdc=no
9937 fi
9938 rm -rf conftest.dSYM
9939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9940 fi
9941
9942
9943 fi
9944 fi
9945 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9946 $as_echo "$ac_cv_header_stdc" >&6; }
9947 if test $ac_cv_header_stdc = yes; then
9948
9949 cat >>confdefs.h <<\_ACEOF
9950 #define STDC_HEADERS 1
9951 _ACEOF
9952
9953 fi
9954
9955 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9966                   inttypes.h stdint.h unistd.h
9967 do
9968 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9969 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9970 $as_echo_n "checking for $ac_header... " >&6; }
9971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9972   $as_echo_n "(cached) " >&6
9973 else
9974   cat >conftest.$ac_ext <<_ACEOF
9975 /* confdefs.h.  */
9976 _ACEOF
9977 cat confdefs.h >>conftest.$ac_ext
9978 cat >>conftest.$ac_ext <<_ACEOF
9979 /* end confdefs.h.  */
9980 $ac_includes_default
9981
9982 #include <$ac_header>
9983 _ACEOF
9984 rm -f conftest.$ac_objext
9985 if { (ac_try="$ac_compile"
9986 case "(($ac_try" in
9987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9988   *) ac_try_echo=$ac_try;;
9989 esac
9990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9991 $as_echo "$ac_try_echo") >&5
9992   (eval "$ac_compile") 2>conftest.er1
9993   ac_status=$?
9994   grep -v '^ *+' conftest.er1 >conftest.err
9995   rm -f conftest.er1
9996   cat conftest.err >&5
9997   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998   (exit $ac_status); } && {
9999          test -z "$ac_c_werror_flag" ||
10000          test ! -s conftest.err
10001        } && test -s conftest.$ac_objext; then
10002   eval "$as_ac_Header=yes"
10003 else
10004   $as_echo "$as_me: failed program was:" >&5
10005 sed 's/^/| /' conftest.$ac_ext >&5
10006
10007         eval "$as_ac_Header=no"
10008 fi
10009
10010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10011 fi
10012 ac_res=`eval 'as_val=${'$as_ac_Header'}
10013                  $as_echo "$as_val"'`
10014                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10015 $as_echo "$ac_res" >&6; }
10016 as_val=`eval 'as_val=${'$as_ac_Header'}
10017                  $as_echo "$as_val"'`
10018    if test "x$as_val" = x""yes; then
10019   cat >>confdefs.h <<_ACEOF
10020 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10021 _ACEOF
10022
10023 fi
10024
10025 done
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059 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 kernel/OS.h kernel/image.h SupportDefs.h
10060 do
10061 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10063   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10064 $as_echo_n "checking for $ac_header... " >&6; }
10065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10066   $as_echo_n "(cached) " >&6
10067 fi
10068 ac_res=`eval 'as_val=${'$as_ac_Header'}
10069                  $as_echo "$as_val"'`
10070                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10071 $as_echo "$ac_res" >&6; }
10072 else
10073   # Is the header compilable?
10074 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10075 $as_echo_n "checking $ac_header usability... " >&6; }
10076 cat >conftest.$ac_ext <<_ACEOF
10077 /* confdefs.h.  */
10078 _ACEOF
10079 cat confdefs.h >>conftest.$ac_ext
10080 cat >>conftest.$ac_ext <<_ACEOF
10081 /* end confdefs.h.  */
10082 $ac_includes_default
10083 #include <$ac_header>
10084 _ACEOF
10085 rm -f conftest.$ac_objext
10086 if { (ac_try="$ac_compile"
10087 case "(($ac_try" in
10088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10089   *) ac_try_echo=$ac_try;;
10090 esac
10091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10092 $as_echo "$ac_try_echo") >&5
10093   (eval "$ac_compile") 2>conftest.er1
10094   ac_status=$?
10095   grep -v '^ *+' conftest.er1 >conftest.err
10096   rm -f conftest.er1
10097   cat conftest.err >&5
10098   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099   (exit $ac_status); } && {
10100          test -z "$ac_c_werror_flag" ||
10101          test ! -s conftest.err
10102        } && test -s conftest.$ac_objext; then
10103   ac_header_compiler=yes
10104 else
10105   $as_echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10107
10108         ac_header_compiler=no
10109 fi
10110
10111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10112 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10113 $as_echo "$ac_header_compiler" >&6; }
10114
10115 # Is the header present?
10116 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10117 $as_echo_n "checking $ac_header presence... " >&6; }
10118 cat >conftest.$ac_ext <<_ACEOF
10119 /* confdefs.h.  */
10120 _ACEOF
10121 cat confdefs.h >>conftest.$ac_ext
10122 cat >>conftest.$ac_ext <<_ACEOF
10123 /* end confdefs.h.  */
10124 #include <$ac_header>
10125 _ACEOF
10126 if { (ac_try="$ac_cpp conftest.$ac_ext"
10127 case "(($ac_try" in
10128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10129   *) ac_try_echo=$ac_try;;
10130 esac
10131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10132 $as_echo "$ac_try_echo") >&5
10133   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10134   ac_status=$?
10135   grep -v '^ *+' conftest.er1 >conftest.err
10136   rm -f conftest.er1
10137   cat conftest.err >&5
10138   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139   (exit $ac_status); } >/dev/null && {
10140          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10141          test ! -s conftest.err
10142        }; then
10143   ac_header_preproc=yes
10144 else
10145   $as_echo "$as_me: failed program was:" >&5
10146 sed 's/^/| /' conftest.$ac_ext >&5
10147
10148   ac_header_preproc=no
10149 fi
10150
10151 rm -f conftest.err conftest.$ac_ext
10152 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10153 $as_echo "$ac_header_preproc" >&6; }
10154
10155 # So?  What about this header?
10156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10157   yes:no: )
10158     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10159 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10160     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10161 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10162     ac_header_preproc=yes
10163     ;;
10164   no:yes:* )
10165     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10166 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10167     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10168 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10169     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10170 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10171     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10172 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10173     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10174 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10175     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10176 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10177     ( cat <<\_ASBOX
10178 ## ---------------------------------------- ##
10179 ## Report this to pgsql-bugs@postgresql.org ##
10180 ## ---------------------------------------- ##
10181 _ASBOX
10182      ) | sed "s/^/$as_me: WARNING:     /" >&2
10183     ;;
10184 esac
10185 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10186 $as_echo_n "checking for $ac_header... " >&6; }
10187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10188   $as_echo_n "(cached) " >&6
10189 else
10190   eval "$as_ac_Header=\$ac_header_preproc"
10191 fi
10192 ac_res=`eval 'as_val=${'$as_ac_Header'}
10193                  $as_echo "$as_val"'`
10194                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10195 $as_echo "$ac_res" >&6; }
10196
10197 fi
10198 as_val=`eval 'as_val=${'$as_ac_Header'}
10199                  $as_echo "$as_val"'`
10200    if test "x$as_val" = x""yes; then
10201   cat >>confdefs.h <<_ACEOF
10202 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10203 _ACEOF
10204
10205 fi
10206
10207 done
10208
10209
10210 # On BSD, cpp test for net/if.h will fail unless sys/socket.h
10211 # is included first.
10212
10213 for ac_header in net/if.h
10214 do
10215 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10216 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10217 $as_echo_n "checking for $ac_header... " >&6; }
10218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10219   $as_echo_n "(cached) " >&6
10220 else
10221   cat >conftest.$ac_ext <<_ACEOF
10222 /* confdefs.h.  */
10223 _ACEOF
10224 cat confdefs.h >>conftest.$ac_ext
10225 cat >>conftest.$ac_ext <<_ACEOF
10226 /* end confdefs.h.  */
10227 $ac_includes_default
10228 #ifdef HAVE_SYS_SOCKET_H
10229 #include <sys/socket.h>
10230 #endif
10231
10232
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   eval "$as_ac_Header=yes"
10254 else
10255   $as_echo "$as_me: failed program was:" >&5
10256 sed 's/^/| /' conftest.$ac_ext >&5
10257
10258         eval "$as_ac_Header=no"
10259 fi
10260
10261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10262 fi
10263 ac_res=`eval 'as_val=${'$as_ac_Header'}
10264                  $as_echo "$as_val"'`
10265                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10266 $as_echo "$ac_res" >&6; }
10267 as_val=`eval 'as_val=${'$as_ac_Header'}
10268                  $as_echo "$as_val"'`
10269    if test "x$as_val" = x""yes; then
10270   cat >>confdefs.h <<_ACEOF
10271 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10272 _ACEOF
10273
10274 fi
10275
10276 done
10277
10278
10279 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
10280 # netinet/in.h is included first.
10281
10282 for ac_header in netinet/in.h
10283 do
10284 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10286   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10287 $as_echo_n "checking for $ac_header... " >&6; }
10288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10289   $as_echo_n "(cached) " >&6
10290 fi
10291 ac_res=`eval 'as_val=${'$as_ac_Header'}
10292                  $as_echo "$as_val"'`
10293                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10294 $as_echo "$ac_res" >&6; }
10295 else
10296   # Is the header compilable?
10297 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10298 $as_echo_n "checking $ac_header usability... " >&6; }
10299 cat >conftest.$ac_ext <<_ACEOF
10300 /* confdefs.h.  */
10301 _ACEOF
10302 cat confdefs.h >>conftest.$ac_ext
10303 cat >>conftest.$ac_ext <<_ACEOF
10304 /* end confdefs.h.  */
10305 $ac_includes_default
10306 #include <$ac_header>
10307 _ACEOF
10308 rm -f conftest.$ac_objext
10309 if { (ac_try="$ac_compile"
10310 case "(($ac_try" in
10311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10312   *) ac_try_echo=$ac_try;;
10313 esac
10314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10315 $as_echo "$ac_try_echo") >&5
10316   (eval "$ac_compile") 2>conftest.er1
10317   ac_status=$?
10318   grep -v '^ *+' conftest.er1 >conftest.err
10319   rm -f conftest.er1
10320   cat conftest.err >&5
10321   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322   (exit $ac_status); } && {
10323          test -z "$ac_c_werror_flag" ||
10324          test ! -s conftest.err
10325        } && test -s conftest.$ac_objext; then
10326   ac_header_compiler=yes
10327 else
10328   $as_echo "$as_me: failed program was:" >&5
10329 sed 's/^/| /' conftest.$ac_ext >&5
10330
10331         ac_header_compiler=no
10332 fi
10333
10334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10335 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10336 $as_echo "$ac_header_compiler" >&6; }
10337
10338 # Is the header present?
10339 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10340 $as_echo_n "checking $ac_header presence... " >&6; }
10341 cat >conftest.$ac_ext <<_ACEOF
10342 /* confdefs.h.  */
10343 _ACEOF
10344 cat confdefs.h >>conftest.$ac_ext
10345 cat >>conftest.$ac_ext <<_ACEOF
10346 /* end confdefs.h.  */
10347 #include <$ac_header>
10348 _ACEOF
10349 if { (ac_try="$ac_cpp conftest.$ac_ext"
10350 case "(($ac_try" in
10351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10352   *) ac_try_echo=$ac_try;;
10353 esac
10354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10355 $as_echo "$ac_try_echo") >&5
10356   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10357   ac_status=$?
10358   grep -v '^ *+' conftest.er1 >conftest.err
10359   rm -f conftest.er1
10360   cat conftest.err >&5
10361   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362   (exit $ac_status); } >/dev/null && {
10363          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10364          test ! -s conftest.err
10365        }; then
10366   ac_header_preproc=yes
10367 else
10368   $as_echo "$as_me: failed program was:" >&5
10369 sed 's/^/| /' conftest.$ac_ext >&5
10370
10371   ac_header_preproc=no
10372 fi
10373
10374 rm -f conftest.err conftest.$ac_ext
10375 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10376 $as_echo "$ac_header_preproc" >&6; }
10377
10378 # So?  What about this header?
10379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10380   yes:no: )
10381     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10382 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10383     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10384 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10385     ac_header_preproc=yes
10386     ;;
10387   no:yes:* )
10388     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10389 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10390     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10391 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10392     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10393 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10394     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10395 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10396     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10397 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10398     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10399 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10400     ( cat <<\_ASBOX
10401 ## ---------------------------------------- ##
10402 ## Report this to pgsql-bugs@postgresql.org ##
10403 ## ---------------------------------------- ##
10404 _ASBOX
10405      ) | sed "s/^/$as_me: WARNING:     /" >&2
10406     ;;
10407 esac
10408 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10409 $as_echo_n "checking for $ac_header... " >&6; }
10410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10411   $as_echo_n "(cached) " >&6
10412 else
10413   eval "$as_ac_Header=\$ac_header_preproc"
10414 fi
10415 ac_res=`eval 'as_val=${'$as_ac_Header'}
10416                  $as_echo "$as_val"'`
10417                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10418 $as_echo "$ac_res" >&6; }
10419
10420 fi
10421 as_val=`eval 'as_val=${'$as_ac_Header'}
10422                  $as_echo "$as_val"'`
10423    if test "x$as_val" = x""yes; then
10424   cat >>confdefs.h <<_ACEOF
10425 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10426 _ACEOF
10427
10428 fi
10429
10430 done
10431
10432
10433 for ac_header in netinet/tcp.h
10434 do
10435 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
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 else
10441   cat >conftest.$ac_ext <<_ACEOF
10442 /* confdefs.h.  */
10443 _ACEOF
10444 cat confdefs.h >>conftest.$ac_ext
10445 cat >>conftest.$ac_ext <<_ACEOF
10446 /* end confdefs.h.  */
10447 $ac_includes_default
10448 #ifdef HAVE_NETINET_IN_H
10449 #include <netinet/in.h>
10450 #endif
10451
10452
10453 #include <$ac_header>
10454 _ACEOF
10455 rm -f conftest.$ac_objext
10456 if { (ac_try="$ac_compile"
10457 case "(($ac_try" in
10458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10459   *) ac_try_echo=$ac_try;;
10460 esac
10461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10462 $as_echo "$ac_try_echo") >&5
10463   (eval "$ac_compile") 2>conftest.er1
10464   ac_status=$?
10465   grep -v '^ *+' conftest.er1 >conftest.err
10466   rm -f conftest.er1
10467   cat conftest.err >&5
10468   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469   (exit $ac_status); } && {
10470          test -z "$ac_c_werror_flag" ||
10471          test ! -s conftest.err
10472        } && test -s conftest.$ac_objext; then
10473   eval "$as_ac_Header=yes"
10474 else
10475   $as_echo "$as_me: failed program was:" >&5
10476 sed 's/^/| /' conftest.$ac_ext >&5
10477
10478         eval "$as_ac_Header=no"
10479 fi
10480
10481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10482 fi
10483 ac_res=`eval 'as_val=${'$as_ac_Header'}
10484                  $as_echo "$as_val"'`
10485                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10486 $as_echo "$ac_res" >&6; }
10487 as_val=`eval 'as_val=${'$as_ac_Header'}
10488                  $as_echo "$as_val"'`
10489    if test "x$as_val" = x""yes; then
10490   cat >>confdefs.h <<_ACEOF
10491 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10492 _ACEOF
10493
10494 fi
10495
10496 done
10497
10498
10499 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10500
10501 for ac_header in readline/readline.h
10502 do
10503 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10505   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10506 $as_echo_n "checking for $ac_header... " >&6; }
10507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10508   $as_echo_n "(cached) " >&6
10509 fi
10510 ac_res=`eval 'as_val=${'$as_ac_Header'}
10511                  $as_echo "$as_val"'`
10512                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10513 $as_echo "$ac_res" >&6; }
10514 else
10515   # Is the header compilable?
10516 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10517 $as_echo_n "checking $ac_header usability... " >&6; }
10518 cat >conftest.$ac_ext <<_ACEOF
10519 /* confdefs.h.  */
10520 _ACEOF
10521 cat confdefs.h >>conftest.$ac_ext
10522 cat >>conftest.$ac_ext <<_ACEOF
10523 /* end confdefs.h.  */
10524 $ac_includes_default
10525 #include <$ac_header>
10526 _ACEOF
10527 rm -f conftest.$ac_objext
10528 if { (ac_try="$ac_compile"
10529 case "(($ac_try" in
10530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10531   *) ac_try_echo=$ac_try;;
10532 esac
10533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10534 $as_echo "$ac_try_echo") >&5
10535   (eval "$ac_compile") 2>conftest.er1
10536   ac_status=$?
10537   grep -v '^ *+' conftest.er1 >conftest.err
10538   rm -f conftest.er1
10539   cat conftest.err >&5
10540   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541   (exit $ac_status); } && {
10542          test -z "$ac_c_werror_flag" ||
10543          test ! -s conftest.err
10544        } && test -s conftest.$ac_objext; then
10545   ac_header_compiler=yes
10546 else
10547   $as_echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.$ac_ext >&5
10549
10550         ac_header_compiler=no
10551 fi
10552
10553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10554 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10555 $as_echo "$ac_header_compiler" >&6; }
10556
10557 # Is the header present?
10558 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10559 $as_echo_n "checking $ac_header presence... " >&6; }
10560 cat >conftest.$ac_ext <<_ACEOF
10561 /* confdefs.h.  */
10562 _ACEOF
10563 cat confdefs.h >>conftest.$ac_ext
10564 cat >>conftest.$ac_ext <<_ACEOF
10565 /* end confdefs.h.  */
10566 #include <$ac_header>
10567 _ACEOF
10568 if { (ac_try="$ac_cpp conftest.$ac_ext"
10569 case "(($ac_try" in
10570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10571   *) ac_try_echo=$ac_try;;
10572 esac
10573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10574 $as_echo "$ac_try_echo") >&5
10575   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10576   ac_status=$?
10577   grep -v '^ *+' conftest.er1 >conftest.err
10578   rm -f conftest.er1
10579   cat conftest.err >&5
10580   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581   (exit $ac_status); } >/dev/null && {
10582          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10583          test ! -s conftest.err
10584        }; then
10585   ac_header_preproc=yes
10586 else
10587   $as_echo "$as_me: failed program was:" >&5
10588 sed 's/^/| /' conftest.$ac_ext >&5
10589
10590   ac_header_preproc=no
10591 fi
10592
10593 rm -f conftest.err conftest.$ac_ext
10594 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10595 $as_echo "$ac_header_preproc" >&6; }
10596
10597 # So?  What about this header?
10598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10599   yes:no: )
10600     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10601 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10602     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10603 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10604     ac_header_preproc=yes
10605     ;;
10606   no:yes:* )
10607     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10608 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10609     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10610 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10611     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10612 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10613     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10614 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10615     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10616 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10617     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10618 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10619     ( cat <<\_ASBOX
10620 ## ---------------------------------------- ##
10621 ## Report this to pgsql-bugs@postgresql.org ##
10622 ## ---------------------------------------- ##
10623 _ASBOX
10624      ) | sed "s/^/$as_me: WARNING:     /" >&2
10625     ;;
10626 esac
10627 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10628 $as_echo_n "checking for $ac_header... " >&6; }
10629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10630   $as_echo_n "(cached) " >&6
10631 else
10632   eval "$as_ac_Header=\$ac_header_preproc"
10633 fi
10634 ac_res=`eval 'as_val=${'$as_ac_Header'}
10635                  $as_echo "$as_val"'`
10636                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10637 $as_echo "$ac_res" >&6; }
10638
10639 fi
10640 as_val=`eval 'as_val=${'$as_ac_Header'}
10641                  $as_echo "$as_val"'`
10642    if test "x$as_val" = x""yes; then
10643   cat >>confdefs.h <<_ACEOF
10644 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10645 _ACEOF
10646
10647 else
10648
10649 for ac_header in readline.h
10650 do
10651 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10653   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10654 $as_echo_n "checking for $ac_header... " >&6; }
10655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10656   $as_echo_n "(cached) " >&6
10657 fi
10658 ac_res=`eval 'as_val=${'$as_ac_Header'}
10659                  $as_echo "$as_val"'`
10660                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10661 $as_echo "$ac_res" >&6; }
10662 else
10663   # Is the header compilable?
10664 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10665 $as_echo_n "checking $ac_header usability... " >&6; }
10666 cat >conftest.$ac_ext <<_ACEOF
10667 /* confdefs.h.  */
10668 _ACEOF
10669 cat confdefs.h >>conftest.$ac_ext
10670 cat >>conftest.$ac_ext <<_ACEOF
10671 /* end confdefs.h.  */
10672 $ac_includes_default
10673 #include <$ac_header>
10674 _ACEOF
10675 rm -f conftest.$ac_objext
10676 if { (ac_try="$ac_compile"
10677 case "(($ac_try" in
10678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10679   *) ac_try_echo=$ac_try;;
10680 esac
10681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10682 $as_echo "$ac_try_echo") >&5
10683   (eval "$ac_compile") 2>conftest.er1
10684   ac_status=$?
10685   grep -v '^ *+' conftest.er1 >conftest.err
10686   rm -f conftest.er1
10687   cat conftest.err >&5
10688   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689   (exit $ac_status); } && {
10690          test -z "$ac_c_werror_flag" ||
10691          test ! -s conftest.err
10692        } && test -s conftest.$ac_objext; then
10693   ac_header_compiler=yes
10694 else
10695   $as_echo "$as_me: failed program was:" >&5
10696 sed 's/^/| /' conftest.$ac_ext >&5
10697
10698         ac_header_compiler=no
10699 fi
10700
10701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10702 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10703 $as_echo "$ac_header_compiler" >&6; }
10704
10705 # Is the header present?
10706 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10707 $as_echo_n "checking $ac_header presence... " >&6; }
10708 cat >conftest.$ac_ext <<_ACEOF
10709 /* confdefs.h.  */
10710 _ACEOF
10711 cat confdefs.h >>conftest.$ac_ext
10712 cat >>conftest.$ac_ext <<_ACEOF
10713 /* end confdefs.h.  */
10714 #include <$ac_header>
10715 _ACEOF
10716 if { (ac_try="$ac_cpp conftest.$ac_ext"
10717 case "(($ac_try" in
10718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10719   *) ac_try_echo=$ac_try;;
10720 esac
10721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10722 $as_echo "$ac_try_echo") >&5
10723   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10724   ac_status=$?
10725   grep -v '^ *+' conftest.er1 >conftest.err
10726   rm -f conftest.er1
10727   cat conftest.err >&5
10728   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729   (exit $ac_status); } >/dev/null && {
10730          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10731          test ! -s conftest.err
10732        }; then
10733   ac_header_preproc=yes
10734 else
10735   $as_echo "$as_me: failed program was:" >&5
10736 sed 's/^/| /' conftest.$ac_ext >&5
10737
10738   ac_header_preproc=no
10739 fi
10740
10741 rm -f conftest.err conftest.$ac_ext
10742 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10743 $as_echo "$ac_header_preproc" >&6; }
10744
10745 # So?  What about this header?
10746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10747   yes:no: )
10748     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10749 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10750     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10751 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10752     ac_header_preproc=yes
10753     ;;
10754   no:yes:* )
10755     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10756 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10757     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10758 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10759     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10760 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10761     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10762 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10763     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10764 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10765     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10766 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10767     ( cat <<\_ASBOX
10768 ## ---------------------------------------- ##
10769 ## Report this to pgsql-bugs@postgresql.org ##
10770 ## ---------------------------------------- ##
10771 _ASBOX
10772      ) | sed "s/^/$as_me: WARNING:     /" >&2
10773     ;;
10774 esac
10775 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10776 $as_echo_n "checking for $ac_header... " >&6; }
10777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10778   $as_echo_n "(cached) " >&6
10779 else
10780   eval "$as_ac_Header=\$ac_header_preproc"
10781 fi
10782 ac_res=`eval 'as_val=${'$as_ac_Header'}
10783                  $as_echo "$as_val"'`
10784                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10785 $as_echo "$ac_res" >&6; }
10786
10787 fi
10788 as_val=`eval 'as_val=${'$as_ac_Header'}
10789                  $as_echo "$as_val"'`
10790    if test "x$as_val" = x""yes; then
10791   cat >>confdefs.h <<_ACEOF
10792 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10793 _ACEOF
10794
10795 else
10796   { { $as_echo "$as_me:$LINENO: error: readline header not found
10797 If you have readline already installed, see config.log for details on the
10798 failure.  It is possible the compiler isn't looking in the proper directory.
10799 Use --without-readline to disable readline support." >&5
10800 $as_echo "$as_me: error: readline header not found
10801 If you have readline already installed, see config.log for details on the
10802 failure.  It is possible the compiler isn't looking in the proper directory.
10803 Use --without-readline to disable readline support." >&2;}
10804    { (exit 1); exit 1; }; }
10805 fi
10806
10807 done
10808
10809 fi
10810
10811 done
10812
10813
10814 for ac_header in readline/history.h
10815 do
10816 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10818   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10819 $as_echo_n "checking for $ac_header... " >&6; }
10820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10821   $as_echo_n "(cached) " >&6
10822 fi
10823 ac_res=`eval 'as_val=${'$as_ac_Header'}
10824                  $as_echo "$as_val"'`
10825                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10826 $as_echo "$ac_res" >&6; }
10827 else
10828   # Is the header compilable?
10829 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10830 $as_echo_n "checking $ac_header usability... " >&6; }
10831 cat >conftest.$ac_ext <<_ACEOF
10832 /* confdefs.h.  */
10833 _ACEOF
10834 cat confdefs.h >>conftest.$ac_ext
10835 cat >>conftest.$ac_ext <<_ACEOF
10836 /* end confdefs.h.  */
10837 $ac_includes_default
10838 #include <$ac_header>
10839 _ACEOF
10840 rm -f conftest.$ac_objext
10841 if { (ac_try="$ac_compile"
10842 case "(($ac_try" in
10843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844   *) ac_try_echo=$ac_try;;
10845 esac
10846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10847 $as_echo "$ac_try_echo") >&5
10848   (eval "$ac_compile") 2>conftest.er1
10849   ac_status=$?
10850   grep -v '^ *+' conftest.er1 >conftest.err
10851   rm -f conftest.er1
10852   cat conftest.err >&5
10853   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854   (exit $ac_status); } && {
10855          test -z "$ac_c_werror_flag" ||
10856          test ! -s conftest.err
10857        } && test -s conftest.$ac_objext; then
10858   ac_header_compiler=yes
10859 else
10860   $as_echo "$as_me: failed program was:" >&5
10861 sed 's/^/| /' conftest.$ac_ext >&5
10862
10863         ac_header_compiler=no
10864 fi
10865
10866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10867 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10868 $as_echo "$ac_header_compiler" >&6; }
10869
10870 # Is the header present?
10871 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10872 $as_echo_n "checking $ac_header presence... " >&6; }
10873 cat >conftest.$ac_ext <<_ACEOF
10874 /* confdefs.h.  */
10875 _ACEOF
10876 cat confdefs.h >>conftest.$ac_ext
10877 cat >>conftest.$ac_ext <<_ACEOF
10878 /* end confdefs.h.  */
10879 #include <$ac_header>
10880 _ACEOF
10881 if { (ac_try="$ac_cpp conftest.$ac_ext"
10882 case "(($ac_try" in
10883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10884   *) ac_try_echo=$ac_try;;
10885 esac
10886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10887 $as_echo "$ac_try_echo") >&5
10888   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10889   ac_status=$?
10890   grep -v '^ *+' conftest.er1 >conftest.err
10891   rm -f conftest.er1
10892   cat conftest.err >&5
10893   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894   (exit $ac_status); } >/dev/null && {
10895          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10896          test ! -s conftest.err
10897        }; then
10898   ac_header_preproc=yes
10899 else
10900   $as_echo "$as_me: failed program was:" >&5
10901 sed 's/^/| /' conftest.$ac_ext >&5
10902
10903   ac_header_preproc=no
10904 fi
10905
10906 rm -f conftest.err conftest.$ac_ext
10907 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10908 $as_echo "$ac_header_preproc" >&6; }
10909
10910 # So?  What about this header?
10911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10912   yes:no: )
10913     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10914 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10915     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10916 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10917     ac_header_preproc=yes
10918     ;;
10919   no:yes:* )
10920     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10921 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10922     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10923 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10924     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10925 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10926     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10927 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10928     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10929 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10930     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10931 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10932     ( cat <<\_ASBOX
10933 ## ---------------------------------------- ##
10934 ## Report this to pgsql-bugs@postgresql.org ##
10935 ## ---------------------------------------- ##
10936 _ASBOX
10937      ) | sed "s/^/$as_me: WARNING:     /" >&2
10938     ;;
10939 esac
10940 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10941 $as_echo_n "checking for $ac_header... " >&6; }
10942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10943   $as_echo_n "(cached) " >&6
10944 else
10945   eval "$as_ac_Header=\$ac_header_preproc"
10946 fi
10947 ac_res=`eval 'as_val=${'$as_ac_Header'}
10948                  $as_echo "$as_val"'`
10949                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10950 $as_echo "$ac_res" >&6; }
10951
10952 fi
10953 as_val=`eval 'as_val=${'$as_ac_Header'}
10954                  $as_echo "$as_val"'`
10955    if test "x$as_val" = x""yes; then
10956   cat >>confdefs.h <<_ACEOF
10957 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10958 _ACEOF
10959
10960 else
10961
10962 for ac_header in history.h
10963 do
10964 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10966   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10967 $as_echo_n "checking for $ac_header... " >&6; }
10968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10969   $as_echo_n "(cached) " >&6
10970 fi
10971 ac_res=`eval 'as_val=${'$as_ac_Header'}
10972                  $as_echo "$as_val"'`
10973                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10974 $as_echo "$ac_res" >&6; }
10975 else
10976   # Is the header compilable?
10977 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10978 $as_echo_n "checking $ac_header usability... " >&6; }
10979 cat >conftest.$ac_ext <<_ACEOF
10980 /* confdefs.h.  */
10981 _ACEOF
10982 cat confdefs.h >>conftest.$ac_ext
10983 cat >>conftest.$ac_ext <<_ACEOF
10984 /* end confdefs.h.  */
10985 $ac_includes_default
10986 #include <$ac_header>
10987 _ACEOF
10988 rm -f conftest.$ac_objext
10989 if { (ac_try="$ac_compile"
10990 case "(($ac_try" in
10991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10992   *) ac_try_echo=$ac_try;;
10993 esac
10994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10995 $as_echo "$ac_try_echo") >&5
10996   (eval "$ac_compile") 2>conftest.er1
10997   ac_status=$?
10998   grep -v '^ *+' conftest.er1 >conftest.err
10999   rm -f conftest.er1
11000   cat conftest.err >&5
11001   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002   (exit $ac_status); } && {
11003          test -z "$ac_c_werror_flag" ||
11004          test ! -s conftest.err
11005        } && test -s conftest.$ac_objext; then
11006   ac_header_compiler=yes
11007 else
11008   $as_echo "$as_me: failed program was:" >&5
11009 sed 's/^/| /' conftest.$ac_ext >&5
11010
11011         ac_header_compiler=no
11012 fi
11013
11014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11015 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11016 $as_echo "$ac_header_compiler" >&6; }
11017
11018 # Is the header present?
11019 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11020 $as_echo_n "checking $ac_header presence... " >&6; }
11021 cat >conftest.$ac_ext <<_ACEOF
11022 /* confdefs.h.  */
11023 _ACEOF
11024 cat confdefs.h >>conftest.$ac_ext
11025 cat >>conftest.$ac_ext <<_ACEOF
11026 /* end confdefs.h.  */
11027 #include <$ac_header>
11028 _ACEOF
11029 if { (ac_try="$ac_cpp conftest.$ac_ext"
11030 case "(($ac_try" in
11031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032   *) ac_try_echo=$ac_try;;
11033 esac
11034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11035 $as_echo "$ac_try_echo") >&5
11036   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11037   ac_status=$?
11038   grep -v '^ *+' conftest.er1 >conftest.err
11039   rm -f conftest.er1
11040   cat conftest.err >&5
11041   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042   (exit $ac_status); } >/dev/null && {
11043          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11044          test ! -s conftest.err
11045        }; then
11046   ac_header_preproc=yes
11047 else
11048   $as_echo "$as_me: failed program was:" >&5
11049 sed 's/^/| /' conftest.$ac_ext >&5
11050
11051   ac_header_preproc=no
11052 fi
11053
11054 rm -f conftest.err conftest.$ac_ext
11055 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11056 $as_echo "$ac_header_preproc" >&6; }
11057
11058 # So?  What about this header?
11059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11060   yes:no: )
11061     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11062 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11063     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11064 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11065     ac_header_preproc=yes
11066     ;;
11067   no:yes:* )
11068     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11069 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11070     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11071 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11072     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11073 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11074     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11075 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11076     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11077 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11078     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11079 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11080     ( cat <<\_ASBOX
11081 ## ---------------------------------------- ##
11082 ## Report this to pgsql-bugs@postgresql.org ##
11083 ## ---------------------------------------- ##
11084 _ASBOX
11085      ) | sed "s/^/$as_me: WARNING:     /" >&2
11086     ;;
11087 esac
11088 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11089 $as_echo_n "checking for $ac_header... " >&6; }
11090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11091   $as_echo_n "(cached) " >&6
11092 else
11093   eval "$as_ac_Header=\$ac_header_preproc"
11094 fi
11095 ac_res=`eval 'as_val=${'$as_ac_Header'}
11096                  $as_echo "$as_val"'`
11097                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11098 $as_echo "$ac_res" >&6; }
11099
11100 fi
11101 as_val=`eval 'as_val=${'$as_ac_Header'}
11102                  $as_echo "$as_val"'`
11103    if test "x$as_val" = x""yes; then
11104   cat >>confdefs.h <<_ACEOF
11105 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11106 _ACEOF
11107
11108 else
11109   { { $as_echo "$as_me:$LINENO: error: history header not found
11110 If you have readline already installed, see config.log for details on the
11111 failure.  It is possible the compiler isn't looking in the proper directory.
11112 Use --without-readline to disable readline support." >&5
11113 $as_echo "$as_me: error: history header not found
11114 If you have readline already installed, see config.log for details on the
11115 failure.  It is possible the compiler isn't looking in the proper directory.
11116 Use --without-readline to disable readline support." >&2;}
11117    { (exit 1); exit 1; }; }
11118 fi
11119
11120 done
11121
11122 fi
11123
11124 done
11125
11126 fi
11127
11128 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
11129 # Some installations of libedit usurp /usr/include/readline/, which seems
11130 # bad practice, since in combined installations readline will have its headers
11131 # there.  We might have to resort to AC_EGREP checks to make sure we found
11132 # the proper header...
11133
11134 for ac_header in editline/readline.h
11135 do
11136 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11138   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11139 $as_echo_n "checking for $ac_header... " >&6; }
11140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11141   $as_echo_n "(cached) " >&6
11142 fi
11143 ac_res=`eval 'as_val=${'$as_ac_Header'}
11144                  $as_echo "$as_val"'`
11145                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11146 $as_echo "$ac_res" >&6; }
11147 else
11148   # Is the header compilable?
11149 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11150 $as_echo_n "checking $ac_header usability... " >&6; }
11151 cat >conftest.$ac_ext <<_ACEOF
11152 /* confdefs.h.  */
11153 _ACEOF
11154 cat confdefs.h >>conftest.$ac_ext
11155 cat >>conftest.$ac_ext <<_ACEOF
11156 /* end confdefs.h.  */
11157 $ac_includes_default
11158 #include <$ac_header>
11159 _ACEOF
11160 rm -f conftest.$ac_objext
11161 if { (ac_try="$ac_compile"
11162 case "(($ac_try" in
11163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11164   *) ac_try_echo=$ac_try;;
11165 esac
11166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11167 $as_echo "$ac_try_echo") >&5
11168   (eval "$ac_compile") 2>conftest.er1
11169   ac_status=$?
11170   grep -v '^ *+' conftest.er1 >conftest.err
11171   rm -f conftest.er1
11172   cat conftest.err >&5
11173   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174   (exit $ac_status); } && {
11175          test -z "$ac_c_werror_flag" ||
11176          test ! -s conftest.err
11177        } && test -s conftest.$ac_objext; then
11178   ac_header_compiler=yes
11179 else
11180   $as_echo "$as_me: failed program was:" >&5
11181 sed 's/^/| /' conftest.$ac_ext >&5
11182
11183         ac_header_compiler=no
11184 fi
11185
11186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11187 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11188 $as_echo "$ac_header_compiler" >&6; }
11189
11190 # Is the header present?
11191 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11192 $as_echo_n "checking $ac_header presence... " >&6; }
11193 cat >conftest.$ac_ext <<_ACEOF
11194 /* confdefs.h.  */
11195 _ACEOF
11196 cat confdefs.h >>conftest.$ac_ext
11197 cat >>conftest.$ac_ext <<_ACEOF
11198 /* end confdefs.h.  */
11199 #include <$ac_header>
11200 _ACEOF
11201 if { (ac_try="$ac_cpp conftest.$ac_ext"
11202 case "(($ac_try" in
11203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11204   *) ac_try_echo=$ac_try;;
11205 esac
11206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11207 $as_echo "$ac_try_echo") >&5
11208   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11209   ac_status=$?
11210   grep -v '^ *+' conftest.er1 >conftest.err
11211   rm -f conftest.er1
11212   cat conftest.err >&5
11213   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214   (exit $ac_status); } >/dev/null && {
11215          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11216          test ! -s conftest.err
11217        }; then
11218   ac_header_preproc=yes
11219 else
11220   $as_echo "$as_me: failed program was:" >&5
11221 sed 's/^/| /' conftest.$ac_ext >&5
11222
11223   ac_header_preproc=no
11224 fi
11225
11226 rm -f conftest.err conftest.$ac_ext
11227 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11228 $as_echo "$ac_header_preproc" >&6; }
11229
11230 # So?  What about this header?
11231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11232   yes:no: )
11233     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11234 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11235     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11236 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11237     ac_header_preproc=yes
11238     ;;
11239   no:yes:* )
11240     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11241 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11242     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11243 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11244     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11245 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11246     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11247 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11248     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11249 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11250     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11251 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11252     ( cat <<\_ASBOX
11253 ## ---------------------------------------- ##
11254 ## Report this to pgsql-bugs@postgresql.org ##
11255 ## ---------------------------------------- ##
11256 _ASBOX
11257      ) | sed "s/^/$as_me: WARNING:     /" >&2
11258     ;;
11259 esac
11260 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11261 $as_echo_n "checking for $ac_header... " >&6; }
11262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11263   $as_echo_n "(cached) " >&6
11264 else
11265   eval "$as_ac_Header=\$ac_header_preproc"
11266 fi
11267 ac_res=`eval 'as_val=${'$as_ac_Header'}
11268                  $as_echo "$as_val"'`
11269                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11270 $as_echo "$ac_res" >&6; }
11271
11272 fi
11273 as_val=`eval 'as_val=${'$as_ac_Header'}
11274                  $as_echo "$as_val"'`
11275    if test "x$as_val" = x""yes; then
11276   cat >>confdefs.h <<_ACEOF
11277 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11278 _ACEOF
11279
11280 else
11281
11282 for ac_header in readline.h
11283 do
11284 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11286   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11287 $as_echo_n "checking for $ac_header... " >&6; }
11288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11289   $as_echo_n "(cached) " >&6
11290 fi
11291 ac_res=`eval 'as_val=${'$as_ac_Header'}
11292                  $as_echo "$as_val"'`
11293                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11294 $as_echo "$ac_res" >&6; }
11295 else
11296   # Is the header compilable?
11297 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11298 $as_echo_n "checking $ac_header usability... " >&6; }
11299 cat >conftest.$ac_ext <<_ACEOF
11300 /* confdefs.h.  */
11301 _ACEOF
11302 cat confdefs.h >>conftest.$ac_ext
11303 cat >>conftest.$ac_ext <<_ACEOF
11304 /* end confdefs.h.  */
11305 $ac_includes_default
11306 #include <$ac_header>
11307 _ACEOF
11308 rm -f conftest.$ac_objext
11309 if { (ac_try="$ac_compile"
11310 case "(($ac_try" in
11311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11312   *) ac_try_echo=$ac_try;;
11313 esac
11314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11315 $as_echo "$ac_try_echo") >&5
11316   (eval "$ac_compile") 2>conftest.er1
11317   ac_status=$?
11318   grep -v '^ *+' conftest.er1 >conftest.err
11319   rm -f conftest.er1
11320   cat conftest.err >&5
11321   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322   (exit $ac_status); } && {
11323          test -z "$ac_c_werror_flag" ||
11324          test ! -s conftest.err
11325        } && test -s conftest.$ac_objext; then
11326   ac_header_compiler=yes
11327 else
11328   $as_echo "$as_me: failed program was:" >&5
11329 sed 's/^/| /' conftest.$ac_ext >&5
11330
11331         ac_header_compiler=no
11332 fi
11333
11334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11335 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11336 $as_echo "$ac_header_compiler" >&6; }
11337
11338 # Is the header present?
11339 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11340 $as_echo_n "checking $ac_header presence... " >&6; }
11341 cat >conftest.$ac_ext <<_ACEOF
11342 /* confdefs.h.  */
11343 _ACEOF
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h.  */
11347 #include <$ac_header>
11348 _ACEOF
11349 if { (ac_try="$ac_cpp conftest.$ac_ext"
11350 case "(($ac_try" in
11351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11352   *) ac_try_echo=$ac_try;;
11353 esac
11354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11355 $as_echo "$ac_try_echo") >&5
11356   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11357   ac_status=$?
11358   grep -v '^ *+' conftest.er1 >conftest.err
11359   rm -f conftest.er1
11360   cat conftest.err >&5
11361   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362   (exit $ac_status); } >/dev/null && {
11363          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11364          test ! -s conftest.err
11365        }; then
11366   ac_header_preproc=yes
11367 else
11368   $as_echo "$as_me: failed program was:" >&5
11369 sed 's/^/| /' conftest.$ac_ext >&5
11370
11371   ac_header_preproc=no
11372 fi
11373
11374 rm -f conftest.err conftest.$ac_ext
11375 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11376 $as_echo "$ac_header_preproc" >&6; }
11377
11378 # So?  What about this header?
11379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11380   yes:no: )
11381     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11382 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11383     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11384 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11385     ac_header_preproc=yes
11386     ;;
11387   no:yes:* )
11388     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11389 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11390     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11391 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11392     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11393 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11394     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11395 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11396     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11397 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11398     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11399 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11400     ( cat <<\_ASBOX
11401 ## ---------------------------------------- ##
11402 ## Report this to pgsql-bugs@postgresql.org ##
11403 ## ---------------------------------------- ##
11404 _ASBOX
11405      ) | sed "s/^/$as_me: WARNING:     /" >&2
11406     ;;
11407 esac
11408 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11409 $as_echo_n "checking for $ac_header... " >&6; }
11410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11411   $as_echo_n "(cached) " >&6
11412 else
11413   eval "$as_ac_Header=\$ac_header_preproc"
11414 fi
11415 ac_res=`eval 'as_val=${'$as_ac_Header'}
11416                  $as_echo "$as_val"'`
11417                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11418 $as_echo "$ac_res" >&6; }
11419
11420 fi
11421 as_val=`eval 'as_val=${'$as_ac_Header'}
11422                  $as_echo "$as_val"'`
11423    if test "x$as_val" = x""yes; then
11424   cat >>confdefs.h <<_ACEOF
11425 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11426 _ACEOF
11427
11428 else
11429
11430 for ac_header in readline/readline.h
11431 do
11432 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11434   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11435 $as_echo_n "checking for $ac_header... " >&6; }
11436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11437   $as_echo_n "(cached) " >&6
11438 fi
11439 ac_res=`eval 'as_val=${'$as_ac_Header'}
11440                  $as_echo "$as_val"'`
11441                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11442 $as_echo "$ac_res" >&6; }
11443 else
11444   # Is the header compilable?
11445 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11446 $as_echo_n "checking $ac_header usability... " >&6; }
11447 cat >conftest.$ac_ext <<_ACEOF
11448 /* confdefs.h.  */
11449 _ACEOF
11450 cat confdefs.h >>conftest.$ac_ext
11451 cat >>conftest.$ac_ext <<_ACEOF
11452 /* end confdefs.h.  */
11453 $ac_includes_default
11454 #include <$ac_header>
11455 _ACEOF
11456 rm -f conftest.$ac_objext
11457 if { (ac_try="$ac_compile"
11458 case "(($ac_try" in
11459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11460   *) ac_try_echo=$ac_try;;
11461 esac
11462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11463 $as_echo "$ac_try_echo") >&5
11464   (eval "$ac_compile") 2>conftest.er1
11465   ac_status=$?
11466   grep -v '^ *+' conftest.er1 >conftest.err
11467   rm -f conftest.er1
11468   cat conftest.err >&5
11469   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470   (exit $ac_status); } && {
11471          test -z "$ac_c_werror_flag" ||
11472          test ! -s conftest.err
11473        } && test -s conftest.$ac_objext; then
11474   ac_header_compiler=yes
11475 else
11476   $as_echo "$as_me: failed program was:" >&5
11477 sed 's/^/| /' conftest.$ac_ext >&5
11478
11479         ac_header_compiler=no
11480 fi
11481
11482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11483 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11484 $as_echo "$ac_header_compiler" >&6; }
11485
11486 # Is the header present?
11487 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11488 $as_echo_n "checking $ac_header presence... " >&6; }
11489 cat >conftest.$ac_ext <<_ACEOF
11490 /* confdefs.h.  */
11491 _ACEOF
11492 cat confdefs.h >>conftest.$ac_ext
11493 cat >>conftest.$ac_ext <<_ACEOF
11494 /* end confdefs.h.  */
11495 #include <$ac_header>
11496 _ACEOF
11497 if { (ac_try="$ac_cpp conftest.$ac_ext"
11498 case "(($ac_try" in
11499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11500   *) ac_try_echo=$ac_try;;
11501 esac
11502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11503 $as_echo "$ac_try_echo") >&5
11504   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11505   ac_status=$?
11506   grep -v '^ *+' conftest.er1 >conftest.err
11507   rm -f conftest.er1
11508   cat conftest.err >&5
11509   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510   (exit $ac_status); } >/dev/null && {
11511          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11512          test ! -s conftest.err
11513        }; then
11514   ac_header_preproc=yes
11515 else
11516   $as_echo "$as_me: failed program was:" >&5
11517 sed 's/^/| /' conftest.$ac_ext >&5
11518
11519   ac_header_preproc=no
11520 fi
11521
11522 rm -f conftest.err conftest.$ac_ext
11523 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11524 $as_echo "$ac_header_preproc" >&6; }
11525
11526 # So?  What about this header?
11527 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11528   yes:no: )
11529     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11530 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11531     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11532 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11533     ac_header_preproc=yes
11534     ;;
11535   no:yes:* )
11536     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11537 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11538     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11539 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11540     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11541 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11542     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11543 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11544     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11545 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11546     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11547 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11548     ( cat <<\_ASBOX
11549 ## ---------------------------------------- ##
11550 ## Report this to pgsql-bugs@postgresql.org ##
11551 ## ---------------------------------------- ##
11552 _ASBOX
11553      ) | sed "s/^/$as_me: WARNING:     /" >&2
11554     ;;
11555 esac
11556 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11557 $as_echo_n "checking for $ac_header... " >&6; }
11558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11559   $as_echo_n "(cached) " >&6
11560 else
11561   eval "$as_ac_Header=\$ac_header_preproc"
11562 fi
11563 ac_res=`eval 'as_val=${'$as_ac_Header'}
11564                  $as_echo "$as_val"'`
11565                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11566 $as_echo "$ac_res" >&6; }
11567
11568 fi
11569 as_val=`eval 'as_val=${'$as_ac_Header'}
11570                  $as_echo "$as_val"'`
11571    if test "x$as_val" = x""yes; then
11572   cat >>confdefs.h <<_ACEOF
11573 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11574 _ACEOF
11575
11576 else
11577   { { $as_echo "$as_me:$LINENO: error: readline header not found
11578 If you have libedit already installed, see config.log for details on the
11579 failure.  It is possible the compiler isn't looking in the proper directory.
11580 Use --without-readline to disable libedit support." >&5
11581 $as_echo "$as_me: error: readline header not found
11582 If you have libedit already installed, see config.log for details on the
11583 failure.  It is possible the compiler isn't looking in the proper directory.
11584 Use --without-readline to disable libedit support." >&2;}
11585    { (exit 1); exit 1; }; }
11586 fi
11587
11588 done
11589
11590 fi
11591
11592 done
11593
11594 fi
11595
11596 done
11597
11598 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11599 # not be there at all.  Hence, don't complain if not found.  We must check
11600 # though, since in yet other versions it is an independent header.
11601
11602 for ac_header in editline/history.h
11603 do
11604 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11606   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11607 $as_echo_n "checking for $ac_header... " >&6; }
11608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11609   $as_echo_n "(cached) " >&6
11610 fi
11611 ac_res=`eval 'as_val=${'$as_ac_Header'}
11612                  $as_echo "$as_val"'`
11613                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11614 $as_echo "$ac_res" >&6; }
11615 else
11616   # Is the header compilable?
11617 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11618 $as_echo_n "checking $ac_header usability... " >&6; }
11619 cat >conftest.$ac_ext <<_ACEOF
11620 /* confdefs.h.  */
11621 _ACEOF
11622 cat confdefs.h >>conftest.$ac_ext
11623 cat >>conftest.$ac_ext <<_ACEOF
11624 /* end confdefs.h.  */
11625 $ac_includes_default
11626 #include <$ac_header>
11627 _ACEOF
11628 rm -f conftest.$ac_objext
11629 if { (ac_try="$ac_compile"
11630 case "(($ac_try" in
11631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11632   *) ac_try_echo=$ac_try;;
11633 esac
11634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11635 $as_echo "$ac_try_echo") >&5
11636   (eval "$ac_compile") 2>conftest.er1
11637   ac_status=$?
11638   grep -v '^ *+' conftest.er1 >conftest.err
11639   rm -f conftest.er1
11640   cat conftest.err >&5
11641   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642   (exit $ac_status); } && {
11643          test -z "$ac_c_werror_flag" ||
11644          test ! -s conftest.err
11645        } && test -s conftest.$ac_objext; then
11646   ac_header_compiler=yes
11647 else
11648   $as_echo "$as_me: failed program was:" >&5
11649 sed 's/^/| /' conftest.$ac_ext >&5
11650
11651         ac_header_compiler=no
11652 fi
11653
11654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11655 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11656 $as_echo "$ac_header_compiler" >&6; }
11657
11658 # Is the header present?
11659 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11660 $as_echo_n "checking $ac_header presence... " >&6; }
11661 cat >conftest.$ac_ext <<_ACEOF
11662 /* confdefs.h.  */
11663 _ACEOF
11664 cat confdefs.h >>conftest.$ac_ext
11665 cat >>conftest.$ac_ext <<_ACEOF
11666 /* end confdefs.h.  */
11667 #include <$ac_header>
11668 _ACEOF
11669 if { (ac_try="$ac_cpp conftest.$ac_ext"
11670 case "(($ac_try" in
11671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11672   *) ac_try_echo=$ac_try;;
11673 esac
11674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11675 $as_echo "$ac_try_echo") >&5
11676   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11677   ac_status=$?
11678   grep -v '^ *+' conftest.er1 >conftest.err
11679   rm -f conftest.er1
11680   cat conftest.err >&5
11681   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682   (exit $ac_status); } >/dev/null && {
11683          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11684          test ! -s conftest.err
11685        }; then
11686   ac_header_preproc=yes
11687 else
11688   $as_echo "$as_me: failed program was:" >&5
11689 sed 's/^/| /' conftest.$ac_ext >&5
11690
11691   ac_header_preproc=no
11692 fi
11693
11694 rm -f conftest.err conftest.$ac_ext
11695 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11696 $as_echo "$ac_header_preproc" >&6; }
11697
11698 # So?  What about this header?
11699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11700   yes:no: )
11701     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11702 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11703     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11704 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11705     ac_header_preproc=yes
11706     ;;
11707   no:yes:* )
11708     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11709 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11710     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11711 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11712     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11713 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11714     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11715 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11716     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11717 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11718     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11719 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11720     ( cat <<\_ASBOX
11721 ## ---------------------------------------- ##
11722 ## Report this to pgsql-bugs@postgresql.org ##
11723 ## ---------------------------------------- ##
11724 _ASBOX
11725      ) | sed "s/^/$as_me: WARNING:     /" >&2
11726     ;;
11727 esac
11728 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11729 $as_echo_n "checking for $ac_header... " >&6; }
11730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11731   $as_echo_n "(cached) " >&6
11732 else
11733   eval "$as_ac_Header=\$ac_header_preproc"
11734 fi
11735 ac_res=`eval 'as_val=${'$as_ac_Header'}
11736                  $as_echo "$as_val"'`
11737                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11738 $as_echo "$ac_res" >&6; }
11739
11740 fi
11741 as_val=`eval 'as_val=${'$as_ac_Header'}
11742                  $as_echo "$as_val"'`
11743    if test "x$as_val" = x""yes; then
11744   cat >>confdefs.h <<_ACEOF
11745 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11746 _ACEOF
11747
11748 else
11749
11750 for ac_header in history.h
11751 do
11752 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11754   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11755 $as_echo_n "checking for $ac_header... " >&6; }
11756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11757   $as_echo_n "(cached) " >&6
11758 fi
11759 ac_res=`eval 'as_val=${'$as_ac_Header'}
11760                  $as_echo "$as_val"'`
11761                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11762 $as_echo "$ac_res" >&6; }
11763 else
11764   # Is the header compilable?
11765 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11766 $as_echo_n "checking $ac_header usability... " >&6; }
11767 cat >conftest.$ac_ext <<_ACEOF
11768 /* confdefs.h.  */
11769 _ACEOF
11770 cat confdefs.h >>conftest.$ac_ext
11771 cat >>conftest.$ac_ext <<_ACEOF
11772 /* end confdefs.h.  */
11773 $ac_includes_default
11774 #include <$ac_header>
11775 _ACEOF
11776 rm -f conftest.$ac_objext
11777 if { (ac_try="$ac_compile"
11778 case "(($ac_try" in
11779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11780   *) ac_try_echo=$ac_try;;
11781 esac
11782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11783 $as_echo "$ac_try_echo") >&5
11784   (eval "$ac_compile") 2>conftest.er1
11785   ac_status=$?
11786   grep -v '^ *+' conftest.er1 >conftest.err
11787   rm -f conftest.er1
11788   cat conftest.err >&5
11789   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790   (exit $ac_status); } && {
11791          test -z "$ac_c_werror_flag" ||
11792          test ! -s conftest.err
11793        } && test -s conftest.$ac_objext; then
11794   ac_header_compiler=yes
11795 else
11796   $as_echo "$as_me: failed program was:" >&5
11797 sed 's/^/| /' conftest.$ac_ext >&5
11798
11799         ac_header_compiler=no
11800 fi
11801
11802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11803 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11804 $as_echo "$ac_header_compiler" >&6; }
11805
11806 # Is the header present?
11807 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11808 $as_echo_n "checking $ac_header presence... " >&6; }
11809 cat >conftest.$ac_ext <<_ACEOF
11810 /* confdefs.h.  */
11811 _ACEOF
11812 cat confdefs.h >>conftest.$ac_ext
11813 cat >>conftest.$ac_ext <<_ACEOF
11814 /* end confdefs.h.  */
11815 #include <$ac_header>
11816 _ACEOF
11817 if { (ac_try="$ac_cpp conftest.$ac_ext"
11818 case "(($ac_try" in
11819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820   *) ac_try_echo=$ac_try;;
11821 esac
11822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11823 $as_echo "$ac_try_echo") >&5
11824   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11825   ac_status=$?
11826   grep -v '^ *+' conftest.er1 >conftest.err
11827   rm -f conftest.er1
11828   cat conftest.err >&5
11829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830   (exit $ac_status); } >/dev/null && {
11831          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11832          test ! -s conftest.err
11833        }; then
11834   ac_header_preproc=yes
11835 else
11836   $as_echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.$ac_ext >&5
11838
11839   ac_header_preproc=no
11840 fi
11841
11842 rm -f conftest.err conftest.$ac_ext
11843 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11844 $as_echo "$ac_header_preproc" >&6; }
11845
11846 # So?  What about this header?
11847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11848   yes:no: )
11849     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11850 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11851     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11852 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11853     ac_header_preproc=yes
11854     ;;
11855   no:yes:* )
11856     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11857 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11858     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11859 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11860     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11861 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11862     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11863 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11864     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11865 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11866     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11867 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11868     ( cat <<\_ASBOX
11869 ## ---------------------------------------- ##
11870 ## Report this to pgsql-bugs@postgresql.org ##
11871 ## ---------------------------------------- ##
11872 _ASBOX
11873      ) | sed "s/^/$as_me: WARNING:     /" >&2
11874     ;;
11875 esac
11876 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11877 $as_echo_n "checking for $ac_header... " >&6; }
11878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11879   $as_echo_n "(cached) " >&6
11880 else
11881   eval "$as_ac_Header=\$ac_header_preproc"
11882 fi
11883 ac_res=`eval 'as_val=${'$as_ac_Header'}
11884                  $as_echo "$as_val"'`
11885                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11886 $as_echo "$ac_res" >&6; }
11887
11888 fi
11889 as_val=`eval 'as_val=${'$as_ac_Header'}
11890                  $as_echo "$as_val"'`
11891    if test "x$as_val" = x""yes; then
11892   cat >>confdefs.h <<_ACEOF
11893 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11894 _ACEOF
11895
11896 else
11897
11898 for ac_header in readline/history.h
11899 do
11900 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11902   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11903 $as_echo_n "checking for $ac_header... " >&6; }
11904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11905   $as_echo_n "(cached) " >&6
11906 fi
11907 ac_res=`eval 'as_val=${'$as_ac_Header'}
11908                  $as_echo "$as_val"'`
11909                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11910 $as_echo "$ac_res" >&6; }
11911 else
11912   # Is the header compilable?
11913 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11914 $as_echo_n "checking $ac_header usability... " >&6; }
11915 cat >conftest.$ac_ext <<_ACEOF
11916 /* confdefs.h.  */
11917 _ACEOF
11918 cat confdefs.h >>conftest.$ac_ext
11919 cat >>conftest.$ac_ext <<_ACEOF
11920 /* end confdefs.h.  */
11921 $ac_includes_default
11922 #include <$ac_header>
11923 _ACEOF
11924 rm -f conftest.$ac_objext
11925 if { (ac_try="$ac_compile"
11926 case "(($ac_try" in
11927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11928   *) ac_try_echo=$ac_try;;
11929 esac
11930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11931 $as_echo "$ac_try_echo") >&5
11932   (eval "$ac_compile") 2>conftest.er1
11933   ac_status=$?
11934   grep -v '^ *+' conftest.er1 >conftest.err
11935   rm -f conftest.er1
11936   cat conftest.err >&5
11937   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938   (exit $ac_status); } && {
11939          test -z "$ac_c_werror_flag" ||
11940          test ! -s conftest.err
11941        } && test -s conftest.$ac_objext; then
11942   ac_header_compiler=yes
11943 else
11944   $as_echo "$as_me: failed program was:" >&5
11945 sed 's/^/| /' conftest.$ac_ext >&5
11946
11947         ac_header_compiler=no
11948 fi
11949
11950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11951 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11952 $as_echo "$ac_header_compiler" >&6; }
11953
11954 # Is the header present?
11955 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11956 $as_echo_n "checking $ac_header presence... " >&6; }
11957 cat >conftest.$ac_ext <<_ACEOF
11958 /* confdefs.h.  */
11959 _ACEOF
11960 cat confdefs.h >>conftest.$ac_ext
11961 cat >>conftest.$ac_ext <<_ACEOF
11962 /* end confdefs.h.  */
11963 #include <$ac_header>
11964 _ACEOF
11965 if { (ac_try="$ac_cpp conftest.$ac_ext"
11966 case "(($ac_try" in
11967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11968   *) ac_try_echo=$ac_try;;
11969 esac
11970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11971 $as_echo "$ac_try_echo") >&5
11972   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11973   ac_status=$?
11974   grep -v '^ *+' conftest.er1 >conftest.err
11975   rm -f conftest.er1
11976   cat conftest.err >&5
11977   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978   (exit $ac_status); } >/dev/null && {
11979          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11980          test ! -s conftest.err
11981        }; then
11982   ac_header_preproc=yes
11983 else
11984   $as_echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11986
11987   ac_header_preproc=no
11988 fi
11989
11990 rm -f conftest.err conftest.$ac_ext
11991 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11992 $as_echo "$ac_header_preproc" >&6; }
11993
11994 # So?  What about this header?
11995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11996   yes:no: )
11997     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11998 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11999     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12000 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12001     ac_header_preproc=yes
12002     ;;
12003   no:yes:* )
12004     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12005 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12006     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12007 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12008     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12009 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12010     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12011 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12012     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12013 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12014     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12015 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12016     ( cat <<\_ASBOX
12017 ## ---------------------------------------- ##
12018 ## Report this to pgsql-bugs@postgresql.org ##
12019 ## ---------------------------------------- ##
12020 _ASBOX
12021      ) | sed "s/^/$as_me: WARNING:     /" >&2
12022     ;;
12023 esac
12024 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12025 $as_echo_n "checking for $ac_header... " >&6; }
12026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12027   $as_echo_n "(cached) " >&6
12028 else
12029   eval "$as_ac_Header=\$ac_header_preproc"
12030 fi
12031 ac_res=`eval 'as_val=${'$as_ac_Header'}
12032                  $as_echo "$as_val"'`
12033                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12034 $as_echo "$ac_res" >&6; }
12035
12036 fi
12037 as_val=`eval 'as_val=${'$as_ac_Header'}
12038                  $as_echo "$as_val"'`
12039    if test "x$as_val" = x""yes; then
12040   cat >>confdefs.h <<_ACEOF
12041 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12042 _ACEOF
12043
12044 fi
12045
12046 done
12047
12048 fi
12049
12050 done
12051
12052 fi
12053
12054 done
12055
12056 fi
12057
12058 if test "$with_zlib" = yes; then
12059   if test "${ac_cv_header_zlib_h+set}" = set; then
12060   { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12061 $as_echo_n "checking for zlib.h... " >&6; }
12062 if test "${ac_cv_header_zlib_h+set}" = set; then
12063   $as_echo_n "(cached) " >&6
12064 fi
12065 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12066 $as_echo "$ac_cv_header_zlib_h" >&6; }
12067 else
12068   # Is the header compilable?
12069 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
12070 $as_echo_n "checking zlib.h usability... " >&6; }
12071 cat >conftest.$ac_ext <<_ACEOF
12072 /* confdefs.h.  */
12073 _ACEOF
12074 cat confdefs.h >>conftest.$ac_ext
12075 cat >>conftest.$ac_ext <<_ACEOF
12076 /* end confdefs.h.  */
12077 $ac_includes_default
12078 #include <zlib.h>
12079 _ACEOF
12080 rm -f conftest.$ac_objext
12081 if { (ac_try="$ac_compile"
12082 case "(($ac_try" in
12083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12084   *) ac_try_echo=$ac_try;;
12085 esac
12086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12087 $as_echo "$ac_try_echo") >&5
12088   (eval "$ac_compile") 2>conftest.er1
12089   ac_status=$?
12090   grep -v '^ *+' conftest.er1 >conftest.err
12091   rm -f conftest.er1
12092   cat conftest.err >&5
12093   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094   (exit $ac_status); } && {
12095          test -z "$ac_c_werror_flag" ||
12096          test ! -s conftest.err
12097        } && test -s conftest.$ac_objext; then
12098   ac_header_compiler=yes
12099 else
12100   $as_echo "$as_me: failed program was:" >&5
12101 sed 's/^/| /' conftest.$ac_ext >&5
12102
12103         ac_header_compiler=no
12104 fi
12105
12106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12107 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12108 $as_echo "$ac_header_compiler" >&6; }
12109
12110 # Is the header present?
12111 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
12112 $as_echo_n "checking zlib.h presence... " >&6; }
12113 cat >conftest.$ac_ext <<_ACEOF
12114 /* confdefs.h.  */
12115 _ACEOF
12116 cat confdefs.h >>conftest.$ac_ext
12117 cat >>conftest.$ac_ext <<_ACEOF
12118 /* end confdefs.h.  */
12119 #include <zlib.h>
12120 _ACEOF
12121 if { (ac_try="$ac_cpp conftest.$ac_ext"
12122 case "(($ac_try" in
12123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12124   *) ac_try_echo=$ac_try;;
12125 esac
12126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12127 $as_echo "$ac_try_echo") >&5
12128   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12129   ac_status=$?
12130   grep -v '^ *+' conftest.er1 >conftest.err
12131   rm -f conftest.er1
12132   cat conftest.err >&5
12133   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134   (exit $ac_status); } >/dev/null && {
12135          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12136          test ! -s conftest.err
12137        }; then
12138   ac_header_preproc=yes
12139 else
12140   $as_echo "$as_me: failed program was:" >&5
12141 sed 's/^/| /' conftest.$ac_ext >&5
12142
12143   ac_header_preproc=no
12144 fi
12145
12146 rm -f conftest.err conftest.$ac_ext
12147 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12148 $as_echo "$ac_header_preproc" >&6; }
12149
12150 # So?  What about this header?
12151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12152   yes:no: )
12153     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12154 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12155     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
12156 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
12157     ac_header_preproc=yes
12158     ;;
12159   no:yes:* )
12160     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
12161 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
12162     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
12163 $as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
12164     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
12165 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
12166     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
12167 $as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12168     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
12169 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
12170     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
12171 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
12172     ( cat <<\_ASBOX
12173 ## ---------------------------------------- ##
12174 ## Report this to pgsql-bugs@postgresql.org ##
12175 ## ---------------------------------------- ##
12176 _ASBOX
12177      ) | sed "s/^/$as_me: WARNING:     /" >&2
12178     ;;
12179 esac
12180 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12181 $as_echo_n "checking for zlib.h... " >&6; }
12182 if test "${ac_cv_header_zlib_h+set}" = set; then
12183   $as_echo_n "(cached) " >&6
12184 else
12185   ac_cv_header_zlib_h=$ac_header_preproc
12186 fi
12187 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12188 $as_echo "$ac_cv_header_zlib_h" >&6; }
12189
12190 fi
12191 if test "x$ac_cv_header_zlib_h" = x""yes; then
12192   :
12193 else
12194   { { $as_echo "$as_me:$LINENO: error: zlib header not found
12195 If you have zlib already installed, see config.log for details on the
12196 failure.  It is possible the compiler isn't looking in the proper directory.
12197 Use --without-zlib to disable zlib support." >&5
12198 $as_echo "$as_me: error: zlib header not found
12199 If you have zlib already installed, see config.log for details on the
12200 failure.  It is possible the compiler isn't looking in the proper directory.
12201 Use --without-zlib to disable zlib support." >&2;}
12202    { (exit 1); exit 1; }; }
12203 fi
12204
12205
12206 fi
12207
12208 if test "$with_gssapi" = yes ; then
12209
12210 for ac_header in gssapi/gssapi.h
12211 do
12212 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12214   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12215 $as_echo_n "checking for $ac_header... " >&6; }
12216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12217   $as_echo_n "(cached) " >&6
12218 fi
12219 ac_res=`eval 'as_val=${'$as_ac_Header'}
12220                  $as_echo "$as_val"'`
12221                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12222 $as_echo "$ac_res" >&6; }
12223 else
12224   # Is the header compilable?
12225 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12226 $as_echo_n "checking $ac_header usability... " >&6; }
12227 cat >conftest.$ac_ext <<_ACEOF
12228 /* confdefs.h.  */
12229 _ACEOF
12230 cat confdefs.h >>conftest.$ac_ext
12231 cat >>conftest.$ac_ext <<_ACEOF
12232 /* end confdefs.h.  */
12233 $ac_includes_default
12234 #include <$ac_header>
12235 _ACEOF
12236 rm -f conftest.$ac_objext
12237 if { (ac_try="$ac_compile"
12238 case "(($ac_try" in
12239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240   *) ac_try_echo=$ac_try;;
12241 esac
12242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12243 $as_echo "$ac_try_echo") >&5
12244   (eval "$ac_compile") 2>conftest.er1
12245   ac_status=$?
12246   grep -v '^ *+' conftest.er1 >conftest.err
12247   rm -f conftest.er1
12248   cat conftest.err >&5
12249   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250   (exit $ac_status); } && {
12251          test -z "$ac_c_werror_flag" ||
12252          test ! -s conftest.err
12253        } && test -s conftest.$ac_objext; then
12254   ac_header_compiler=yes
12255 else
12256   $as_echo "$as_me: failed program was:" >&5
12257 sed 's/^/| /' conftest.$ac_ext >&5
12258
12259         ac_header_compiler=no
12260 fi
12261
12262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12263 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12264 $as_echo "$ac_header_compiler" >&6; }
12265
12266 # Is the header present?
12267 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12268 $as_echo_n "checking $ac_header presence... " >&6; }
12269 cat >conftest.$ac_ext <<_ACEOF
12270 /* confdefs.h.  */
12271 _ACEOF
12272 cat confdefs.h >>conftest.$ac_ext
12273 cat >>conftest.$ac_ext <<_ACEOF
12274 /* end confdefs.h.  */
12275 #include <$ac_header>
12276 _ACEOF
12277 if { (ac_try="$ac_cpp conftest.$ac_ext"
12278 case "(($ac_try" in
12279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12280   *) ac_try_echo=$ac_try;;
12281 esac
12282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12283 $as_echo "$ac_try_echo") >&5
12284   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12285   ac_status=$?
12286   grep -v '^ *+' conftest.er1 >conftest.err
12287   rm -f conftest.er1
12288   cat conftest.err >&5
12289   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290   (exit $ac_status); } >/dev/null && {
12291          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12292          test ! -s conftest.err
12293        }; then
12294   ac_header_preproc=yes
12295 else
12296   $as_echo "$as_me: failed program was:" >&5
12297 sed 's/^/| /' conftest.$ac_ext >&5
12298
12299   ac_header_preproc=no
12300 fi
12301
12302 rm -f conftest.err conftest.$ac_ext
12303 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12304 $as_echo "$ac_header_preproc" >&6; }
12305
12306 # So?  What about this header?
12307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12308   yes:no: )
12309     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12310 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12311     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12312 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12313     ac_header_preproc=yes
12314     ;;
12315   no:yes:* )
12316     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12317 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12318     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12319 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12320     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12321 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12322     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12323 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12324     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12325 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12326     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12327 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12328     ( cat <<\_ASBOX
12329 ## ---------------------------------------- ##
12330 ## Report this to pgsql-bugs@postgresql.org ##
12331 ## ---------------------------------------- ##
12332 _ASBOX
12333      ) | sed "s/^/$as_me: WARNING:     /" >&2
12334     ;;
12335 esac
12336 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12337 $as_echo_n "checking for $ac_header... " >&6; }
12338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12339   $as_echo_n "(cached) " >&6
12340 else
12341   eval "$as_ac_Header=\$ac_header_preproc"
12342 fi
12343 ac_res=`eval 'as_val=${'$as_ac_Header'}
12344                  $as_echo "$as_val"'`
12345                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12346 $as_echo "$ac_res" >&6; }
12347
12348 fi
12349 as_val=`eval 'as_val=${'$as_ac_Header'}
12350                  $as_echo "$as_val"'`
12351    if test "x$as_val" = x""yes; then
12352   cat >>confdefs.h <<_ACEOF
12353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12354 _ACEOF
12355
12356 else
12357
12358 for ac_header in gssapi.h
12359 do
12360 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12362   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12363 $as_echo_n "checking for $ac_header... " >&6; }
12364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12365   $as_echo_n "(cached) " >&6
12366 fi
12367 ac_res=`eval 'as_val=${'$as_ac_Header'}
12368                  $as_echo "$as_val"'`
12369                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12370 $as_echo "$ac_res" >&6; }
12371 else
12372   # Is the header compilable?
12373 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12374 $as_echo_n "checking $ac_header usability... " >&6; }
12375 cat >conftest.$ac_ext <<_ACEOF
12376 /* confdefs.h.  */
12377 _ACEOF
12378 cat confdefs.h >>conftest.$ac_ext
12379 cat >>conftest.$ac_ext <<_ACEOF
12380 /* end confdefs.h.  */
12381 $ac_includes_default
12382 #include <$ac_header>
12383 _ACEOF
12384 rm -f conftest.$ac_objext
12385 if { (ac_try="$ac_compile"
12386 case "(($ac_try" in
12387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12388   *) ac_try_echo=$ac_try;;
12389 esac
12390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12391 $as_echo "$ac_try_echo") >&5
12392   (eval "$ac_compile") 2>conftest.er1
12393   ac_status=$?
12394   grep -v '^ *+' conftest.er1 >conftest.err
12395   rm -f conftest.er1
12396   cat conftest.err >&5
12397   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398   (exit $ac_status); } && {
12399          test -z "$ac_c_werror_flag" ||
12400          test ! -s conftest.err
12401        } && test -s conftest.$ac_objext; then
12402   ac_header_compiler=yes
12403 else
12404   $as_echo "$as_me: failed program was:" >&5
12405 sed 's/^/| /' conftest.$ac_ext >&5
12406
12407         ac_header_compiler=no
12408 fi
12409
12410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12411 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12412 $as_echo "$ac_header_compiler" >&6; }
12413
12414 # Is the header present?
12415 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12416 $as_echo_n "checking $ac_header presence... " >&6; }
12417 cat >conftest.$ac_ext <<_ACEOF
12418 /* confdefs.h.  */
12419 _ACEOF
12420 cat confdefs.h >>conftest.$ac_ext
12421 cat >>conftest.$ac_ext <<_ACEOF
12422 /* end confdefs.h.  */
12423 #include <$ac_header>
12424 _ACEOF
12425 if { (ac_try="$ac_cpp conftest.$ac_ext"
12426 case "(($ac_try" in
12427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428   *) ac_try_echo=$ac_try;;
12429 esac
12430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12431 $as_echo "$ac_try_echo") >&5
12432   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12433   ac_status=$?
12434   grep -v '^ *+' conftest.er1 >conftest.err
12435   rm -f conftest.er1
12436   cat conftest.err >&5
12437   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438   (exit $ac_status); } >/dev/null && {
12439          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12440          test ! -s conftest.err
12441        }; then
12442   ac_header_preproc=yes
12443 else
12444   $as_echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12446
12447   ac_header_preproc=no
12448 fi
12449
12450 rm -f conftest.err conftest.$ac_ext
12451 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12452 $as_echo "$ac_header_preproc" >&6; }
12453
12454 # So?  What about this header?
12455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12456   yes:no: )
12457     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12458 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12459     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12460 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12461     ac_header_preproc=yes
12462     ;;
12463   no:yes:* )
12464     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12465 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12466     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12467 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12468     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12469 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12470     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12471 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12472     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12473 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12474     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12475 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12476     ( cat <<\_ASBOX
12477 ## ---------------------------------------- ##
12478 ## Report this to pgsql-bugs@postgresql.org ##
12479 ## ---------------------------------------- ##
12480 _ASBOX
12481      ) | sed "s/^/$as_me: WARNING:     /" >&2
12482     ;;
12483 esac
12484 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12485 $as_echo_n "checking for $ac_header... " >&6; }
12486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12487   $as_echo_n "(cached) " >&6
12488 else
12489   eval "$as_ac_Header=\$ac_header_preproc"
12490 fi
12491 ac_res=`eval 'as_val=${'$as_ac_Header'}
12492                  $as_echo "$as_val"'`
12493                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12494 $as_echo "$ac_res" >&6; }
12495
12496 fi
12497 as_val=`eval 'as_val=${'$as_ac_Header'}
12498                  $as_echo "$as_val"'`
12499    if test "x$as_val" = x""yes; then
12500   cat >>confdefs.h <<_ACEOF
12501 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12502 _ACEOF
12503
12504 else
12505   { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12506 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12507    { (exit 1); exit 1; }; }
12508 fi
12509
12510 done
12511
12512 fi
12513
12514 done
12515
12516 fi
12517
12518 if test "$with_krb5" = yes ; then
12519   if test "${ac_cv_header_krb5_h+set}" = set; then
12520   { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12521 $as_echo_n "checking for krb5.h... " >&6; }
12522 if test "${ac_cv_header_krb5_h+set}" = set; then
12523   $as_echo_n "(cached) " >&6
12524 fi
12525 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12526 $as_echo "$ac_cv_header_krb5_h" >&6; }
12527 else
12528   # Is the header compilable?
12529 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12530 $as_echo_n "checking krb5.h usability... " >&6; }
12531 cat >conftest.$ac_ext <<_ACEOF
12532 /* confdefs.h.  */
12533 _ACEOF
12534 cat confdefs.h >>conftest.$ac_ext
12535 cat >>conftest.$ac_ext <<_ACEOF
12536 /* end confdefs.h.  */
12537 $ac_includes_default
12538 #include <krb5.h>
12539 _ACEOF
12540 rm -f conftest.$ac_objext
12541 if { (ac_try="$ac_compile"
12542 case "(($ac_try" in
12543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12544   *) ac_try_echo=$ac_try;;
12545 esac
12546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12547 $as_echo "$ac_try_echo") >&5
12548   (eval "$ac_compile") 2>conftest.er1
12549   ac_status=$?
12550   grep -v '^ *+' conftest.er1 >conftest.err
12551   rm -f conftest.er1
12552   cat conftest.err >&5
12553   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554   (exit $ac_status); } && {
12555          test -z "$ac_c_werror_flag" ||
12556          test ! -s conftest.err
12557        } && test -s conftest.$ac_objext; then
12558   ac_header_compiler=yes
12559 else
12560   $as_echo "$as_me: failed program was:" >&5
12561 sed 's/^/| /' conftest.$ac_ext >&5
12562
12563         ac_header_compiler=no
12564 fi
12565
12566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12567 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12568 $as_echo "$ac_header_compiler" >&6; }
12569
12570 # Is the header present?
12571 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12572 $as_echo_n "checking krb5.h presence... " >&6; }
12573 cat >conftest.$ac_ext <<_ACEOF
12574 /* confdefs.h.  */
12575 _ACEOF
12576 cat confdefs.h >>conftest.$ac_ext
12577 cat >>conftest.$ac_ext <<_ACEOF
12578 /* end confdefs.h.  */
12579 #include <krb5.h>
12580 _ACEOF
12581 if { (ac_try="$ac_cpp conftest.$ac_ext"
12582 case "(($ac_try" in
12583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12584   *) ac_try_echo=$ac_try;;
12585 esac
12586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12587 $as_echo "$ac_try_echo") >&5
12588   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12589   ac_status=$?
12590   grep -v '^ *+' conftest.er1 >conftest.err
12591   rm -f conftest.er1
12592   cat conftest.err >&5
12593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594   (exit $ac_status); } >/dev/null && {
12595          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12596          test ! -s conftest.err
12597        }; then
12598   ac_header_preproc=yes
12599 else
12600   $as_echo "$as_me: failed program was:" >&5
12601 sed 's/^/| /' conftest.$ac_ext >&5
12602
12603   ac_header_preproc=no
12604 fi
12605
12606 rm -f conftest.err conftest.$ac_ext
12607 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12608 $as_echo "$ac_header_preproc" >&6; }
12609
12610 # So?  What about this header?
12611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12612   yes:no: )
12613     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12614 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12615     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12616 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12617     ac_header_preproc=yes
12618     ;;
12619   no:yes:* )
12620     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12621 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12622     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     check for missing prerequisite headers?" >&5
12623 $as_echo "$as_me: WARNING: krb5.h:     check for missing prerequisite headers?" >&2;}
12624     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12625 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12626     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&5
12627 $as_echo "$as_me: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12628     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12629 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12630     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12631 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12632     ( cat <<\_ASBOX
12633 ## ---------------------------------------- ##
12634 ## Report this to pgsql-bugs@postgresql.org ##
12635 ## ---------------------------------------- ##
12636 _ASBOX
12637      ) | sed "s/^/$as_me: WARNING:     /" >&2
12638     ;;
12639 esac
12640 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12641 $as_echo_n "checking for krb5.h... " >&6; }
12642 if test "${ac_cv_header_krb5_h+set}" = set; then
12643   $as_echo_n "(cached) " >&6
12644 else
12645   ac_cv_header_krb5_h=$ac_header_preproc
12646 fi
12647 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12648 $as_echo "$ac_cv_header_krb5_h" >&6; }
12649
12650 fi
12651 if test "x$ac_cv_header_krb5_h" = x""yes; then
12652   :
12653 else
12654   { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12655 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12656    { (exit 1); exit 1; }; }
12657 fi
12658
12659
12660 fi
12661
12662 if test "$with_openssl" = yes ; then
12663   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12664   { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12665 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12666 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12667   $as_echo_n "(cached) " >&6
12668 fi
12669 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12670 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12671 else
12672   # Is the header compilable?
12673 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12674 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12675 cat >conftest.$ac_ext <<_ACEOF
12676 /* confdefs.h.  */
12677 _ACEOF
12678 cat confdefs.h >>conftest.$ac_ext
12679 cat >>conftest.$ac_ext <<_ACEOF
12680 /* end confdefs.h.  */
12681 $ac_includes_default
12682 #include <openssl/ssl.h>
12683 _ACEOF
12684 rm -f conftest.$ac_objext
12685 if { (ac_try="$ac_compile"
12686 case "(($ac_try" in
12687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12688   *) ac_try_echo=$ac_try;;
12689 esac
12690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12691 $as_echo "$ac_try_echo") >&5
12692   (eval "$ac_compile") 2>conftest.er1
12693   ac_status=$?
12694   grep -v '^ *+' conftest.er1 >conftest.err
12695   rm -f conftest.er1
12696   cat conftest.err >&5
12697   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698   (exit $ac_status); } && {
12699          test -z "$ac_c_werror_flag" ||
12700          test ! -s conftest.err
12701        } && test -s conftest.$ac_objext; then
12702   ac_header_compiler=yes
12703 else
12704   $as_echo "$as_me: failed program was:" >&5
12705 sed 's/^/| /' conftest.$ac_ext >&5
12706
12707         ac_header_compiler=no
12708 fi
12709
12710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12711 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12712 $as_echo "$ac_header_compiler" >&6; }
12713
12714 # Is the header present?
12715 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12716 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12717 cat >conftest.$ac_ext <<_ACEOF
12718 /* confdefs.h.  */
12719 _ACEOF
12720 cat confdefs.h >>conftest.$ac_ext
12721 cat >>conftest.$ac_ext <<_ACEOF
12722 /* end confdefs.h.  */
12723 #include <openssl/ssl.h>
12724 _ACEOF
12725 if { (ac_try="$ac_cpp conftest.$ac_ext"
12726 case "(($ac_try" in
12727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12728   *) ac_try_echo=$ac_try;;
12729 esac
12730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12731 $as_echo "$ac_try_echo") >&5
12732   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12733   ac_status=$?
12734   grep -v '^ *+' conftest.er1 >conftest.err
12735   rm -f conftest.er1
12736   cat conftest.err >&5
12737   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738   (exit $ac_status); } >/dev/null && {
12739          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12740          test ! -s conftest.err
12741        }; then
12742   ac_header_preproc=yes
12743 else
12744   $as_echo "$as_me: failed program was:" >&5
12745 sed 's/^/| /' conftest.$ac_ext >&5
12746
12747   ac_header_preproc=no
12748 fi
12749
12750 rm -f conftest.err conftest.$ac_ext
12751 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12752 $as_echo "$ac_header_preproc" >&6; }
12753
12754 # So?  What about this header?
12755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12756   yes:no: )
12757     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12758 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12759     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12760 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12761     ac_header_preproc=yes
12762     ;;
12763   no:yes:* )
12764     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12765 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12766     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&5
12767 $as_echo "$as_me: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&2;}
12768     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12769 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12770     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&5
12771 $as_echo "$as_me: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12772     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12773 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12774     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12775 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12776     ( cat <<\_ASBOX
12777 ## ---------------------------------------- ##
12778 ## Report this to pgsql-bugs@postgresql.org ##
12779 ## ---------------------------------------- ##
12780 _ASBOX
12781      ) | sed "s/^/$as_me: WARNING:     /" >&2
12782     ;;
12783 esac
12784 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12785 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12786 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12787   $as_echo_n "(cached) " >&6
12788 else
12789   ac_cv_header_openssl_ssl_h=$ac_header_preproc
12790 fi
12791 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12792 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12793
12794 fi
12795 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
12796   :
12797 else
12798   { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12799 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12800    { (exit 1); exit 1; }; }
12801 fi
12802
12803
12804   if test "${ac_cv_header_openssl_err_h+set}" = set; then
12805   { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12806 $as_echo_n "checking for openssl/err.h... " >&6; }
12807 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12808   $as_echo_n "(cached) " >&6
12809 fi
12810 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12811 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12812 else
12813   # Is the header compilable?
12814 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12815 $as_echo_n "checking openssl/err.h usability... " >&6; }
12816 cat >conftest.$ac_ext <<_ACEOF
12817 /* confdefs.h.  */
12818 _ACEOF
12819 cat confdefs.h >>conftest.$ac_ext
12820 cat >>conftest.$ac_ext <<_ACEOF
12821 /* end confdefs.h.  */
12822 $ac_includes_default
12823 #include <openssl/err.h>
12824 _ACEOF
12825 rm -f conftest.$ac_objext
12826 if { (ac_try="$ac_compile"
12827 case "(($ac_try" in
12828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12829   *) ac_try_echo=$ac_try;;
12830 esac
12831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12832 $as_echo "$ac_try_echo") >&5
12833   (eval "$ac_compile") 2>conftest.er1
12834   ac_status=$?
12835   grep -v '^ *+' conftest.er1 >conftest.err
12836   rm -f conftest.er1
12837   cat conftest.err >&5
12838   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839   (exit $ac_status); } && {
12840          test -z "$ac_c_werror_flag" ||
12841          test ! -s conftest.err
12842        } && test -s conftest.$ac_objext; then
12843   ac_header_compiler=yes
12844 else
12845   $as_echo "$as_me: failed program was:" >&5
12846 sed 's/^/| /' conftest.$ac_ext >&5
12847
12848         ac_header_compiler=no
12849 fi
12850
12851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12852 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12853 $as_echo "$ac_header_compiler" >&6; }
12854
12855 # Is the header present?
12856 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12857 $as_echo_n "checking openssl/err.h presence... " >&6; }
12858 cat >conftest.$ac_ext <<_ACEOF
12859 /* confdefs.h.  */
12860 _ACEOF
12861 cat confdefs.h >>conftest.$ac_ext
12862 cat >>conftest.$ac_ext <<_ACEOF
12863 /* end confdefs.h.  */
12864 #include <openssl/err.h>
12865 _ACEOF
12866 if { (ac_try="$ac_cpp conftest.$ac_ext"
12867 case "(($ac_try" in
12868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12869   *) ac_try_echo=$ac_try;;
12870 esac
12871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12872 $as_echo "$ac_try_echo") >&5
12873   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12874   ac_status=$?
12875   grep -v '^ *+' conftest.er1 >conftest.err
12876   rm -f conftest.er1
12877   cat conftest.err >&5
12878   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879   (exit $ac_status); } >/dev/null && {
12880          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12881          test ! -s conftest.err
12882        }; then
12883   ac_header_preproc=yes
12884 else
12885   $as_echo "$as_me: failed program was:" >&5
12886 sed 's/^/| /' conftest.$ac_ext >&5
12887
12888   ac_header_preproc=no
12889 fi
12890
12891 rm -f conftest.err conftest.$ac_ext
12892 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12893 $as_echo "$ac_header_preproc" >&6; }
12894
12895 # So?  What about this header?
12896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12897   yes:no: )
12898     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12899 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12900     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12901 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12902     ac_header_preproc=yes
12903     ;;
12904   no:yes:* )
12905     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12906 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12907     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&5
12908 $as_echo "$as_me: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&2;}
12909     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12910 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12911     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&5
12912 $as_echo "$as_me: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12913     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12914 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12915     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12916 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12917     ( cat <<\_ASBOX
12918 ## ---------------------------------------- ##
12919 ## Report this to pgsql-bugs@postgresql.org ##
12920 ## ---------------------------------------- ##
12921 _ASBOX
12922      ) | sed "s/^/$as_me: WARNING:     /" >&2
12923     ;;
12924 esac
12925 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12926 $as_echo_n "checking for openssl/err.h... " >&6; }
12927 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12928   $as_echo_n "(cached) " >&6
12929 else
12930   ac_cv_header_openssl_err_h=$ac_header_preproc
12931 fi
12932 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12933 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12934
12935 fi
12936 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
12937   :
12938 else
12939   { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12940 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12941    { (exit 1); exit 1; }; }
12942 fi
12943
12944
12945
12946 for ac_func in ERR_set_mark
12947 do
12948 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12949 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12950 $as_echo_n "checking for $ac_func... " >&6; }
12951 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12952   $as_echo_n "(cached) " >&6
12953 else
12954   cat >conftest.$ac_ext <<_ACEOF
12955 /* confdefs.h.  */
12956 _ACEOF
12957 cat confdefs.h >>conftest.$ac_ext
12958 cat >>conftest.$ac_ext <<_ACEOF
12959 /* end confdefs.h.  */
12960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12961    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12962 #define $ac_func innocuous_$ac_func
12963
12964 /* System header to define __stub macros and hopefully few prototypes,
12965     which can conflict with char $ac_func (); below.
12966     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12967     <limits.h> exists even on freestanding compilers.  */
12968
12969 #ifdef __STDC__
12970 # include <limits.h>
12971 #else
12972 # include <assert.h>
12973 #endif
12974
12975 #undef $ac_func
12976
12977 /* Override any GCC internal prototype to avoid an error.
12978    Use char because int might match the return type of a GCC
12979    builtin and then its argument prototype would still apply.  */
12980 #ifdef __cplusplus
12981 extern "C"
12982 #endif
12983 char $ac_func ();
12984 /* The GNU C library defines this for functions which it implements
12985     to always fail with ENOSYS.  Some functions are actually named
12986     something starting with __ and the normal name is an alias.  */
12987 #if defined __stub_$ac_func || defined __stub___$ac_func
12988 choke me
12989 #endif
12990
12991 int
12992 main ()
12993 {
12994 return $ac_func ();
12995   ;
12996   return 0;
12997 }
12998 _ACEOF
12999 rm -f conftest.$ac_objext conftest$ac_exeext
13000 if { (ac_try="$ac_link"
13001 case "(($ac_try" in
13002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13003   *) ac_try_echo=$ac_try;;
13004 esac
13005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13006 $as_echo "$ac_try_echo") >&5
13007   (eval "$ac_link") 2>conftest.er1
13008   ac_status=$?
13009   grep -v '^ *+' conftest.er1 >conftest.err
13010   rm -f conftest.er1
13011   cat conftest.err >&5
13012   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013   (exit $ac_status); } && {
13014          test -z "$ac_c_werror_flag" ||
13015          test ! -s conftest.err
13016        } && test -s conftest$ac_exeext && {
13017          test "$cross_compiling" = yes ||
13018          $as_test_x conftest$ac_exeext
13019        }; then
13020   eval "$as_ac_var=yes"
13021 else
13022   $as_echo "$as_me: failed program was:" >&5
13023 sed 's/^/| /' conftest.$ac_ext >&5
13024
13025         eval "$as_ac_var=no"
13026 fi
13027
13028 rm -rf conftest.dSYM
13029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13030       conftest$ac_exeext conftest.$ac_ext
13031 fi
13032 ac_res=`eval 'as_val=${'$as_ac_var'}
13033                  $as_echo "$as_val"'`
13034                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13035 $as_echo "$ac_res" >&6; }
13036 as_val=`eval 'as_val=${'$as_ac_var'}
13037                  $as_echo "$as_val"'`
13038    if test "x$as_val" = x""yes; then
13039   cat >>confdefs.h <<_ACEOF
13040 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13041 _ACEOF
13042
13043 fi
13044 done
13045
13046 fi
13047
13048 if test "$with_pam" = yes ; then
13049
13050 for ac_header in security/pam_appl.h
13051 do
13052 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13054   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13055 $as_echo_n "checking for $ac_header... " >&6; }
13056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13057   $as_echo_n "(cached) " >&6
13058 fi
13059 ac_res=`eval 'as_val=${'$as_ac_Header'}
13060                  $as_echo "$as_val"'`
13061                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13062 $as_echo "$ac_res" >&6; }
13063 else
13064   # Is the header compilable?
13065 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13066 $as_echo_n "checking $ac_header usability... " >&6; }
13067 cat >conftest.$ac_ext <<_ACEOF
13068 /* confdefs.h.  */
13069 _ACEOF
13070 cat confdefs.h >>conftest.$ac_ext
13071 cat >>conftest.$ac_ext <<_ACEOF
13072 /* end confdefs.h.  */
13073 $ac_includes_default
13074 #include <$ac_header>
13075 _ACEOF
13076 rm -f conftest.$ac_objext
13077 if { (ac_try="$ac_compile"
13078 case "(($ac_try" in
13079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13080   *) ac_try_echo=$ac_try;;
13081 esac
13082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13083 $as_echo "$ac_try_echo") >&5
13084   (eval "$ac_compile") 2>conftest.er1
13085   ac_status=$?
13086   grep -v '^ *+' conftest.er1 >conftest.err
13087   rm -f conftest.er1
13088   cat conftest.err >&5
13089   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090   (exit $ac_status); } && {
13091          test -z "$ac_c_werror_flag" ||
13092          test ! -s conftest.err
13093        } && test -s conftest.$ac_objext; then
13094   ac_header_compiler=yes
13095 else
13096   $as_echo "$as_me: failed program was:" >&5
13097 sed 's/^/| /' conftest.$ac_ext >&5
13098
13099         ac_header_compiler=no
13100 fi
13101
13102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13103 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13104 $as_echo "$ac_header_compiler" >&6; }
13105
13106 # Is the header present?
13107 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13108 $as_echo_n "checking $ac_header presence... " >&6; }
13109 cat >conftest.$ac_ext <<_ACEOF
13110 /* confdefs.h.  */
13111 _ACEOF
13112 cat confdefs.h >>conftest.$ac_ext
13113 cat >>conftest.$ac_ext <<_ACEOF
13114 /* end confdefs.h.  */
13115 #include <$ac_header>
13116 _ACEOF
13117 if { (ac_try="$ac_cpp conftest.$ac_ext"
13118 case "(($ac_try" in
13119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13120   *) ac_try_echo=$ac_try;;
13121 esac
13122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13123 $as_echo "$ac_try_echo") >&5
13124   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13125   ac_status=$?
13126   grep -v '^ *+' conftest.er1 >conftest.err
13127   rm -f conftest.er1
13128   cat conftest.err >&5
13129   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130   (exit $ac_status); } >/dev/null && {
13131          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13132          test ! -s conftest.err
13133        }; then
13134   ac_header_preproc=yes
13135 else
13136   $as_echo "$as_me: failed program was:" >&5
13137 sed 's/^/| /' conftest.$ac_ext >&5
13138
13139   ac_header_preproc=no
13140 fi
13141
13142 rm -f conftest.err conftest.$ac_ext
13143 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13144 $as_echo "$ac_header_preproc" >&6; }
13145
13146 # So?  What about this header?
13147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13148   yes:no: )
13149     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13150 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13151     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13152 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13153     ac_header_preproc=yes
13154     ;;
13155   no:yes:* )
13156     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13157 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13158     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13159 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13160     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13161 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13162     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13163 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13164     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13165 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13166     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13167 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13168     ( cat <<\_ASBOX
13169 ## ---------------------------------------- ##
13170 ## Report this to pgsql-bugs@postgresql.org ##
13171 ## ---------------------------------------- ##
13172 _ASBOX
13173      ) | sed "s/^/$as_me: WARNING:     /" >&2
13174     ;;
13175 esac
13176 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13177 $as_echo_n "checking for $ac_header... " >&6; }
13178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13179   $as_echo_n "(cached) " >&6
13180 else
13181   eval "$as_ac_Header=\$ac_header_preproc"
13182 fi
13183 ac_res=`eval 'as_val=${'$as_ac_Header'}
13184                  $as_echo "$as_val"'`
13185                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13186 $as_echo "$ac_res" >&6; }
13187
13188 fi
13189 as_val=`eval 'as_val=${'$as_ac_Header'}
13190                  $as_echo "$as_val"'`
13191    if test "x$as_val" = x""yes; then
13192   cat >>confdefs.h <<_ACEOF
13193 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13194 _ACEOF
13195
13196 else
13197
13198 for ac_header in pam/pam_appl.h
13199 do
13200 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13202   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13203 $as_echo_n "checking for $ac_header... " >&6; }
13204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13205   $as_echo_n "(cached) " >&6
13206 fi
13207 ac_res=`eval 'as_val=${'$as_ac_Header'}
13208                  $as_echo "$as_val"'`
13209                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13210 $as_echo "$ac_res" >&6; }
13211 else
13212   # Is the header compilable?
13213 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13214 $as_echo_n "checking $ac_header usability... " >&6; }
13215 cat >conftest.$ac_ext <<_ACEOF
13216 /* confdefs.h.  */
13217 _ACEOF
13218 cat confdefs.h >>conftest.$ac_ext
13219 cat >>conftest.$ac_ext <<_ACEOF
13220 /* end confdefs.h.  */
13221 $ac_includes_default
13222 #include <$ac_header>
13223 _ACEOF
13224 rm -f conftest.$ac_objext
13225 if { (ac_try="$ac_compile"
13226 case "(($ac_try" in
13227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13228   *) ac_try_echo=$ac_try;;
13229 esac
13230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13231 $as_echo "$ac_try_echo") >&5
13232   (eval "$ac_compile") 2>conftest.er1
13233   ac_status=$?
13234   grep -v '^ *+' conftest.er1 >conftest.err
13235   rm -f conftest.er1
13236   cat conftest.err >&5
13237   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238   (exit $ac_status); } && {
13239          test -z "$ac_c_werror_flag" ||
13240          test ! -s conftest.err
13241        } && test -s conftest.$ac_objext; then
13242   ac_header_compiler=yes
13243 else
13244   $as_echo "$as_me: failed program was:" >&5
13245 sed 's/^/| /' conftest.$ac_ext >&5
13246
13247         ac_header_compiler=no
13248 fi
13249
13250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13251 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13252 $as_echo "$ac_header_compiler" >&6; }
13253
13254 # Is the header present?
13255 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13256 $as_echo_n "checking $ac_header presence... " >&6; }
13257 cat >conftest.$ac_ext <<_ACEOF
13258 /* confdefs.h.  */
13259 _ACEOF
13260 cat confdefs.h >>conftest.$ac_ext
13261 cat >>conftest.$ac_ext <<_ACEOF
13262 /* end confdefs.h.  */
13263 #include <$ac_header>
13264 _ACEOF
13265 if { (ac_try="$ac_cpp conftest.$ac_ext"
13266 case "(($ac_try" in
13267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13268   *) ac_try_echo=$ac_try;;
13269 esac
13270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13271 $as_echo "$ac_try_echo") >&5
13272   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13273   ac_status=$?
13274   grep -v '^ *+' conftest.er1 >conftest.err
13275   rm -f conftest.er1
13276   cat conftest.err >&5
13277   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278   (exit $ac_status); } >/dev/null && {
13279          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13280          test ! -s conftest.err
13281        }; then
13282   ac_header_preproc=yes
13283 else
13284   $as_echo "$as_me: failed program was:" >&5
13285 sed 's/^/| /' conftest.$ac_ext >&5
13286
13287   ac_header_preproc=no
13288 fi
13289
13290 rm -f conftest.err conftest.$ac_ext
13291 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13292 $as_echo "$ac_header_preproc" >&6; }
13293
13294 # So?  What about this header?
13295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13296   yes:no: )
13297     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13298 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13299     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13300 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13301     ac_header_preproc=yes
13302     ;;
13303   no:yes:* )
13304     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13305 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13306     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13307 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13308     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13309 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13310     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13311 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13312     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13313 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13314     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13315 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13316     ( cat <<\_ASBOX
13317 ## ---------------------------------------- ##
13318 ## Report this to pgsql-bugs@postgresql.org ##
13319 ## ---------------------------------------- ##
13320 _ASBOX
13321      ) | sed "s/^/$as_me: WARNING:     /" >&2
13322     ;;
13323 esac
13324 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13325 $as_echo_n "checking for $ac_header... " >&6; }
13326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13327   $as_echo_n "(cached) " >&6
13328 else
13329   eval "$as_ac_Header=\$ac_header_preproc"
13330 fi
13331 ac_res=`eval 'as_val=${'$as_ac_Header'}
13332                  $as_echo "$as_val"'`
13333                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13334 $as_echo "$ac_res" >&6; }
13335
13336 fi
13337 as_val=`eval 'as_val=${'$as_ac_Header'}
13338                  $as_echo "$as_val"'`
13339    if test "x$as_val" = x""yes; then
13340   cat >>confdefs.h <<_ACEOF
13341 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13342 _ACEOF
13343
13344 else
13345   { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
13346 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
13347    { (exit 1); exit 1; }; }
13348 fi
13349
13350 done
13351
13352 fi
13353
13354 done
13355
13356 fi
13357
13358 if test "$with_libxml" = yes ; then
13359   if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13360   { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13361 $as_echo_n "checking for libxml/parser.h... " >&6; }
13362 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13363   $as_echo_n "(cached) " >&6
13364 fi
13365 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13366 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13367 else
13368   # Is the header compilable?
13369 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
13370 $as_echo_n "checking libxml/parser.h usability... " >&6; }
13371 cat >conftest.$ac_ext <<_ACEOF
13372 /* confdefs.h.  */
13373 _ACEOF
13374 cat confdefs.h >>conftest.$ac_ext
13375 cat >>conftest.$ac_ext <<_ACEOF
13376 /* end confdefs.h.  */
13377 $ac_includes_default
13378 #include <libxml/parser.h>
13379 _ACEOF
13380 rm -f conftest.$ac_objext
13381 if { (ac_try="$ac_compile"
13382 case "(($ac_try" in
13383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13384   *) ac_try_echo=$ac_try;;
13385 esac
13386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13387 $as_echo "$ac_try_echo") >&5
13388   (eval "$ac_compile") 2>conftest.er1
13389   ac_status=$?
13390   grep -v '^ *+' conftest.er1 >conftest.err
13391   rm -f conftest.er1
13392   cat conftest.err >&5
13393   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394   (exit $ac_status); } && {
13395          test -z "$ac_c_werror_flag" ||
13396          test ! -s conftest.err
13397        } && test -s conftest.$ac_objext; then
13398   ac_header_compiler=yes
13399 else
13400   $as_echo "$as_me: failed program was:" >&5
13401 sed 's/^/| /' conftest.$ac_ext >&5
13402
13403         ac_header_compiler=no
13404 fi
13405
13406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13407 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13408 $as_echo "$ac_header_compiler" >&6; }
13409
13410 # Is the header present?
13411 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13412 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13413 cat >conftest.$ac_ext <<_ACEOF
13414 /* confdefs.h.  */
13415 _ACEOF
13416 cat confdefs.h >>conftest.$ac_ext
13417 cat >>conftest.$ac_ext <<_ACEOF
13418 /* end confdefs.h.  */
13419 #include <libxml/parser.h>
13420 _ACEOF
13421 if { (ac_try="$ac_cpp conftest.$ac_ext"
13422 case "(($ac_try" in
13423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13424   *) ac_try_echo=$ac_try;;
13425 esac
13426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13427 $as_echo "$ac_try_echo") >&5
13428   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13429   ac_status=$?
13430   grep -v '^ *+' conftest.er1 >conftest.err
13431   rm -f conftest.er1
13432   cat conftest.err >&5
13433   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434   (exit $ac_status); } >/dev/null && {
13435          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13436          test ! -s conftest.err
13437        }; then
13438   ac_header_preproc=yes
13439 else
13440   $as_echo "$as_me: failed program was:" >&5
13441 sed 's/^/| /' conftest.$ac_ext >&5
13442
13443   ac_header_preproc=no
13444 fi
13445
13446 rm -f conftest.err conftest.$ac_ext
13447 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13448 $as_echo "$ac_header_preproc" >&6; }
13449
13450 # So?  What about this header?
13451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13452   yes:no: )
13453     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13454 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13455     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13456 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13457     ac_header_preproc=yes
13458     ;;
13459   no:yes:* )
13460     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13461 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13462     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
13463 $as_echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
13464     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13465 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13466     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
13467 $as_echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13468     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13469 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13470     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13471 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13472     ( cat <<\_ASBOX
13473 ## ---------------------------------------- ##
13474 ## Report this to pgsql-bugs@postgresql.org ##
13475 ## ---------------------------------------- ##
13476 _ASBOX
13477      ) | sed "s/^/$as_me: WARNING:     /" >&2
13478     ;;
13479 esac
13480 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13481 $as_echo_n "checking for libxml/parser.h... " >&6; }
13482 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13483   $as_echo_n "(cached) " >&6
13484 else
13485   ac_cv_header_libxml_parser_h=$ac_header_preproc
13486 fi
13487 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13488 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13489
13490 fi
13491 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13492   :
13493 else
13494   { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13495 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13496    { (exit 1); exit 1; }; }
13497 fi
13498
13499
13500 fi
13501
13502 if test "$with_libxslt" = yes ; then
13503   if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13504   { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13505 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13506 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13507   $as_echo_n "(cached) " >&6
13508 fi
13509 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13510 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13511 else
13512   # Is the header compilable?
13513 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13514 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13515 cat >conftest.$ac_ext <<_ACEOF
13516 /* confdefs.h.  */
13517 _ACEOF
13518 cat confdefs.h >>conftest.$ac_ext
13519 cat >>conftest.$ac_ext <<_ACEOF
13520 /* end confdefs.h.  */
13521 $ac_includes_default
13522 #include <libxslt/xslt.h>
13523 _ACEOF
13524 rm -f conftest.$ac_objext
13525 if { (ac_try="$ac_compile"
13526 case "(($ac_try" in
13527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13528   *) ac_try_echo=$ac_try;;
13529 esac
13530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13531 $as_echo "$ac_try_echo") >&5
13532   (eval "$ac_compile") 2>conftest.er1
13533   ac_status=$?
13534   grep -v '^ *+' conftest.er1 >conftest.err
13535   rm -f conftest.er1
13536   cat conftest.err >&5
13537   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538   (exit $ac_status); } && {
13539          test -z "$ac_c_werror_flag" ||
13540          test ! -s conftest.err
13541        } && test -s conftest.$ac_objext; then
13542   ac_header_compiler=yes
13543 else
13544   $as_echo "$as_me: failed program was:" >&5
13545 sed 's/^/| /' conftest.$ac_ext >&5
13546
13547         ac_header_compiler=no
13548 fi
13549
13550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13551 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13552 $as_echo "$ac_header_compiler" >&6; }
13553
13554 # Is the header present?
13555 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13556 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13557 cat >conftest.$ac_ext <<_ACEOF
13558 /* confdefs.h.  */
13559 _ACEOF
13560 cat confdefs.h >>conftest.$ac_ext
13561 cat >>conftest.$ac_ext <<_ACEOF
13562 /* end confdefs.h.  */
13563 #include <libxslt/xslt.h>
13564 _ACEOF
13565 if { (ac_try="$ac_cpp conftest.$ac_ext"
13566 case "(($ac_try" in
13567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13568   *) ac_try_echo=$ac_try;;
13569 esac
13570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13571 $as_echo "$ac_try_echo") >&5
13572   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13573   ac_status=$?
13574   grep -v '^ *+' conftest.er1 >conftest.err
13575   rm -f conftest.er1
13576   cat conftest.err >&5
13577   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578   (exit $ac_status); } >/dev/null && {
13579          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13580          test ! -s conftest.err
13581        }; then
13582   ac_header_preproc=yes
13583 else
13584   $as_echo "$as_me: failed program was:" >&5
13585 sed 's/^/| /' conftest.$ac_ext >&5
13586
13587   ac_header_preproc=no
13588 fi
13589
13590 rm -f conftest.err conftest.$ac_ext
13591 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13592 $as_echo "$ac_header_preproc" >&6; }
13593
13594 # So?  What about this header?
13595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13596   yes:no: )
13597     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13598 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13599     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13600 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13601     ac_header_preproc=yes
13602     ;;
13603   no:yes:* )
13604     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13605 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13606     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&5
13607 $as_echo "$as_me: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&2;}
13608     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13609 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13610     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&5
13611 $as_echo "$as_me: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13612     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13613 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13614     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13615 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13616     ( cat <<\_ASBOX
13617 ## ---------------------------------------- ##
13618 ## Report this to pgsql-bugs@postgresql.org ##
13619 ## ---------------------------------------- ##
13620 _ASBOX
13621      ) | sed "s/^/$as_me: WARNING:     /" >&2
13622     ;;
13623 esac
13624 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13625 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13626 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13627   $as_echo_n "(cached) " >&6
13628 else
13629   ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13630 fi
13631 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13632 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13633
13634 fi
13635 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13636   :
13637 else
13638   { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13639 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13640    { (exit 1); exit 1; }; }
13641 fi
13642
13643
13644 fi
13645
13646 if test "$with_ldap" = yes ; then
13647   if test "$PORTNAME" != "win32"; then
13648
13649 for ac_header in ldap.h
13650 do
13651 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13653   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13654 $as_echo_n "checking for $ac_header... " >&6; }
13655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13656   $as_echo_n "(cached) " >&6
13657 fi
13658 ac_res=`eval 'as_val=${'$as_ac_Header'}
13659                  $as_echo "$as_val"'`
13660                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13661 $as_echo "$ac_res" >&6; }
13662 else
13663   # Is the header compilable?
13664 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13665 $as_echo_n "checking $ac_header usability... " >&6; }
13666 cat >conftest.$ac_ext <<_ACEOF
13667 /* confdefs.h.  */
13668 _ACEOF
13669 cat confdefs.h >>conftest.$ac_ext
13670 cat >>conftest.$ac_ext <<_ACEOF
13671 /* end confdefs.h.  */
13672 $ac_includes_default
13673 #include <$ac_header>
13674 _ACEOF
13675 rm -f conftest.$ac_objext
13676 if { (ac_try="$ac_compile"
13677 case "(($ac_try" in
13678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13679   *) ac_try_echo=$ac_try;;
13680 esac
13681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13682 $as_echo "$ac_try_echo") >&5
13683   (eval "$ac_compile") 2>conftest.er1
13684   ac_status=$?
13685   grep -v '^ *+' conftest.er1 >conftest.err
13686   rm -f conftest.er1
13687   cat conftest.err >&5
13688   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689   (exit $ac_status); } && {
13690          test -z "$ac_c_werror_flag" ||
13691          test ! -s conftest.err
13692        } && test -s conftest.$ac_objext; then
13693   ac_header_compiler=yes
13694 else
13695   $as_echo "$as_me: failed program was:" >&5
13696 sed 's/^/| /' conftest.$ac_ext >&5
13697
13698         ac_header_compiler=no
13699 fi
13700
13701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13702 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13703 $as_echo "$ac_header_compiler" >&6; }
13704
13705 # Is the header present?
13706 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13707 $as_echo_n "checking $ac_header presence... " >&6; }
13708 cat >conftest.$ac_ext <<_ACEOF
13709 /* confdefs.h.  */
13710 _ACEOF
13711 cat confdefs.h >>conftest.$ac_ext
13712 cat >>conftest.$ac_ext <<_ACEOF
13713 /* end confdefs.h.  */
13714 #include <$ac_header>
13715 _ACEOF
13716 if { (ac_try="$ac_cpp conftest.$ac_ext"
13717 case "(($ac_try" in
13718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719   *) ac_try_echo=$ac_try;;
13720 esac
13721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13722 $as_echo "$ac_try_echo") >&5
13723   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13724   ac_status=$?
13725   grep -v '^ *+' conftest.er1 >conftest.err
13726   rm -f conftest.er1
13727   cat conftest.err >&5
13728   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729   (exit $ac_status); } >/dev/null && {
13730          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13731          test ! -s conftest.err
13732        }; then
13733   ac_header_preproc=yes
13734 else
13735   $as_echo "$as_me: failed program was:" >&5
13736 sed 's/^/| /' conftest.$ac_ext >&5
13737
13738   ac_header_preproc=no
13739 fi
13740
13741 rm -f conftest.err conftest.$ac_ext
13742 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13743 $as_echo "$ac_header_preproc" >&6; }
13744
13745 # So?  What about this header?
13746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13747   yes:no: )
13748     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13749 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13750     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13751 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13752     ac_header_preproc=yes
13753     ;;
13754   no:yes:* )
13755     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13756 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13757     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13758 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13759     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13760 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13761     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13762 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13763     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13764 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13765     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13766 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13767     ( cat <<\_ASBOX
13768 ## ---------------------------------------- ##
13769 ## Report this to pgsql-bugs@postgresql.org ##
13770 ## ---------------------------------------- ##
13771 _ASBOX
13772      ) | sed "s/^/$as_me: WARNING:     /" >&2
13773     ;;
13774 esac
13775 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13776 $as_echo_n "checking for $ac_header... " >&6; }
13777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13778   $as_echo_n "(cached) " >&6
13779 else
13780   eval "$as_ac_Header=\$ac_header_preproc"
13781 fi
13782 ac_res=`eval 'as_val=${'$as_ac_Header'}
13783                  $as_echo "$as_val"'`
13784                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13785 $as_echo "$ac_res" >&6; }
13786
13787 fi
13788 as_val=`eval 'as_val=${'$as_ac_Header'}
13789                  $as_echo "$as_val"'`
13790    if test "x$as_val" = x""yes; then
13791   cat >>confdefs.h <<_ACEOF
13792 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13793 _ACEOF
13794
13795 else
13796   { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13797 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13798    { (exit 1); exit 1; }; }
13799 fi
13800
13801 done
13802
13803   else
13804
13805 for ac_header in winldap.h
13806 do
13807 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13808 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13809 $as_echo_n "checking for $ac_header... " >&6; }
13810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13811   $as_echo_n "(cached) " >&6
13812 else
13813   cat >conftest.$ac_ext <<_ACEOF
13814 /* confdefs.h.  */
13815 _ACEOF
13816 cat confdefs.h >>conftest.$ac_ext
13817 cat >>conftest.$ac_ext <<_ACEOF
13818 /* end confdefs.h.  */
13819 $ac_includes_default
13820 #include <windows.h>
13821
13822
13823 #include <$ac_header>
13824 _ACEOF
13825 rm -f conftest.$ac_objext
13826 if { (ac_try="$ac_compile"
13827 case "(($ac_try" in
13828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13829   *) ac_try_echo=$ac_try;;
13830 esac
13831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13832 $as_echo "$ac_try_echo") >&5
13833   (eval "$ac_compile") 2>conftest.er1
13834   ac_status=$?
13835   grep -v '^ *+' conftest.er1 >conftest.err
13836   rm -f conftest.er1
13837   cat conftest.err >&5
13838   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839   (exit $ac_status); } && {
13840          test -z "$ac_c_werror_flag" ||
13841          test ! -s conftest.err
13842        } && test -s conftest.$ac_objext; then
13843   eval "$as_ac_Header=yes"
13844 else
13845   $as_echo "$as_me: failed program was:" >&5
13846 sed 's/^/| /' conftest.$ac_ext >&5
13847
13848         eval "$as_ac_Header=no"
13849 fi
13850
13851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13852 fi
13853 ac_res=`eval 'as_val=${'$as_ac_Header'}
13854                  $as_echo "$as_val"'`
13855                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13856 $as_echo "$ac_res" >&6; }
13857 as_val=`eval 'as_val=${'$as_ac_Header'}
13858                  $as_echo "$as_val"'`
13859    if test "x$as_val" = x""yes; then
13860   cat >>confdefs.h <<_ACEOF
13861 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13862 _ACEOF
13863
13864 else
13865   { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13866 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13867    { (exit 1); exit 1; }; }
13868 fi
13869
13870 done
13871
13872   fi
13873 fi
13874
13875 if test "$with_bonjour" = yes ; then
13876   if test "${ac_cv_header_dns_sd_h+set}" = set; then
13877   { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13878 $as_echo_n "checking for dns_sd.h... " >&6; }
13879 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13880   $as_echo_n "(cached) " >&6
13881 fi
13882 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13883 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13884 else
13885   # Is the header compilable?
13886 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
13887 $as_echo_n "checking dns_sd.h usability... " >&6; }
13888 cat >conftest.$ac_ext <<_ACEOF
13889 /* confdefs.h.  */
13890 _ACEOF
13891 cat confdefs.h >>conftest.$ac_ext
13892 cat >>conftest.$ac_ext <<_ACEOF
13893 /* end confdefs.h.  */
13894 $ac_includes_default
13895 #include <dns_sd.h>
13896 _ACEOF
13897 rm -f conftest.$ac_objext
13898 if { (ac_try="$ac_compile"
13899 case "(($ac_try" in
13900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13901   *) ac_try_echo=$ac_try;;
13902 esac
13903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13904 $as_echo "$ac_try_echo") >&5
13905   (eval "$ac_compile") 2>conftest.er1
13906   ac_status=$?
13907   grep -v '^ *+' conftest.er1 >conftest.err
13908   rm -f conftest.er1
13909   cat conftest.err >&5
13910   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911   (exit $ac_status); } && {
13912          test -z "$ac_c_werror_flag" ||
13913          test ! -s conftest.err
13914        } && test -s conftest.$ac_objext; then
13915   ac_header_compiler=yes
13916 else
13917   $as_echo "$as_me: failed program was:" >&5
13918 sed 's/^/| /' conftest.$ac_ext >&5
13919
13920         ac_header_compiler=no
13921 fi
13922
13923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13924 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13925 $as_echo "$ac_header_compiler" >&6; }
13926
13927 # Is the header present?
13928 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
13929 $as_echo_n "checking dns_sd.h presence... " >&6; }
13930 cat >conftest.$ac_ext <<_ACEOF
13931 /* confdefs.h.  */
13932 _ACEOF
13933 cat confdefs.h >>conftest.$ac_ext
13934 cat >>conftest.$ac_ext <<_ACEOF
13935 /* end confdefs.h.  */
13936 #include <dns_sd.h>
13937 _ACEOF
13938 if { (ac_try="$ac_cpp conftest.$ac_ext"
13939 case "(($ac_try" in
13940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13941   *) ac_try_echo=$ac_try;;
13942 esac
13943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13944 $as_echo "$ac_try_echo") >&5
13945   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13946   ac_status=$?
13947   grep -v '^ *+' conftest.er1 >conftest.err
13948   rm -f conftest.er1
13949   cat conftest.err >&5
13950   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951   (exit $ac_status); } >/dev/null && {
13952          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13953          test ! -s conftest.err
13954        }; then
13955   ac_header_preproc=yes
13956 else
13957   $as_echo "$as_me: failed program was:" >&5
13958 sed 's/^/| /' conftest.$ac_ext >&5
13959
13960   ac_header_preproc=no
13961 fi
13962
13963 rm -f conftest.err conftest.$ac_ext
13964 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13965 $as_echo "$ac_header_preproc" >&6; }
13966
13967 # So?  What about this header?
13968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13969   yes:no: )
13970     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
13971 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13972     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
13973 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
13974     ac_header_preproc=yes
13975     ;;
13976   no:yes:* )
13977     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
13978 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
13979     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&5
13980 $as_echo "$as_me: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&2;}
13981     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
13982 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
13983     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&5
13984 $as_echo "$as_me: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13985     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
13986 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
13987     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
13988 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
13989     ( cat <<\_ASBOX
13990 ## ---------------------------------------- ##
13991 ## Report this to pgsql-bugs@postgresql.org ##
13992 ## ---------------------------------------- ##
13993 _ASBOX
13994      ) | sed "s/^/$as_me: WARNING:     /" >&2
13995     ;;
13996 esac
13997 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13998 $as_echo_n "checking for dns_sd.h... " >&6; }
13999 if test "${ac_cv_header_dns_sd_h+set}" = set; then
14000   $as_echo_n "(cached) " >&6
14001 else
14002   ac_cv_header_dns_sd_h=$ac_header_preproc
14003 fi
14004 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
14005 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
14006
14007 fi
14008 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
14009   :
14010 else
14011   { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
14012 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
14013    { (exit 1); exit 1; }; }
14014 fi
14015
14016
14017 fi
14018
14019 # for contrib/uuid-ossp
14020 if test "$with_ossp_uuid" = yes ; then
14021
14022 for ac_header in ossp/uuid.h
14023 do
14024 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14026   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14027 $as_echo_n "checking for $ac_header... " >&6; }
14028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14029   $as_echo_n "(cached) " >&6
14030 fi
14031 ac_res=`eval 'as_val=${'$as_ac_Header'}
14032                  $as_echo "$as_val"'`
14033                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14034 $as_echo "$ac_res" >&6; }
14035 else
14036   # Is the header compilable?
14037 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14038 $as_echo_n "checking $ac_header usability... " >&6; }
14039 cat >conftest.$ac_ext <<_ACEOF
14040 /* confdefs.h.  */
14041 _ACEOF
14042 cat confdefs.h >>conftest.$ac_ext
14043 cat >>conftest.$ac_ext <<_ACEOF
14044 /* end confdefs.h.  */
14045 $ac_includes_default
14046 #include <$ac_header>
14047 _ACEOF
14048 rm -f conftest.$ac_objext
14049 if { (ac_try="$ac_compile"
14050 case "(($ac_try" in
14051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14052   *) ac_try_echo=$ac_try;;
14053 esac
14054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14055 $as_echo "$ac_try_echo") >&5
14056   (eval "$ac_compile") 2>conftest.er1
14057   ac_status=$?
14058   grep -v '^ *+' conftest.er1 >conftest.err
14059   rm -f conftest.er1
14060   cat conftest.err >&5
14061   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062   (exit $ac_status); } && {
14063          test -z "$ac_c_werror_flag" ||
14064          test ! -s conftest.err
14065        } && test -s conftest.$ac_objext; then
14066   ac_header_compiler=yes
14067 else
14068   $as_echo "$as_me: failed program was:" >&5
14069 sed 's/^/| /' conftest.$ac_ext >&5
14070
14071         ac_header_compiler=no
14072 fi
14073
14074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14075 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14076 $as_echo "$ac_header_compiler" >&6; }
14077
14078 # Is the header present?
14079 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14080 $as_echo_n "checking $ac_header presence... " >&6; }
14081 cat >conftest.$ac_ext <<_ACEOF
14082 /* confdefs.h.  */
14083 _ACEOF
14084 cat confdefs.h >>conftest.$ac_ext
14085 cat >>conftest.$ac_ext <<_ACEOF
14086 /* end confdefs.h.  */
14087 #include <$ac_header>
14088 _ACEOF
14089 if { (ac_try="$ac_cpp conftest.$ac_ext"
14090 case "(($ac_try" in
14091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14092   *) ac_try_echo=$ac_try;;
14093 esac
14094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14095 $as_echo "$ac_try_echo") >&5
14096   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14097   ac_status=$?
14098   grep -v '^ *+' conftest.er1 >conftest.err
14099   rm -f conftest.er1
14100   cat conftest.err >&5
14101   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102   (exit $ac_status); } >/dev/null && {
14103          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14104          test ! -s conftest.err
14105        }; then
14106   ac_header_preproc=yes
14107 else
14108   $as_echo "$as_me: failed program was:" >&5
14109 sed 's/^/| /' conftest.$ac_ext >&5
14110
14111   ac_header_preproc=no
14112 fi
14113
14114 rm -f conftest.err conftest.$ac_ext
14115 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14116 $as_echo "$ac_header_preproc" >&6; }
14117
14118 # So?  What about this header?
14119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14120   yes:no: )
14121     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14122 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14123     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14124 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14125     ac_header_preproc=yes
14126     ;;
14127   no:yes:* )
14128     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14129 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14130     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14131 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14132     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14133 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14134     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14135 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14136     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14137 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14138     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14139 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14140     ( cat <<\_ASBOX
14141 ## ---------------------------------------- ##
14142 ## Report this to pgsql-bugs@postgresql.org ##
14143 ## ---------------------------------------- ##
14144 _ASBOX
14145      ) | sed "s/^/$as_me: WARNING:     /" >&2
14146     ;;
14147 esac
14148 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14149 $as_echo_n "checking for $ac_header... " >&6; }
14150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14151   $as_echo_n "(cached) " >&6
14152 else
14153   eval "$as_ac_Header=\$ac_header_preproc"
14154 fi
14155 ac_res=`eval 'as_val=${'$as_ac_Header'}
14156                  $as_echo "$as_val"'`
14157                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14158 $as_echo "$ac_res" >&6; }
14159
14160 fi
14161 as_val=`eval 'as_val=${'$as_ac_Header'}
14162                  $as_echo "$as_val"'`
14163    if test "x$as_val" = x""yes; then
14164   cat >>confdefs.h <<_ACEOF
14165 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14166 _ACEOF
14167
14168 else
14169
14170
14171 for ac_header in uuid.h
14172 do
14173 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14175   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14176 $as_echo_n "checking for $ac_header... " >&6; }
14177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14178   $as_echo_n "(cached) " >&6
14179 fi
14180 ac_res=`eval 'as_val=${'$as_ac_Header'}
14181                  $as_echo "$as_val"'`
14182                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14183 $as_echo "$ac_res" >&6; }
14184 else
14185   # Is the header compilable?
14186 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14187 $as_echo_n "checking $ac_header usability... " >&6; }
14188 cat >conftest.$ac_ext <<_ACEOF
14189 /* confdefs.h.  */
14190 _ACEOF
14191 cat confdefs.h >>conftest.$ac_ext
14192 cat >>conftest.$ac_ext <<_ACEOF
14193 /* end confdefs.h.  */
14194 $ac_includes_default
14195 #include <$ac_header>
14196 _ACEOF
14197 rm -f conftest.$ac_objext
14198 if { (ac_try="$ac_compile"
14199 case "(($ac_try" in
14200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14201   *) ac_try_echo=$ac_try;;
14202 esac
14203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14204 $as_echo "$ac_try_echo") >&5
14205   (eval "$ac_compile") 2>conftest.er1
14206   ac_status=$?
14207   grep -v '^ *+' conftest.er1 >conftest.err
14208   rm -f conftest.er1
14209   cat conftest.err >&5
14210   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211   (exit $ac_status); } && {
14212          test -z "$ac_c_werror_flag" ||
14213          test ! -s conftest.err
14214        } && test -s conftest.$ac_objext; then
14215   ac_header_compiler=yes
14216 else
14217   $as_echo "$as_me: failed program was:" >&5
14218 sed 's/^/| /' conftest.$ac_ext >&5
14219
14220         ac_header_compiler=no
14221 fi
14222
14223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14224 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14225 $as_echo "$ac_header_compiler" >&6; }
14226
14227 # Is the header present?
14228 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14229 $as_echo_n "checking $ac_header presence... " >&6; }
14230 cat >conftest.$ac_ext <<_ACEOF
14231 /* confdefs.h.  */
14232 _ACEOF
14233 cat confdefs.h >>conftest.$ac_ext
14234 cat >>conftest.$ac_ext <<_ACEOF
14235 /* end confdefs.h.  */
14236 #include <$ac_header>
14237 _ACEOF
14238 if { (ac_try="$ac_cpp conftest.$ac_ext"
14239 case "(($ac_try" in
14240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241   *) ac_try_echo=$ac_try;;
14242 esac
14243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14244 $as_echo "$ac_try_echo") >&5
14245   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14246   ac_status=$?
14247   grep -v '^ *+' conftest.er1 >conftest.err
14248   rm -f conftest.er1
14249   cat conftest.err >&5
14250   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251   (exit $ac_status); } >/dev/null && {
14252          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14253          test ! -s conftest.err
14254        }; then
14255   ac_header_preproc=yes
14256 else
14257   $as_echo "$as_me: failed program was:" >&5
14258 sed 's/^/| /' conftest.$ac_ext >&5
14259
14260   ac_header_preproc=no
14261 fi
14262
14263 rm -f conftest.err conftest.$ac_ext
14264 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14265 $as_echo "$ac_header_preproc" >&6; }
14266
14267 # So?  What about this header?
14268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14269   yes:no: )
14270     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14271 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14272     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14273 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14274     ac_header_preproc=yes
14275     ;;
14276   no:yes:* )
14277     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14278 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14279     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14280 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14281     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14282 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14283     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14284 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14285     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14286 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14287     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14288 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14289     ( cat <<\_ASBOX
14290 ## ---------------------------------------- ##
14291 ## Report this to pgsql-bugs@postgresql.org ##
14292 ## ---------------------------------------- ##
14293 _ASBOX
14294      ) | sed "s/^/$as_me: WARNING:     /" >&2
14295     ;;
14296 esac
14297 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14298 $as_echo_n "checking for $ac_header... " >&6; }
14299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14300   $as_echo_n "(cached) " >&6
14301 else
14302   eval "$as_ac_Header=\$ac_header_preproc"
14303 fi
14304 ac_res=`eval 'as_val=${'$as_ac_Header'}
14305                  $as_echo "$as_val"'`
14306                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14307 $as_echo "$ac_res" >&6; }
14308
14309 fi
14310 as_val=`eval 'as_val=${'$as_ac_Header'}
14311                  $as_echo "$as_val"'`
14312    if test "x$as_val" = x""yes; then
14313   cat >>confdefs.h <<_ACEOF
14314 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14315 _ACEOF
14316
14317 else
14318   { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
14319 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
14320    { (exit 1); exit 1; }; }
14321 fi
14322
14323 done
14324
14325 fi
14326
14327 done
14328
14329 fi
14330
14331
14332 ##
14333 ## Types, structures, compiler characteristics
14334 ##
14335
14336
14337  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14338 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14339 if test "${ac_cv_c_bigendian+set}" = set; then
14340   $as_echo_n "(cached) " >&6
14341 else
14342   ac_cv_c_bigendian=unknown
14343     # See if we're dealing with a universal compiler.
14344     cat >conftest.$ac_ext <<_ACEOF
14345 /* confdefs.h.  */
14346 _ACEOF
14347 cat confdefs.h >>conftest.$ac_ext
14348 cat >>conftest.$ac_ext <<_ACEOF
14349 /* end confdefs.h.  */
14350 #ifndef __APPLE_CC__
14351                not a universal capable compiler
14352              #endif
14353              typedef int dummy;
14354
14355 _ACEOF
14356 rm -f conftest.$ac_objext
14357 if { (ac_try="$ac_compile"
14358 case "(($ac_try" in
14359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14360   *) ac_try_echo=$ac_try;;
14361 esac
14362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14363 $as_echo "$ac_try_echo") >&5
14364   (eval "$ac_compile") 2>conftest.er1
14365   ac_status=$?
14366   grep -v '^ *+' conftest.er1 >conftest.err
14367   rm -f conftest.er1
14368   cat conftest.err >&5
14369   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370   (exit $ac_status); } && {
14371          test -z "$ac_c_werror_flag" ||
14372          test ! -s conftest.err
14373        } && test -s conftest.$ac_objext; then
14374
14375         # Check for potential -arch flags.  It is not universal unless
14376         # there are some -arch flags.  Note that *ppc* also matches
14377         # ppc64.  This check is also rather less than ideal.
14378         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
14379           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14380         esac
14381 else
14382   $as_echo "$as_me: failed program was:" >&5
14383 sed 's/^/| /' conftest.$ac_ext >&5
14384
14385
14386 fi
14387
14388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14389     if test $ac_cv_c_bigendian = unknown; then
14390       # See if sys/param.h defines the BYTE_ORDER macro.
14391       cat >conftest.$ac_ext <<_ACEOF
14392 /* confdefs.h.  */
14393 _ACEOF
14394 cat confdefs.h >>conftest.$ac_ext
14395 cat >>conftest.$ac_ext <<_ACEOF
14396 /* end confdefs.h.  */
14397 #include <sys/types.h>
14398              #include <sys/param.h>
14399
14400 int
14401 main ()
14402 {
14403 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14404                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14405                      && LITTLE_ENDIAN)
14406               bogus endian macros
14407              #endif
14408
14409   ;
14410   return 0;
14411 }
14412 _ACEOF
14413 rm -f conftest.$ac_objext
14414 if { (ac_try="$ac_compile"
14415 case "(($ac_try" in
14416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14417   *) ac_try_echo=$ac_try;;
14418 esac
14419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14420 $as_echo "$ac_try_echo") >&5
14421   (eval "$ac_compile") 2>conftest.er1
14422   ac_status=$?
14423   grep -v '^ *+' conftest.er1 >conftest.err
14424   rm -f conftest.er1
14425   cat conftest.err >&5
14426   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427   (exit $ac_status); } && {
14428          test -z "$ac_c_werror_flag" ||
14429          test ! -s conftest.err
14430        } && test -s conftest.$ac_objext; then
14431   # It does; now see whether it defined to BIG_ENDIAN or not.
14432          cat >conftest.$ac_ext <<_ACEOF
14433 /* confdefs.h.  */
14434 _ACEOF
14435 cat confdefs.h >>conftest.$ac_ext
14436 cat >>conftest.$ac_ext <<_ACEOF
14437 /* end confdefs.h.  */
14438 #include <sys/types.h>
14439                 #include <sys/param.h>
14440
14441 int
14442 main ()
14443 {
14444 #if BYTE_ORDER != BIG_ENDIAN
14445                  not big endian
14446                 #endif
14447
14448   ;
14449   return 0;
14450 }
14451 _ACEOF
14452 rm -f conftest.$ac_objext
14453 if { (ac_try="$ac_compile"
14454 case "(($ac_try" in
14455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14456   *) ac_try_echo=$ac_try;;
14457 esac
14458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14459 $as_echo "$ac_try_echo") >&5
14460   (eval "$ac_compile") 2>conftest.er1
14461   ac_status=$?
14462   grep -v '^ *+' conftest.er1 >conftest.err
14463   rm -f conftest.er1
14464   cat conftest.err >&5
14465   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466   (exit $ac_status); } && {
14467          test -z "$ac_c_werror_flag" ||
14468          test ! -s conftest.err
14469        } && test -s conftest.$ac_objext; then
14470   ac_cv_c_bigendian=yes
14471 else
14472   $as_echo "$as_me: failed program was:" >&5
14473 sed 's/^/| /' conftest.$ac_ext >&5
14474
14475         ac_cv_c_bigendian=no
14476 fi
14477
14478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14479 else
14480   $as_echo "$as_me: failed program was:" >&5
14481 sed 's/^/| /' conftest.$ac_ext >&5
14482
14483
14484 fi
14485
14486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14487     fi
14488     if test $ac_cv_c_bigendian = unknown; then
14489       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14490       cat >conftest.$ac_ext <<_ACEOF
14491 /* confdefs.h.  */
14492 _ACEOF
14493 cat confdefs.h >>conftest.$ac_ext
14494 cat >>conftest.$ac_ext <<_ACEOF
14495 /* end confdefs.h.  */
14496 #include <limits.h>
14497
14498 int
14499 main ()
14500 {
14501 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14502               bogus endian macros
14503              #endif
14504
14505   ;
14506   return 0;
14507 }
14508 _ACEOF
14509 rm -f conftest.$ac_objext
14510 if { (ac_try="$ac_compile"
14511 case "(($ac_try" in
14512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14513   *) ac_try_echo=$ac_try;;
14514 esac
14515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14516 $as_echo "$ac_try_echo") >&5
14517   (eval "$ac_compile") 2>conftest.er1
14518   ac_status=$?
14519   grep -v '^ *+' conftest.er1 >conftest.err
14520   rm -f conftest.er1
14521   cat conftest.err >&5
14522   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523   (exit $ac_status); } && {
14524          test -z "$ac_c_werror_flag" ||
14525          test ! -s conftest.err
14526        } && test -s conftest.$ac_objext; then
14527   # It does; now see whether it defined to _BIG_ENDIAN or not.
14528          cat >conftest.$ac_ext <<_ACEOF
14529 /* confdefs.h.  */
14530 _ACEOF
14531 cat confdefs.h >>conftest.$ac_ext
14532 cat >>conftest.$ac_ext <<_ACEOF
14533 /* end confdefs.h.  */
14534 #include <limits.h>
14535
14536 int
14537 main ()
14538 {
14539 #ifndef _BIG_ENDIAN
14540                  not big endian
14541                 #endif
14542
14543   ;
14544   return 0;
14545 }
14546 _ACEOF
14547 rm -f conftest.$ac_objext
14548 if { (ac_try="$ac_compile"
14549 case "(($ac_try" in
14550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14551   *) ac_try_echo=$ac_try;;
14552 esac
14553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14554 $as_echo "$ac_try_echo") >&5
14555   (eval "$ac_compile") 2>conftest.er1
14556   ac_status=$?
14557   grep -v '^ *+' conftest.er1 >conftest.err
14558   rm -f conftest.er1
14559   cat conftest.err >&5
14560   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561   (exit $ac_status); } && {
14562          test -z "$ac_c_werror_flag" ||
14563          test ! -s conftest.err
14564        } && test -s conftest.$ac_objext; then
14565   ac_cv_c_bigendian=yes
14566 else
14567   $as_echo "$as_me: failed program was:" >&5
14568 sed 's/^/| /' conftest.$ac_ext >&5
14569
14570         ac_cv_c_bigendian=no
14571 fi
14572
14573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14574 else
14575   $as_echo "$as_me: failed program was:" >&5
14576 sed 's/^/| /' conftest.$ac_ext >&5
14577
14578
14579 fi
14580
14581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14582     fi
14583     if test $ac_cv_c_bigendian = unknown; then
14584       # Compile a test program.
14585       if test "$cross_compiling" = yes; then
14586   # Try to guess by grepping values from an object file.
14587          cat >conftest.$ac_ext <<_ACEOF
14588 /* confdefs.h.  */
14589 _ACEOF
14590 cat confdefs.h >>conftest.$ac_ext
14591 cat >>conftest.$ac_ext <<_ACEOF
14592 /* end confdefs.h.  */
14593 short int ascii_mm[] =
14594                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14595                 short int ascii_ii[] =
14596                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14597                 int use_ascii (int i) {
14598                   return ascii_mm[i] + ascii_ii[i];
14599                 }
14600                 short int ebcdic_ii[] =
14601                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14602                 short int ebcdic_mm[] =
14603                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14604                 int use_ebcdic (int i) {
14605                   return ebcdic_mm[i] + ebcdic_ii[i];
14606                 }
14607                 extern int foo;
14608
14609 int
14610 main ()
14611 {
14612 return use_ascii (foo) == use_ebcdic (foo);
14613   ;
14614   return 0;
14615 }
14616 _ACEOF
14617 rm -f conftest.$ac_objext
14618 if { (ac_try="$ac_compile"
14619 case "(($ac_try" in
14620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14621   *) ac_try_echo=$ac_try;;
14622 esac
14623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14624 $as_echo "$ac_try_echo") >&5
14625   (eval "$ac_compile") 2>conftest.er1
14626   ac_status=$?
14627   grep -v '^ *+' conftest.er1 >conftest.err
14628   rm -f conftest.er1
14629   cat conftest.err >&5
14630   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631   (exit $ac_status); } && {
14632          test -z "$ac_c_werror_flag" ||
14633          test ! -s conftest.err
14634        } && test -s conftest.$ac_objext; then
14635   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14636               ac_cv_c_bigendian=yes
14637             fi
14638             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14639               if test "$ac_cv_c_bigendian" = unknown; then
14640                 ac_cv_c_bigendian=no
14641               else
14642                 # finding both strings is unlikely to happen, but who knows?
14643                 ac_cv_c_bigendian=unknown
14644               fi
14645             fi
14646 else
14647   $as_echo "$as_me: failed program was:" >&5
14648 sed 's/^/| /' conftest.$ac_ext >&5
14649
14650
14651 fi
14652
14653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14654 else
14655   cat >conftest.$ac_ext <<_ACEOF
14656 /* confdefs.h.  */
14657 _ACEOF
14658 cat confdefs.h >>conftest.$ac_ext
14659 cat >>conftest.$ac_ext <<_ACEOF
14660 /* end confdefs.h.  */
14661 $ac_includes_default
14662 int
14663 main ()
14664 {
14665
14666              /* Are we little or big endian?  From Harbison&Steele.  */
14667              union
14668              {
14669                long int l;
14670                char c[sizeof (long int)];
14671              } u;
14672              u.l = 1;
14673              return u.c[sizeof (long int) - 1] == 1;
14674
14675   ;
14676   return 0;
14677 }
14678 _ACEOF
14679 rm -f conftest$ac_exeext
14680 if { (ac_try="$ac_link"
14681 case "(($ac_try" in
14682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14683   *) ac_try_echo=$ac_try;;
14684 esac
14685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14686 $as_echo "$ac_try_echo") >&5
14687   (eval "$ac_link") 2>&5
14688   ac_status=$?
14689   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14691   { (case "(($ac_try" in
14692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14693   *) ac_try_echo=$ac_try;;
14694 esac
14695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14696 $as_echo "$ac_try_echo") >&5
14697   (eval "$ac_try") 2>&5
14698   ac_status=$?
14699   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700   (exit $ac_status); }; }; then
14701   ac_cv_c_bigendian=no
14702 else
14703   $as_echo "$as_me: program exited with status $ac_status" >&5
14704 $as_echo "$as_me: failed program was:" >&5
14705 sed 's/^/| /' conftest.$ac_ext >&5
14706
14707 ( exit $ac_status )
14708 ac_cv_c_bigendian=yes
14709 fi
14710 rm -rf conftest.dSYM
14711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14712 fi
14713
14714
14715     fi
14716 fi
14717 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14718 $as_echo "$ac_cv_c_bigendian" >&6; }
14719  case $ac_cv_c_bigendian in #(
14720    yes)
14721      cat >>confdefs.h <<\_ACEOF
14722 #define WORDS_BIGENDIAN 1
14723 _ACEOF
14724 ;; #(
14725    no)
14726       ;; #(
14727    universal)
14728
14729 cat >>confdefs.h <<\_ACEOF
14730 #define AC_APPLE_UNIVERSAL_BUILD 1
14731 _ACEOF
14732
14733      ;; #(
14734    *)
14735      { { $as_echo "$as_me:$LINENO: error: unknown endianness
14736  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14737 $as_echo "$as_me: error: unknown endianness
14738  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14739    { (exit 1); exit 1; }; } ;;
14740  esac
14741
14742 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14743 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14744 if test "${ac_cv_c_const+set}" = set; then
14745   $as_echo_n "(cached) " >&6
14746 else
14747   cat >conftest.$ac_ext <<_ACEOF
14748 /* confdefs.h.  */
14749 _ACEOF
14750 cat confdefs.h >>conftest.$ac_ext
14751 cat >>conftest.$ac_ext <<_ACEOF
14752 /* end confdefs.h.  */
14753
14754 int
14755 main ()
14756 {
14757 /* FIXME: Include the comments suggested by Paul. */
14758 #ifndef __cplusplus
14759   /* Ultrix mips cc rejects this.  */
14760   typedef int charset[2];
14761   const charset cs;
14762   /* SunOS 4.1.1 cc rejects this.  */
14763   char const *const *pcpcc;
14764   char **ppc;
14765   /* NEC SVR4.0.2 mips cc rejects this.  */
14766   struct point {int x, y;};
14767   static struct point const zero = {0,0};
14768   /* AIX XL C 1.02.0.0 rejects this.
14769      It does not let you subtract one const X* pointer from another in
14770      an arm of an if-expression whose if-part is not a constant
14771      expression */
14772   const char *g = "string";
14773   pcpcc = &g + (g ? g-g : 0);
14774   /* HPUX 7.0 cc rejects these. */
14775   ++pcpcc;
14776   ppc = (char**) pcpcc;
14777   pcpcc = (char const *const *) ppc;
14778   { /* SCO 3.2v4 cc rejects this.  */
14779     char *t;
14780     char const *s = 0 ? (char *) 0 : (char const *) 0;
14781
14782     *t++ = 0;
14783     if (s) return 0;
14784   }
14785   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14786     int x[] = {25, 17};
14787     const int *foo = &x[0];
14788     ++foo;
14789   }
14790   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14791     typedef const int *iptr;
14792     iptr p = 0;
14793     ++p;
14794   }
14795   { /* AIX XL C 1.02.0.0 rejects this saying
14796        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14797     struct s { int j; const int *ap[3]; };
14798     struct s *b; b->j = 5;
14799   }
14800   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14801     const int foo = 10;
14802     if (!foo) return 0;
14803   }
14804   return !cs[0] && !zero.x;
14805 #endif
14806
14807   ;
14808   return 0;
14809 }
14810 _ACEOF
14811 rm -f conftest.$ac_objext
14812 if { (ac_try="$ac_compile"
14813 case "(($ac_try" in
14814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14815   *) ac_try_echo=$ac_try;;
14816 esac
14817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14818 $as_echo "$ac_try_echo") >&5
14819   (eval "$ac_compile") 2>conftest.er1
14820   ac_status=$?
14821   grep -v '^ *+' conftest.er1 >conftest.err
14822   rm -f conftest.er1
14823   cat conftest.err >&5
14824   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825   (exit $ac_status); } && {
14826          test -z "$ac_c_werror_flag" ||
14827          test ! -s conftest.err
14828        } && test -s conftest.$ac_objext; then
14829   ac_cv_c_const=yes
14830 else
14831   $as_echo "$as_me: failed program was:" >&5
14832 sed 's/^/| /' conftest.$ac_ext >&5
14833
14834         ac_cv_c_const=no
14835 fi
14836
14837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14838 fi
14839 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14840 $as_echo "$ac_cv_c_const" >&6; }
14841 if test $ac_cv_c_const = no; then
14842
14843 cat >>confdefs.h <<\_ACEOF
14844 #define const /**/
14845 _ACEOF
14846
14847 fi
14848
14849 { $as_echo "$as_me:$LINENO: checking for inline" >&5
14850 $as_echo_n "checking for inline... " >&6; }
14851 if test "${ac_cv_c_inline+set}" = set; then
14852   $as_echo_n "(cached) " >&6
14853 else
14854   ac_cv_c_inline=no
14855 for ac_kw in inline __inline__ __inline; do
14856   cat >conftest.$ac_ext <<_ACEOF
14857 /* confdefs.h.  */
14858 _ACEOF
14859 cat confdefs.h >>conftest.$ac_ext
14860 cat >>conftest.$ac_ext <<_ACEOF
14861 /* end confdefs.h.  */
14862 #ifndef __cplusplus
14863 typedef int foo_t;
14864 static $ac_kw foo_t static_foo () {return 0; }
14865 $ac_kw foo_t foo () {return 0; }
14866 #endif
14867
14868 _ACEOF
14869 rm -f conftest.$ac_objext
14870 if { (ac_try="$ac_compile"
14871 case "(($ac_try" in
14872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14873   *) ac_try_echo=$ac_try;;
14874 esac
14875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14876 $as_echo "$ac_try_echo") >&5
14877   (eval "$ac_compile") 2>conftest.er1
14878   ac_status=$?
14879   grep -v '^ *+' conftest.er1 >conftest.err
14880   rm -f conftest.er1
14881   cat conftest.err >&5
14882   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883   (exit $ac_status); } && {
14884          test -z "$ac_c_werror_flag" ||
14885          test ! -s conftest.err
14886        } && test -s conftest.$ac_objext; then
14887   ac_cv_c_inline=$ac_kw
14888 else
14889   $as_echo "$as_me: failed program was:" >&5
14890 sed 's/^/| /' conftest.$ac_ext >&5
14891
14892
14893 fi
14894
14895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14896   test "$ac_cv_c_inline" != no && break
14897 done
14898
14899 fi
14900 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14901 $as_echo "$ac_cv_c_inline" >&6; }
14902
14903
14904 case $ac_cv_c_inline in
14905   inline | yes) ;;
14906   *)
14907     case $ac_cv_c_inline in
14908       no) ac_val=;;
14909       *) ac_val=$ac_cv_c_inline;;
14910     esac
14911     cat >>confdefs.h <<_ACEOF
14912 #ifndef __cplusplus
14913 #define inline $ac_val
14914 #endif
14915 _ACEOF
14916     ;;
14917 esac
14918
14919 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
14920 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
14921 if test "${pgac_cv_c_inline_quietly+set}" = set; then
14922   $as_echo_n "(cached) " >&6
14923 else
14924   pgac_cv_c_inline_quietly=no
14925   if test "$ac_cv_c_inline" != no; then
14926     pgac_c_inline_save_werror=$ac_c_werror_flag
14927     ac_c_werror_flag=yes
14928     cat >conftest.$ac_ext <<_ACEOF
14929 /* confdefs.h.  */
14930 _ACEOF
14931 cat confdefs.h >>conftest.$ac_ext
14932 cat >>conftest.$ac_ext <<_ACEOF
14933 /* end confdefs.h.  */
14934 static inline int fun () {return 0;}
14935 int
14936 main ()
14937 {
14938
14939   ;
14940   return 0;
14941 }
14942 _ACEOF
14943 rm -f conftest.$ac_objext conftest$ac_exeext
14944 if { (ac_try="$ac_link"
14945 case "(($ac_try" in
14946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14947   *) ac_try_echo=$ac_try;;
14948 esac
14949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14950 $as_echo "$ac_try_echo") >&5
14951   (eval "$ac_link") 2>conftest.er1
14952   ac_status=$?
14953   grep -v '^ *+' conftest.er1 >conftest.err
14954   rm -f conftest.er1
14955   cat conftest.err >&5
14956   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957   (exit $ac_status); } && {
14958          test -z "$ac_c_werror_flag" ||
14959          test ! -s conftest.err
14960        } && test -s conftest$ac_exeext && {
14961          test "$cross_compiling" = yes ||
14962          $as_test_x conftest$ac_exeext
14963        }; then
14964   pgac_cv_c_inline_quietly=yes
14965 else
14966   $as_echo "$as_me: failed program was:" >&5
14967 sed 's/^/| /' conftest.$ac_ext >&5
14968
14969
14970 fi
14971
14972 rm -rf conftest.dSYM
14973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14974       conftest$ac_exeext conftest.$ac_ext
14975     ac_c_werror_flag=$pgac_c_inline_save_werror
14976   fi
14977 fi
14978 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
14979 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
14980 if test "$pgac_cv_c_inline_quietly" != no; then
14981
14982 cat >>confdefs.h <<_ACEOF
14983 #define USE_INLINE 1
14984 _ACEOF
14985
14986 fi
14987
14988 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
14989 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
14990 if test "${ac_cv_c_stringize+set}" = set; then
14991   $as_echo_n "(cached) " >&6
14992 else
14993   cat >conftest.$ac_ext <<_ACEOF
14994 /* confdefs.h.  */
14995 _ACEOF
14996 cat confdefs.h >>conftest.$ac_ext
14997 cat >>conftest.$ac_ext <<_ACEOF
14998 /* end confdefs.h.  */
14999 #define x(y) #y
15000
15001 char *s = x(teststring);
15002 _ACEOF
15003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15004   $EGREP "#teststring" >/dev/null 2>&1; then
15005   ac_cv_c_stringize=no
15006 else
15007   ac_cv_c_stringize=yes
15008 fi
15009 rm -f conftest*
15010
15011 fi
15012 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
15013 $as_echo "$ac_cv_c_stringize" >&6; }
15014 if test $ac_cv_c_stringize = yes; then
15015
15016 cat >>confdefs.h <<\_ACEOF
15017 #define HAVE_STRINGIZE 1
15018 _ACEOF
15019
15020 fi
15021
15022
15023   { $as_echo "$as_me:$LINENO: checking for flexible array members" >&5
15024 $as_echo_n "checking for flexible array members... " >&6; }
15025 if test "${ac_cv_c_flexmember+set}" = set; then
15026   $as_echo_n "(cached) " >&6
15027 else
15028   cat >conftest.$ac_ext <<_ACEOF
15029 /* confdefs.h.  */
15030 _ACEOF
15031 cat confdefs.h >>conftest.$ac_ext
15032 cat >>conftest.$ac_ext <<_ACEOF
15033 /* end confdefs.h.  */
15034 #include <stdlib.h>
15035             #include <stdio.h>
15036             #include <stddef.h>
15037             struct s { int n; double d[]; };
15038 int
15039 main ()
15040 {
15041 int m = getchar ();
15042             struct s *p = malloc (offsetof (struct s, d)
15043                                   + m * sizeof (double));
15044             p->d[0] = 0.0;
15045             return p->d != (double *) NULL;
15046   ;
15047   return 0;
15048 }
15049 _ACEOF
15050 rm -f conftest.$ac_objext
15051 if { (ac_try="$ac_compile"
15052 case "(($ac_try" in
15053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15054   *) ac_try_echo=$ac_try;;
15055 esac
15056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15057 $as_echo "$ac_try_echo") >&5
15058   (eval "$ac_compile") 2>conftest.er1
15059   ac_status=$?
15060   grep -v '^ *+' conftest.er1 >conftest.err
15061   rm -f conftest.er1
15062   cat conftest.err >&5
15063   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064   (exit $ac_status); } && {
15065          test -z "$ac_c_werror_flag" ||
15066          test ! -s conftest.err
15067        } && test -s conftest.$ac_objext; then
15068   ac_cv_c_flexmember=yes
15069 else
15070   $as_echo "$as_me: failed program was:" >&5
15071 sed 's/^/| /' conftest.$ac_ext >&5
15072
15073         ac_cv_c_flexmember=no
15074 fi
15075
15076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15077 fi
15078 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_flexmember" >&5
15079 $as_echo "$ac_cv_c_flexmember" >&6; }
15080   if test $ac_cv_c_flexmember = yes; then
15081
15082 cat >>confdefs.h <<\_ACEOF
15083 #define FLEXIBLE_ARRAY_MEMBER /**/
15084 _ACEOF
15085
15086   else
15087     cat >>confdefs.h <<\_ACEOF
15088 #define FLEXIBLE_ARRAY_MEMBER 1
15089 _ACEOF
15090
15091   fi
15092
15093 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
15094 $as_echo_n "checking for signed types... " >&6; }
15095 if test "${pgac_cv_c_signed+set}" = set; then
15096   $as_echo_n "(cached) " >&6
15097 else
15098   cat >conftest.$ac_ext <<_ACEOF
15099 /* confdefs.h.  */
15100 _ACEOF
15101 cat confdefs.h >>conftest.$ac_ext
15102 cat >>conftest.$ac_ext <<_ACEOF
15103 /* end confdefs.h.  */
15104
15105 int
15106 main ()
15107 {
15108 signed char c; signed short s; signed int i;
15109   ;
15110   return 0;
15111 }
15112 _ACEOF
15113 rm -f conftest.$ac_objext
15114 if { (ac_try="$ac_compile"
15115 case "(($ac_try" in
15116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15117   *) ac_try_echo=$ac_try;;
15118 esac
15119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15120 $as_echo "$ac_try_echo") >&5
15121   (eval "$ac_compile") 2>conftest.er1
15122   ac_status=$?
15123   grep -v '^ *+' conftest.er1 >conftest.err
15124   rm -f conftest.er1
15125   cat conftest.err >&5
15126   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127   (exit $ac_status); } && {
15128          test -z "$ac_c_werror_flag" ||
15129          test ! -s conftest.err
15130        } && test -s conftest.$ac_objext; then
15131   pgac_cv_c_signed=yes
15132 else
15133   $as_echo "$as_me: failed program was:" >&5
15134 sed 's/^/| /' conftest.$ac_ext >&5
15135
15136         pgac_cv_c_signed=no
15137 fi
15138
15139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15140 fi
15141 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
15142 $as_echo "$pgac_cv_c_signed" >&6; }
15143 if test x"$pgac_cv_c_signed" = xno ; then
15144
15145 cat >>confdefs.h <<\_ACEOF
15146 #define signed /**/
15147 _ACEOF
15148
15149 fi
15150 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
15151 $as_echo_n "checking for working volatile... " >&6; }
15152 if test "${ac_cv_c_volatile+set}" = set; then
15153   $as_echo_n "(cached) " >&6
15154 else
15155   cat >conftest.$ac_ext <<_ACEOF
15156 /* confdefs.h.  */
15157 _ACEOF
15158 cat confdefs.h >>conftest.$ac_ext
15159 cat >>conftest.$ac_ext <<_ACEOF
15160 /* end confdefs.h.  */
15161
15162 int
15163 main ()
15164 {
15165
15166 volatile int x;
15167 int * volatile y = (int *) 0;
15168 return !x && !y;
15169   ;
15170   return 0;
15171 }
15172 _ACEOF
15173 rm -f conftest.$ac_objext
15174 if { (ac_try="$ac_compile"
15175 case "(($ac_try" in
15176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15177   *) ac_try_echo=$ac_try;;
15178 esac
15179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15180 $as_echo "$ac_try_echo") >&5
15181   (eval "$ac_compile") 2>conftest.er1
15182   ac_status=$?
15183   grep -v '^ *+' conftest.er1 >conftest.err
15184   rm -f conftest.er1
15185   cat conftest.err >&5
15186   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187   (exit $ac_status); } && {
15188          test -z "$ac_c_werror_flag" ||
15189          test ! -s conftest.err
15190        } && test -s conftest.$ac_objext; then
15191   ac_cv_c_volatile=yes
15192 else
15193   $as_echo "$as_me: failed program was:" >&5
15194 sed 's/^/| /' conftest.$ac_ext >&5
15195
15196         ac_cv_c_volatile=no
15197 fi
15198
15199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15200 fi
15201 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
15202 $as_echo "$ac_cv_c_volatile" >&6; }
15203 if test $ac_cv_c_volatile = no; then
15204
15205 cat >>confdefs.h <<\_ACEOF
15206 #define volatile /**/
15207 _ACEOF
15208
15209 fi
15210
15211 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
15212 $as_echo_n "checking for __func__... " >&6; }
15213 if test "${pgac_cv_funcname_func_support+set}" = set; then
15214   $as_echo_n "(cached) " >&6
15215 else
15216   cat >conftest.$ac_ext <<_ACEOF
15217 /* confdefs.h.  */
15218 _ACEOF
15219 cat confdefs.h >>conftest.$ac_ext
15220 cat >>conftest.$ac_ext <<_ACEOF
15221 /* end confdefs.h.  */
15222 #include <stdio.h>
15223 int
15224 main ()
15225 {
15226 printf("%s\n", __func__);
15227   ;
15228   return 0;
15229 }
15230 _ACEOF
15231 rm -f conftest.$ac_objext
15232 if { (ac_try="$ac_compile"
15233 case "(($ac_try" in
15234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15235   *) ac_try_echo=$ac_try;;
15236 esac
15237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15238 $as_echo "$ac_try_echo") >&5
15239   (eval "$ac_compile") 2>conftest.er1
15240   ac_status=$?
15241   grep -v '^ *+' conftest.er1 >conftest.err
15242   rm -f conftest.er1
15243   cat conftest.err >&5
15244   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245   (exit $ac_status); } && {
15246          test -z "$ac_c_werror_flag" ||
15247          test ! -s conftest.err
15248        } && test -s conftest.$ac_objext; then
15249   pgac_cv_funcname_func_support=yes
15250 else
15251   $as_echo "$as_me: failed program was:" >&5
15252 sed 's/^/| /' conftest.$ac_ext >&5
15253
15254         pgac_cv_funcname_func_support=no
15255 fi
15256
15257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15258 fi
15259 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
15260 $as_echo "$pgac_cv_funcname_func_support" >&6; }
15261 if test x"$pgac_cv_funcname_func_support" = xyes ; then
15262
15263 cat >>confdefs.h <<\_ACEOF
15264 #define HAVE_FUNCNAME__FUNC 1
15265 _ACEOF
15266
15267 else
15268 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
15269 $as_echo_n "checking for __FUNCTION__... " >&6; }
15270 if test "${pgac_cv_funcname_function_support+set}" = set; then
15271   $as_echo_n "(cached) " >&6
15272 else
15273   cat >conftest.$ac_ext <<_ACEOF
15274 /* confdefs.h.  */
15275 _ACEOF
15276 cat confdefs.h >>conftest.$ac_ext
15277 cat >>conftest.$ac_ext <<_ACEOF
15278 /* end confdefs.h.  */
15279 #include <stdio.h>
15280 int
15281 main ()
15282 {
15283 printf("%s\n", __FUNCTION__);
15284   ;
15285   return 0;
15286 }
15287 _ACEOF
15288 rm -f conftest.$ac_objext
15289 if { (ac_try="$ac_compile"
15290 case "(($ac_try" in
15291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15292   *) ac_try_echo=$ac_try;;
15293 esac
15294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15295 $as_echo "$ac_try_echo") >&5
15296   (eval "$ac_compile") 2>conftest.er1
15297   ac_status=$?
15298   grep -v '^ *+' conftest.er1 >conftest.err
15299   rm -f conftest.er1
15300   cat conftest.err >&5
15301   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302   (exit $ac_status); } && {
15303          test -z "$ac_c_werror_flag" ||
15304          test ! -s conftest.err
15305        } && test -s conftest.$ac_objext; then
15306   pgac_cv_funcname_function_support=yes
15307 else
15308   $as_echo "$as_me: failed program was:" >&5
15309 sed 's/^/| /' conftest.$ac_ext >&5
15310
15311         pgac_cv_funcname_function_support=no
15312 fi
15313
15314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15315 fi
15316 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
15317 $as_echo "$pgac_cv_funcname_function_support" >&6; }
15318 if test x"$pgac_cv_funcname_function_support" = xyes ; then
15319
15320 cat >>confdefs.h <<\_ACEOF
15321 #define HAVE_FUNCNAME__FUNCTION 1
15322 _ACEOF
15323
15324 fi
15325 fi
15326 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
15327 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
15328 if test "${ac_cv_struct_tm+set}" = set; then
15329   $as_echo_n "(cached) " >&6
15330 else
15331   cat >conftest.$ac_ext <<_ACEOF
15332 /* confdefs.h.  */
15333 _ACEOF
15334 cat confdefs.h >>conftest.$ac_ext
15335 cat >>conftest.$ac_ext <<_ACEOF
15336 /* end confdefs.h.  */
15337 #include <sys/types.h>
15338 #include <time.h>
15339
15340 int
15341 main ()
15342 {
15343 struct tm tm;
15344                                      int *p = &tm.tm_sec;
15345                                      return !p;
15346   ;
15347   return 0;
15348 }
15349 _ACEOF
15350 rm -f conftest.$ac_objext
15351 if { (ac_try="$ac_compile"
15352 case "(($ac_try" in
15353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354   *) ac_try_echo=$ac_try;;
15355 esac
15356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15357 $as_echo "$ac_try_echo") >&5
15358   (eval "$ac_compile") 2>conftest.er1
15359   ac_status=$?
15360   grep -v '^ *+' conftest.er1 >conftest.err
15361   rm -f conftest.er1
15362   cat conftest.err >&5
15363   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364   (exit $ac_status); } && {
15365          test -z "$ac_c_werror_flag" ||
15366          test ! -s conftest.err
15367        } && test -s conftest.$ac_objext; then
15368   ac_cv_struct_tm=time.h
15369 else
15370   $as_echo "$as_me: failed program was:" >&5
15371 sed 's/^/| /' conftest.$ac_ext >&5
15372
15373         ac_cv_struct_tm=sys/time.h
15374 fi
15375
15376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15377 fi
15378 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
15379 $as_echo "$ac_cv_struct_tm" >&6; }
15380 if test $ac_cv_struct_tm = sys/time.h; then
15381
15382 cat >>confdefs.h <<\_ACEOF
15383 #define TM_IN_SYS_TIME 1
15384 _ACEOF
15385
15386 fi
15387
15388 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
15389 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
15390 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
15391   $as_echo_n "(cached) " >&6
15392 else
15393   cat >conftest.$ac_ext <<_ACEOF
15394 /* confdefs.h.  */
15395 _ACEOF
15396 cat confdefs.h >>conftest.$ac_ext
15397 cat >>conftest.$ac_ext <<_ACEOF
15398 /* end confdefs.h.  */
15399 #include <sys/types.h>
15400 #include <$ac_cv_struct_tm>
15401
15402
15403 int
15404 main ()
15405 {
15406 static struct tm ac_aggr;
15407 if (ac_aggr.tm_zone)
15408 return 0;
15409   ;
15410   return 0;
15411 }
15412 _ACEOF
15413 rm -f conftest.$ac_objext
15414 if { (ac_try="$ac_compile"
15415 case "(($ac_try" in
15416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15417   *) ac_try_echo=$ac_try;;
15418 esac
15419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15420 $as_echo "$ac_try_echo") >&5
15421   (eval "$ac_compile") 2>conftest.er1
15422   ac_status=$?
15423   grep -v '^ *+' conftest.er1 >conftest.err
15424   rm -f conftest.er1
15425   cat conftest.err >&5
15426   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427   (exit $ac_status); } && {
15428          test -z "$ac_c_werror_flag" ||
15429          test ! -s conftest.err
15430        } && test -s conftest.$ac_objext; then
15431   ac_cv_member_struct_tm_tm_zone=yes
15432 else
15433   $as_echo "$as_me: failed program was:" >&5
15434 sed 's/^/| /' conftest.$ac_ext >&5
15435
15436         cat >conftest.$ac_ext <<_ACEOF
15437 /* confdefs.h.  */
15438 _ACEOF
15439 cat confdefs.h >>conftest.$ac_ext
15440 cat >>conftest.$ac_ext <<_ACEOF
15441 /* end confdefs.h.  */
15442 #include <sys/types.h>
15443 #include <$ac_cv_struct_tm>
15444
15445
15446 int
15447 main ()
15448 {
15449 static struct tm ac_aggr;
15450 if (sizeof ac_aggr.tm_zone)
15451 return 0;
15452   ;
15453   return 0;
15454 }
15455 _ACEOF
15456 rm -f conftest.$ac_objext
15457 if { (ac_try="$ac_compile"
15458 case "(($ac_try" in
15459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15460   *) ac_try_echo=$ac_try;;
15461 esac
15462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15463 $as_echo "$ac_try_echo") >&5
15464   (eval "$ac_compile") 2>conftest.er1
15465   ac_status=$?
15466   grep -v '^ *+' conftest.er1 >conftest.err
15467   rm -f conftest.er1
15468   cat conftest.err >&5
15469   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470   (exit $ac_status); } && {
15471          test -z "$ac_c_werror_flag" ||
15472          test ! -s conftest.err
15473        } && test -s conftest.$ac_objext; then
15474   ac_cv_member_struct_tm_tm_zone=yes
15475 else
15476   $as_echo "$as_me: failed program was:" >&5
15477 sed 's/^/| /' conftest.$ac_ext >&5
15478
15479         ac_cv_member_struct_tm_tm_zone=no
15480 fi
15481
15482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15483 fi
15484
15485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15486 fi
15487 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
15488 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
15489 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
15490
15491 cat >>confdefs.h <<_ACEOF
15492 #define HAVE_STRUCT_TM_TM_ZONE 1
15493 _ACEOF
15494
15495
15496 fi
15497
15498 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
15499
15500 cat >>confdefs.h <<\_ACEOF
15501 #define HAVE_TM_ZONE 1
15502 _ACEOF
15503
15504 fi
15505 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
15506 $as_echo_n "checking for tzname... " >&6; }
15507 if test "${ac_cv_var_tzname+set}" = set; then
15508   $as_echo_n "(cached) " >&6
15509 else
15510   cat >conftest.$ac_ext <<_ACEOF
15511 /* confdefs.h.  */
15512 _ACEOF
15513 cat confdefs.h >>conftest.$ac_ext
15514 cat >>conftest.$ac_ext <<_ACEOF
15515 /* end confdefs.h.  */
15516 #include <time.h>
15517 #ifndef tzname /* For SGI.  */
15518 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
15519 #endif
15520
15521 int
15522 main ()
15523 {
15524 atoi(*tzname);
15525   ;
15526   return 0;
15527 }
15528 _ACEOF
15529 rm -f conftest.$ac_objext conftest$ac_exeext
15530 if { (ac_try="$ac_link"
15531 case "(($ac_try" in
15532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15533   *) ac_try_echo=$ac_try;;
15534 esac
15535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15536 $as_echo "$ac_try_echo") >&5
15537   (eval "$ac_link") 2>conftest.er1
15538   ac_status=$?
15539   grep -v '^ *+' conftest.er1 >conftest.err
15540   rm -f conftest.er1
15541   cat conftest.err >&5
15542   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543   (exit $ac_status); } && {
15544          test -z "$ac_c_werror_flag" ||
15545          test ! -s conftest.err
15546        } && test -s conftest$ac_exeext && {
15547          test "$cross_compiling" = yes ||
15548          $as_test_x conftest$ac_exeext
15549        }; then
15550   ac_cv_var_tzname=yes
15551 else
15552   $as_echo "$as_me: failed program was:" >&5
15553 sed 's/^/| /' conftest.$ac_ext >&5
15554
15555         ac_cv_var_tzname=no
15556 fi
15557
15558 rm -rf conftest.dSYM
15559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15560       conftest$ac_exeext conftest.$ac_ext
15561 fi
15562 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15563 $as_echo "$ac_cv_var_tzname" >&6; }
15564 if test $ac_cv_var_tzname = yes; then
15565
15566 cat >>confdefs.h <<\_ACEOF
15567 #define HAVE_TZNAME 1
15568 _ACEOF
15569
15570 fi
15571
15572 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
15573 $as_echo_n "checking for union semun... " >&6; }
15574 if test "${ac_cv_type_union_semun+set}" = set; then
15575   $as_echo_n "(cached) " >&6
15576 else
15577   ac_cv_type_union_semun=no
15578 cat >conftest.$ac_ext <<_ACEOF
15579 /* confdefs.h.  */
15580 _ACEOF
15581 cat confdefs.h >>conftest.$ac_ext
15582 cat >>conftest.$ac_ext <<_ACEOF
15583 /* end confdefs.h.  */
15584 #include <sys/types.h>
15585 #include <sys/ipc.h>
15586 #include <sys/sem.h>
15587
15588 int
15589 main ()
15590 {
15591 if (sizeof (union semun))
15592        return 0;
15593   ;
15594   return 0;
15595 }
15596 _ACEOF
15597 rm -f conftest.$ac_objext
15598 if { (ac_try="$ac_compile"
15599 case "(($ac_try" in
15600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15601   *) ac_try_echo=$ac_try;;
15602 esac
15603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15604 $as_echo "$ac_try_echo") >&5
15605   (eval "$ac_compile") 2>conftest.er1
15606   ac_status=$?
15607   grep -v '^ *+' conftest.er1 >conftest.err
15608   rm -f conftest.er1
15609   cat conftest.err >&5
15610   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611   (exit $ac_status); } && {
15612          test -z "$ac_c_werror_flag" ||
15613          test ! -s conftest.err
15614        } && test -s conftest.$ac_objext; then
15615   cat >conftest.$ac_ext <<_ACEOF
15616 /* confdefs.h.  */
15617 _ACEOF
15618 cat confdefs.h >>conftest.$ac_ext
15619 cat >>conftest.$ac_ext <<_ACEOF
15620 /* end confdefs.h.  */
15621 #include <sys/types.h>
15622 #include <sys/ipc.h>
15623 #include <sys/sem.h>
15624
15625 int
15626 main ()
15627 {
15628 if (sizeof ((union semun)))
15629           return 0;
15630   ;
15631   return 0;
15632 }
15633 _ACEOF
15634 rm -f conftest.$ac_objext
15635 if { (ac_try="$ac_compile"
15636 case "(($ac_try" in
15637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15638   *) ac_try_echo=$ac_try;;
15639 esac
15640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15641 $as_echo "$ac_try_echo") >&5
15642   (eval "$ac_compile") 2>conftest.er1
15643   ac_status=$?
15644   grep -v '^ *+' conftest.er1 >conftest.err
15645   rm -f conftest.er1
15646   cat conftest.err >&5
15647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648   (exit $ac_status); } && {
15649          test -z "$ac_c_werror_flag" ||
15650          test ! -s conftest.err
15651        } && test -s conftest.$ac_objext; then
15652   :
15653 else
15654   $as_echo "$as_me: failed program was:" >&5
15655 sed 's/^/| /' conftest.$ac_ext >&5
15656
15657         ac_cv_type_union_semun=yes
15658 fi
15659
15660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15661 else
15662   $as_echo "$as_me: failed program was:" >&5
15663 sed 's/^/| /' conftest.$ac_ext >&5
15664
15665
15666 fi
15667
15668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15669 fi
15670 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
15671 $as_echo "$ac_cv_type_union_semun" >&6; }
15672 if test "x$ac_cv_type_union_semun" = x""yes; then
15673
15674 cat >>confdefs.h <<_ACEOF
15675 #define HAVE_UNION_SEMUN 1
15676 _ACEOF
15677
15678
15679 fi
15680
15681 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
15682 $as_echo_n "checking for struct sockaddr_un... " >&6; }
15683 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
15684   $as_echo_n "(cached) " >&6
15685 else
15686   ac_cv_type_struct_sockaddr_un=no
15687 cat >conftest.$ac_ext <<_ACEOF
15688 /* confdefs.h.  */
15689 _ACEOF
15690 cat confdefs.h >>conftest.$ac_ext
15691 cat >>conftest.$ac_ext <<_ACEOF
15692 /* end confdefs.h.  */
15693 #include <sys/types.h>
15694 #ifdef HAVE_SYS_UN_H
15695 #include <sys/un.h>
15696 #endif
15697
15698
15699 int
15700 main ()
15701 {
15702 if (sizeof (struct sockaddr_un))
15703        return 0;
15704   ;
15705   return 0;
15706 }
15707 _ACEOF
15708 rm -f conftest.$ac_objext
15709 if { (ac_try="$ac_compile"
15710 case "(($ac_try" in
15711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15712   *) ac_try_echo=$ac_try;;
15713 esac
15714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15715 $as_echo "$ac_try_echo") >&5
15716   (eval "$ac_compile") 2>conftest.er1
15717   ac_status=$?
15718   grep -v '^ *+' conftest.er1 >conftest.err
15719   rm -f conftest.er1
15720   cat conftest.err >&5
15721   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722   (exit $ac_status); } && {
15723          test -z "$ac_c_werror_flag" ||
15724          test ! -s conftest.err
15725        } && test -s conftest.$ac_objext; then
15726   cat >conftest.$ac_ext <<_ACEOF
15727 /* confdefs.h.  */
15728 _ACEOF
15729 cat confdefs.h >>conftest.$ac_ext
15730 cat >>conftest.$ac_ext <<_ACEOF
15731 /* end confdefs.h.  */
15732 #include <sys/types.h>
15733 #ifdef HAVE_SYS_UN_H
15734 #include <sys/un.h>
15735 #endif
15736
15737
15738 int
15739 main ()
15740 {
15741 if (sizeof ((struct sockaddr_un)))
15742           return 0;
15743   ;
15744   return 0;
15745 }
15746 _ACEOF
15747 rm -f conftest.$ac_objext
15748 if { (ac_try="$ac_compile"
15749 case "(($ac_try" in
15750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15751   *) ac_try_echo=$ac_try;;
15752 esac
15753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15754 $as_echo "$ac_try_echo") >&5
15755   (eval "$ac_compile") 2>conftest.er1
15756   ac_status=$?
15757   grep -v '^ *+' conftest.er1 >conftest.err
15758   rm -f conftest.er1
15759   cat conftest.err >&5
15760   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761   (exit $ac_status); } && {
15762          test -z "$ac_c_werror_flag" ||
15763          test ! -s conftest.err
15764        } && test -s conftest.$ac_objext; then
15765   :
15766 else
15767   $as_echo "$as_me: failed program was:" >&5
15768 sed 's/^/| /' conftest.$ac_ext >&5
15769
15770         ac_cv_type_struct_sockaddr_un=yes
15771 fi
15772
15773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15774 else
15775   $as_echo "$as_me: failed program was:" >&5
15776 sed 's/^/| /' conftest.$ac_ext >&5
15777
15778
15779 fi
15780
15781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15782 fi
15783 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
15784 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
15785 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
15786
15787 cat >>confdefs.h <<_ACEOF
15788 #define HAVE_STRUCT_SOCKADDR_UN 1
15789 _ACEOF
15790
15791
15792 cat >>confdefs.h <<\_ACEOF
15793 #define HAVE_UNIX_SOCKETS 1
15794 _ACEOF
15795
15796 fi
15797
15798 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
15799 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
15800 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
15801   $as_echo_n "(cached) " >&6
15802 else
15803   ac_cv_type_struct_sockaddr_storage=no
15804 cat >conftest.$ac_ext <<_ACEOF
15805 /* confdefs.h.  */
15806 _ACEOF
15807 cat confdefs.h >>conftest.$ac_ext
15808 cat >>conftest.$ac_ext <<_ACEOF
15809 /* end confdefs.h.  */
15810 #include <sys/types.h>
15811 #ifdef HAVE_SYS_SOCKET_H
15812 #include <sys/socket.h>
15813 #endif
15814
15815
15816 int
15817 main ()
15818 {
15819 if (sizeof (struct sockaddr_storage))
15820        return 0;
15821   ;
15822   return 0;
15823 }
15824 _ACEOF
15825 rm -f conftest.$ac_objext
15826 if { (ac_try="$ac_compile"
15827 case "(($ac_try" in
15828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15829   *) ac_try_echo=$ac_try;;
15830 esac
15831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15832 $as_echo "$ac_try_echo") >&5
15833   (eval "$ac_compile") 2>conftest.er1
15834   ac_status=$?
15835   grep -v '^ *+' conftest.er1 >conftest.err
15836   rm -f conftest.er1
15837   cat conftest.err >&5
15838   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839   (exit $ac_status); } && {
15840          test -z "$ac_c_werror_flag" ||
15841          test ! -s conftest.err
15842        } && test -s conftest.$ac_objext; then
15843   cat >conftest.$ac_ext <<_ACEOF
15844 /* confdefs.h.  */
15845 _ACEOF
15846 cat confdefs.h >>conftest.$ac_ext
15847 cat >>conftest.$ac_ext <<_ACEOF
15848 /* end confdefs.h.  */
15849 #include <sys/types.h>
15850 #ifdef HAVE_SYS_SOCKET_H
15851 #include <sys/socket.h>
15852 #endif
15853
15854
15855 int
15856 main ()
15857 {
15858 if (sizeof ((struct sockaddr_storage)))
15859           return 0;
15860   ;
15861   return 0;
15862 }
15863 _ACEOF
15864 rm -f conftest.$ac_objext
15865 if { (ac_try="$ac_compile"
15866 case "(($ac_try" in
15867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15868   *) ac_try_echo=$ac_try;;
15869 esac
15870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15871 $as_echo "$ac_try_echo") >&5
15872   (eval "$ac_compile") 2>conftest.er1
15873   ac_status=$?
15874   grep -v '^ *+' conftest.er1 >conftest.err
15875   rm -f conftest.er1
15876   cat conftest.err >&5
15877   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878   (exit $ac_status); } && {
15879          test -z "$ac_c_werror_flag" ||
15880          test ! -s conftest.err
15881        } && test -s conftest.$ac_objext; then
15882   :
15883 else
15884   $as_echo "$as_me: failed program was:" >&5
15885 sed 's/^/| /' conftest.$ac_ext >&5
15886
15887         ac_cv_type_struct_sockaddr_storage=yes
15888 fi
15889
15890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15891 else
15892   $as_echo "$as_me: failed program was:" >&5
15893 sed 's/^/| /' conftest.$ac_ext >&5
15894
15895
15896 fi
15897
15898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15899 fi
15900 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
15901 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
15902 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
15903
15904 cat >>confdefs.h <<_ACEOF
15905 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
15906 _ACEOF
15907
15908
15909 fi
15910
15911 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
15912 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
15913 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
15914   $as_echo_n "(cached) " >&6
15915 else
15916   cat >conftest.$ac_ext <<_ACEOF
15917 /* confdefs.h.  */
15918 _ACEOF
15919 cat confdefs.h >>conftest.$ac_ext
15920 cat >>conftest.$ac_ext <<_ACEOF
15921 /* end confdefs.h.  */
15922 #include <sys/types.h>
15923 #ifdef HAVE_SYS_SOCKET_H
15924 #include <sys/socket.h>
15925 #endif
15926
15927
15928 int
15929 main ()
15930 {
15931 static struct sockaddr_storage ac_aggr;
15932 if (ac_aggr.ss_family)
15933 return 0;
15934   ;
15935   return 0;
15936 }
15937 _ACEOF
15938 rm -f conftest.$ac_objext
15939 if { (ac_try="$ac_compile"
15940 case "(($ac_try" in
15941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15942   *) ac_try_echo=$ac_try;;
15943 esac
15944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15945 $as_echo "$ac_try_echo") >&5
15946   (eval "$ac_compile") 2>conftest.er1
15947   ac_status=$?
15948   grep -v '^ *+' conftest.er1 >conftest.err
15949   rm -f conftest.er1
15950   cat conftest.err >&5
15951   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952   (exit $ac_status); } && {
15953          test -z "$ac_c_werror_flag" ||
15954          test ! -s conftest.err
15955        } && test -s conftest.$ac_objext; then
15956   ac_cv_member_struct_sockaddr_storage_ss_family=yes
15957 else
15958   $as_echo "$as_me: failed program was:" >&5
15959 sed 's/^/| /' conftest.$ac_ext >&5
15960
15961         cat >conftest.$ac_ext <<_ACEOF
15962 /* confdefs.h.  */
15963 _ACEOF
15964 cat confdefs.h >>conftest.$ac_ext
15965 cat >>conftest.$ac_ext <<_ACEOF
15966 /* end confdefs.h.  */
15967 #include <sys/types.h>
15968 #ifdef HAVE_SYS_SOCKET_H
15969 #include <sys/socket.h>
15970 #endif
15971
15972
15973 int
15974 main ()
15975 {
15976 static struct sockaddr_storage ac_aggr;
15977 if (sizeof ac_aggr.ss_family)
15978 return 0;
15979   ;
15980   return 0;
15981 }
15982 _ACEOF
15983 rm -f conftest.$ac_objext
15984 if { (ac_try="$ac_compile"
15985 case "(($ac_try" in
15986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15987   *) ac_try_echo=$ac_try;;
15988 esac
15989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15990 $as_echo "$ac_try_echo") >&5
15991   (eval "$ac_compile") 2>conftest.er1
15992   ac_status=$?
15993   grep -v '^ *+' conftest.er1 >conftest.err
15994   rm -f conftest.er1
15995   cat conftest.err >&5
15996   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997   (exit $ac_status); } && {
15998          test -z "$ac_c_werror_flag" ||
15999          test ! -s conftest.err
16000        } && test -s conftest.$ac_objext; then
16001   ac_cv_member_struct_sockaddr_storage_ss_family=yes
16002 else
16003   $as_echo "$as_me: failed program was:" >&5
16004 sed 's/^/| /' conftest.$ac_ext >&5
16005
16006         ac_cv_member_struct_sockaddr_storage_ss_family=no
16007 fi
16008
16009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16010 fi
16011
16012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16013 fi
16014 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
16015 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
16016 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
16017
16018 cat >>confdefs.h <<_ACEOF
16019 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
16020 _ACEOF
16021
16022
16023 fi
16024 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
16025 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
16026 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
16027   $as_echo_n "(cached) " >&6
16028 else
16029   cat >conftest.$ac_ext <<_ACEOF
16030 /* confdefs.h.  */
16031 _ACEOF
16032 cat confdefs.h >>conftest.$ac_ext
16033 cat >>conftest.$ac_ext <<_ACEOF
16034 /* end confdefs.h.  */
16035 #include <sys/types.h>
16036 #ifdef HAVE_SYS_SOCKET_H
16037 #include <sys/socket.h>
16038 #endif
16039
16040
16041 int
16042 main ()
16043 {
16044 static struct sockaddr_storage ac_aggr;
16045 if (ac_aggr.__ss_family)
16046 return 0;
16047   ;
16048   return 0;
16049 }
16050 _ACEOF
16051 rm -f conftest.$ac_objext
16052 if { (ac_try="$ac_compile"
16053 case "(($ac_try" in
16054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16055   *) ac_try_echo=$ac_try;;
16056 esac
16057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16058 $as_echo "$ac_try_echo") >&5
16059   (eval "$ac_compile") 2>conftest.er1
16060   ac_status=$?
16061   grep -v '^ *+' conftest.er1 >conftest.err
16062   rm -f conftest.er1
16063   cat conftest.err >&5
16064   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065   (exit $ac_status); } && {
16066          test -z "$ac_c_werror_flag" ||
16067          test ! -s conftest.err
16068        } && test -s conftest.$ac_objext; then
16069   ac_cv_member_struct_sockaddr_storage___ss_family=yes
16070 else
16071   $as_echo "$as_me: failed program was:" >&5
16072 sed 's/^/| /' conftest.$ac_ext >&5
16073
16074         cat >conftest.$ac_ext <<_ACEOF
16075 /* confdefs.h.  */
16076 _ACEOF
16077 cat confdefs.h >>conftest.$ac_ext
16078 cat >>conftest.$ac_ext <<_ACEOF
16079 /* end confdefs.h.  */
16080 #include <sys/types.h>
16081 #ifdef HAVE_SYS_SOCKET_H
16082 #include <sys/socket.h>
16083 #endif
16084
16085
16086 int
16087 main ()
16088 {
16089 static struct sockaddr_storage ac_aggr;
16090 if (sizeof ac_aggr.__ss_family)
16091 return 0;
16092   ;
16093   return 0;
16094 }
16095 _ACEOF
16096 rm -f conftest.$ac_objext
16097 if { (ac_try="$ac_compile"
16098 case "(($ac_try" in
16099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16100   *) ac_try_echo=$ac_try;;
16101 esac
16102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16103 $as_echo "$ac_try_echo") >&5
16104   (eval "$ac_compile") 2>conftest.er1
16105   ac_status=$?
16106   grep -v '^ *+' conftest.er1 >conftest.err
16107   rm -f conftest.er1
16108   cat conftest.err >&5
16109   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110   (exit $ac_status); } && {
16111          test -z "$ac_c_werror_flag" ||
16112          test ! -s conftest.err
16113        } && test -s conftest.$ac_objext; then
16114   ac_cv_member_struct_sockaddr_storage___ss_family=yes
16115 else
16116   $as_echo "$as_me: failed program was:" >&5
16117 sed 's/^/| /' conftest.$ac_ext >&5
16118
16119         ac_cv_member_struct_sockaddr_storage___ss_family=no
16120 fi
16121
16122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16123 fi
16124
16125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16126 fi
16127 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
16128 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
16129 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
16130
16131 cat >>confdefs.h <<_ACEOF
16132 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
16133 _ACEOF
16134
16135
16136 fi
16137 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
16138 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
16139 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
16140   $as_echo_n "(cached) " >&6
16141 else
16142   cat >conftest.$ac_ext <<_ACEOF
16143 /* confdefs.h.  */
16144 _ACEOF
16145 cat confdefs.h >>conftest.$ac_ext
16146 cat >>conftest.$ac_ext <<_ACEOF
16147 /* end confdefs.h.  */
16148 #include <sys/types.h>
16149 #ifdef HAVE_SYS_SOCKET_H
16150 #include <sys/socket.h>
16151 #endif
16152
16153
16154 int
16155 main ()
16156 {
16157 static struct sockaddr_storage ac_aggr;
16158 if (ac_aggr.ss_len)
16159 return 0;
16160   ;
16161   return 0;
16162 }
16163 _ACEOF
16164 rm -f conftest.$ac_objext
16165 if { (ac_try="$ac_compile"
16166 case "(($ac_try" in
16167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16168   *) ac_try_echo=$ac_try;;
16169 esac
16170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16171 $as_echo "$ac_try_echo") >&5
16172   (eval "$ac_compile") 2>conftest.er1
16173   ac_status=$?
16174   grep -v '^ *+' conftest.er1 >conftest.err
16175   rm -f conftest.er1
16176   cat conftest.err >&5
16177   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178   (exit $ac_status); } && {
16179          test -z "$ac_c_werror_flag" ||
16180          test ! -s conftest.err
16181        } && test -s conftest.$ac_objext; then
16182   ac_cv_member_struct_sockaddr_storage_ss_len=yes
16183 else
16184   $as_echo "$as_me: failed program was:" >&5
16185 sed 's/^/| /' conftest.$ac_ext >&5
16186
16187         cat >conftest.$ac_ext <<_ACEOF
16188 /* confdefs.h.  */
16189 _ACEOF
16190 cat confdefs.h >>conftest.$ac_ext
16191 cat >>conftest.$ac_ext <<_ACEOF
16192 /* end confdefs.h.  */
16193 #include <sys/types.h>
16194 #ifdef HAVE_SYS_SOCKET_H
16195 #include <sys/socket.h>
16196 #endif
16197
16198
16199 int
16200 main ()
16201 {
16202 static struct sockaddr_storage ac_aggr;
16203 if (sizeof ac_aggr.ss_len)
16204 return 0;
16205   ;
16206   return 0;
16207 }
16208 _ACEOF
16209 rm -f conftest.$ac_objext
16210 if { (ac_try="$ac_compile"
16211 case "(($ac_try" in
16212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16213   *) ac_try_echo=$ac_try;;
16214 esac
16215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16216 $as_echo "$ac_try_echo") >&5
16217   (eval "$ac_compile") 2>conftest.er1
16218   ac_status=$?
16219   grep -v '^ *+' conftest.er1 >conftest.err
16220   rm -f conftest.er1
16221   cat conftest.err >&5
16222   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223   (exit $ac_status); } && {
16224          test -z "$ac_c_werror_flag" ||
16225          test ! -s conftest.err
16226        } && test -s conftest.$ac_objext; then
16227   ac_cv_member_struct_sockaddr_storage_ss_len=yes
16228 else
16229   $as_echo "$as_me: failed program was:" >&5
16230 sed 's/^/| /' conftest.$ac_ext >&5
16231
16232         ac_cv_member_struct_sockaddr_storage_ss_len=no
16233 fi
16234
16235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16236 fi
16237
16238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16239 fi
16240 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
16241 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
16242 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
16243
16244 cat >>confdefs.h <<_ACEOF
16245 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
16246 _ACEOF
16247
16248
16249 fi
16250 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
16251 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
16252 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
16253   $as_echo_n "(cached) " >&6
16254 else
16255   cat >conftest.$ac_ext <<_ACEOF
16256 /* confdefs.h.  */
16257 _ACEOF
16258 cat confdefs.h >>conftest.$ac_ext
16259 cat >>conftest.$ac_ext <<_ACEOF
16260 /* end confdefs.h.  */
16261 #include <sys/types.h>
16262 #ifdef HAVE_SYS_SOCKET_H
16263 #include <sys/socket.h>
16264 #endif
16265
16266
16267 int
16268 main ()
16269 {
16270 static struct sockaddr_storage ac_aggr;
16271 if (ac_aggr.__ss_len)
16272 return 0;
16273   ;
16274   return 0;
16275 }
16276 _ACEOF
16277 rm -f conftest.$ac_objext
16278 if { (ac_try="$ac_compile"
16279 case "(($ac_try" in
16280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16281   *) ac_try_echo=$ac_try;;
16282 esac
16283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16284 $as_echo "$ac_try_echo") >&5
16285   (eval "$ac_compile") 2>conftest.er1
16286   ac_status=$?
16287   grep -v '^ *+' conftest.er1 >conftest.err
16288   rm -f conftest.er1
16289   cat conftest.err >&5
16290   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291   (exit $ac_status); } && {
16292          test -z "$ac_c_werror_flag" ||
16293          test ! -s conftest.err
16294        } && test -s conftest.$ac_objext; then
16295   ac_cv_member_struct_sockaddr_storage___ss_len=yes
16296 else
16297   $as_echo "$as_me: failed program was:" >&5
16298 sed 's/^/| /' conftest.$ac_ext >&5
16299
16300         cat >conftest.$ac_ext <<_ACEOF
16301 /* confdefs.h.  */
16302 _ACEOF
16303 cat confdefs.h >>conftest.$ac_ext
16304 cat >>conftest.$ac_ext <<_ACEOF
16305 /* end confdefs.h.  */
16306 #include <sys/types.h>
16307 #ifdef HAVE_SYS_SOCKET_H
16308 #include <sys/socket.h>
16309 #endif
16310
16311
16312 int
16313 main ()
16314 {
16315 static struct sockaddr_storage ac_aggr;
16316 if (sizeof ac_aggr.__ss_len)
16317 return 0;
16318   ;
16319   return 0;
16320 }
16321 _ACEOF
16322 rm -f conftest.$ac_objext
16323 if { (ac_try="$ac_compile"
16324 case "(($ac_try" in
16325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16326   *) ac_try_echo=$ac_try;;
16327 esac
16328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16329 $as_echo "$ac_try_echo") >&5
16330   (eval "$ac_compile") 2>conftest.er1
16331   ac_status=$?
16332   grep -v '^ *+' conftest.er1 >conftest.err
16333   rm -f conftest.er1
16334   cat conftest.err >&5
16335   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336   (exit $ac_status); } && {
16337          test -z "$ac_c_werror_flag" ||
16338          test ! -s conftest.err
16339        } && test -s conftest.$ac_objext; then
16340   ac_cv_member_struct_sockaddr_storage___ss_len=yes
16341 else
16342   $as_echo "$as_me: failed program was:" >&5
16343 sed 's/^/| /' conftest.$ac_ext >&5
16344
16345         ac_cv_member_struct_sockaddr_storage___ss_len=no
16346 fi
16347
16348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16349 fi
16350
16351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16352 fi
16353 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
16354 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
16355 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
16356
16357 cat >>confdefs.h <<_ACEOF
16358 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
16359 _ACEOF
16360
16361
16362 fi
16363 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
16364 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
16365 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
16366   $as_echo_n "(cached) " >&6
16367 else
16368   cat >conftest.$ac_ext <<_ACEOF
16369 /* confdefs.h.  */
16370 _ACEOF
16371 cat confdefs.h >>conftest.$ac_ext
16372 cat >>conftest.$ac_ext <<_ACEOF
16373 /* end confdefs.h.  */
16374 #include <sys/types.h>
16375 #ifdef HAVE_SYS_SOCKET_H
16376 #include <sys/socket.h>
16377 #endif
16378
16379
16380 int
16381 main ()
16382 {
16383 static struct sockaddr ac_aggr;
16384 if (ac_aggr.sa_len)
16385 return 0;
16386   ;
16387   return 0;
16388 }
16389 _ACEOF
16390 rm -f conftest.$ac_objext
16391 if { (ac_try="$ac_compile"
16392 case "(($ac_try" in
16393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16394   *) ac_try_echo=$ac_try;;
16395 esac
16396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16397 $as_echo "$ac_try_echo") >&5
16398   (eval "$ac_compile") 2>conftest.er1
16399   ac_status=$?
16400   grep -v '^ *+' conftest.er1 >conftest.err
16401   rm -f conftest.er1
16402   cat conftest.err >&5
16403   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404   (exit $ac_status); } && {
16405          test -z "$ac_c_werror_flag" ||
16406          test ! -s conftest.err
16407        } && test -s conftest.$ac_objext; then
16408   ac_cv_member_struct_sockaddr_sa_len=yes
16409 else
16410   $as_echo "$as_me: failed program was:" >&5
16411 sed 's/^/| /' conftest.$ac_ext >&5
16412
16413         cat >conftest.$ac_ext <<_ACEOF
16414 /* confdefs.h.  */
16415 _ACEOF
16416 cat confdefs.h >>conftest.$ac_ext
16417 cat >>conftest.$ac_ext <<_ACEOF
16418 /* end confdefs.h.  */
16419 #include <sys/types.h>
16420 #ifdef HAVE_SYS_SOCKET_H
16421 #include <sys/socket.h>
16422 #endif
16423
16424
16425 int
16426 main ()
16427 {
16428 static struct sockaddr ac_aggr;
16429 if (sizeof ac_aggr.sa_len)
16430 return 0;
16431   ;
16432   return 0;
16433 }
16434 _ACEOF
16435 rm -f conftest.$ac_objext
16436 if { (ac_try="$ac_compile"
16437 case "(($ac_try" in
16438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16439   *) ac_try_echo=$ac_try;;
16440 esac
16441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16442 $as_echo "$ac_try_echo") >&5
16443   (eval "$ac_compile") 2>conftest.er1
16444   ac_status=$?
16445   grep -v '^ *+' conftest.er1 >conftest.err
16446   rm -f conftest.er1
16447   cat conftest.err >&5
16448   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449   (exit $ac_status); } && {
16450          test -z "$ac_c_werror_flag" ||
16451          test ! -s conftest.err
16452        } && test -s conftest.$ac_objext; then
16453   ac_cv_member_struct_sockaddr_sa_len=yes
16454 else
16455   $as_echo "$as_me: failed program was:" >&5
16456 sed 's/^/| /' conftest.$ac_ext >&5
16457
16458         ac_cv_member_struct_sockaddr_sa_len=no
16459 fi
16460
16461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16462 fi
16463
16464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16465 fi
16466 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16467 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
16468 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
16469
16470 cat >>confdefs.h <<_ACEOF
16471 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16472 _ACEOF
16473
16474
16475 fi
16476
16477 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
16478 $as_echo_n "checking for struct addrinfo... " >&6; }
16479 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
16480   $as_echo_n "(cached) " >&6
16481 else
16482   ac_cv_type_struct_addrinfo=no
16483 cat >conftest.$ac_ext <<_ACEOF
16484 /* confdefs.h.  */
16485 _ACEOF
16486 cat confdefs.h >>conftest.$ac_ext
16487 cat >>conftest.$ac_ext <<_ACEOF
16488 /* end confdefs.h.  */
16489 #include <sys/types.h>
16490 #include <sys/socket.h>
16491 #include <netdb.h>
16492
16493
16494 int
16495 main ()
16496 {
16497 if (sizeof (struct addrinfo))
16498        return 0;
16499   ;
16500   return 0;
16501 }
16502 _ACEOF
16503 rm -f conftest.$ac_objext
16504 if { (ac_try="$ac_compile"
16505 case "(($ac_try" in
16506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16507   *) ac_try_echo=$ac_try;;
16508 esac
16509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16510 $as_echo "$ac_try_echo") >&5
16511   (eval "$ac_compile") 2>conftest.er1
16512   ac_status=$?
16513   grep -v '^ *+' conftest.er1 >conftest.err
16514   rm -f conftest.er1
16515   cat conftest.err >&5
16516   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517   (exit $ac_status); } && {
16518          test -z "$ac_c_werror_flag" ||
16519          test ! -s conftest.err
16520        } && test -s conftest.$ac_objext; then
16521   cat >conftest.$ac_ext <<_ACEOF
16522 /* confdefs.h.  */
16523 _ACEOF
16524 cat confdefs.h >>conftest.$ac_ext
16525 cat >>conftest.$ac_ext <<_ACEOF
16526 /* end confdefs.h.  */
16527 #include <sys/types.h>
16528 #include <sys/socket.h>
16529 #include <netdb.h>
16530
16531
16532 int
16533 main ()
16534 {
16535 if (sizeof ((struct addrinfo)))
16536           return 0;
16537   ;
16538   return 0;
16539 }
16540 _ACEOF
16541 rm -f conftest.$ac_objext
16542 if { (ac_try="$ac_compile"
16543 case "(($ac_try" in
16544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16545   *) ac_try_echo=$ac_try;;
16546 esac
16547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16548 $as_echo "$ac_try_echo") >&5
16549   (eval "$ac_compile") 2>conftest.er1
16550   ac_status=$?
16551   grep -v '^ *+' conftest.er1 >conftest.err
16552   rm -f conftest.er1
16553   cat conftest.err >&5
16554   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555   (exit $ac_status); } && {
16556          test -z "$ac_c_werror_flag" ||
16557          test ! -s conftest.err
16558        } && test -s conftest.$ac_objext; then
16559   :
16560 else
16561   $as_echo "$as_me: failed program was:" >&5
16562 sed 's/^/| /' conftest.$ac_ext >&5
16563
16564         ac_cv_type_struct_addrinfo=yes
16565 fi
16566
16567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16568 else
16569   $as_echo "$as_me: failed program was:" >&5
16570 sed 's/^/| /' conftest.$ac_ext >&5
16571
16572
16573 fi
16574
16575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16576 fi
16577 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
16578 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
16579 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
16580
16581 cat >>confdefs.h <<_ACEOF
16582 #define HAVE_STRUCT_ADDRINFO 1
16583 _ACEOF
16584
16585
16586 fi
16587
16588
16589   { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
16590 $as_echo_n "checking for intptr_t... " >&6; }
16591 if test "${ac_cv_type_intptr_t+set}" = set; then
16592   $as_echo_n "(cached) " >&6
16593 else
16594   ac_cv_type_intptr_t=no
16595 cat >conftest.$ac_ext <<_ACEOF
16596 /* confdefs.h.  */
16597 _ACEOF
16598 cat confdefs.h >>conftest.$ac_ext
16599 cat >>conftest.$ac_ext <<_ACEOF
16600 /* end confdefs.h.  */
16601 $ac_includes_default
16602 int
16603 main ()
16604 {
16605 if (sizeof (intptr_t))
16606        return 0;
16607   ;
16608   return 0;
16609 }
16610 _ACEOF
16611 rm -f conftest.$ac_objext
16612 if { (ac_try="$ac_compile"
16613 case "(($ac_try" in
16614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16615   *) ac_try_echo=$ac_try;;
16616 esac
16617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16618 $as_echo "$ac_try_echo") >&5
16619   (eval "$ac_compile") 2>conftest.er1
16620   ac_status=$?
16621   grep -v '^ *+' conftest.er1 >conftest.err
16622   rm -f conftest.er1
16623   cat conftest.err >&5
16624   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625   (exit $ac_status); } && {
16626          test -z "$ac_c_werror_flag" ||
16627          test ! -s conftest.err
16628        } && test -s conftest.$ac_objext; then
16629   cat >conftest.$ac_ext <<_ACEOF
16630 /* confdefs.h.  */
16631 _ACEOF
16632 cat confdefs.h >>conftest.$ac_ext
16633 cat >>conftest.$ac_ext <<_ACEOF
16634 /* end confdefs.h.  */
16635 $ac_includes_default
16636 int
16637 main ()
16638 {
16639 if (sizeof ((intptr_t)))
16640           return 0;
16641   ;
16642   return 0;
16643 }
16644 _ACEOF
16645 rm -f conftest.$ac_objext
16646 if { (ac_try="$ac_compile"
16647 case "(($ac_try" in
16648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16649   *) ac_try_echo=$ac_try;;
16650 esac
16651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16652 $as_echo "$ac_try_echo") >&5
16653   (eval "$ac_compile") 2>conftest.er1
16654   ac_status=$?
16655   grep -v '^ *+' conftest.er1 >conftest.err
16656   rm -f conftest.er1
16657   cat conftest.err >&5
16658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659   (exit $ac_status); } && {
16660          test -z "$ac_c_werror_flag" ||
16661          test ! -s conftest.err
16662        } && test -s conftest.$ac_objext; then
16663   :
16664 else
16665   $as_echo "$as_me: failed program was:" >&5
16666 sed 's/^/| /' conftest.$ac_ext >&5
16667
16668         ac_cv_type_intptr_t=yes
16669 fi
16670
16671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16672 else
16673   $as_echo "$as_me: failed program was:" >&5
16674 sed 's/^/| /' conftest.$ac_ext >&5
16675
16676
16677 fi
16678
16679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16680 fi
16681 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
16682 $as_echo "$ac_cv_type_intptr_t" >&6; }
16683 if test "x$ac_cv_type_intptr_t" = x""yes; then
16684
16685 cat >>confdefs.h <<\_ACEOF
16686 #define HAVE_INTPTR_T 1
16687 _ACEOF
16688
16689 else
16690   for ac_type in 'int' 'long int' 'long long int'; do
16691        cat >conftest.$ac_ext <<_ACEOF
16692 /* confdefs.h.  */
16693 _ACEOF
16694 cat confdefs.h >>conftest.$ac_ext
16695 cat >>conftest.$ac_ext <<_ACEOF
16696 /* end confdefs.h.  */
16697 $ac_includes_default
16698 int
16699 main ()
16700 {
16701 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16702 test_array [0] = 0
16703
16704   ;
16705   return 0;
16706 }
16707 _ACEOF
16708 rm -f conftest.$ac_objext
16709 if { (ac_try="$ac_compile"
16710 case "(($ac_try" in
16711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712   *) ac_try_echo=$ac_try;;
16713 esac
16714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16715 $as_echo "$ac_try_echo") >&5
16716   (eval "$ac_compile") 2>conftest.er1
16717   ac_status=$?
16718   grep -v '^ *+' conftest.er1 >conftest.err
16719   rm -f conftest.er1
16720   cat conftest.err >&5
16721   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722   (exit $ac_status); } && {
16723          test -z "$ac_c_werror_flag" ||
16724          test ! -s conftest.err
16725        } && test -s conftest.$ac_objext; then
16726
16727 cat >>confdefs.h <<_ACEOF
16728 #define intptr_t $ac_type
16729 _ACEOF
16730
16731           ac_type=
16732 else
16733   $as_echo "$as_me: failed program was:" >&5
16734 sed 's/^/| /' conftest.$ac_ext >&5
16735
16736
16737 fi
16738
16739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16740        test -z "$ac_type" && break
16741      done
16742 fi
16743
16744
16745
16746   { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
16747 $as_echo_n "checking for uintptr_t... " >&6; }
16748 if test "${ac_cv_type_uintptr_t+set}" = set; then
16749   $as_echo_n "(cached) " >&6
16750 else
16751   ac_cv_type_uintptr_t=no
16752 cat >conftest.$ac_ext <<_ACEOF
16753 /* confdefs.h.  */
16754 _ACEOF
16755 cat confdefs.h >>conftest.$ac_ext
16756 cat >>conftest.$ac_ext <<_ACEOF
16757 /* end confdefs.h.  */
16758 $ac_includes_default
16759 int
16760 main ()
16761 {
16762 if (sizeof (uintptr_t))
16763        return 0;
16764   ;
16765   return 0;
16766 }
16767 _ACEOF
16768 rm -f conftest.$ac_objext
16769 if { (ac_try="$ac_compile"
16770 case "(($ac_try" in
16771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16772   *) ac_try_echo=$ac_try;;
16773 esac
16774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16775 $as_echo "$ac_try_echo") >&5
16776   (eval "$ac_compile") 2>conftest.er1
16777   ac_status=$?
16778   grep -v '^ *+' conftest.er1 >conftest.err
16779   rm -f conftest.er1
16780   cat conftest.err >&5
16781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782   (exit $ac_status); } && {
16783          test -z "$ac_c_werror_flag" ||
16784          test ! -s conftest.err
16785        } && test -s conftest.$ac_objext; then
16786   cat >conftest.$ac_ext <<_ACEOF
16787 /* confdefs.h.  */
16788 _ACEOF
16789 cat confdefs.h >>conftest.$ac_ext
16790 cat >>conftest.$ac_ext <<_ACEOF
16791 /* end confdefs.h.  */
16792 $ac_includes_default
16793 int
16794 main ()
16795 {
16796 if (sizeof ((uintptr_t)))
16797           return 0;
16798   ;
16799   return 0;
16800 }
16801 _ACEOF
16802 rm -f conftest.$ac_objext
16803 if { (ac_try="$ac_compile"
16804 case "(($ac_try" in
16805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16806   *) ac_try_echo=$ac_try;;
16807 esac
16808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16809 $as_echo "$ac_try_echo") >&5
16810   (eval "$ac_compile") 2>conftest.er1
16811   ac_status=$?
16812   grep -v '^ *+' conftest.er1 >conftest.err
16813   rm -f conftest.er1
16814   cat conftest.err >&5
16815   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816   (exit $ac_status); } && {
16817          test -z "$ac_c_werror_flag" ||
16818          test ! -s conftest.err
16819        } && test -s conftest.$ac_objext; then
16820   :
16821 else
16822   $as_echo "$as_me: failed program was:" >&5
16823 sed 's/^/| /' conftest.$ac_ext >&5
16824
16825         ac_cv_type_uintptr_t=yes
16826 fi
16827
16828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16829 else
16830   $as_echo "$as_me: failed program was:" >&5
16831 sed 's/^/| /' conftest.$ac_ext >&5
16832
16833
16834 fi
16835
16836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16837 fi
16838 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16839 $as_echo "$ac_cv_type_uintptr_t" >&6; }
16840 if test "x$ac_cv_type_uintptr_t" = x""yes; then
16841
16842 cat >>confdefs.h <<\_ACEOF
16843 #define HAVE_UINTPTR_T 1
16844 _ACEOF
16845
16846 else
16847   for ac_type in 'unsigned int' 'unsigned long int' \
16848         'unsigned long long int'; do
16849        cat >conftest.$ac_ext <<_ACEOF
16850 /* confdefs.h.  */
16851 _ACEOF
16852 cat confdefs.h >>conftest.$ac_ext
16853 cat >>conftest.$ac_ext <<_ACEOF
16854 /* end confdefs.h.  */
16855 $ac_includes_default
16856 int
16857 main ()
16858 {
16859 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16860 test_array [0] = 0
16861
16862   ;
16863   return 0;
16864 }
16865 _ACEOF
16866 rm -f conftest.$ac_objext
16867 if { (ac_try="$ac_compile"
16868 case "(($ac_try" in
16869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16870   *) ac_try_echo=$ac_try;;
16871 esac
16872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16873 $as_echo "$ac_try_echo") >&5
16874   (eval "$ac_compile") 2>conftest.er1
16875   ac_status=$?
16876   grep -v '^ *+' conftest.er1 >conftest.err
16877   rm -f conftest.er1
16878   cat conftest.err >&5
16879   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880   (exit $ac_status); } && {
16881          test -z "$ac_c_werror_flag" ||
16882          test ! -s conftest.err
16883        } && test -s conftest.$ac_objext; then
16884
16885 cat >>confdefs.h <<_ACEOF
16886 #define uintptr_t $ac_type
16887 _ACEOF
16888
16889           ac_type=
16890 else
16891   $as_echo "$as_me: failed program was:" >&5
16892 sed 's/^/| /' conftest.$ac_ext >&5
16893
16894
16895 fi
16896
16897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16898        test -z "$ac_type" && break
16899      done
16900 fi
16901
16902
16903
16904   { $as_echo "$as_me:$LINENO: checking for long long int" >&5
16905 $as_echo_n "checking for long long int... " >&6; }
16906 if test "${ac_cv_type_long_long_int+set}" = set; then
16907   $as_echo_n "(cached) " >&6
16908 else
16909   cat >conftest.$ac_ext <<_ACEOF
16910
16911   /* confdefs.h.  */
16912 _ACEOF
16913 cat confdefs.h >>conftest.$ac_ext
16914 cat >>conftest.$ac_ext <<_ACEOF
16915 /* end confdefs.h.  */
16916 /* For now, do not test the preprocessor; as of 2007 there are too many
16917          implementations with broken preprocessors.  Perhaps this can
16918          be revisited in 2012.  In the meantime, code should not expect
16919          #if to work with literals wider than 32 bits.  */
16920       /* Test literals.  */
16921       long long int ll = 9223372036854775807ll;
16922       long long int nll = -9223372036854775807LL;
16923       unsigned long long int ull = 18446744073709551615ULL;
16924       /* Test constant expressions.   */
16925       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16926                      ? 1 : -1)];
16927       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16928                      ? 1 : -1)];
16929       int i = 63;
16930 int
16931 main ()
16932 {
16933 /* Test availability of runtime routines for shift and division.  */
16934       long long int llmax = 9223372036854775807ll;
16935       unsigned long long int ullmax = 18446744073709551615ull;
16936       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16937               | (llmax / ll) | (llmax % ll)
16938               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16939               | (ullmax / ull) | (ullmax % ull));
16940   ;
16941   return 0;
16942 }
16943
16944 _ACEOF
16945 rm -f conftest.$ac_objext conftest$ac_exeext
16946 if { (ac_try="$ac_link"
16947 case "(($ac_try" in
16948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949   *) ac_try_echo=$ac_try;;
16950 esac
16951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16952 $as_echo "$ac_try_echo") >&5
16953   (eval "$ac_link") 2>conftest.er1
16954   ac_status=$?
16955   grep -v '^ *+' conftest.er1 >conftest.err
16956   rm -f conftest.er1
16957   cat conftest.err >&5
16958   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959   (exit $ac_status); } && {
16960          test -z "$ac_c_werror_flag" ||
16961          test ! -s conftest.err
16962        } && test -s conftest$ac_exeext && {
16963          test "$cross_compiling" = yes ||
16964          $as_test_x conftest$ac_exeext
16965        }; then
16966                         if test "$cross_compiling" = yes; then
16967   ac_cv_type_long_long_int=yes
16968 else
16969   cat >conftest.$ac_ext <<_ACEOF
16970 /* confdefs.h.  */
16971 _ACEOF
16972 cat confdefs.h >>conftest.$ac_ext
16973 cat >>conftest.$ac_ext <<_ACEOF
16974 /* end confdefs.h.  */
16975 #include <limits.h>
16976                #ifndef LLONG_MAX
16977                # define HALF \
16978                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16979                # define LLONG_MAX (HALF - 1 + HALF)
16980                #endif
16981 int
16982 main ()
16983 {
16984 long long int n = 1;
16985                int i;
16986                for (i = 0; ; i++)
16987                  {
16988                    long long int m = n << i;
16989                    if (m >> i != n)
16990                      return 1;
16991                    if (LLONG_MAX / 2 < m)
16992                      break;
16993                  }
16994                return 0;
16995   ;
16996   return 0;
16997 }
16998 _ACEOF
16999 rm -f conftest$ac_exeext
17000 if { (ac_try="$ac_link"
17001 case "(($ac_try" in
17002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17003   *) ac_try_echo=$ac_try;;
17004 esac
17005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17006 $as_echo "$ac_try_echo") >&5
17007   (eval "$ac_link") 2>&5
17008   ac_status=$?
17009   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17011   { (case "(($ac_try" in
17012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17013   *) ac_try_echo=$ac_try;;
17014 esac
17015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17016 $as_echo "$ac_try_echo") >&5
17017   (eval "$ac_try") 2>&5
17018   ac_status=$?
17019   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020   (exit $ac_status); }; }; then
17021   ac_cv_type_long_long_int=yes
17022 else
17023   $as_echo "$as_me: program exited with status $ac_status" >&5
17024 $as_echo "$as_me: failed program was:" >&5
17025 sed 's/^/| /' conftest.$ac_ext >&5
17026
17027 ( exit $ac_status )
17028 ac_cv_type_long_long_int=no
17029 fi
17030 rm -rf conftest.dSYM
17031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17032 fi
17033
17034
17035 else
17036   $as_echo "$as_me: failed program was:" >&5
17037 sed 's/^/| /' conftest.$ac_ext >&5
17038
17039         ac_cv_type_long_long_int=no
17040 fi
17041
17042 rm -rf conftest.dSYM
17043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17044       conftest$ac_exeext conftest.$ac_ext
17045 fi
17046 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
17047 $as_echo "$ac_cv_type_long_long_int" >&6; }
17048   if test $ac_cv_type_long_long_int = yes; then
17049
17050 cat >>confdefs.h <<\_ACEOF
17051 #define HAVE_LONG_LONG_INT 1
17052 _ACEOF
17053
17054   fi
17055
17056
17057 { $as_echo "$as_me:$LINENO: checking for locale_t" >&5
17058 $as_echo_n "checking for locale_t... " >&6; }
17059 if test "${pgac_cv_type_locale_t+set}" = set; then
17060   $as_echo_n "(cached) " >&6
17061 else
17062   cat >conftest.$ac_ext <<_ACEOF
17063 /* confdefs.h.  */
17064 _ACEOF
17065 cat confdefs.h >>conftest.$ac_ext
17066 cat >>conftest.$ac_ext <<_ACEOF
17067 /* end confdefs.h.  */
17068 #include <locale.h>
17069 locale_t x;
17070 int
17071 main ()
17072 {
17073
17074   ;
17075   return 0;
17076 }
17077 _ACEOF
17078 rm -f conftest.$ac_objext
17079 if { (ac_try="$ac_compile"
17080 case "(($ac_try" in
17081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17082   *) ac_try_echo=$ac_try;;
17083 esac
17084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17085 $as_echo "$ac_try_echo") >&5
17086   (eval "$ac_compile") 2>conftest.er1
17087   ac_status=$?
17088   grep -v '^ *+' conftest.er1 >conftest.err
17089   rm -f conftest.er1
17090   cat conftest.err >&5
17091   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092   (exit $ac_status); } && {
17093          test -z "$ac_c_werror_flag" ||
17094          test ! -s conftest.err
17095        } && test -s conftest.$ac_objext; then
17096   pgac_cv_type_locale_t=yes
17097 else
17098   $as_echo "$as_me: failed program was:" >&5
17099 sed 's/^/| /' conftest.$ac_ext >&5
17100
17101         cat >conftest.$ac_ext <<_ACEOF
17102 /* confdefs.h.  */
17103 _ACEOF
17104 cat confdefs.h >>conftest.$ac_ext
17105 cat >>conftest.$ac_ext <<_ACEOF
17106 /* end confdefs.h.  */
17107 #include <xlocale.h>
17108 locale_t x;
17109 int
17110 main ()
17111 {
17112
17113   ;
17114   return 0;
17115 }
17116 _ACEOF
17117 rm -f conftest.$ac_objext
17118 if { (ac_try="$ac_compile"
17119 case "(($ac_try" in
17120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17121   *) ac_try_echo=$ac_try;;
17122 esac
17123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17124 $as_echo "$ac_try_echo") >&5
17125   (eval "$ac_compile") 2>conftest.er1
17126   ac_status=$?
17127   grep -v '^ *+' conftest.er1 >conftest.err
17128   rm -f conftest.er1
17129   cat conftest.err >&5
17130   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131   (exit $ac_status); } && {
17132          test -z "$ac_c_werror_flag" ||
17133          test ! -s conftest.err
17134        } && test -s conftest.$ac_objext; then
17135   pgac_cv_type_locale_t='yes (in xlocale.h)'
17136 else
17137   $as_echo "$as_me: failed program was:" >&5
17138 sed 's/^/| /' conftest.$ac_ext >&5
17139
17140         pgac_cv_type_locale_t=no
17141 fi
17142
17143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17144 fi
17145
17146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17147 fi
17148 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_locale_t" >&5
17149 $as_echo "$pgac_cv_type_locale_t" >&6; }
17150 if test "$pgac_cv_type_locale_t" != no; then
17151
17152 cat >>confdefs.h <<\_ACEOF
17153 #define HAVE_LOCALE_T 1
17154 _ACEOF
17155
17156 fi
17157 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
17158
17159 cat >>confdefs.h <<\_ACEOF
17160 #define LOCALE_T_IN_XLOCALE 1
17161 _ACEOF
17162
17163 fi
17164
17165 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
17166 $as_echo_n "checking for struct cmsgcred... " >&6; }
17167 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
17168   $as_echo_n "(cached) " >&6
17169 else
17170   ac_cv_type_struct_cmsgcred=no
17171 cat >conftest.$ac_ext <<_ACEOF
17172 /* confdefs.h.  */
17173 _ACEOF
17174 cat confdefs.h >>conftest.$ac_ext
17175 cat >>conftest.$ac_ext <<_ACEOF
17176 /* end confdefs.h.  */
17177 #include <sys/socket.h>
17178 #ifdef HAVE_SYS_UCRED_H
17179 #include <sys/ucred.h>
17180 #endif
17181
17182 int
17183 main ()
17184 {
17185 if (sizeof (struct cmsgcred))
17186        return 0;
17187   ;
17188   return 0;
17189 }
17190 _ACEOF
17191 rm -f conftest.$ac_objext
17192 if { (ac_try="$ac_compile"
17193 case "(($ac_try" in
17194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195   *) ac_try_echo=$ac_try;;
17196 esac
17197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17198 $as_echo "$ac_try_echo") >&5
17199   (eval "$ac_compile") 2>conftest.er1
17200   ac_status=$?
17201   grep -v '^ *+' conftest.er1 >conftest.err
17202   rm -f conftest.er1
17203   cat conftest.err >&5
17204   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205   (exit $ac_status); } && {
17206          test -z "$ac_c_werror_flag" ||
17207          test ! -s conftest.err
17208        } && test -s conftest.$ac_objext; then
17209   cat >conftest.$ac_ext <<_ACEOF
17210 /* confdefs.h.  */
17211 _ACEOF
17212 cat confdefs.h >>conftest.$ac_ext
17213 cat >>conftest.$ac_ext <<_ACEOF
17214 /* end confdefs.h.  */
17215 #include <sys/socket.h>
17216 #ifdef HAVE_SYS_UCRED_H
17217 #include <sys/ucred.h>
17218 #endif
17219
17220 int
17221 main ()
17222 {
17223 if (sizeof ((struct cmsgcred)))
17224           return 0;
17225   ;
17226   return 0;
17227 }
17228 _ACEOF
17229 rm -f conftest.$ac_objext
17230 if { (ac_try="$ac_compile"
17231 case "(($ac_try" in
17232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17233   *) ac_try_echo=$ac_try;;
17234 esac
17235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17236 $as_echo "$ac_try_echo") >&5
17237   (eval "$ac_compile") 2>conftest.er1
17238   ac_status=$?
17239   grep -v '^ *+' conftest.er1 >conftest.err
17240   rm -f conftest.er1
17241   cat conftest.err >&5
17242   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243   (exit $ac_status); } && {
17244          test -z "$ac_c_werror_flag" ||
17245          test ! -s conftest.err
17246        } && test -s conftest.$ac_objext; then
17247   :
17248 else
17249   $as_echo "$as_me: failed program was:" >&5
17250 sed 's/^/| /' conftest.$ac_ext >&5
17251
17252         ac_cv_type_struct_cmsgcred=yes
17253 fi
17254
17255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17256 else
17257   $as_echo "$as_me: failed program was:" >&5
17258 sed 's/^/| /' conftest.$ac_ext >&5
17259
17260
17261 fi
17262
17263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17264 fi
17265 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
17266 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
17267 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
17268
17269 cat >>confdefs.h <<_ACEOF
17270 #define HAVE_STRUCT_CMSGCRED 1
17271 _ACEOF
17272
17273
17274 fi
17275
17276
17277 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
17278 $as_echo_n "checking for struct option... " >&6; }
17279 if test "${ac_cv_type_struct_option+set}" = set; then
17280   $as_echo_n "(cached) " >&6
17281 else
17282   ac_cv_type_struct_option=no
17283 cat >conftest.$ac_ext <<_ACEOF
17284 /* confdefs.h.  */
17285 _ACEOF
17286 cat confdefs.h >>conftest.$ac_ext
17287 cat >>conftest.$ac_ext <<_ACEOF
17288 /* end confdefs.h.  */
17289 #ifdef HAVE_GETOPT_H
17290 #include <getopt.h>
17291 #endif
17292
17293 int
17294 main ()
17295 {
17296 if (sizeof (struct option))
17297        return 0;
17298   ;
17299   return 0;
17300 }
17301 _ACEOF
17302 rm -f conftest.$ac_objext
17303 if { (ac_try="$ac_compile"
17304 case "(($ac_try" in
17305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17306   *) ac_try_echo=$ac_try;;
17307 esac
17308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17309 $as_echo "$ac_try_echo") >&5
17310   (eval "$ac_compile") 2>conftest.er1
17311   ac_status=$?
17312   grep -v '^ *+' conftest.er1 >conftest.err
17313   rm -f conftest.er1
17314   cat conftest.err >&5
17315   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316   (exit $ac_status); } && {
17317          test -z "$ac_c_werror_flag" ||
17318          test ! -s conftest.err
17319        } && test -s conftest.$ac_objext; then
17320   cat >conftest.$ac_ext <<_ACEOF
17321 /* confdefs.h.  */
17322 _ACEOF
17323 cat confdefs.h >>conftest.$ac_ext
17324 cat >>conftest.$ac_ext <<_ACEOF
17325 /* end confdefs.h.  */
17326 #ifdef HAVE_GETOPT_H
17327 #include <getopt.h>
17328 #endif
17329
17330 int
17331 main ()
17332 {
17333 if (sizeof ((struct option)))
17334           return 0;
17335   ;
17336   return 0;
17337 }
17338 _ACEOF
17339 rm -f conftest.$ac_objext
17340 if { (ac_try="$ac_compile"
17341 case "(($ac_try" in
17342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17343   *) ac_try_echo=$ac_try;;
17344 esac
17345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17346 $as_echo "$ac_try_echo") >&5
17347   (eval "$ac_compile") 2>conftest.er1
17348   ac_status=$?
17349   grep -v '^ *+' conftest.er1 >conftest.err
17350   rm -f conftest.er1
17351   cat conftest.err >&5
17352   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353   (exit $ac_status); } && {
17354          test -z "$ac_c_werror_flag" ||
17355          test ! -s conftest.err
17356        } && test -s conftest.$ac_objext; then
17357   :
17358 else
17359   $as_echo "$as_me: failed program was:" >&5
17360 sed 's/^/| /' conftest.$ac_ext >&5
17361
17362         ac_cv_type_struct_option=yes
17363 fi
17364
17365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17366 else
17367   $as_echo "$as_me: failed program was:" >&5
17368 sed 's/^/| /' conftest.$ac_ext >&5
17369
17370
17371 fi
17372
17373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17374 fi
17375 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
17376 $as_echo "$ac_cv_type_struct_option" >&6; }
17377 if test "x$ac_cv_type_struct_option" = x""yes; then
17378
17379 cat >>confdefs.h <<_ACEOF
17380 #define HAVE_STRUCT_OPTION 1
17381 _ACEOF
17382
17383
17384 fi
17385
17386
17387 if test "$with_zlib" = yes; then
17388   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
17389   # did not).  While we could work around the lack of z_streamp, it
17390   # seems unwise to encourage people to use such old zlib versions...
17391   { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
17392 $as_echo_n "checking for z_streamp... " >&6; }
17393 if test "${ac_cv_type_z_streamp+set}" = set; then
17394   $as_echo_n "(cached) " >&6
17395 else
17396   ac_cv_type_z_streamp=no
17397 cat >conftest.$ac_ext <<_ACEOF
17398 /* confdefs.h.  */
17399 _ACEOF
17400 cat confdefs.h >>conftest.$ac_ext
17401 cat >>conftest.$ac_ext <<_ACEOF
17402 /* end confdefs.h.  */
17403 #include <zlib.h>
17404
17405 int
17406 main ()
17407 {
17408 if (sizeof (z_streamp))
17409        return 0;
17410   ;
17411   return 0;
17412 }
17413 _ACEOF
17414 rm -f conftest.$ac_objext
17415 if { (ac_try="$ac_compile"
17416 case "(($ac_try" in
17417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17418   *) ac_try_echo=$ac_try;;
17419 esac
17420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17421 $as_echo "$ac_try_echo") >&5
17422   (eval "$ac_compile") 2>conftest.er1
17423   ac_status=$?
17424   grep -v '^ *+' conftest.er1 >conftest.err
17425   rm -f conftest.er1
17426   cat conftest.err >&5
17427   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428   (exit $ac_status); } && {
17429          test -z "$ac_c_werror_flag" ||
17430          test ! -s conftest.err
17431        } && test -s conftest.$ac_objext; then
17432   cat >conftest.$ac_ext <<_ACEOF
17433 /* confdefs.h.  */
17434 _ACEOF
17435 cat confdefs.h >>conftest.$ac_ext
17436 cat >>conftest.$ac_ext <<_ACEOF
17437 /* end confdefs.h.  */
17438 #include <zlib.h>
17439
17440 int
17441 main ()
17442 {
17443 if (sizeof ((z_streamp)))
17444           return 0;
17445   ;
17446   return 0;
17447 }
17448 _ACEOF
17449 rm -f conftest.$ac_objext
17450 if { (ac_try="$ac_compile"
17451 case "(($ac_try" in
17452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17453   *) ac_try_echo=$ac_try;;
17454 esac
17455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17456 $as_echo "$ac_try_echo") >&5
17457   (eval "$ac_compile") 2>conftest.er1
17458   ac_status=$?
17459   grep -v '^ *+' conftest.er1 >conftest.err
17460   rm -f conftest.er1
17461   cat conftest.err >&5
17462   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463   (exit $ac_status); } && {
17464          test -z "$ac_c_werror_flag" ||
17465          test ! -s conftest.err
17466        } && test -s conftest.$ac_objext; then
17467   :
17468 else
17469   $as_echo "$as_me: failed program was:" >&5
17470 sed 's/^/| /' conftest.$ac_ext >&5
17471
17472         ac_cv_type_z_streamp=yes
17473 fi
17474
17475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17476 else
17477   $as_echo "$as_me: failed program was:" >&5
17478 sed 's/^/| /' conftest.$ac_ext >&5
17479
17480
17481 fi
17482
17483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17484 fi
17485 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
17486 $as_echo "$ac_cv_type_z_streamp" >&6; }
17487 if test "x$ac_cv_type_z_streamp" = x""yes; then
17488   :
17489 else
17490   { { $as_echo "$as_me:$LINENO: error: zlib version is too old
17491 Use --without-zlib to disable zlib support." >&5
17492 $as_echo "$as_me: error: zlib version is too old
17493 Use --without-zlib to disable zlib support." >&2;}
17494    { (exit 1); exit 1; }; }
17495 fi
17496
17497 fi
17498
17499 if test "$with_krb5" = yes; then
17500 # Check for differences between MIT and Heimdal (KTH) releases
17501   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
17502 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
17503 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
17504   $as_echo_n "(cached) " >&6
17505 else
17506   cat >conftest.$ac_ext <<_ACEOF
17507 /* confdefs.h.  */
17508 _ACEOF
17509 cat confdefs.h >>conftest.$ac_ext
17510 cat >>conftest.$ac_ext <<_ACEOF
17511 /* end confdefs.h.  */
17512 #include <krb5.h>
17513
17514 int
17515 main ()
17516 {
17517 static krb5_ticket ac_aggr;
17518 if (ac_aggr.enc_part2)
17519 return 0;
17520   ;
17521   return 0;
17522 }
17523 _ACEOF
17524 rm -f conftest.$ac_objext
17525 if { (ac_try="$ac_compile"
17526 case "(($ac_try" in
17527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17528   *) ac_try_echo=$ac_try;;
17529 esac
17530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17531 $as_echo "$ac_try_echo") >&5
17532   (eval "$ac_compile") 2>conftest.er1
17533   ac_status=$?
17534   grep -v '^ *+' conftest.er1 >conftest.err
17535   rm -f conftest.er1
17536   cat conftest.err >&5
17537   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538   (exit $ac_status); } && {
17539          test -z "$ac_c_werror_flag" ||
17540          test ! -s conftest.err
17541        } && test -s conftest.$ac_objext; then
17542   ac_cv_member_krb5_ticket_enc_part2=yes
17543 else
17544   $as_echo "$as_me: failed program was:" >&5
17545 sed 's/^/| /' conftest.$ac_ext >&5
17546
17547         cat >conftest.$ac_ext <<_ACEOF
17548 /* confdefs.h.  */
17549 _ACEOF
17550 cat confdefs.h >>conftest.$ac_ext
17551 cat >>conftest.$ac_ext <<_ACEOF
17552 /* end confdefs.h.  */
17553 #include <krb5.h>
17554
17555 int
17556 main ()
17557 {
17558 static krb5_ticket ac_aggr;
17559 if (sizeof ac_aggr.enc_part2)
17560 return 0;
17561   ;
17562   return 0;
17563 }
17564 _ACEOF
17565 rm -f conftest.$ac_objext
17566 if { (ac_try="$ac_compile"
17567 case "(($ac_try" in
17568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17569   *) ac_try_echo=$ac_try;;
17570 esac
17571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17572 $as_echo "$ac_try_echo") >&5
17573   (eval "$ac_compile") 2>conftest.er1
17574   ac_status=$?
17575   grep -v '^ *+' conftest.er1 >conftest.err
17576   rm -f conftest.er1
17577   cat conftest.err >&5
17578   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579   (exit $ac_status); } && {
17580          test -z "$ac_c_werror_flag" ||
17581          test ! -s conftest.err
17582        } && test -s conftest.$ac_objext; then
17583   ac_cv_member_krb5_ticket_enc_part2=yes
17584 else
17585   $as_echo "$as_me: failed program was:" >&5
17586 sed 's/^/| /' conftest.$ac_ext >&5
17587
17588         ac_cv_member_krb5_ticket_enc_part2=no
17589 fi
17590
17591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17592 fi
17593
17594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17595 fi
17596 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
17597 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
17598 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
17599
17600 cat >>confdefs.h <<_ACEOF
17601 #define HAVE_KRB5_TICKET_ENC_PART2 1
17602 _ACEOF
17603
17604
17605 else
17606   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
17607 $as_echo_n "checking for krb5_ticket.client... " >&6; }
17608 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
17609   $as_echo_n "(cached) " >&6
17610 else
17611   cat >conftest.$ac_ext <<_ACEOF
17612 /* confdefs.h.  */
17613 _ACEOF
17614 cat confdefs.h >>conftest.$ac_ext
17615 cat >>conftest.$ac_ext <<_ACEOF
17616 /* end confdefs.h.  */
17617 #include <krb5.h>
17618
17619 int
17620 main ()
17621 {
17622 static krb5_ticket ac_aggr;
17623 if (ac_aggr.client)
17624 return 0;
17625   ;
17626   return 0;
17627 }
17628 _ACEOF
17629 rm -f conftest.$ac_objext
17630 if { (ac_try="$ac_compile"
17631 case "(($ac_try" in
17632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17633   *) ac_try_echo=$ac_try;;
17634 esac
17635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17636 $as_echo "$ac_try_echo") >&5
17637   (eval "$ac_compile") 2>conftest.er1
17638   ac_status=$?
17639   grep -v '^ *+' conftest.er1 >conftest.err
17640   rm -f conftest.er1
17641   cat conftest.err >&5
17642   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643   (exit $ac_status); } && {
17644          test -z "$ac_c_werror_flag" ||
17645          test ! -s conftest.err
17646        } && test -s conftest.$ac_objext; then
17647   ac_cv_member_krb5_ticket_client=yes
17648 else
17649   $as_echo "$as_me: failed program was:" >&5
17650 sed 's/^/| /' conftest.$ac_ext >&5
17651
17652         cat >conftest.$ac_ext <<_ACEOF
17653 /* confdefs.h.  */
17654 _ACEOF
17655 cat confdefs.h >>conftest.$ac_ext
17656 cat >>conftest.$ac_ext <<_ACEOF
17657 /* end confdefs.h.  */
17658 #include <krb5.h>
17659
17660 int
17661 main ()
17662 {
17663 static krb5_ticket ac_aggr;
17664 if (sizeof ac_aggr.client)
17665 return 0;
17666   ;
17667   return 0;
17668 }
17669 _ACEOF
17670 rm -f conftest.$ac_objext
17671 if { (ac_try="$ac_compile"
17672 case "(($ac_try" in
17673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17674   *) ac_try_echo=$ac_try;;
17675 esac
17676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17677 $as_echo "$ac_try_echo") >&5
17678   (eval "$ac_compile") 2>conftest.er1
17679   ac_status=$?
17680   grep -v '^ *+' conftest.er1 >conftest.err
17681   rm -f conftest.er1
17682   cat conftest.err >&5
17683   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684   (exit $ac_status); } && {
17685          test -z "$ac_c_werror_flag" ||
17686          test ! -s conftest.err
17687        } && test -s conftest.$ac_objext; then
17688   ac_cv_member_krb5_ticket_client=yes
17689 else
17690   $as_echo "$as_me: failed program was:" >&5
17691 sed 's/^/| /' conftest.$ac_ext >&5
17692
17693         ac_cv_member_krb5_ticket_client=no
17694 fi
17695
17696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17697 fi
17698
17699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17700 fi
17701 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
17702 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
17703 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
17704
17705 cat >>confdefs.h <<_ACEOF
17706 #define HAVE_KRB5_TICKET_CLIENT 1
17707 _ACEOF
17708
17709
17710 else
17711   { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
17712 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
17713    { (exit 1); exit 1; }; }
17714 fi
17715
17716 fi
17717
17718   { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
17719 $as_echo_n "checking for krb5_error.text.data... " >&6; }
17720 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
17721   $as_echo_n "(cached) " >&6
17722 else
17723   cat >conftest.$ac_ext <<_ACEOF
17724 /* confdefs.h.  */
17725 _ACEOF
17726 cat confdefs.h >>conftest.$ac_ext
17727 cat >>conftest.$ac_ext <<_ACEOF
17728 /* end confdefs.h.  */
17729 #include <krb5.h>
17730
17731 int
17732 main ()
17733 {
17734 static krb5_error ac_aggr;
17735 if (ac_aggr.text.data)
17736 return 0;
17737   ;
17738   return 0;
17739 }
17740 _ACEOF
17741 rm -f conftest.$ac_objext
17742 if { (ac_try="$ac_compile"
17743 case "(($ac_try" in
17744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745   *) ac_try_echo=$ac_try;;
17746 esac
17747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17748 $as_echo "$ac_try_echo") >&5
17749   (eval "$ac_compile") 2>conftest.er1
17750   ac_status=$?
17751   grep -v '^ *+' conftest.er1 >conftest.err
17752   rm -f conftest.er1
17753   cat conftest.err >&5
17754   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755   (exit $ac_status); } && {
17756          test -z "$ac_c_werror_flag" ||
17757          test ! -s conftest.err
17758        } && test -s conftest.$ac_objext; then
17759   ac_cv_member_krb5_error_text_data=yes
17760 else
17761   $as_echo "$as_me: failed program was:" >&5
17762 sed 's/^/| /' conftest.$ac_ext >&5
17763
17764         cat >conftest.$ac_ext <<_ACEOF
17765 /* confdefs.h.  */
17766 _ACEOF
17767 cat confdefs.h >>conftest.$ac_ext
17768 cat >>conftest.$ac_ext <<_ACEOF
17769 /* end confdefs.h.  */
17770 #include <krb5.h>
17771
17772 int
17773 main ()
17774 {
17775 static krb5_error ac_aggr;
17776 if (sizeof ac_aggr.text.data)
17777 return 0;
17778   ;
17779   return 0;
17780 }
17781 _ACEOF
17782 rm -f conftest.$ac_objext
17783 if { (ac_try="$ac_compile"
17784 case "(($ac_try" in
17785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17786   *) ac_try_echo=$ac_try;;
17787 esac
17788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17789 $as_echo "$ac_try_echo") >&5
17790   (eval "$ac_compile") 2>conftest.er1
17791   ac_status=$?
17792   grep -v '^ *+' conftest.er1 >conftest.err
17793   rm -f conftest.er1
17794   cat conftest.err >&5
17795   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796   (exit $ac_status); } && {
17797          test -z "$ac_c_werror_flag" ||
17798          test ! -s conftest.err
17799        } && test -s conftest.$ac_objext; then
17800   ac_cv_member_krb5_error_text_data=yes
17801 else
17802   $as_echo "$as_me: failed program was:" >&5
17803 sed 's/^/| /' conftest.$ac_ext >&5
17804
17805         ac_cv_member_krb5_error_text_data=no
17806 fi
17807
17808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17809 fi
17810
17811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17812 fi
17813 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
17814 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
17815 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
17816
17817 cat >>confdefs.h <<_ACEOF
17818 #define HAVE_KRB5_ERROR_TEXT_DATA 1
17819 _ACEOF
17820
17821
17822 else
17823   { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
17824 $as_echo_n "checking for krb5_error.e_data... " >&6; }
17825 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
17826   $as_echo_n "(cached) " >&6
17827 else
17828   cat >conftest.$ac_ext <<_ACEOF
17829 /* confdefs.h.  */
17830 _ACEOF
17831 cat confdefs.h >>conftest.$ac_ext
17832 cat >>conftest.$ac_ext <<_ACEOF
17833 /* end confdefs.h.  */
17834 #include <krb5.h>
17835
17836 int
17837 main ()
17838 {
17839 static krb5_error ac_aggr;
17840 if (ac_aggr.e_data)
17841 return 0;
17842   ;
17843   return 0;
17844 }
17845 _ACEOF
17846 rm -f conftest.$ac_objext
17847 if { (ac_try="$ac_compile"
17848 case "(($ac_try" in
17849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17850   *) ac_try_echo=$ac_try;;
17851 esac
17852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17853 $as_echo "$ac_try_echo") >&5
17854   (eval "$ac_compile") 2>conftest.er1
17855   ac_status=$?
17856   grep -v '^ *+' conftest.er1 >conftest.err
17857   rm -f conftest.er1
17858   cat conftest.err >&5
17859   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860   (exit $ac_status); } && {
17861          test -z "$ac_c_werror_flag" ||
17862          test ! -s conftest.err
17863        } && test -s conftest.$ac_objext; then
17864   ac_cv_member_krb5_error_e_data=yes
17865 else
17866   $as_echo "$as_me: failed program was:" >&5
17867 sed 's/^/| /' conftest.$ac_ext >&5
17868
17869         cat >conftest.$ac_ext <<_ACEOF
17870 /* confdefs.h.  */
17871 _ACEOF
17872 cat confdefs.h >>conftest.$ac_ext
17873 cat >>conftest.$ac_ext <<_ACEOF
17874 /* end confdefs.h.  */
17875 #include <krb5.h>
17876
17877 int
17878 main ()
17879 {
17880 static krb5_error ac_aggr;
17881 if (sizeof ac_aggr.e_data)
17882 return 0;
17883   ;
17884   return 0;
17885 }
17886 _ACEOF
17887 rm -f conftest.$ac_objext
17888 if { (ac_try="$ac_compile"
17889 case "(($ac_try" in
17890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17891   *) ac_try_echo=$ac_try;;
17892 esac
17893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17894 $as_echo "$ac_try_echo") >&5
17895   (eval "$ac_compile") 2>conftest.er1
17896   ac_status=$?
17897   grep -v '^ *+' conftest.er1 >conftest.err
17898   rm -f conftest.er1
17899   cat conftest.err >&5
17900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901   (exit $ac_status); } && {
17902          test -z "$ac_c_werror_flag" ||
17903          test ! -s conftest.err
17904        } && test -s conftest.$ac_objext; then
17905   ac_cv_member_krb5_error_e_data=yes
17906 else
17907   $as_echo "$as_me: failed program was:" >&5
17908 sed 's/^/| /' conftest.$ac_ext >&5
17909
17910         ac_cv_member_krb5_error_e_data=no
17911 fi
17912
17913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17914 fi
17915
17916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17917 fi
17918 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
17919 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
17920 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
17921
17922 cat >>confdefs.h <<_ACEOF
17923 #define HAVE_KRB5_ERROR_E_DATA 1
17924 _ACEOF
17925
17926
17927 else
17928   { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
17929 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
17930    { (exit 1); exit 1; }; }
17931 fi
17932
17933 fi
17934
17935
17936 # Win32 requires headers to be loaded for __stdcall, so can't use
17937 # AC_CHECK_FUNCS here.
17938   { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
17939 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
17940   cat >conftest.$ac_ext <<_ACEOF
17941 /* confdefs.h.  */
17942 _ACEOF
17943 cat confdefs.h >>conftest.$ac_ext
17944 cat >>conftest.$ac_ext <<_ACEOF
17945 /* end confdefs.h.  */
17946 #include <krb5.h>
17947 int
17948 main ()
17949 {
17950 krb5_free_unparsed_name(NULL,NULL);
17951   ;
17952   return 0;
17953 }
17954 _ACEOF
17955 rm -f conftest.$ac_objext conftest$ac_exeext
17956 if { (ac_try="$ac_link"
17957 case "(($ac_try" in
17958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17959   *) ac_try_echo=$ac_try;;
17960 esac
17961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17962 $as_echo "$ac_try_echo") >&5
17963   (eval "$ac_link") 2>conftest.er1
17964   ac_status=$?
17965   grep -v '^ *+' conftest.er1 >conftest.err
17966   rm -f conftest.er1
17967   cat conftest.err >&5
17968   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969   (exit $ac_status); } && {
17970          test -z "$ac_c_werror_flag" ||
17971          test ! -s conftest.err
17972        } && test -s conftest$ac_exeext && {
17973          test "$cross_compiling" = yes ||
17974          $as_test_x conftest$ac_exeext
17975        }; then
17976
17977 cat >>confdefs.h <<\_ACEOF
17978 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
17979 _ACEOF
17980
17981 { $as_echo "$as_me:$LINENO: result: yes" >&5
17982 $as_echo "yes" >&6; }
17983 else
17984   $as_echo "$as_me: failed program was:" >&5
17985 sed 's/^/| /' conftest.$ac_ext >&5
17986
17987         { $as_echo "$as_me:$LINENO: result: no" >&5
17988 $as_echo "no" >&6; }
17989 fi
17990
17991 rm -rf conftest.dSYM
17992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17993       conftest$ac_exeext conftest.$ac_ext
17994 fi
17995
17996 # Check largefile support.  You might think this is a system service not a
17997 # compiler characteristic, but you'd be wrong.  We must check this before
17998 # probing existence of related functions such as fseeko, since the largefile
17999 # defines can affect what is generated for that.
18000 # Check whether --enable-largefile was given.
18001 if test "${enable_largefile+set}" = set; then
18002   enableval=$enable_largefile;
18003 fi
18004
18005 if test "$enable_largefile" != no; then
18006
18007   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
18008 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18009 if test "${ac_cv_sys_largefile_CC+set}" = set; then
18010   $as_echo_n "(cached) " >&6
18011 else
18012   ac_cv_sys_largefile_CC=no
18013      if test "$GCC" != yes; then
18014        ac_save_CC=$CC
18015        while :; do
18016          # IRIX 6.2 and later do not support large files by default,
18017          # so use the C compiler's -n32 option if that helps.
18018          cat >conftest.$ac_ext <<_ACEOF
18019 /* confdefs.h.  */
18020 _ACEOF
18021 cat confdefs.h >>conftest.$ac_ext
18022 cat >>conftest.$ac_ext <<_ACEOF
18023 /* end confdefs.h.  */
18024 #include <sys/types.h>
18025  /* Check that off_t can represent 2**63 - 1 correctly.
18026     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18027     since some C++ compilers masquerading as C compilers
18028     incorrectly reject 9223372036854775807.  */
18029 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18030   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18031                        && LARGE_OFF_T % 2147483647 == 1)
18032                       ? 1 : -1];
18033 int
18034 main ()
18035 {
18036
18037   ;
18038   return 0;
18039 }
18040 _ACEOF
18041          rm -f conftest.$ac_objext
18042 if { (ac_try="$ac_compile"
18043 case "(($ac_try" in
18044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18045   *) ac_try_echo=$ac_try;;
18046 esac
18047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18048 $as_echo "$ac_try_echo") >&5
18049   (eval "$ac_compile") 2>conftest.er1
18050   ac_status=$?
18051   grep -v '^ *+' conftest.er1 >conftest.err
18052   rm -f conftest.er1
18053   cat conftest.err >&5
18054   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055   (exit $ac_status); } && {
18056          test -z "$ac_c_werror_flag" ||
18057          test ! -s conftest.err
18058        } && test -s conftest.$ac_objext; then
18059   break
18060 else
18061   $as_echo "$as_me: failed program was:" >&5
18062 sed 's/^/| /' conftest.$ac_ext >&5
18063
18064
18065 fi
18066
18067 rm -f core conftest.err conftest.$ac_objext
18068          CC="$CC -n32"
18069          rm -f conftest.$ac_objext
18070 if { (ac_try="$ac_compile"
18071 case "(($ac_try" in
18072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18073   *) ac_try_echo=$ac_try;;
18074 esac
18075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18076 $as_echo "$ac_try_echo") >&5
18077   (eval "$ac_compile") 2>conftest.er1
18078   ac_status=$?
18079   grep -v '^ *+' conftest.er1 >conftest.err
18080   rm -f conftest.er1
18081   cat conftest.err >&5
18082   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083   (exit $ac_status); } && {
18084          test -z "$ac_c_werror_flag" ||
18085          test ! -s conftest.err
18086        } && test -s conftest.$ac_objext; then
18087   ac_cv_sys_largefile_CC=' -n32'; break
18088 else
18089   $as_echo "$as_me: failed program was:" >&5
18090 sed 's/^/| /' conftest.$ac_ext >&5
18091
18092
18093 fi
18094
18095 rm -f core conftest.err conftest.$ac_objext
18096          break
18097        done
18098        CC=$ac_save_CC
18099        rm -f conftest.$ac_ext
18100     fi
18101 fi
18102 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
18103 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
18104   if test "$ac_cv_sys_largefile_CC" != no; then
18105     CC=$CC$ac_cv_sys_largefile_CC
18106   fi
18107
18108   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18109 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18110 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18111   $as_echo_n "(cached) " >&6
18112 else
18113   while :; do
18114   cat >conftest.$ac_ext <<_ACEOF
18115 /* confdefs.h.  */
18116 _ACEOF
18117 cat confdefs.h >>conftest.$ac_ext
18118 cat >>conftest.$ac_ext <<_ACEOF
18119 /* end confdefs.h.  */
18120 #include <sys/types.h>
18121  /* Check that off_t can represent 2**63 - 1 correctly.
18122     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18123     since some C++ compilers masquerading as C compilers
18124     incorrectly reject 9223372036854775807.  */
18125 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18126   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18127                        && LARGE_OFF_T % 2147483647 == 1)
18128                       ? 1 : -1];
18129 int
18130 main ()
18131 {
18132
18133   ;
18134   return 0;
18135 }
18136 _ACEOF
18137 rm -f conftest.$ac_objext
18138 if { (ac_try="$ac_compile"
18139 case "(($ac_try" in
18140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18141   *) ac_try_echo=$ac_try;;
18142 esac
18143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18144 $as_echo "$ac_try_echo") >&5
18145   (eval "$ac_compile") 2>conftest.er1
18146   ac_status=$?
18147   grep -v '^ *+' conftest.er1 >conftest.err
18148   rm -f conftest.er1
18149   cat conftest.err >&5
18150   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151   (exit $ac_status); } && {
18152          test -z "$ac_c_werror_flag" ||
18153          test ! -s conftest.err
18154        } && test -s conftest.$ac_objext; then
18155   ac_cv_sys_file_offset_bits=no; break
18156 else
18157   $as_echo "$as_me: failed program was:" >&5
18158 sed 's/^/| /' conftest.$ac_ext >&5
18159
18160
18161 fi
18162
18163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18164   cat >conftest.$ac_ext <<_ACEOF
18165 /* confdefs.h.  */
18166 _ACEOF
18167 cat confdefs.h >>conftest.$ac_ext
18168 cat >>conftest.$ac_ext <<_ACEOF
18169 /* end confdefs.h.  */
18170 #define _FILE_OFFSET_BITS 64
18171 #include <sys/types.h>
18172  /* Check that off_t can represent 2**63 - 1 correctly.
18173     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18174     since some C++ compilers masquerading as C compilers
18175     incorrectly reject 9223372036854775807.  */
18176 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18177   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18178                        && LARGE_OFF_T % 2147483647 == 1)
18179                       ? 1 : -1];
18180 int
18181 main ()
18182 {
18183
18184   ;
18185   return 0;
18186 }
18187 _ACEOF
18188 rm -f conftest.$ac_objext
18189 if { (ac_try="$ac_compile"
18190 case "(($ac_try" in
18191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18192   *) ac_try_echo=$ac_try;;
18193 esac
18194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18195 $as_echo "$ac_try_echo") >&5
18196   (eval "$ac_compile") 2>conftest.er1
18197   ac_status=$?
18198   grep -v '^ *+' conftest.er1 >conftest.err
18199   rm -f conftest.er1
18200   cat conftest.err >&5
18201   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202   (exit $ac_status); } && {
18203          test -z "$ac_c_werror_flag" ||
18204          test ! -s conftest.err
18205        } && test -s conftest.$ac_objext; then
18206   ac_cv_sys_file_offset_bits=64; break
18207 else
18208   $as_echo "$as_me: failed program was:" >&5
18209 sed 's/^/| /' conftest.$ac_ext >&5
18210
18211
18212 fi
18213
18214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18215   ac_cv_sys_file_offset_bits=unknown
18216   break
18217 done
18218 fi
18219 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18220 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18221 case $ac_cv_sys_file_offset_bits in #(
18222   no | unknown) ;;
18223   *)
18224 cat >>confdefs.h <<_ACEOF
18225 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18226 _ACEOF
18227 ;;
18228 esac
18229 rm -rf conftest*
18230   if test $ac_cv_sys_file_offset_bits = unknown; then
18231     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18232 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18233 if test "${ac_cv_sys_large_files+set}" = set; then
18234   $as_echo_n "(cached) " >&6
18235 else
18236   while :; do
18237   cat >conftest.$ac_ext <<_ACEOF
18238 /* confdefs.h.  */
18239 _ACEOF
18240 cat confdefs.h >>conftest.$ac_ext
18241 cat >>conftest.$ac_ext <<_ACEOF
18242 /* end confdefs.h.  */
18243 #include <sys/types.h>
18244  /* Check that off_t can represent 2**63 - 1 correctly.
18245     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18246     since some C++ compilers masquerading as C compilers
18247     incorrectly reject 9223372036854775807.  */
18248 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18249   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18250                        && LARGE_OFF_T % 2147483647 == 1)
18251                       ? 1 : -1];
18252 int
18253 main ()
18254 {
18255
18256   ;
18257   return 0;
18258 }
18259 _ACEOF
18260 rm -f conftest.$ac_objext
18261 if { (ac_try="$ac_compile"
18262 case "(($ac_try" in
18263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18264   *) ac_try_echo=$ac_try;;
18265 esac
18266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18267 $as_echo "$ac_try_echo") >&5
18268   (eval "$ac_compile") 2>conftest.er1
18269   ac_status=$?
18270   grep -v '^ *+' conftest.er1 >conftest.err
18271   rm -f conftest.er1
18272   cat conftest.err >&5
18273   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274   (exit $ac_status); } && {
18275          test -z "$ac_c_werror_flag" ||
18276          test ! -s conftest.err
18277        } && test -s conftest.$ac_objext; then
18278   ac_cv_sys_large_files=no; break
18279 else
18280   $as_echo "$as_me: failed program was:" >&5
18281 sed 's/^/| /' conftest.$ac_ext >&5
18282
18283
18284 fi
18285
18286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18287   cat >conftest.$ac_ext <<_ACEOF
18288 /* confdefs.h.  */
18289 _ACEOF
18290 cat confdefs.h >>conftest.$ac_ext
18291 cat >>conftest.$ac_ext <<_ACEOF
18292 /* end confdefs.h.  */
18293 #define _LARGE_FILES 1
18294 #include <sys/types.h>
18295  /* Check that off_t can represent 2**63 - 1 correctly.
18296     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18297     since some C++ compilers masquerading as C compilers
18298     incorrectly reject 9223372036854775807.  */
18299 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18300   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18301                        && LARGE_OFF_T % 2147483647 == 1)
18302                       ? 1 : -1];
18303 int
18304 main ()
18305 {
18306
18307   ;
18308   return 0;
18309 }
18310 _ACEOF
18311 rm -f conftest.$ac_objext
18312 if { (ac_try="$ac_compile"
18313 case "(($ac_try" in
18314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18315   *) ac_try_echo=$ac_try;;
18316 esac
18317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18318 $as_echo "$ac_try_echo") >&5
18319   (eval "$ac_compile") 2>conftest.er1
18320   ac_status=$?
18321   grep -v '^ *+' conftest.er1 >conftest.err
18322   rm -f conftest.er1
18323   cat conftest.err >&5
18324   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325   (exit $ac_status); } && {
18326          test -z "$ac_c_werror_flag" ||
18327          test ! -s conftest.err
18328        } && test -s conftest.$ac_objext; then
18329   ac_cv_sys_large_files=1; break
18330 else
18331   $as_echo "$as_me: failed program was:" >&5
18332 sed 's/^/| /' conftest.$ac_ext >&5
18333
18334
18335 fi
18336
18337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18338   ac_cv_sys_large_files=unknown
18339   break
18340 done
18341 fi
18342 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18343 $as_echo "$ac_cv_sys_large_files" >&6; }
18344 case $ac_cv_sys_large_files in #(
18345   no | unknown) ;;
18346   *)
18347 cat >>confdefs.h <<_ACEOF
18348 #define _LARGE_FILES $ac_cv_sys_large_files
18349 _ACEOF
18350 ;;
18351 esac
18352 rm -rf conftest*
18353   fi
18354 fi
18355
18356
18357 # Check for largefile support (must be after AC_SYS_LARGEFILE)
18358 # The cast to long int works around a bug in the HP C Compiler
18359 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18360 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18361 # This bug is HP SR number 8606223364.
18362 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
18363 $as_echo_n "checking size of off_t... " >&6; }
18364 if test "${ac_cv_sizeof_off_t+set}" = set; then
18365   $as_echo_n "(cached) " >&6
18366 else
18367   if test "$cross_compiling" = yes; then
18368   # Depending upon the size, compute the lo and hi bounds.
18369 cat >conftest.$ac_ext <<_ACEOF
18370 /* confdefs.h.  */
18371 _ACEOF
18372 cat confdefs.h >>conftest.$ac_ext
18373 cat >>conftest.$ac_ext <<_ACEOF
18374 /* end confdefs.h.  */
18375 $ac_includes_default
18376 int
18377 main ()
18378 {
18379 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
18380 test_array [0] = 0
18381
18382   ;
18383   return 0;
18384 }
18385 _ACEOF
18386 rm -f conftest.$ac_objext
18387 if { (ac_try="$ac_compile"
18388 case "(($ac_try" in
18389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18390   *) ac_try_echo=$ac_try;;
18391 esac
18392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18393 $as_echo "$ac_try_echo") >&5
18394   (eval "$ac_compile") 2>conftest.er1
18395   ac_status=$?
18396   grep -v '^ *+' conftest.er1 >conftest.err
18397   rm -f conftest.er1
18398   cat conftest.err >&5
18399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400   (exit $ac_status); } && {
18401          test -z "$ac_c_werror_flag" ||
18402          test ! -s conftest.err
18403        } && test -s conftest.$ac_objext; then
18404   ac_lo=0 ac_mid=0
18405   while :; do
18406     cat >conftest.$ac_ext <<_ACEOF
18407 /* confdefs.h.  */
18408 _ACEOF
18409 cat confdefs.h >>conftest.$ac_ext
18410 cat >>conftest.$ac_ext <<_ACEOF
18411 /* end confdefs.h.  */
18412 $ac_includes_default
18413 int
18414 main ()
18415 {
18416 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18417 test_array [0] = 0
18418
18419   ;
18420   return 0;
18421 }
18422 _ACEOF
18423 rm -f conftest.$ac_objext
18424 if { (ac_try="$ac_compile"
18425 case "(($ac_try" in
18426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18427   *) ac_try_echo=$ac_try;;
18428 esac
18429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18430 $as_echo "$ac_try_echo") >&5
18431   (eval "$ac_compile") 2>conftest.er1
18432   ac_status=$?
18433   grep -v '^ *+' conftest.er1 >conftest.err
18434   rm -f conftest.er1
18435   cat conftest.err >&5
18436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437   (exit $ac_status); } && {
18438          test -z "$ac_c_werror_flag" ||
18439          test ! -s conftest.err
18440        } && test -s conftest.$ac_objext; then
18441   ac_hi=$ac_mid; break
18442 else
18443   $as_echo "$as_me: failed program was:" >&5
18444 sed 's/^/| /' conftest.$ac_ext >&5
18445
18446         ac_lo=`expr $ac_mid + 1`
18447                         if test $ac_lo -le $ac_mid; then
18448                           ac_lo= ac_hi=
18449                           break
18450                         fi
18451                         ac_mid=`expr 2 '*' $ac_mid + 1`
18452 fi
18453
18454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18455   done
18456 else
18457   $as_echo "$as_me: failed program was:" >&5
18458 sed 's/^/| /' conftest.$ac_ext >&5
18459
18460         cat >conftest.$ac_ext <<_ACEOF
18461 /* confdefs.h.  */
18462 _ACEOF
18463 cat confdefs.h >>conftest.$ac_ext
18464 cat >>conftest.$ac_ext <<_ACEOF
18465 /* end confdefs.h.  */
18466 $ac_includes_default
18467 int
18468 main ()
18469 {
18470 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
18471 test_array [0] = 0
18472
18473   ;
18474   return 0;
18475 }
18476 _ACEOF
18477 rm -f conftest.$ac_objext
18478 if { (ac_try="$ac_compile"
18479 case "(($ac_try" in
18480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18481   *) ac_try_echo=$ac_try;;
18482 esac
18483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18484 $as_echo "$ac_try_echo") >&5
18485   (eval "$ac_compile") 2>conftest.er1
18486   ac_status=$?
18487   grep -v '^ *+' conftest.er1 >conftest.err
18488   rm -f conftest.er1
18489   cat conftest.err >&5
18490   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491   (exit $ac_status); } && {
18492          test -z "$ac_c_werror_flag" ||
18493          test ! -s conftest.err
18494        } && test -s conftest.$ac_objext; then
18495   ac_hi=-1 ac_mid=-1
18496   while :; do
18497     cat >conftest.$ac_ext <<_ACEOF
18498 /* confdefs.h.  */
18499 _ACEOF
18500 cat confdefs.h >>conftest.$ac_ext
18501 cat >>conftest.$ac_ext <<_ACEOF
18502 /* end confdefs.h.  */
18503 $ac_includes_default
18504 int
18505 main ()
18506 {
18507 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
18508 test_array [0] = 0
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_lo=$ac_mid; break
18533 else
18534   $as_echo "$as_me: failed program was:" >&5
18535 sed 's/^/| /' conftest.$ac_ext >&5
18536
18537         ac_hi=`expr '(' $ac_mid ')' - 1`
18538                         if test $ac_mid -le $ac_hi; then
18539                           ac_lo= ac_hi=
18540                           break
18541                         fi
18542                         ac_mid=`expr 2 '*' $ac_mid`
18543 fi
18544
18545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18546   done
18547 else
18548   $as_echo "$as_me: failed program was:" >&5
18549 sed 's/^/| /' conftest.$ac_ext >&5
18550
18551         ac_lo= ac_hi=
18552 fi
18553
18554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18555 fi
18556
18557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18558 # Binary search between lo and hi bounds.
18559 while test "x$ac_lo" != "x$ac_hi"; do
18560   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18561   cat >conftest.$ac_ext <<_ACEOF
18562 /* confdefs.h.  */
18563 _ACEOF
18564 cat confdefs.h >>conftest.$ac_ext
18565 cat >>conftest.$ac_ext <<_ACEOF
18566 /* end confdefs.h.  */
18567 $ac_includes_default
18568 int
18569 main ()
18570 {
18571 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18572 test_array [0] = 0
18573
18574   ;
18575   return 0;
18576 }
18577 _ACEOF
18578 rm -f conftest.$ac_objext
18579 if { (ac_try="$ac_compile"
18580 case "(($ac_try" in
18581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18582   *) ac_try_echo=$ac_try;;
18583 esac
18584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18585 $as_echo "$ac_try_echo") >&5
18586   (eval "$ac_compile") 2>conftest.er1
18587   ac_status=$?
18588   grep -v '^ *+' conftest.er1 >conftest.err
18589   rm -f conftest.er1
18590   cat conftest.err >&5
18591   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592   (exit $ac_status); } && {
18593          test -z "$ac_c_werror_flag" ||
18594          test ! -s conftest.err
18595        } && test -s conftest.$ac_objext; then
18596   ac_hi=$ac_mid
18597 else
18598   $as_echo "$as_me: failed program was:" >&5
18599 sed 's/^/| /' conftest.$ac_ext >&5
18600
18601         ac_lo=`expr '(' $ac_mid ')' + 1`
18602 fi
18603
18604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18605 done
18606 case $ac_lo in
18607 ?*) ac_cv_sizeof_off_t=$ac_lo;;
18608 '') if test "$ac_cv_type_off_t" = yes; then
18609      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18611 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18612 See \`config.log' for more details." >&5
18613 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18614 See \`config.log' for more details." >&2;}
18615    { (exit 77); exit 77; }; }; }
18616    else
18617      ac_cv_sizeof_off_t=0
18618    fi ;;
18619 esac
18620 else
18621   cat >conftest.$ac_ext <<_ACEOF
18622 /* confdefs.h.  */
18623 _ACEOF
18624 cat confdefs.h >>conftest.$ac_ext
18625 cat >>conftest.$ac_ext <<_ACEOF
18626 /* end confdefs.h.  */
18627 $ac_includes_default
18628 static long int longval () { return (long int) (sizeof (off_t)); }
18629 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
18630 #include <stdio.h>
18631 #include <stdlib.h>
18632 int
18633 main ()
18634 {
18635
18636   FILE *f = fopen ("conftest.val", "w");
18637   if (! f)
18638     return 1;
18639   if (((long int) (sizeof (off_t))) < 0)
18640     {
18641       long int i = longval ();
18642       if (i != ((long int) (sizeof (off_t))))
18643         return 1;
18644       fprintf (f, "%ld", i);
18645     }
18646   else
18647     {
18648       unsigned long int i = ulongval ();
18649       if (i != ((long int) (sizeof (off_t))))
18650         return 1;
18651       fprintf (f, "%lu", i);
18652     }
18653   /* Do not output a trailing newline, as this causes \r\n confusion
18654      on some platforms.  */
18655   return ferror (f) || fclose (f) != 0;
18656
18657   ;
18658   return 0;
18659 }
18660 _ACEOF
18661 rm -f conftest$ac_exeext
18662 if { (ac_try="$ac_link"
18663 case "(($ac_try" in
18664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18665   *) ac_try_echo=$ac_try;;
18666 esac
18667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18668 $as_echo "$ac_try_echo") >&5
18669   (eval "$ac_link") 2>&5
18670   ac_status=$?
18671   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18673   { (case "(($ac_try" in
18674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18675   *) ac_try_echo=$ac_try;;
18676 esac
18677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18678 $as_echo "$ac_try_echo") >&5
18679   (eval "$ac_try") 2>&5
18680   ac_status=$?
18681   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682   (exit $ac_status); }; }; then
18683   ac_cv_sizeof_off_t=`cat conftest.val`
18684 else
18685   $as_echo "$as_me: program exited with status $ac_status" >&5
18686 $as_echo "$as_me: failed program was:" >&5
18687 sed 's/^/| /' conftest.$ac_ext >&5
18688
18689 ( exit $ac_status )
18690 if test "$ac_cv_type_off_t" = yes; then
18691      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18693 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18694 See \`config.log' for more details." >&5
18695 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18696 See \`config.log' for more details." >&2;}
18697    { (exit 77); exit 77; }; }; }
18698    else
18699      ac_cv_sizeof_off_t=0
18700    fi
18701 fi
18702 rm -rf conftest.dSYM
18703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18704 fi
18705 rm -f conftest.val
18706 fi
18707 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
18708 $as_echo "$ac_cv_sizeof_off_t" >&6; }
18709
18710
18711
18712 cat >>confdefs.h <<_ACEOF
18713 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
18714 _ACEOF
18715
18716
18717
18718 # If we don't have largefile support, can't handle segsize >= 2GB.
18719 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
18720    { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
18721 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
18722    { (exit 1); exit 1; }; }
18723 fi
18724
18725
18726 ##
18727 ## Functions, global variables
18728 ##
18729
18730 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
18731 $as_echo_n "checking for int timezone... " >&6; }
18732 if test "${pgac_cv_var_int_timezone+set}" = set; then
18733   $as_echo_n "(cached) " >&6
18734 else
18735   cat >conftest.$ac_ext <<_ACEOF
18736 /* confdefs.h.  */
18737 _ACEOF
18738 cat confdefs.h >>conftest.$ac_ext
18739 cat >>conftest.$ac_ext <<_ACEOF
18740 /* end confdefs.h.  */
18741 #include <time.h>
18742 int res;
18743 int
18744 main ()
18745 {
18746 #ifndef __CYGWIN__
18747 res = timezone / 60;
18748 #else
18749 res = _timezone / 60;
18750 #endif
18751   ;
18752   return 0;
18753 }
18754 _ACEOF
18755 rm -f conftest.$ac_objext conftest$ac_exeext
18756 if { (ac_try="$ac_link"
18757 case "(($ac_try" in
18758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18759   *) ac_try_echo=$ac_try;;
18760 esac
18761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18762 $as_echo "$ac_try_echo") >&5
18763   (eval "$ac_link") 2>conftest.er1
18764   ac_status=$?
18765   grep -v '^ *+' conftest.er1 >conftest.err
18766   rm -f conftest.er1
18767   cat conftest.err >&5
18768   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769   (exit $ac_status); } && {
18770          test -z "$ac_c_werror_flag" ||
18771          test ! -s conftest.err
18772        } && test -s conftest$ac_exeext && {
18773          test "$cross_compiling" = yes ||
18774          $as_test_x conftest$ac_exeext
18775        }; then
18776   pgac_cv_var_int_timezone=yes
18777 else
18778   $as_echo "$as_me: failed program was:" >&5
18779 sed 's/^/| /' conftest.$ac_ext >&5
18780
18781         pgac_cv_var_int_timezone=no
18782 fi
18783
18784 rm -rf conftest.dSYM
18785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18786       conftest$ac_exeext conftest.$ac_ext
18787 fi
18788 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
18789 $as_echo "$pgac_cv_var_int_timezone" >&6; }
18790 if test x"$pgac_cv_var_int_timezone" = xyes ; then
18791
18792 cat >>confdefs.h <<\_ACEOF
18793 #define HAVE_INT_TIMEZONE /**/
18794 _ACEOF
18795
18796 fi
18797 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
18798 $as_echo_n "checking types of arguments for accept()... " >&6; }
18799  if test "${ac_cv_func_accept_return+set}" = set; then
18800   $as_echo_n "(cached) " >&6
18801 else
18802    if test "${ac_cv_func_accept_arg1+set}" = set; then
18803   $as_echo_n "(cached) " >&6
18804 else
18805     if test "${ac_cv_func_accept_arg2+set}" = set; then
18806   $as_echo_n "(cached) " >&6
18807 else
18808      if test "${ac_cv_func_accept_arg3+set}" = set; then
18809   $as_echo_n "(cached) " >&6
18810 else
18811       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET'; do
18812       for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
18813        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
18814         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
18815          cat >conftest.$ac_ext <<_ACEOF
18816 /* confdefs.h.  */
18817 _ACEOF
18818 cat confdefs.h >>conftest.$ac_ext
18819 cat >>conftest.$ac_ext <<_ACEOF
18820 /* end confdefs.h.  */
18821 #ifdef HAVE_SYS_TYPES_H
18822 #include <sys/types.h>
18823 #endif
18824 #ifdef HAVE_SYS_SOCKET_H
18825 #include <sys/socket.h>
18826 #endif
18827 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
18828 int
18829 main ()
18830 {
18831
18832   ;
18833   return 0;
18834 }
18835 _ACEOF
18836 rm -f conftest.$ac_objext
18837 if { (ac_try="$ac_compile"
18838 case "(($ac_try" in
18839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18840   *) ac_try_echo=$ac_try;;
18841 esac
18842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18843 $as_echo "$ac_try_echo") >&5
18844   (eval "$ac_compile") 2>conftest.er1
18845   ac_status=$?
18846   grep -v '^ *+' conftest.er1 >conftest.err
18847   rm -f conftest.er1
18848   cat conftest.err >&5
18849   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850   (exit $ac_status); } && {
18851          test -z "$ac_c_werror_flag" ||
18852          test ! -s conftest.err
18853        } && test -s conftest.$ac_objext; then
18854   ac_not_found=no; break 4
18855 else
18856   $as_echo "$as_me: failed program was:" >&5
18857 sed 's/^/| /' conftest.$ac_ext >&5
18858
18859         ac_not_found=yes
18860 fi
18861
18862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18863        done
18864       done
18865      done
18866     done
18867     if test "$ac_not_found" = yes; then
18868       { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
18869 $as_echo "$as_me: error: could not determine argument types" >&2;}
18870    { (exit 1); exit 1; }; }
18871     fi
18872     if test "$ac_cv_func_accept_arg3" = "void"; then
18873       ac_cv_func_accept_arg3=int
18874     fi
18875
18876 fi
18877
18878 fi
18879
18880 fi
18881
18882 fi
18883  { $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
18884 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
18885
18886 cat >>confdefs.h <<_ACEOF
18887 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
18888 _ACEOF
18889
18890
18891 cat >>confdefs.h <<_ACEOF
18892 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
18893 _ACEOF
18894
18895
18896 cat >>confdefs.h <<_ACEOF
18897 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
18898 _ACEOF
18899
18900
18901 cat >>confdefs.h <<_ACEOF
18902 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
18903 _ACEOF
18904
18905
18906 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
18907 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
18908 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
18909   $as_echo_n "(cached) " >&6
18910 else
18911   cat >conftest.$ac_ext <<_ACEOF
18912 /* confdefs.h.  */
18913 _ACEOF
18914 cat confdefs.h >>conftest.$ac_ext
18915 cat >>conftest.$ac_ext <<_ACEOF
18916 /* end confdefs.h.  */
18917 #include <sys/time.h>
18918 int
18919 main ()
18920 {
18921 struct timeval *tp;
18922 struct timezone *tzp;
18923 gettimeofday(tp,tzp);
18924   ;
18925   return 0;
18926 }
18927 _ACEOF
18928 rm -f conftest.$ac_objext
18929 if { (ac_try="$ac_compile"
18930 case "(($ac_try" in
18931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18932   *) ac_try_echo=$ac_try;;
18933 esac
18934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18935 $as_echo "$ac_try_echo") >&5
18936   (eval "$ac_compile") 2>conftest.er1
18937   ac_status=$?
18938   grep -v '^ *+' conftest.er1 >conftest.err
18939   rm -f conftest.er1
18940   cat conftest.err >&5
18941   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942   (exit $ac_status); } && {
18943          test -z "$ac_c_werror_flag" ||
18944          test ! -s conftest.err
18945        } && test -s conftest.$ac_objext; then
18946   pgac_cv_func_gettimeofday_1arg=no
18947 else
18948   $as_echo "$as_me: failed program was:" >&5
18949 sed 's/^/| /' conftest.$ac_ext >&5
18950
18951         pgac_cv_func_gettimeofday_1arg=yes
18952 fi
18953
18954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18955 fi
18956 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
18957 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
18958 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
18959
18960 cat >>confdefs.h <<\_ACEOF
18961 #define GETTIMEOFDAY_1ARG /**/
18962 _ACEOF
18963
18964 fi
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990 for ac_func in cbrt dlopen fcvt fdatasync getifaddrs getpeerucred getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs wcstombs_l
18991 do
18992 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18993 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18994 $as_echo_n "checking for $ac_func... " >&6; }
18995 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18996   $as_echo_n "(cached) " >&6
18997 else
18998   cat >conftest.$ac_ext <<_ACEOF
18999 /* confdefs.h.  */
19000 _ACEOF
19001 cat confdefs.h >>conftest.$ac_ext
19002 cat >>conftest.$ac_ext <<_ACEOF
19003 /* end confdefs.h.  */
19004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19005    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19006 #define $ac_func innocuous_$ac_func
19007
19008 /* System header to define __stub macros and hopefully few prototypes,
19009     which can conflict with char $ac_func (); below.
19010     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19011     <limits.h> exists even on freestanding compilers.  */
19012
19013 #ifdef __STDC__
19014 # include <limits.h>
19015 #else
19016 # include <assert.h>
19017 #endif
19018
19019 #undef $ac_func
19020
19021 /* Override any GCC internal prototype to avoid an error.
19022    Use char because int might match the return type of a GCC
19023    builtin and then its argument prototype would still apply.  */
19024 #ifdef __cplusplus
19025 extern "C"
19026 #endif
19027 char $ac_func ();
19028 /* The GNU C library defines this for functions which it implements
19029     to always fail with ENOSYS.  Some functions are actually named
19030     something starting with __ and the normal name is an alias.  */
19031 #if defined __stub_$ac_func || defined __stub___$ac_func
19032 choke me
19033 #endif
19034
19035 int
19036 main ()
19037 {
19038 return $ac_func ();
19039   ;
19040   return 0;
19041 }
19042 _ACEOF
19043 rm -f conftest.$ac_objext conftest$ac_exeext
19044 if { (ac_try="$ac_link"
19045 case "(($ac_try" in
19046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19047   *) ac_try_echo=$ac_try;;
19048 esac
19049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19050 $as_echo "$ac_try_echo") >&5
19051   (eval "$ac_link") 2>conftest.er1
19052   ac_status=$?
19053   grep -v '^ *+' conftest.er1 >conftest.err
19054   rm -f conftest.er1
19055   cat conftest.err >&5
19056   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057   (exit $ac_status); } && {
19058          test -z "$ac_c_werror_flag" ||
19059          test ! -s conftest.err
19060        } && test -s conftest$ac_exeext && {
19061          test "$cross_compiling" = yes ||
19062          $as_test_x conftest$ac_exeext
19063        }; then
19064   eval "$as_ac_var=yes"
19065 else
19066   $as_echo "$as_me: failed program was:" >&5
19067 sed 's/^/| /' conftest.$ac_ext >&5
19068
19069         eval "$as_ac_var=no"
19070 fi
19071
19072 rm -rf conftest.dSYM
19073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19074       conftest$ac_exeext conftest.$ac_ext
19075 fi
19076 ac_res=`eval 'as_val=${'$as_ac_var'}
19077                  $as_echo "$as_val"'`
19078                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19079 $as_echo "$ac_res" >&6; }
19080 as_val=`eval 'as_val=${'$as_ac_var'}
19081                  $as_echo "$as_val"'`
19082    if test "x$as_val" = x""yes; then
19083   cat >>confdefs.h <<_ACEOF
19084 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19085 _ACEOF
19086
19087 fi
19088 done
19089
19090
19091
19092 for ac_func in fseeko
19093 do
19094 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19095 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19096 $as_echo_n "checking for $ac_func... " >&6; }
19097 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19098   $as_echo_n "(cached) " >&6
19099 else
19100   cat >conftest.$ac_ext <<_ACEOF
19101 /* confdefs.h.  */
19102 _ACEOF
19103 cat confdefs.h >>conftest.$ac_ext
19104 cat >>conftest.$ac_ext <<_ACEOF
19105 /* end confdefs.h.  */
19106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19107    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19108 #define $ac_func innocuous_$ac_func
19109
19110 /* System header to define __stub macros and hopefully few prototypes,
19111     which can conflict with char $ac_func (); below.
19112     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19113     <limits.h> exists even on freestanding compilers.  */
19114
19115 #ifdef __STDC__
19116 # include <limits.h>
19117 #else
19118 # include <assert.h>
19119 #endif
19120
19121 #undef $ac_func
19122
19123 /* Override any GCC internal prototype to avoid an error.
19124    Use char because int might match the return type of a GCC
19125    builtin and then its argument prototype would still apply.  */
19126 #ifdef __cplusplus
19127 extern "C"
19128 #endif
19129 char $ac_func ();
19130 /* The GNU C library defines this for functions which it implements
19131     to always fail with ENOSYS.  Some functions are actually named
19132     something starting with __ and the normal name is an alias.  */
19133 #if defined __stub_$ac_func || defined __stub___$ac_func
19134 choke me
19135 #endif
19136
19137 int
19138 main ()
19139 {
19140 return $ac_func ();
19141   ;
19142   return 0;
19143 }
19144 _ACEOF
19145 rm -f conftest.$ac_objext conftest$ac_exeext
19146 if { (ac_try="$ac_link"
19147 case "(($ac_try" in
19148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19149   *) ac_try_echo=$ac_try;;
19150 esac
19151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19152 $as_echo "$ac_try_echo") >&5
19153   (eval "$ac_link") 2>conftest.er1
19154   ac_status=$?
19155   grep -v '^ *+' conftest.er1 >conftest.err
19156   rm -f conftest.er1
19157   cat conftest.err >&5
19158   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159   (exit $ac_status); } && {
19160          test -z "$ac_c_werror_flag" ||
19161          test ! -s conftest.err
19162        } && test -s conftest$ac_exeext && {
19163          test "$cross_compiling" = yes ||
19164          $as_test_x conftest$ac_exeext
19165        }; then
19166   eval "$as_ac_var=yes"
19167 else
19168   $as_echo "$as_me: failed program was:" >&5
19169 sed 's/^/| /' conftest.$ac_ext >&5
19170
19171         eval "$as_ac_var=no"
19172 fi
19173
19174 rm -rf conftest.dSYM
19175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19176       conftest$ac_exeext conftest.$ac_ext
19177 fi
19178 ac_res=`eval 'as_val=${'$as_ac_var'}
19179                  $as_echo "$as_val"'`
19180                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19181 $as_echo "$ac_res" >&6; }
19182 as_val=`eval 'as_val=${'$as_ac_var'}
19183                  $as_echo "$as_val"'`
19184    if test "x$as_val" = x""yes; then
19185   cat >>confdefs.h <<_ACEOF
19186 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19187 _ACEOF
19188
19189 else
19190   case " $LIBOBJS " in
19191   *" $ac_func.$ac_objext "* ) ;;
19192   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19193  ;;
19194 esac
19195
19196 fi
19197 done
19198
19199
19200 case $host_os in
19201         # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
19202         # Mingw uses macros to access Win32 API calls
19203         bsdi*|netbsd*|mingw*)
19204
19205 cat >>confdefs.h <<\_ACEOF
19206 #define HAVE_FSEEKO 1
19207 _ACEOF
19208
19209                 ac_cv_func_fseeko=yes;;
19210         *)
19211                 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19212 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19213 if test "${ac_cv_sys_largefile_source+set}" = set; then
19214   $as_echo_n "(cached) " >&6
19215 else
19216   while :; do
19217   cat >conftest.$ac_ext <<_ACEOF
19218 /* confdefs.h.  */
19219 _ACEOF
19220 cat confdefs.h >>conftest.$ac_ext
19221 cat >>conftest.$ac_ext <<_ACEOF
19222 /* end confdefs.h.  */
19223 #include <sys/types.h> /* for off_t */
19224      #include <stdio.h>
19225 int
19226 main ()
19227 {
19228 int (*fp) (FILE *, off_t, int) = fseeko;
19229      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19230   ;
19231   return 0;
19232 }
19233 _ACEOF
19234 rm -f conftest.$ac_objext conftest$ac_exeext
19235 if { (ac_try="$ac_link"
19236 case "(($ac_try" in
19237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19238   *) ac_try_echo=$ac_try;;
19239 esac
19240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19241 $as_echo "$ac_try_echo") >&5
19242   (eval "$ac_link") 2>conftest.er1
19243   ac_status=$?
19244   grep -v '^ *+' conftest.er1 >conftest.err
19245   rm -f conftest.er1
19246   cat conftest.err >&5
19247   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248   (exit $ac_status); } && {
19249          test -z "$ac_c_werror_flag" ||
19250          test ! -s conftest.err
19251        } && test -s conftest$ac_exeext && {
19252          test "$cross_compiling" = yes ||
19253          $as_test_x conftest$ac_exeext
19254        }; then
19255   ac_cv_sys_largefile_source=no; break
19256 else
19257   $as_echo "$as_me: failed program was:" >&5
19258 sed 's/^/| /' conftest.$ac_ext >&5
19259
19260
19261 fi
19262
19263 rm -rf conftest.dSYM
19264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19265       conftest$ac_exeext conftest.$ac_ext
19266   cat >conftest.$ac_ext <<_ACEOF
19267 /* confdefs.h.  */
19268 _ACEOF
19269 cat confdefs.h >>conftest.$ac_ext
19270 cat >>conftest.$ac_ext <<_ACEOF
19271 /* end confdefs.h.  */
19272 #define _LARGEFILE_SOURCE 1
19273 #include <sys/types.h> /* for off_t */
19274      #include <stdio.h>
19275 int
19276 main ()
19277 {
19278 int (*fp) (FILE *, off_t, int) = fseeko;
19279      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19280   ;
19281   return 0;
19282 }
19283 _ACEOF
19284 rm -f conftest.$ac_objext conftest$ac_exeext
19285 if { (ac_try="$ac_link"
19286 case "(($ac_try" in
19287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19288   *) ac_try_echo=$ac_try;;
19289 esac
19290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19291 $as_echo "$ac_try_echo") >&5
19292   (eval "$ac_link") 2>conftest.er1
19293   ac_status=$?
19294   grep -v '^ *+' conftest.er1 >conftest.err
19295   rm -f conftest.er1
19296   cat conftest.err >&5
19297   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298   (exit $ac_status); } && {
19299          test -z "$ac_c_werror_flag" ||
19300          test ! -s conftest.err
19301        } && test -s conftest$ac_exeext && {
19302          test "$cross_compiling" = yes ||
19303          $as_test_x conftest$ac_exeext
19304        }; then
19305   ac_cv_sys_largefile_source=1; break
19306 else
19307   $as_echo "$as_me: failed program was:" >&5
19308 sed 's/^/| /' conftest.$ac_ext >&5
19309
19310
19311 fi
19312
19313 rm -rf conftest.dSYM
19314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19315       conftest$ac_exeext conftest.$ac_ext
19316   ac_cv_sys_largefile_source=unknown
19317   break
19318 done
19319 fi
19320 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19321 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19322 case $ac_cv_sys_largefile_source in #(
19323   no | unknown) ;;
19324   *)
19325 cat >>confdefs.h <<_ACEOF
19326 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19327 _ACEOF
19328 ;;
19329 esac
19330 rm -rf conftest*
19331
19332 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19333 # in glibc 2.1.3, but that breaks too many other things.
19334 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19335 if test $ac_cv_sys_largefile_source != unknown; then
19336
19337 cat >>confdefs.h <<\_ACEOF
19338 #define HAVE_FSEEKO 1
19339 _ACEOF
19340
19341 fi
19342 ;;
19343 esac
19344
19345 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
19346 # by calling it, 2009-04-02
19347 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
19348 if test "$PORTNAME" != "solaris"; then
19349
19350 for ac_func in posix_fadvise
19351 do
19352 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19353 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19354 $as_echo_n "checking for $ac_func... " >&6; }
19355 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19356   $as_echo_n "(cached) " >&6
19357 else
19358   cat >conftest.$ac_ext <<_ACEOF
19359 /* confdefs.h.  */
19360 _ACEOF
19361 cat confdefs.h >>conftest.$ac_ext
19362 cat >>conftest.$ac_ext <<_ACEOF
19363 /* end confdefs.h.  */
19364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19365    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19366 #define $ac_func innocuous_$ac_func
19367
19368 /* System header to define __stub macros and hopefully few prototypes,
19369     which can conflict with char $ac_func (); below.
19370     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19371     <limits.h> exists even on freestanding compilers.  */
19372
19373 #ifdef __STDC__
19374 # include <limits.h>
19375 #else
19376 # include <assert.h>
19377 #endif
19378
19379 #undef $ac_func
19380
19381 /* Override any GCC internal prototype to avoid an error.
19382    Use char because int might match the return type of a GCC
19383    builtin and then its argument prototype would still apply.  */
19384 #ifdef __cplusplus
19385 extern "C"
19386 #endif
19387 char $ac_func ();
19388 /* The GNU C library defines this for functions which it implements
19389     to always fail with ENOSYS.  Some functions are actually named
19390     something starting with __ and the normal name is an alias.  */
19391 #if defined __stub_$ac_func || defined __stub___$ac_func
19392 choke me
19393 #endif
19394
19395 int
19396 main ()
19397 {
19398 return $ac_func ();
19399   ;
19400   return 0;
19401 }
19402 _ACEOF
19403 rm -f conftest.$ac_objext conftest$ac_exeext
19404 if { (ac_try="$ac_link"
19405 case "(($ac_try" in
19406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19407   *) ac_try_echo=$ac_try;;
19408 esac
19409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19410 $as_echo "$ac_try_echo") >&5
19411   (eval "$ac_link") 2>conftest.er1
19412   ac_status=$?
19413   grep -v '^ *+' conftest.er1 >conftest.err
19414   rm -f conftest.er1
19415   cat conftest.err >&5
19416   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417   (exit $ac_status); } && {
19418          test -z "$ac_c_werror_flag" ||
19419          test ! -s conftest.err
19420        } && test -s conftest$ac_exeext && {
19421          test "$cross_compiling" = yes ||
19422          $as_test_x conftest$ac_exeext
19423        }; then
19424   eval "$as_ac_var=yes"
19425 else
19426   $as_echo "$as_me: failed program was:" >&5
19427 sed 's/^/| /' conftest.$ac_ext >&5
19428
19429         eval "$as_ac_var=no"
19430 fi
19431
19432 rm -rf conftest.dSYM
19433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19434       conftest$ac_exeext conftest.$ac_ext
19435 fi
19436 ac_res=`eval 'as_val=${'$as_ac_var'}
19437                  $as_echo "$as_val"'`
19438                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19439 $as_echo "$ac_res" >&6; }
19440 as_val=`eval 'as_val=${'$as_ac_var'}
19441                  $as_echo "$as_val"'`
19442    if test "x$as_val" = x""yes; then
19443   cat >>confdefs.h <<_ACEOF
19444 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19445 _ACEOF
19446
19447 fi
19448 done
19449
19450 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
19451 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
19452 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
19453   $as_echo_n "(cached) " >&6
19454 else
19455   cat >conftest.$ac_ext <<_ACEOF
19456 /* confdefs.h.  */
19457 _ACEOF
19458 cat confdefs.h >>conftest.$ac_ext
19459 cat >>conftest.$ac_ext <<_ACEOF
19460 /* end confdefs.h.  */
19461 #include <fcntl.h>
19462
19463 int
19464 main ()
19465 {
19466 #ifndef posix_fadvise
19467   (void) posix_fadvise;
19468 #endif
19469
19470   ;
19471   return 0;
19472 }
19473 _ACEOF
19474 rm -f conftest.$ac_objext
19475 if { (ac_try="$ac_compile"
19476 case "(($ac_try" in
19477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19478   *) ac_try_echo=$ac_try;;
19479 esac
19480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19481 $as_echo "$ac_try_echo") >&5
19482   (eval "$ac_compile") 2>conftest.er1
19483   ac_status=$?
19484   grep -v '^ *+' conftest.er1 >conftest.err
19485   rm -f conftest.er1
19486   cat conftest.err >&5
19487   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488   (exit $ac_status); } && {
19489          test -z "$ac_c_werror_flag" ||
19490          test ! -s conftest.err
19491        } && test -s conftest.$ac_objext; then
19492   ac_cv_have_decl_posix_fadvise=yes
19493 else
19494   $as_echo "$as_me: failed program was:" >&5
19495 sed 's/^/| /' conftest.$ac_ext >&5
19496
19497         ac_cv_have_decl_posix_fadvise=no
19498 fi
19499
19500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19501 fi
19502 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
19503 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
19504 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
19505
19506 cat >>confdefs.h <<_ACEOF
19507 #define HAVE_DECL_POSIX_FADVISE 1
19508 _ACEOF
19509
19510
19511 else
19512   cat >>confdefs.h <<_ACEOF
19513 #define HAVE_DECL_POSIX_FADVISE 0
19514 _ACEOF
19515
19516
19517 fi
19518
19519
19520 fi
19521
19522 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
19523 $as_echo_n "checking whether fdatasync is declared... " >&6; }
19524 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
19525   $as_echo_n "(cached) " >&6
19526 else
19527   cat >conftest.$ac_ext <<_ACEOF
19528 /* confdefs.h.  */
19529 _ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h.  */
19533 #include <unistd.h>
19534
19535 int
19536 main ()
19537 {
19538 #ifndef fdatasync
19539   (void) fdatasync;
19540 #endif
19541
19542   ;
19543   return 0;
19544 }
19545 _ACEOF
19546 rm -f conftest.$ac_objext
19547 if { (ac_try="$ac_compile"
19548 case "(($ac_try" in
19549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550   *) ac_try_echo=$ac_try;;
19551 esac
19552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19553 $as_echo "$ac_try_echo") >&5
19554   (eval "$ac_compile") 2>conftest.er1
19555   ac_status=$?
19556   grep -v '^ *+' conftest.er1 >conftest.err
19557   rm -f conftest.er1
19558   cat conftest.err >&5
19559   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560   (exit $ac_status); } && {
19561          test -z "$ac_c_werror_flag" ||
19562          test ! -s conftest.err
19563        } && test -s conftest.$ac_objext; then
19564   ac_cv_have_decl_fdatasync=yes
19565 else
19566   $as_echo "$as_me: failed program was:" >&5
19567 sed 's/^/| /' conftest.$ac_ext >&5
19568
19569         ac_cv_have_decl_fdatasync=no
19570 fi
19571
19572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19573 fi
19574 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
19575 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
19576 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
19577
19578 cat >>confdefs.h <<_ACEOF
19579 #define HAVE_DECL_FDATASYNC 1
19580 _ACEOF
19581
19582
19583 else
19584   cat >>confdefs.h <<_ACEOF
19585 #define HAVE_DECL_FDATASYNC 0
19586 _ACEOF
19587
19588
19589 fi
19590
19591
19592 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
19593 $as_echo_n "checking whether strlcat is declared... " >&6; }
19594 if test "${ac_cv_have_decl_strlcat+set}" = set; then
19595   $as_echo_n "(cached) " >&6
19596 else
19597   cat >conftest.$ac_ext <<_ACEOF
19598 /* confdefs.h.  */
19599 _ACEOF
19600 cat confdefs.h >>conftest.$ac_ext
19601 cat >>conftest.$ac_ext <<_ACEOF
19602 /* end confdefs.h.  */
19603 $ac_includes_default
19604 int
19605 main ()
19606 {
19607 #ifndef strlcat
19608   (void) strlcat;
19609 #endif
19610
19611   ;
19612   return 0;
19613 }
19614 _ACEOF
19615 rm -f conftest.$ac_objext
19616 if { (ac_try="$ac_compile"
19617 case "(($ac_try" in
19618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19619   *) ac_try_echo=$ac_try;;
19620 esac
19621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19622 $as_echo "$ac_try_echo") >&5
19623   (eval "$ac_compile") 2>conftest.er1
19624   ac_status=$?
19625   grep -v '^ *+' conftest.er1 >conftest.err
19626   rm -f conftest.er1
19627   cat conftest.err >&5
19628   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629   (exit $ac_status); } && {
19630          test -z "$ac_c_werror_flag" ||
19631          test ! -s conftest.err
19632        } && test -s conftest.$ac_objext; then
19633   ac_cv_have_decl_strlcat=yes
19634 else
19635   $as_echo "$as_me: failed program was:" >&5
19636 sed 's/^/| /' conftest.$ac_ext >&5
19637
19638         ac_cv_have_decl_strlcat=no
19639 fi
19640
19641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19642 fi
19643 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
19644 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
19645 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
19646
19647 cat >>confdefs.h <<_ACEOF
19648 #define HAVE_DECL_STRLCAT 1
19649 _ACEOF
19650
19651
19652 else
19653   cat >>confdefs.h <<_ACEOF
19654 #define HAVE_DECL_STRLCAT 0
19655 _ACEOF
19656
19657
19658 fi
19659 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
19660 $as_echo_n "checking whether strlcpy is declared... " >&6; }
19661 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
19662   $as_echo_n "(cached) " >&6
19663 else
19664   cat >conftest.$ac_ext <<_ACEOF
19665 /* confdefs.h.  */
19666 _ACEOF
19667 cat confdefs.h >>conftest.$ac_ext
19668 cat >>conftest.$ac_ext <<_ACEOF
19669 /* end confdefs.h.  */
19670 $ac_includes_default
19671 int
19672 main ()
19673 {
19674 #ifndef strlcpy
19675   (void) strlcpy;
19676 #endif
19677
19678   ;
19679   return 0;
19680 }
19681 _ACEOF
19682 rm -f conftest.$ac_objext
19683 if { (ac_try="$ac_compile"
19684 case "(($ac_try" in
19685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686   *) ac_try_echo=$ac_try;;
19687 esac
19688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19689 $as_echo "$ac_try_echo") >&5
19690   (eval "$ac_compile") 2>conftest.er1
19691   ac_status=$?
19692   grep -v '^ *+' conftest.er1 >conftest.err
19693   rm -f conftest.er1
19694   cat conftest.err >&5
19695   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696   (exit $ac_status); } && {
19697          test -z "$ac_c_werror_flag" ||
19698          test ! -s conftest.err
19699        } && test -s conftest.$ac_objext; then
19700   ac_cv_have_decl_strlcpy=yes
19701 else
19702   $as_echo "$as_me: failed program was:" >&5
19703 sed 's/^/| /' conftest.$ac_ext >&5
19704
19705         ac_cv_have_decl_strlcpy=no
19706 fi
19707
19708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19709 fi
19710 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
19711 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
19712 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
19713
19714 cat >>confdefs.h <<_ACEOF
19715 #define HAVE_DECL_STRLCPY 1
19716 _ACEOF
19717
19718
19719 else
19720   cat >>confdefs.h <<_ACEOF
19721 #define HAVE_DECL_STRLCPY 0
19722 _ACEOF
19723
19724
19725 fi
19726
19727
19728 # This is probably only present on Darwin, but may as well check always
19729 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
19730 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
19731 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
19732   $as_echo_n "(cached) " >&6
19733 else
19734   cat >conftest.$ac_ext <<_ACEOF
19735 /* confdefs.h.  */
19736 _ACEOF
19737 cat confdefs.h >>conftest.$ac_ext
19738 cat >>conftest.$ac_ext <<_ACEOF
19739 /* end confdefs.h.  */
19740 #include <fcntl.h>
19741
19742 int
19743 main ()
19744 {
19745 #ifndef F_FULLFSYNC
19746   (void) F_FULLFSYNC;
19747 #endif
19748
19749   ;
19750   return 0;
19751 }
19752 _ACEOF
19753 rm -f conftest.$ac_objext
19754 if { (ac_try="$ac_compile"
19755 case "(($ac_try" in
19756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19757   *) ac_try_echo=$ac_try;;
19758 esac
19759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19760 $as_echo "$ac_try_echo") >&5
19761   (eval "$ac_compile") 2>conftest.er1
19762   ac_status=$?
19763   grep -v '^ *+' conftest.er1 >conftest.err
19764   rm -f conftest.er1
19765   cat conftest.err >&5
19766   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767   (exit $ac_status); } && {
19768          test -z "$ac_c_werror_flag" ||
19769          test ! -s conftest.err
19770        } && test -s conftest.$ac_objext; then
19771   ac_cv_have_decl_F_FULLFSYNC=yes
19772 else
19773   $as_echo "$as_me: failed program was:" >&5
19774 sed 's/^/| /' conftest.$ac_ext >&5
19775
19776         ac_cv_have_decl_F_FULLFSYNC=no
19777 fi
19778
19779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19780 fi
19781 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
19782 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
19783 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
19784
19785 cat >>confdefs.h <<_ACEOF
19786 #define HAVE_DECL_F_FULLFSYNC 1
19787 _ACEOF
19788
19789
19790 else
19791   cat >>confdefs.h <<_ACEOF
19792 #define HAVE_DECL_F_FULLFSYNC 0
19793 _ACEOF
19794
19795
19796 fi
19797
19798
19799
19800 HAVE_IPV6=no
19801 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
19802 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
19803 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
19804   $as_echo_n "(cached) " >&6
19805 else
19806   ac_cv_type_struct_sockaddr_in6=no
19807 cat >conftest.$ac_ext <<_ACEOF
19808 /* confdefs.h.  */
19809 _ACEOF
19810 cat confdefs.h >>conftest.$ac_ext
19811 cat >>conftest.$ac_ext <<_ACEOF
19812 /* end confdefs.h.  */
19813 $ac_includes_default
19814 #include <netinet/in.h>
19815
19816 int
19817 main ()
19818 {
19819 if (sizeof (struct sockaddr_in6))
19820        return 0;
19821   ;
19822   return 0;
19823 }
19824 _ACEOF
19825 rm -f conftest.$ac_objext
19826 if { (ac_try="$ac_compile"
19827 case "(($ac_try" in
19828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19829   *) ac_try_echo=$ac_try;;
19830 esac
19831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19832 $as_echo "$ac_try_echo") >&5
19833   (eval "$ac_compile") 2>conftest.er1
19834   ac_status=$?
19835   grep -v '^ *+' conftest.er1 >conftest.err
19836   rm -f conftest.er1
19837   cat conftest.err >&5
19838   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839   (exit $ac_status); } && {
19840          test -z "$ac_c_werror_flag" ||
19841          test ! -s conftest.err
19842        } && test -s conftest.$ac_objext; then
19843   cat >conftest.$ac_ext <<_ACEOF
19844 /* confdefs.h.  */
19845 _ACEOF
19846 cat confdefs.h >>conftest.$ac_ext
19847 cat >>conftest.$ac_ext <<_ACEOF
19848 /* end confdefs.h.  */
19849 $ac_includes_default
19850 #include <netinet/in.h>
19851
19852 int
19853 main ()
19854 {
19855 if (sizeof ((struct sockaddr_in6)))
19856           return 0;
19857   ;
19858   return 0;
19859 }
19860 _ACEOF
19861 rm -f conftest.$ac_objext
19862 if { (ac_try="$ac_compile"
19863 case "(($ac_try" in
19864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19865   *) ac_try_echo=$ac_try;;
19866 esac
19867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19868 $as_echo "$ac_try_echo") >&5
19869   (eval "$ac_compile") 2>conftest.er1
19870   ac_status=$?
19871   grep -v '^ *+' conftest.er1 >conftest.err
19872   rm -f conftest.er1
19873   cat conftest.err >&5
19874   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875   (exit $ac_status); } && {
19876          test -z "$ac_c_werror_flag" ||
19877          test ! -s conftest.err
19878        } && test -s conftest.$ac_objext; then
19879   :
19880 else
19881   $as_echo "$as_me: failed program was:" >&5
19882 sed 's/^/| /' conftest.$ac_ext >&5
19883
19884         ac_cv_type_struct_sockaddr_in6=yes
19885 fi
19886
19887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19888 else
19889   $as_echo "$as_me: failed program was:" >&5
19890 sed 's/^/| /' conftest.$ac_ext >&5
19891
19892
19893 fi
19894
19895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19896 fi
19897 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
19898 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
19899 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
19900
19901 cat >>confdefs.h <<\_ACEOF
19902 #define HAVE_IPV6 1
19903 _ACEOF
19904
19905          HAVE_IPV6=yes
19906 fi
19907
19908
19909
19910 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
19911 $as_echo_n "checking for PS_STRINGS... " >&6; }
19912 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
19913   $as_echo_n "(cached) " >&6
19914 else
19915   cat >conftest.$ac_ext <<_ACEOF
19916 /* confdefs.h.  */
19917 _ACEOF
19918 cat confdefs.h >>conftest.$ac_ext
19919 cat >>conftest.$ac_ext <<_ACEOF
19920 /* end confdefs.h.  */
19921 #include <machine/vmparam.h>
19922 #include <sys/exec.h>
19923
19924 int
19925 main ()
19926 {
19927 PS_STRINGS->ps_nargvstr = 1;
19928 PS_STRINGS->ps_argvstr = "foo";
19929   ;
19930   return 0;
19931 }
19932 _ACEOF
19933 rm -f conftest.$ac_objext conftest$ac_exeext
19934 if { (ac_try="$ac_link"
19935 case "(($ac_try" in
19936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19937   *) ac_try_echo=$ac_try;;
19938 esac
19939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19940 $as_echo "$ac_try_echo") >&5
19941   (eval "$ac_link") 2>conftest.er1
19942   ac_status=$?
19943   grep -v '^ *+' conftest.er1 >conftest.err
19944   rm -f conftest.er1
19945   cat conftest.err >&5
19946   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947   (exit $ac_status); } && {
19948          test -z "$ac_c_werror_flag" ||
19949          test ! -s conftest.err
19950        } && test -s conftest$ac_exeext && {
19951          test "$cross_compiling" = yes ||
19952          $as_test_x conftest$ac_exeext
19953        }; then
19954   pgac_cv_var_PS_STRINGS=yes
19955 else
19956   $as_echo "$as_me: failed program was:" >&5
19957 sed 's/^/| /' conftest.$ac_ext >&5
19958
19959         pgac_cv_var_PS_STRINGS=no
19960 fi
19961
19962 rm -rf conftest.dSYM
19963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19964       conftest$ac_exeext conftest.$ac_ext
19965 fi
19966 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
19967 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
19968 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
19969
19970 cat >>confdefs.h <<\_ACEOF
19971 #define HAVE_PS_STRINGS /**/
19972 _ACEOF
19973
19974 fi
19975
19976
19977 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
19978 # is missing.  Yes, there are machines that have only one.  We may
19979 # also decide to use snprintf.c if snprintf() is present but does not
19980 # have all the features we need --- see below.
19981
19982 if test "$PORTNAME" = "win32"; then
19983   # Win32 gets snprintf.c built unconditionally.
19984   #
19985   # To properly translate all NLS languages strings, we must support the
19986   # *printf() %$ format, which allows *printf() arguments to be selected
19987   # by position in the translated string.
19988   #
19989   # libintl versions < 0.13 use the native *printf() functions, and Win32
19990   # *printf() doesn't understand %$, so we must use our /port versions,
19991   # which do understand %$. libintl versions >= 0.13 include their own
19992   # *printf versions on Win32.  The libintl 0.13 release note text is:
19993   #
19994   #   C format strings with positions, as they arise when a translator
19995   #   needs to reorder a sentence, are now supported on all platforms.
19996   #   On those few platforms (NetBSD and Woe32) for which the native
19997   #   printf()/fprintf()/... functions don't support such format
19998   #   strings, replacements are provided through <libintl.h>.
19999   #
20000   # We could use libintl >= 0.13's *printf() if we were sure that we had
20001   # a litint >= 0.13 at runtime, but seeing that there is no clean way
20002   # to guarantee that, it is best to just use our own, so we are sure to
20003   # get %$ support. In include/port.h we disable the *printf() macros
20004   # that might have been defined by libintl.
20005   #
20006   # We do this unconditionally whether NLS is used or not so we are sure
20007   # that all Win32 libraries and binaries behave the same.
20008   pgac_need_repl_snprintf=yes
20009 else
20010   pgac_need_repl_snprintf=no
20011
20012 for ac_func in snprintf
20013 do
20014 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20015 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20016 $as_echo_n "checking for $ac_func... " >&6; }
20017 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20018   $as_echo_n "(cached) " >&6
20019 else
20020   cat >conftest.$ac_ext <<_ACEOF
20021 /* confdefs.h.  */
20022 _ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h.  */
20026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20027    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20028 #define $ac_func innocuous_$ac_func
20029
20030 /* System header to define __stub macros and hopefully few prototypes,
20031     which can conflict with char $ac_func (); below.
20032     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20033     <limits.h> exists even on freestanding compilers.  */
20034
20035 #ifdef __STDC__
20036 # include <limits.h>
20037 #else
20038 # include <assert.h>
20039 #endif
20040
20041 #undef $ac_func
20042
20043 /* Override any GCC internal prototype to avoid an error.
20044    Use char because int might match the return type of a GCC
20045    builtin and then its argument prototype would still apply.  */
20046 #ifdef __cplusplus
20047 extern "C"
20048 #endif
20049 char $ac_func ();
20050 /* The GNU C library defines this for functions which it implements
20051     to always fail with ENOSYS.  Some functions are actually named
20052     something starting with __ and the normal name is an alias.  */
20053 #if defined __stub_$ac_func || defined __stub___$ac_func
20054 choke me
20055 #endif
20056
20057 int
20058 main ()
20059 {
20060 return $ac_func ();
20061   ;
20062   return 0;
20063 }
20064 _ACEOF
20065 rm -f conftest.$ac_objext conftest$ac_exeext
20066 if { (ac_try="$ac_link"
20067 case "(($ac_try" in
20068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20069   *) ac_try_echo=$ac_try;;
20070 esac
20071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20072 $as_echo "$ac_try_echo") >&5
20073   (eval "$ac_link") 2>conftest.er1
20074   ac_status=$?
20075   grep -v '^ *+' conftest.er1 >conftest.err
20076   rm -f conftest.er1
20077   cat conftest.err >&5
20078   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079   (exit $ac_status); } && {
20080          test -z "$ac_c_werror_flag" ||
20081          test ! -s conftest.err
20082        } && test -s conftest$ac_exeext && {
20083          test "$cross_compiling" = yes ||
20084          $as_test_x conftest$ac_exeext
20085        }; then
20086   eval "$as_ac_var=yes"
20087 else
20088   $as_echo "$as_me: failed program was:" >&5
20089 sed 's/^/| /' conftest.$ac_ext >&5
20090
20091         eval "$as_ac_var=no"
20092 fi
20093
20094 rm -rf conftest.dSYM
20095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20096       conftest$ac_exeext conftest.$ac_ext
20097 fi
20098 ac_res=`eval 'as_val=${'$as_ac_var'}
20099                  $as_echo "$as_val"'`
20100                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20101 $as_echo "$ac_res" >&6; }
20102 as_val=`eval 'as_val=${'$as_ac_var'}
20103                  $as_echo "$as_val"'`
20104    if test "x$as_val" = x""yes; then
20105   cat >>confdefs.h <<_ACEOF
20106 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20107 _ACEOF
20108
20109 else
20110   pgac_need_repl_snprintf=yes
20111 fi
20112 done
20113
20114
20115 for ac_func in vsnprintf
20116 do
20117 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20118 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20119 $as_echo_n "checking for $ac_func... " >&6; }
20120 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20121   $as_echo_n "(cached) " >&6
20122 else
20123   cat >conftest.$ac_ext <<_ACEOF
20124 /* confdefs.h.  */
20125 _ACEOF
20126 cat confdefs.h >>conftest.$ac_ext
20127 cat >>conftest.$ac_ext <<_ACEOF
20128 /* end confdefs.h.  */
20129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20130    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20131 #define $ac_func innocuous_$ac_func
20132
20133 /* System header to define __stub macros and hopefully few prototypes,
20134     which can conflict with char $ac_func (); below.
20135     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20136     <limits.h> exists even on freestanding compilers.  */
20137
20138 #ifdef __STDC__
20139 # include <limits.h>
20140 #else
20141 # include <assert.h>
20142 #endif
20143
20144 #undef $ac_func
20145
20146 /* Override any GCC internal prototype to avoid an error.
20147    Use char because int might match the return type of a GCC
20148    builtin and then its argument prototype would still apply.  */
20149 #ifdef __cplusplus
20150 extern "C"
20151 #endif
20152 char $ac_func ();
20153 /* The GNU C library defines this for functions which it implements
20154     to always fail with ENOSYS.  Some functions are actually named
20155     something starting with __ and the normal name is an alias.  */
20156 #if defined __stub_$ac_func || defined __stub___$ac_func
20157 choke me
20158 #endif
20159
20160 int
20161 main ()
20162 {
20163 return $ac_func ();
20164   ;
20165   return 0;
20166 }
20167 _ACEOF
20168 rm -f conftest.$ac_objext conftest$ac_exeext
20169 if { (ac_try="$ac_link"
20170 case "(($ac_try" in
20171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20172   *) ac_try_echo=$ac_try;;
20173 esac
20174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20175 $as_echo "$ac_try_echo") >&5
20176   (eval "$ac_link") 2>conftest.er1
20177   ac_status=$?
20178   grep -v '^ *+' conftest.er1 >conftest.err
20179   rm -f conftest.er1
20180   cat conftest.err >&5
20181   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182   (exit $ac_status); } && {
20183          test -z "$ac_c_werror_flag" ||
20184          test ! -s conftest.err
20185        } && test -s conftest$ac_exeext && {
20186          test "$cross_compiling" = yes ||
20187          $as_test_x conftest$ac_exeext
20188        }; then
20189   eval "$as_ac_var=yes"
20190 else
20191   $as_echo "$as_me: failed program was:" >&5
20192 sed 's/^/| /' conftest.$ac_ext >&5
20193
20194         eval "$as_ac_var=no"
20195 fi
20196
20197 rm -rf conftest.dSYM
20198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20199       conftest$ac_exeext conftest.$ac_ext
20200 fi
20201 ac_res=`eval 'as_val=${'$as_ac_var'}
20202                  $as_echo "$as_val"'`
20203                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20204 $as_echo "$ac_res" >&6; }
20205 as_val=`eval 'as_val=${'$as_ac_var'}
20206                  $as_echo "$as_val"'`
20207    if test "x$as_val" = x""yes; then
20208   cat >>confdefs.h <<_ACEOF
20209 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20210 _ACEOF
20211
20212 else
20213   pgac_need_repl_snprintf=yes
20214 fi
20215 done
20216
20217 fi
20218
20219
20220 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
20221 # include/c.h will provide declarations.  Note this is a separate test
20222 # from whether the functions exist in the C library --- there are
20223 # systems that have the functions but don't bother to declare them :-(
20224
20225 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
20226 $as_echo_n "checking whether snprintf is declared... " >&6; }
20227 if test "${ac_cv_have_decl_snprintf+set}" = set; then
20228   $as_echo_n "(cached) " >&6
20229 else
20230   cat >conftest.$ac_ext <<_ACEOF
20231 /* confdefs.h.  */
20232 _ACEOF
20233 cat confdefs.h >>conftest.$ac_ext
20234 cat >>conftest.$ac_ext <<_ACEOF
20235 /* end confdefs.h.  */
20236 $ac_includes_default
20237 int
20238 main ()
20239 {
20240 #ifndef snprintf
20241   (void) snprintf;
20242 #endif
20243
20244   ;
20245   return 0;
20246 }
20247 _ACEOF
20248 rm -f conftest.$ac_objext
20249 if { (ac_try="$ac_compile"
20250 case "(($ac_try" in
20251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20252   *) ac_try_echo=$ac_try;;
20253 esac
20254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20255 $as_echo "$ac_try_echo") >&5
20256   (eval "$ac_compile") 2>conftest.er1
20257   ac_status=$?
20258   grep -v '^ *+' conftest.er1 >conftest.err
20259   rm -f conftest.er1
20260   cat conftest.err >&5
20261   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262   (exit $ac_status); } && {
20263          test -z "$ac_c_werror_flag" ||
20264          test ! -s conftest.err
20265        } && test -s conftest.$ac_objext; then
20266   ac_cv_have_decl_snprintf=yes
20267 else
20268   $as_echo "$as_me: failed program was:" >&5
20269 sed 's/^/| /' conftest.$ac_ext >&5
20270
20271         ac_cv_have_decl_snprintf=no
20272 fi
20273
20274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20275 fi
20276 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
20277 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
20278 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
20279
20280 cat >>confdefs.h <<_ACEOF
20281 #define HAVE_DECL_SNPRINTF 1
20282 _ACEOF
20283
20284
20285 else
20286   cat >>confdefs.h <<_ACEOF
20287 #define HAVE_DECL_SNPRINTF 0
20288 _ACEOF
20289
20290
20291 fi
20292 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
20293 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
20294 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
20295   $as_echo_n "(cached) " >&6
20296 else
20297   cat >conftest.$ac_ext <<_ACEOF
20298 /* confdefs.h.  */
20299 _ACEOF
20300 cat confdefs.h >>conftest.$ac_ext
20301 cat >>conftest.$ac_ext <<_ACEOF
20302 /* end confdefs.h.  */
20303 $ac_includes_default
20304 int
20305 main ()
20306 {
20307 #ifndef vsnprintf
20308   (void) vsnprintf;
20309 #endif
20310
20311   ;
20312   return 0;
20313 }
20314 _ACEOF
20315 rm -f conftest.$ac_objext
20316 if { (ac_try="$ac_compile"
20317 case "(($ac_try" in
20318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20319   *) ac_try_echo=$ac_try;;
20320 esac
20321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20322 $as_echo "$ac_try_echo") >&5
20323   (eval "$ac_compile") 2>conftest.er1
20324   ac_status=$?
20325   grep -v '^ *+' conftest.er1 >conftest.err
20326   rm -f conftest.er1
20327   cat conftest.err >&5
20328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329   (exit $ac_status); } && {
20330          test -z "$ac_c_werror_flag" ||
20331          test ! -s conftest.err
20332        } && test -s conftest.$ac_objext; then
20333   ac_cv_have_decl_vsnprintf=yes
20334 else
20335   $as_echo "$as_me: failed program was:" >&5
20336 sed 's/^/| /' conftest.$ac_ext >&5
20337
20338         ac_cv_have_decl_vsnprintf=no
20339 fi
20340
20341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20342 fi
20343 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
20344 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
20345 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
20346
20347 cat >>confdefs.h <<_ACEOF
20348 #define HAVE_DECL_VSNPRINTF 1
20349 _ACEOF
20350
20351
20352 else
20353   cat >>confdefs.h <<_ACEOF
20354 #define HAVE_DECL_VSNPRINTF 0
20355 _ACEOF
20356
20357
20358 fi
20359
20360
20361
20362
20363 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
20364 $as_echo_n "checking for isinf... " >&6; }
20365 if test "${ac_cv_func_isinf+set}" = set; then
20366   $as_echo_n "(cached) " >&6
20367 else
20368   cat >conftest.$ac_ext <<_ACEOF
20369 /* confdefs.h.  */
20370 _ACEOF
20371 cat confdefs.h >>conftest.$ac_ext
20372 cat >>conftest.$ac_ext <<_ACEOF
20373 /* end confdefs.h.  */
20374
20375 #include <math.h>
20376 double glob_double;
20377
20378 int
20379 main ()
20380 {
20381 return isinf(glob_double) ? 0 : 1;
20382   ;
20383   return 0;
20384 }
20385 _ACEOF
20386 rm -f conftest.$ac_objext conftest$ac_exeext
20387 if { (ac_try="$ac_link"
20388 case "(($ac_try" in
20389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20390   *) ac_try_echo=$ac_try;;
20391 esac
20392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20393 $as_echo "$ac_try_echo") >&5
20394   (eval "$ac_link") 2>conftest.er1
20395   ac_status=$?
20396   grep -v '^ *+' conftest.er1 >conftest.err
20397   rm -f conftest.er1
20398   cat conftest.err >&5
20399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400   (exit $ac_status); } && {
20401          test -z "$ac_c_werror_flag" ||
20402          test ! -s conftest.err
20403        } && test -s conftest$ac_exeext && {
20404          test "$cross_compiling" = yes ||
20405          $as_test_x conftest$ac_exeext
20406        }; then
20407   ac_cv_func_isinf=yes
20408 else
20409   $as_echo "$as_me: failed program was:" >&5
20410 sed 's/^/| /' conftest.$ac_ext >&5
20411
20412         ac_cv_func_isinf=no
20413 fi
20414
20415 rm -rf conftest.dSYM
20416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20417       conftest$ac_exeext conftest.$ac_ext
20418 fi
20419 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
20420 $as_echo "$ac_cv_func_isinf" >&6; }
20421
20422 if test $ac_cv_func_isinf = yes ; then
20423
20424 cat >>confdefs.h <<\_ACEOF
20425 #define HAVE_ISINF 1
20426 _ACEOF
20427
20428 else
20429   case " $LIBOBJS " in
20430   *" isinf.$ac_objext "* ) ;;
20431   *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
20432  ;;
20433 esac
20434
20435   # Look for a way to implement a substitute for isinf()
20436
20437
20438
20439
20440 for ac_func in fpclass fp_class fp_class_d class
20441 do
20442 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20443 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20444 $as_echo_n "checking for $ac_func... " >&6; }
20445 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20446   $as_echo_n "(cached) " >&6
20447 else
20448   cat >conftest.$ac_ext <<_ACEOF
20449 /* confdefs.h.  */
20450 _ACEOF
20451 cat confdefs.h >>conftest.$ac_ext
20452 cat >>conftest.$ac_ext <<_ACEOF
20453 /* end confdefs.h.  */
20454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20455    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20456 #define $ac_func innocuous_$ac_func
20457
20458 /* System header to define __stub macros and hopefully few prototypes,
20459     which can conflict with char $ac_func (); below.
20460     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20461     <limits.h> exists even on freestanding compilers.  */
20462
20463 #ifdef __STDC__
20464 # include <limits.h>
20465 #else
20466 # include <assert.h>
20467 #endif
20468
20469 #undef $ac_func
20470
20471 /* Override any GCC internal prototype to avoid an error.
20472    Use char because int might match the return type of a GCC
20473    builtin and then its argument prototype would still apply.  */
20474 #ifdef __cplusplus
20475 extern "C"
20476 #endif
20477 char $ac_func ();
20478 /* The GNU C library defines this for functions which it implements
20479     to always fail with ENOSYS.  Some functions are actually named
20480     something starting with __ and the normal name is an alias.  */
20481 #if defined __stub_$ac_func || defined __stub___$ac_func
20482 choke me
20483 #endif
20484
20485 int
20486 main ()
20487 {
20488 return $ac_func ();
20489   ;
20490   return 0;
20491 }
20492 _ACEOF
20493 rm -f conftest.$ac_objext conftest$ac_exeext
20494 if { (ac_try="$ac_link"
20495 case "(($ac_try" in
20496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20497   *) ac_try_echo=$ac_try;;
20498 esac
20499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20500 $as_echo "$ac_try_echo") >&5
20501   (eval "$ac_link") 2>conftest.er1
20502   ac_status=$?
20503   grep -v '^ *+' conftest.er1 >conftest.err
20504   rm -f conftest.er1
20505   cat conftest.err >&5
20506   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507   (exit $ac_status); } && {
20508          test -z "$ac_c_werror_flag" ||
20509          test ! -s conftest.err
20510        } && test -s conftest$ac_exeext && {
20511          test "$cross_compiling" = yes ||
20512          $as_test_x conftest$ac_exeext
20513        }; then
20514   eval "$as_ac_var=yes"
20515 else
20516   $as_echo "$as_me: failed program was:" >&5
20517 sed 's/^/| /' conftest.$ac_ext >&5
20518
20519         eval "$as_ac_var=no"
20520 fi
20521
20522 rm -rf conftest.dSYM
20523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20524       conftest$ac_exeext conftest.$ac_ext
20525 fi
20526 ac_res=`eval 'as_val=${'$as_ac_var'}
20527                  $as_echo "$as_val"'`
20528                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20529 $as_echo "$ac_res" >&6; }
20530 as_val=`eval 'as_val=${'$as_ac_var'}
20531                  $as_echo "$as_val"'`
20532    if test "x$as_val" = x""yes; then
20533   cat >>confdefs.h <<_ACEOF
20534 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20535 _ACEOF
20536  break
20537 fi
20538 done
20539
20540 fi
20541
20542 # Some versions of libedit contain strlcpy(); so disregard that library while
20543 # checking for these standard libc functions.
20544 pgac_save_LIBS="$LIBS"
20545 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556
20557
20558
20559
20560 for ac_func in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
20561 do
20562 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20563 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20564 $as_echo_n "checking for $ac_func... " >&6; }
20565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20566   $as_echo_n "(cached) " >&6
20567 else
20568   cat >conftest.$ac_ext <<_ACEOF
20569 /* confdefs.h.  */
20570 _ACEOF
20571 cat confdefs.h >>conftest.$ac_ext
20572 cat >>conftest.$ac_ext <<_ACEOF
20573 /* end confdefs.h.  */
20574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20575    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20576 #define $ac_func innocuous_$ac_func
20577
20578 /* System header to define __stub macros and hopefully few prototypes,
20579     which can conflict with char $ac_func (); below.
20580     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20581     <limits.h> exists even on freestanding compilers.  */
20582
20583 #ifdef __STDC__
20584 # include <limits.h>
20585 #else
20586 # include <assert.h>
20587 #endif
20588
20589 #undef $ac_func
20590
20591 /* Override any GCC internal prototype to avoid an error.
20592    Use char because int might match the return type of a GCC
20593    builtin and then its argument prototype would still apply.  */
20594 #ifdef __cplusplus
20595 extern "C"
20596 #endif
20597 char $ac_func ();
20598 /* The GNU C library defines this for functions which it implements
20599     to always fail with ENOSYS.  Some functions are actually named
20600     something starting with __ and the normal name is an alias.  */
20601 #if defined __stub_$ac_func || defined __stub___$ac_func
20602 choke me
20603 #endif
20604
20605 int
20606 main ()
20607 {
20608 return $ac_func ();
20609   ;
20610   return 0;
20611 }
20612 _ACEOF
20613 rm -f conftest.$ac_objext conftest$ac_exeext
20614 if { (ac_try="$ac_link"
20615 case "(($ac_try" in
20616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20617   *) ac_try_echo=$ac_try;;
20618 esac
20619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20620 $as_echo "$ac_try_echo") >&5
20621   (eval "$ac_link") 2>conftest.er1
20622   ac_status=$?
20623   grep -v '^ *+' conftest.er1 >conftest.err
20624   rm -f conftest.er1
20625   cat conftest.err >&5
20626   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627   (exit $ac_status); } && {
20628          test -z "$ac_c_werror_flag" ||
20629          test ! -s conftest.err
20630        } && test -s conftest$ac_exeext && {
20631          test "$cross_compiling" = yes ||
20632          $as_test_x conftest$ac_exeext
20633        }; then
20634   eval "$as_ac_var=yes"
20635 else
20636   $as_echo "$as_me: failed program was:" >&5
20637 sed 's/^/| /' conftest.$ac_ext >&5
20638
20639         eval "$as_ac_var=no"
20640 fi
20641
20642 rm -rf conftest.dSYM
20643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20644       conftest$ac_exeext conftest.$ac_ext
20645 fi
20646 ac_res=`eval 'as_val=${'$as_ac_var'}
20647                  $as_echo "$as_val"'`
20648                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20649 $as_echo "$ac_res" >&6; }
20650 as_val=`eval 'as_val=${'$as_ac_var'}
20651                  $as_echo "$as_val"'`
20652    if test "x$as_val" = x""yes; then
20653   cat >>confdefs.h <<_ACEOF
20654 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20655 _ACEOF
20656
20657 else
20658   case " $LIBOBJS " in
20659   *" $ac_func.$ac_objext "* ) ;;
20660   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20661  ;;
20662 esac
20663
20664 fi
20665 done
20666
20667
20668
20669 case $host_os in
20670
20671         # Windows uses a specialised env handler
20672         # and doesn't need a replacement getpeereid because it doesn't use
20673         # Unix sockets.
20674         mingw*)
20675
20676 cat >>confdefs.h <<\_ACEOF
20677 #define HAVE_UNSETENV 1
20678 _ACEOF
20679
20680
20681 cat >>confdefs.h <<\_ACEOF
20682 #define HAVE_GETPEEREID 1
20683 _ACEOF
20684
20685                 ac_cv_func_unsetenv=yes
20686                 ac_cv_func_getpeereid=yes;;
20687         *)
20688
20689
20690 for ac_func in unsetenv getpeereid
20691 do
20692 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20693 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20694 $as_echo_n "checking for $ac_func... " >&6; }
20695 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20696   $as_echo_n "(cached) " >&6
20697 else
20698   cat >conftest.$ac_ext <<_ACEOF
20699 /* confdefs.h.  */
20700 _ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h.  */
20704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20705    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20706 #define $ac_func innocuous_$ac_func
20707
20708 /* System header to define __stub macros and hopefully few prototypes,
20709     which can conflict with char $ac_func (); below.
20710     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20711     <limits.h> exists even on freestanding compilers.  */
20712
20713 #ifdef __STDC__
20714 # include <limits.h>
20715 #else
20716 # include <assert.h>
20717 #endif
20718
20719 #undef $ac_func
20720
20721 /* Override any GCC internal prototype to avoid an error.
20722    Use char because int might match the return type of a GCC
20723    builtin and then its argument prototype would still apply.  */
20724 #ifdef __cplusplus
20725 extern "C"
20726 #endif
20727 char $ac_func ();
20728 /* The GNU C library defines this for functions which it implements
20729     to always fail with ENOSYS.  Some functions are actually named
20730     something starting with __ and the normal name is an alias.  */
20731 #if defined __stub_$ac_func || defined __stub___$ac_func
20732 choke me
20733 #endif
20734
20735 int
20736 main ()
20737 {
20738 return $ac_func ();
20739   ;
20740   return 0;
20741 }
20742 _ACEOF
20743 rm -f conftest.$ac_objext conftest$ac_exeext
20744 if { (ac_try="$ac_link"
20745 case "(($ac_try" in
20746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20747   *) ac_try_echo=$ac_try;;
20748 esac
20749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20750 $as_echo "$ac_try_echo") >&5
20751   (eval "$ac_link") 2>conftest.er1
20752   ac_status=$?
20753   grep -v '^ *+' conftest.er1 >conftest.err
20754   rm -f conftest.er1
20755   cat conftest.err >&5
20756   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757   (exit $ac_status); } && {
20758          test -z "$ac_c_werror_flag" ||
20759          test ! -s conftest.err
20760        } && test -s conftest$ac_exeext && {
20761          test "$cross_compiling" = yes ||
20762          $as_test_x conftest$ac_exeext
20763        }; then
20764   eval "$as_ac_var=yes"
20765 else
20766   $as_echo "$as_me: failed program was:" >&5
20767 sed 's/^/| /' conftest.$ac_ext >&5
20768
20769         eval "$as_ac_var=no"
20770 fi
20771
20772 rm -rf conftest.dSYM
20773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20774       conftest$ac_exeext conftest.$ac_ext
20775 fi
20776 ac_res=`eval 'as_val=${'$as_ac_var'}
20777                  $as_echo "$as_val"'`
20778                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20779 $as_echo "$ac_res" >&6; }
20780 as_val=`eval 'as_val=${'$as_ac_var'}
20781                  $as_echo "$as_val"'`
20782    if test "x$as_val" = x""yes; then
20783   cat >>confdefs.h <<_ACEOF
20784 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20785 _ACEOF
20786
20787 else
20788   case " $LIBOBJS " in
20789   *" $ac_func.$ac_objext "* ) ;;
20790   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20791  ;;
20792 esac
20793
20794 fi
20795 done
20796
20797
20798                 ;;
20799 esac
20800
20801
20802 LIBS="$pgac_save_LIBS"
20803
20804 # System's version of getaddrinfo(), if any, may be used only if we found
20805 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
20806 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
20807 # versions of getaddrinfo don't follow normal C call protocol.  This is OK
20808 # because we want to use our own getaddrinfo.c on Windows anyway.)
20809 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
20810
20811 for ac_func in getaddrinfo
20812 do
20813 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20814 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20815 $as_echo_n "checking for $ac_func... " >&6; }
20816 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20817   $as_echo_n "(cached) " >&6
20818 else
20819   cat >conftest.$ac_ext <<_ACEOF
20820 /* confdefs.h.  */
20821 _ACEOF
20822 cat confdefs.h >>conftest.$ac_ext
20823 cat >>conftest.$ac_ext <<_ACEOF
20824 /* end confdefs.h.  */
20825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20826    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20827 #define $ac_func innocuous_$ac_func
20828
20829 /* System header to define __stub macros and hopefully few prototypes,
20830     which can conflict with char $ac_func (); below.
20831     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20832     <limits.h> exists even on freestanding compilers.  */
20833
20834 #ifdef __STDC__
20835 # include <limits.h>
20836 #else
20837 # include <assert.h>
20838 #endif
20839
20840 #undef $ac_func
20841
20842 /* Override any GCC internal prototype to avoid an error.
20843    Use char because int might match the return type of a GCC
20844    builtin and then its argument prototype would still apply.  */
20845 #ifdef __cplusplus
20846 extern "C"
20847 #endif
20848 char $ac_func ();
20849 /* The GNU C library defines this for functions which it implements
20850     to always fail with ENOSYS.  Some functions are actually named
20851     something starting with __ and the normal name is an alias.  */
20852 #if defined __stub_$ac_func || defined __stub___$ac_func
20853 choke me
20854 #endif
20855
20856 int
20857 main ()
20858 {
20859 return $ac_func ();
20860   ;
20861   return 0;
20862 }
20863 _ACEOF
20864 rm -f conftest.$ac_objext conftest$ac_exeext
20865 if { (ac_try="$ac_link"
20866 case "(($ac_try" in
20867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20868   *) ac_try_echo=$ac_try;;
20869 esac
20870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20871 $as_echo "$ac_try_echo") >&5
20872   (eval "$ac_link") 2>conftest.er1
20873   ac_status=$?
20874   grep -v '^ *+' conftest.er1 >conftest.err
20875   rm -f conftest.er1
20876   cat conftest.err >&5
20877   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878   (exit $ac_status); } && {
20879          test -z "$ac_c_werror_flag" ||
20880          test ! -s conftest.err
20881        } && test -s conftest$ac_exeext && {
20882          test "$cross_compiling" = yes ||
20883          $as_test_x conftest$ac_exeext
20884        }; then
20885   eval "$as_ac_var=yes"
20886 else
20887   $as_echo "$as_me: failed program was:" >&5
20888 sed 's/^/| /' conftest.$ac_ext >&5
20889
20890         eval "$as_ac_var=no"
20891 fi
20892
20893 rm -rf conftest.dSYM
20894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20895       conftest$ac_exeext conftest.$ac_ext
20896 fi
20897 ac_res=`eval 'as_val=${'$as_ac_var'}
20898                  $as_echo "$as_val"'`
20899                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20900 $as_echo "$ac_res" >&6; }
20901 as_val=`eval 'as_val=${'$as_ac_var'}
20902                  $as_echo "$as_val"'`
20903    if test "x$as_val" = x""yes; then
20904   cat >>confdefs.h <<_ACEOF
20905 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20906 _ACEOF
20907
20908 else
20909   case " $LIBOBJS " in
20910   *" $ac_func.$ac_objext "* ) ;;
20911   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20912  ;;
20913 esac
20914
20915 fi
20916 done
20917
20918
20919 else
20920   case " $LIBOBJS " in
20921   *" getaddrinfo.$ac_objext "* ) ;;
20922   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
20923  ;;
20924 esac
20925
20926 fi
20927
20928 # Similarly, use system's getopt_long() only if system provides struct option.
20929 if test x"$ac_cv_type_struct_option" = xyes ; then
20930
20931 for ac_func in getopt_long
20932 do
20933 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20934 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20935 $as_echo_n "checking for $ac_func... " >&6; }
20936 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20937   $as_echo_n "(cached) " >&6
20938 else
20939   cat >conftest.$ac_ext <<_ACEOF
20940 /* confdefs.h.  */
20941 _ACEOF
20942 cat confdefs.h >>conftest.$ac_ext
20943 cat >>conftest.$ac_ext <<_ACEOF
20944 /* end confdefs.h.  */
20945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20946    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20947 #define $ac_func innocuous_$ac_func
20948
20949 /* System header to define __stub macros and hopefully few prototypes,
20950     which can conflict with char $ac_func (); below.
20951     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20952     <limits.h> exists even on freestanding compilers.  */
20953
20954 #ifdef __STDC__
20955 # include <limits.h>
20956 #else
20957 # include <assert.h>
20958 #endif
20959
20960 #undef $ac_func
20961
20962 /* Override any GCC internal prototype to avoid an error.
20963    Use char because int might match the return type of a GCC
20964    builtin and then its argument prototype would still apply.  */
20965 #ifdef __cplusplus
20966 extern "C"
20967 #endif
20968 char $ac_func ();
20969 /* The GNU C library defines this for functions which it implements
20970     to always fail with ENOSYS.  Some functions are actually named
20971     something starting with __ and the normal name is an alias.  */
20972 #if defined __stub_$ac_func || defined __stub___$ac_func
20973 choke me
20974 #endif
20975
20976 int
20977 main ()
20978 {
20979 return $ac_func ();
20980   ;
20981   return 0;
20982 }
20983 _ACEOF
20984 rm -f conftest.$ac_objext conftest$ac_exeext
20985 if { (ac_try="$ac_link"
20986 case "(($ac_try" in
20987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20988   *) ac_try_echo=$ac_try;;
20989 esac
20990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20991 $as_echo "$ac_try_echo") >&5
20992   (eval "$ac_link") 2>conftest.er1
20993   ac_status=$?
20994   grep -v '^ *+' conftest.er1 >conftest.err
20995   rm -f conftest.er1
20996   cat conftest.err >&5
20997   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998   (exit $ac_status); } && {
20999          test -z "$ac_c_werror_flag" ||
21000          test ! -s conftest.err
21001        } && test -s conftest$ac_exeext && {
21002          test "$cross_compiling" = yes ||
21003          $as_test_x conftest$ac_exeext
21004        }; then
21005   eval "$as_ac_var=yes"
21006 else
21007   $as_echo "$as_me: failed program was:" >&5
21008 sed 's/^/| /' conftest.$ac_ext >&5
21009
21010         eval "$as_ac_var=no"
21011 fi
21012
21013 rm -rf conftest.dSYM
21014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21015       conftest$ac_exeext conftest.$ac_ext
21016 fi
21017 ac_res=`eval 'as_val=${'$as_ac_var'}
21018                  $as_echo "$as_val"'`
21019                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21020 $as_echo "$ac_res" >&6; }
21021 as_val=`eval 'as_val=${'$as_ac_var'}
21022                  $as_echo "$as_val"'`
21023    if test "x$as_val" = x""yes; then
21024   cat >>confdefs.h <<_ACEOF
21025 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21026 _ACEOF
21027
21028 else
21029   case " $LIBOBJS " in
21030   *" $ac_func.$ac_objext "* ) ;;
21031   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21032  ;;
21033 esac
21034
21035 fi
21036 done
21037
21038
21039 else
21040   case " $LIBOBJS " in
21041   *" getopt_long.$ac_objext "* ) ;;
21042   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21043  ;;
21044 esac
21045
21046 fi
21047
21048 # Solaris' getopt() doesn't do what we want for long options, so always use
21049 # our version on that platform.
21050 if test "$PORTNAME" = "solaris"; then
21051   case " $LIBOBJS " in
21052   *" getopt.$ac_objext "* ) ;;
21053   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21054  ;;
21055 esac
21056
21057 fi
21058
21059 # mingw has adopted a GNU-centric interpretation of optind/optreset,
21060 # so always use our version on Windows.
21061 if test "$PORTNAME" = "win32"; then
21062   case " $LIBOBJS " in
21063   *" getopt.$ac_objext "* ) ;;
21064   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21065  ;;
21066 esac
21067
21068   case " $LIBOBJS " in
21069   *" getopt_long.$ac_objext "* ) ;;
21070   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21071  ;;
21072 esac
21073
21074 fi
21075
21076 # Win32 support
21077 if test "$PORTNAME" = "win32"; then
21078
21079 for ac_func in gettimeofday
21080 do
21081 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21082 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21083 $as_echo_n "checking for $ac_func... " >&6; }
21084 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21085   $as_echo_n "(cached) " >&6
21086 else
21087   cat >conftest.$ac_ext <<_ACEOF
21088 /* confdefs.h.  */
21089 _ACEOF
21090 cat confdefs.h >>conftest.$ac_ext
21091 cat >>conftest.$ac_ext <<_ACEOF
21092 /* end confdefs.h.  */
21093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21094    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21095 #define $ac_func innocuous_$ac_func
21096
21097 /* System header to define __stub macros and hopefully few prototypes,
21098     which can conflict with char $ac_func (); below.
21099     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21100     <limits.h> exists even on freestanding compilers.  */
21101
21102 #ifdef __STDC__
21103 # include <limits.h>
21104 #else
21105 # include <assert.h>
21106 #endif
21107
21108 #undef $ac_func
21109
21110 /* Override any GCC internal prototype to avoid an error.
21111    Use char because int might match the return type of a GCC
21112    builtin and then its argument prototype would still apply.  */
21113 #ifdef __cplusplus
21114 extern "C"
21115 #endif
21116 char $ac_func ();
21117 /* The GNU C library defines this for functions which it implements
21118     to always fail with ENOSYS.  Some functions are actually named
21119     something starting with __ and the normal name is an alias.  */
21120 #if defined __stub_$ac_func || defined __stub___$ac_func
21121 choke me
21122 #endif
21123
21124 int
21125 main ()
21126 {
21127 return $ac_func ();
21128   ;
21129   return 0;
21130 }
21131 _ACEOF
21132 rm -f conftest.$ac_objext conftest$ac_exeext
21133 if { (ac_try="$ac_link"
21134 case "(($ac_try" in
21135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21136   *) ac_try_echo=$ac_try;;
21137 esac
21138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21139 $as_echo "$ac_try_echo") >&5
21140   (eval "$ac_link") 2>conftest.er1
21141   ac_status=$?
21142   grep -v '^ *+' conftest.er1 >conftest.err
21143   rm -f conftest.er1
21144   cat conftest.err >&5
21145   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146   (exit $ac_status); } && {
21147          test -z "$ac_c_werror_flag" ||
21148          test ! -s conftest.err
21149        } && test -s conftest$ac_exeext && {
21150          test "$cross_compiling" = yes ||
21151          $as_test_x conftest$ac_exeext
21152        }; then
21153   eval "$as_ac_var=yes"
21154 else
21155   $as_echo "$as_me: failed program was:" >&5
21156 sed 's/^/| /' conftest.$ac_ext >&5
21157
21158         eval "$as_ac_var=no"
21159 fi
21160
21161 rm -rf conftest.dSYM
21162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21163       conftest$ac_exeext conftest.$ac_ext
21164 fi
21165 ac_res=`eval 'as_val=${'$as_ac_var'}
21166                  $as_echo "$as_val"'`
21167                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21168 $as_echo "$ac_res" >&6; }
21169 as_val=`eval 'as_val=${'$as_ac_var'}
21170                  $as_echo "$as_val"'`
21171    if test "x$as_val" = x""yes; then
21172   cat >>confdefs.h <<_ACEOF
21173 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21174 _ACEOF
21175
21176 else
21177   case " $LIBOBJS " in
21178   *" $ac_func.$ac_objext "* ) ;;
21179   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21180  ;;
21181 esac
21182
21183 fi
21184 done
21185
21186
21187   case " $LIBOBJS " in
21188   *" kill.$ac_objext "* ) ;;
21189   *) LIBOBJS="$LIBOBJS kill.$ac_objext"
21190  ;;
21191 esac
21192
21193   case " $LIBOBJS " in
21194   *" open.$ac_objext "* ) ;;
21195   *) LIBOBJS="$LIBOBJS open.$ac_objext"
21196  ;;
21197 esac
21198
21199   case " $LIBOBJS " in
21200   *" win32env.$ac_objext "* ) ;;
21201   *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
21202  ;;
21203 esac
21204
21205   case " $LIBOBJS " in
21206   *" win32error.$ac_objext "* ) ;;
21207   *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
21208  ;;
21209 esac
21210
21211   case " $LIBOBJS " in
21212   *" win32setlocale.$ac_objext "* ) ;;
21213   *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
21214  ;;
21215 esac
21216
21217
21218 cat >>confdefs.h <<\_ACEOF
21219 #define HAVE_SYMLINK 1
21220 _ACEOF
21221
21222   { $as_echo "$as_me:$LINENO: checking for MINIDUMP_TYPE" >&5
21223 $as_echo_n "checking for MINIDUMP_TYPE... " >&6; }
21224 if test "${ac_cv_type_MINIDUMP_TYPE+set}" = set; then
21225   $as_echo_n "(cached) " >&6
21226 else
21227   ac_cv_type_MINIDUMP_TYPE=no
21228 cat >conftest.$ac_ext <<_ACEOF
21229 /* confdefs.h.  */
21230 _ACEOF
21231 cat confdefs.h >>conftest.$ac_ext
21232 cat >>conftest.$ac_ext <<_ACEOF
21233 /* end confdefs.h.  */
21234
21235 #define WIN32_LEAN_AND_MEAN
21236 #include <windows.h>
21237 #include <string.h>
21238 #include <dbghelp.h>
21239
21240 int
21241 main ()
21242 {
21243 if (sizeof (MINIDUMP_TYPE))
21244        return 0;
21245   ;
21246   return 0;
21247 }
21248 _ACEOF
21249 rm -f conftest.$ac_objext
21250 if { (ac_try="$ac_compile"
21251 case "(($ac_try" in
21252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21253   *) ac_try_echo=$ac_try;;
21254 esac
21255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21256 $as_echo "$ac_try_echo") >&5
21257   (eval "$ac_compile") 2>conftest.er1
21258   ac_status=$?
21259   grep -v '^ *+' conftest.er1 >conftest.err
21260   rm -f conftest.er1
21261   cat conftest.err >&5
21262   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263   (exit $ac_status); } && {
21264          test -z "$ac_c_werror_flag" ||
21265          test ! -s conftest.err
21266        } && test -s conftest.$ac_objext; then
21267   cat >conftest.$ac_ext <<_ACEOF
21268 /* confdefs.h.  */
21269 _ACEOF
21270 cat confdefs.h >>conftest.$ac_ext
21271 cat >>conftest.$ac_ext <<_ACEOF
21272 /* end confdefs.h.  */
21273
21274 #define WIN32_LEAN_AND_MEAN
21275 #include <windows.h>
21276 #include <string.h>
21277 #include <dbghelp.h>
21278
21279 int
21280 main ()
21281 {
21282 if (sizeof ((MINIDUMP_TYPE)))
21283           return 0;
21284   ;
21285   return 0;
21286 }
21287 _ACEOF
21288 rm -f conftest.$ac_objext
21289 if { (ac_try="$ac_compile"
21290 case "(($ac_try" in
21291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21292   *) ac_try_echo=$ac_try;;
21293 esac
21294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21295 $as_echo "$ac_try_echo") >&5
21296   (eval "$ac_compile") 2>conftest.er1
21297   ac_status=$?
21298   grep -v '^ *+' conftest.er1 >conftest.err
21299   rm -f conftest.er1
21300   cat conftest.err >&5
21301   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302   (exit $ac_status); } && {
21303          test -z "$ac_c_werror_flag" ||
21304          test ! -s conftest.err
21305        } && test -s conftest.$ac_objext; then
21306   :
21307 else
21308   $as_echo "$as_me: failed program was:" >&5
21309 sed 's/^/| /' conftest.$ac_ext >&5
21310
21311         ac_cv_type_MINIDUMP_TYPE=yes
21312 fi
21313
21314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21315 else
21316   $as_echo "$as_me: failed program was:" >&5
21317 sed 's/^/| /' conftest.$ac_ext >&5
21318
21319
21320 fi
21321
21322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21323 fi
21324 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_MINIDUMP_TYPE" >&5
21325 $as_echo "$ac_cv_type_MINIDUMP_TYPE" >&6; }
21326 if test "x$ac_cv_type_MINIDUMP_TYPE" = x""yes; then
21327
21328 cat >>confdefs.h <<_ACEOF
21329 #define HAVE_MINIDUMP_TYPE 1
21330 _ACEOF
21331
21332 pgac_minidump_type=yes
21333 else
21334   pgac_minidump_type=no
21335 fi
21336
21337 fi
21338 if test x"$pgac_minidump_type" = x"yes" ; then
21339   have_win32_dbghelp=yes
21340
21341 else
21342   have_win32_dbghelp=no
21343
21344 fi
21345
21346 if test "$with_readline" = yes; then
21347   { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
21348 $as_echo_n "checking for rl_completion_append_character... " >&6; }
21349 if test "${pgac_cv_var_rl_completion_append_character+set}" = set; then
21350   $as_echo_n "(cached) " >&6
21351 else
21352   cat >conftest.$ac_ext <<_ACEOF
21353 /* confdefs.h.  */
21354 _ACEOF
21355 cat confdefs.h >>conftest.$ac_ext
21356 cat >>conftest.$ac_ext <<_ACEOF
21357 /* end confdefs.h.  */
21358 #include <stdio.h>
21359 #ifdef HAVE_READLINE_READLINE_H
21360 # include <readline/readline.h>
21361 #elif defined(HAVE_READLINE_H)
21362 # include <readline.h>
21363 #endif
21364
21365 int
21366 main ()
21367 {
21368 rl_completion_append_character = 'x';
21369   ;
21370   return 0;
21371 }
21372 _ACEOF
21373 rm -f conftest.$ac_objext conftest$ac_exeext
21374 if { (ac_try="$ac_link"
21375 case "(($ac_try" in
21376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21377   *) ac_try_echo=$ac_try;;
21378 esac
21379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21380 $as_echo "$ac_try_echo") >&5
21381   (eval "$ac_link") 2>conftest.er1
21382   ac_status=$?
21383   grep -v '^ *+' conftest.er1 >conftest.err
21384   rm -f conftest.er1
21385   cat conftest.err >&5
21386   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387   (exit $ac_status); } && {
21388          test -z "$ac_c_werror_flag" ||
21389          test ! -s conftest.err
21390        } && test -s conftest$ac_exeext && {
21391          test "$cross_compiling" = yes ||
21392          $as_test_x conftest$ac_exeext
21393        }; then
21394   pgac_cv_var_rl_completion_append_character=yes
21395 else
21396   $as_echo "$as_me: failed program was:" >&5
21397 sed 's/^/| /' conftest.$ac_ext >&5
21398
21399         pgac_cv_var_rl_completion_append_character=no
21400 fi
21401
21402 rm -rf conftest.dSYM
21403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21404       conftest$ac_exeext conftest.$ac_ext
21405 fi
21406 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_rl_completion_append_character" >&5
21407 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
21408 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
21409
21410 cat >>confdefs.h <<\_ACEOF
21411 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
21412 _ACEOF
21413
21414 fi
21415
21416
21417 for ac_func in rl_completion_matches rl_filename_completion_function
21418 do
21419 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21420 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21421 $as_echo_n "checking for $ac_func... " >&6; }
21422 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21423   $as_echo_n "(cached) " >&6
21424 else
21425   cat >conftest.$ac_ext <<_ACEOF
21426 /* confdefs.h.  */
21427 _ACEOF
21428 cat confdefs.h >>conftest.$ac_ext
21429 cat >>conftest.$ac_ext <<_ACEOF
21430 /* end confdefs.h.  */
21431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21432    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21433 #define $ac_func innocuous_$ac_func
21434
21435 /* System header to define __stub macros and hopefully few prototypes,
21436     which can conflict with char $ac_func (); below.
21437     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21438     <limits.h> exists even on freestanding compilers.  */
21439
21440 #ifdef __STDC__
21441 # include <limits.h>
21442 #else
21443 # include <assert.h>
21444 #endif
21445
21446 #undef $ac_func
21447
21448 /* Override any GCC internal prototype to avoid an error.
21449    Use char because int might match the return type of a GCC
21450    builtin and then its argument prototype would still apply.  */
21451 #ifdef __cplusplus
21452 extern "C"
21453 #endif
21454 char $ac_func ();
21455 /* The GNU C library defines this for functions which it implements
21456     to always fail with ENOSYS.  Some functions are actually named
21457     something starting with __ and the normal name is an alias.  */
21458 #if defined __stub_$ac_func || defined __stub___$ac_func
21459 choke me
21460 #endif
21461
21462 int
21463 main ()
21464 {
21465 return $ac_func ();
21466   ;
21467   return 0;
21468 }
21469 _ACEOF
21470 rm -f conftest.$ac_objext conftest$ac_exeext
21471 if { (ac_try="$ac_link"
21472 case "(($ac_try" in
21473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21474   *) ac_try_echo=$ac_try;;
21475 esac
21476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21477 $as_echo "$ac_try_echo") >&5
21478   (eval "$ac_link") 2>conftest.er1
21479   ac_status=$?
21480   grep -v '^ *+' conftest.er1 >conftest.err
21481   rm -f conftest.er1
21482   cat conftest.err >&5
21483   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484   (exit $ac_status); } && {
21485          test -z "$ac_c_werror_flag" ||
21486          test ! -s conftest.err
21487        } && test -s conftest$ac_exeext && {
21488          test "$cross_compiling" = yes ||
21489          $as_test_x conftest$ac_exeext
21490        }; then
21491   eval "$as_ac_var=yes"
21492 else
21493   $as_echo "$as_me: failed program was:" >&5
21494 sed 's/^/| /' conftest.$ac_ext >&5
21495
21496         eval "$as_ac_var=no"
21497 fi
21498
21499 rm -rf conftest.dSYM
21500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21501       conftest$ac_exeext conftest.$ac_ext
21502 fi
21503 ac_res=`eval 'as_val=${'$as_ac_var'}
21504                  $as_echo "$as_val"'`
21505                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21506 $as_echo "$ac_res" >&6; }
21507 as_val=`eval 'as_val=${'$as_ac_var'}
21508                  $as_echo "$as_val"'`
21509    if test "x$as_val" = x""yes; then
21510   cat >>confdefs.h <<_ACEOF
21511 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21512 _ACEOF
21513
21514 fi
21515 done
21516
21517
21518
21519 for ac_func in append_history history_truncate_file
21520 do
21521 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21522 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21523 $as_echo_n "checking for $ac_func... " >&6; }
21524 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21525   $as_echo_n "(cached) " >&6
21526 else
21527   cat >conftest.$ac_ext <<_ACEOF
21528 /* confdefs.h.  */
21529 _ACEOF
21530 cat confdefs.h >>conftest.$ac_ext
21531 cat >>conftest.$ac_ext <<_ACEOF
21532 /* end confdefs.h.  */
21533 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21534    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21535 #define $ac_func innocuous_$ac_func
21536
21537 /* System header to define __stub macros and hopefully few prototypes,
21538     which can conflict with char $ac_func (); below.
21539     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21540     <limits.h> exists even on freestanding compilers.  */
21541
21542 #ifdef __STDC__
21543 # include <limits.h>
21544 #else
21545 # include <assert.h>
21546 #endif
21547
21548 #undef $ac_func
21549
21550 /* Override any GCC internal prototype to avoid an error.
21551    Use char because int might match the return type of a GCC
21552    builtin and then its argument prototype would still apply.  */
21553 #ifdef __cplusplus
21554 extern "C"
21555 #endif
21556 char $ac_func ();
21557 /* The GNU C library defines this for functions which it implements
21558     to always fail with ENOSYS.  Some functions are actually named
21559     something starting with __ and the normal name is an alias.  */
21560 #if defined __stub_$ac_func || defined __stub___$ac_func
21561 choke me
21562 #endif
21563
21564 int
21565 main ()
21566 {
21567 return $ac_func ();
21568   ;
21569   return 0;
21570 }
21571 _ACEOF
21572 rm -f conftest.$ac_objext conftest$ac_exeext
21573 if { (ac_try="$ac_link"
21574 case "(($ac_try" in
21575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21576   *) ac_try_echo=$ac_try;;
21577 esac
21578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21579 $as_echo "$ac_try_echo") >&5
21580   (eval "$ac_link") 2>conftest.er1
21581   ac_status=$?
21582   grep -v '^ *+' conftest.er1 >conftest.err
21583   rm -f conftest.er1
21584   cat conftest.err >&5
21585   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586   (exit $ac_status); } && {
21587          test -z "$ac_c_werror_flag" ||
21588          test ! -s conftest.err
21589        } && test -s conftest$ac_exeext && {
21590          test "$cross_compiling" = yes ||
21591          $as_test_x conftest$ac_exeext
21592        }; then
21593   eval "$as_ac_var=yes"
21594 else
21595   $as_echo "$as_me: failed program was:" >&5
21596 sed 's/^/| /' conftest.$ac_ext >&5
21597
21598         eval "$as_ac_var=no"
21599 fi
21600
21601 rm -rf conftest.dSYM
21602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21603       conftest$ac_exeext conftest.$ac_ext
21604 fi
21605 ac_res=`eval 'as_val=${'$as_ac_var'}
21606                  $as_echo "$as_val"'`
21607                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21608 $as_echo "$ac_res" >&6; }
21609 as_val=`eval 'as_val=${'$as_ac_var'}
21610                  $as_echo "$as_val"'`
21611    if test "x$as_val" = x""yes; then
21612   cat >>confdefs.h <<_ACEOF
21613 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21614 _ACEOF
21615
21616 fi
21617 done
21618
21619 fi
21620
21621
21622 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
21623 $as_echo_n "checking for sigsetjmp... " >&6; }
21624 if test "${pgac_cv_func_sigsetjmp+set}" = set; then
21625   $as_echo_n "(cached) " >&6
21626 else
21627   cat >conftest.$ac_ext <<_ACEOF
21628 /* confdefs.h.  */
21629 _ACEOF
21630 cat confdefs.h >>conftest.$ac_ext
21631 cat >>conftest.$ac_ext <<_ACEOF
21632 /* end confdefs.h.  */
21633 #include <setjmp.h>
21634 int
21635 main ()
21636 {
21637 sigjmp_buf x; sigsetjmp(x, 1);
21638   ;
21639   return 0;
21640 }
21641 _ACEOF
21642 rm -f conftest.$ac_objext conftest$ac_exeext
21643 if { (ac_try="$ac_link"
21644 case "(($ac_try" in
21645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21646   *) ac_try_echo=$ac_try;;
21647 esac
21648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21649 $as_echo "$ac_try_echo") >&5
21650   (eval "$ac_link") 2>conftest.er1
21651   ac_status=$?
21652   grep -v '^ *+' conftest.er1 >conftest.err
21653   rm -f conftest.er1
21654   cat conftest.err >&5
21655   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656   (exit $ac_status); } && {
21657          test -z "$ac_c_werror_flag" ||
21658          test ! -s conftest.err
21659        } && test -s conftest$ac_exeext && {
21660          test "$cross_compiling" = yes ||
21661          $as_test_x conftest$ac_exeext
21662        }; then
21663   pgac_cv_func_sigsetjmp=yes
21664 else
21665   $as_echo "$as_me: failed program was:" >&5
21666 sed 's/^/| /' conftest.$ac_ext >&5
21667
21668         pgac_cv_func_sigsetjmp=no
21669 fi
21670
21671 rm -rf conftest.dSYM
21672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21673       conftest$ac_exeext conftest.$ac_ext
21674 fi
21675 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_sigsetjmp" >&5
21676 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
21677 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
21678
21679 cat >>confdefs.h <<\_ACEOF
21680 #define HAVE_SIGSETJMP 1
21681 _ACEOF
21682
21683 fi
21684
21685 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
21686 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
21687 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
21688   $as_echo_n "(cached) " >&6
21689 else
21690   cat >conftest.$ac_ext <<_ACEOF
21691 /* confdefs.h.  */
21692 _ACEOF
21693 cat confdefs.h >>conftest.$ac_ext
21694 cat >>conftest.$ac_ext <<_ACEOF
21695 /* end confdefs.h.  */
21696 #include <signal.h>
21697 /* NetBSD declares sys_siglist in unistd.h.  */
21698 #ifdef HAVE_UNISTD_H
21699 # include <unistd.h>
21700 #endif
21701
21702
21703 int
21704 main ()
21705 {
21706 #ifndef sys_siglist
21707   (void) sys_siglist;
21708 #endif
21709
21710   ;
21711   return 0;
21712 }
21713 _ACEOF
21714 rm -f conftest.$ac_objext
21715 if { (ac_try="$ac_compile"
21716 case "(($ac_try" in
21717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21718   *) ac_try_echo=$ac_try;;
21719 esac
21720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21721 $as_echo "$ac_try_echo") >&5
21722   (eval "$ac_compile") 2>conftest.er1
21723   ac_status=$?
21724   grep -v '^ *+' conftest.er1 >conftest.err
21725   rm -f conftest.er1
21726   cat conftest.err >&5
21727   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728   (exit $ac_status); } && {
21729          test -z "$ac_c_werror_flag" ||
21730          test ! -s conftest.err
21731        } && test -s conftest.$ac_objext; then
21732   ac_cv_have_decl_sys_siglist=yes
21733 else
21734   $as_echo "$as_me: failed program was:" >&5
21735 sed 's/^/| /' conftest.$ac_ext >&5
21736
21737         ac_cv_have_decl_sys_siglist=no
21738 fi
21739
21740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21741 fi
21742 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
21743 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
21744 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
21745
21746 cat >>confdefs.h <<_ACEOF
21747 #define HAVE_DECL_SYS_SIGLIST 1
21748 _ACEOF
21749
21750
21751 else
21752   cat >>confdefs.h <<_ACEOF
21753 #define HAVE_DECL_SYS_SIGLIST 0
21754 _ACEOF
21755
21756
21757 fi
21758
21759
21760
21761
21762 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
21763 $as_echo_n "checking for syslog... " >&6; }
21764 if test "${ac_cv_func_syslog+set}" = set; then
21765   $as_echo_n "(cached) " >&6
21766 else
21767   cat >conftest.$ac_ext <<_ACEOF
21768 /* confdefs.h.  */
21769 _ACEOF
21770 cat confdefs.h >>conftest.$ac_ext
21771 cat >>conftest.$ac_ext <<_ACEOF
21772 /* end confdefs.h.  */
21773 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
21774    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21775 #define syslog innocuous_syslog
21776
21777 /* System header to define __stub macros and hopefully few prototypes,
21778     which can conflict with char syslog (); below.
21779     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21780     <limits.h> exists even on freestanding compilers.  */
21781
21782 #ifdef __STDC__
21783 # include <limits.h>
21784 #else
21785 # include <assert.h>
21786 #endif
21787
21788 #undef syslog
21789
21790 /* Override any GCC internal prototype to avoid an error.
21791    Use char because int might match the return type of a GCC
21792    builtin and then its argument prototype would still apply.  */
21793 #ifdef __cplusplus
21794 extern "C"
21795 #endif
21796 char syslog ();
21797 /* The GNU C library defines this for functions which it implements
21798     to always fail with ENOSYS.  Some functions are actually named
21799     something starting with __ and the normal name is an alias.  */
21800 #if defined __stub_syslog || defined __stub___syslog
21801 choke me
21802 #endif
21803
21804 int
21805 main ()
21806 {
21807 return syslog ();
21808   ;
21809   return 0;
21810 }
21811 _ACEOF
21812 rm -f conftest.$ac_objext conftest$ac_exeext
21813 if { (ac_try="$ac_link"
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_link") 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_exeext && {
21830          test "$cross_compiling" = yes ||
21831          $as_test_x conftest$ac_exeext
21832        }; then
21833   ac_cv_func_syslog=yes
21834 else
21835   $as_echo "$as_me: failed program was:" >&5
21836 sed 's/^/| /' conftest.$ac_ext >&5
21837
21838         ac_cv_func_syslog=no
21839 fi
21840
21841 rm -rf conftest.dSYM
21842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21843       conftest$ac_exeext conftest.$ac_ext
21844 fi
21845 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
21846 $as_echo "$ac_cv_func_syslog" >&6; }
21847 if test "x$ac_cv_func_syslog" = x""yes; then
21848   if test "${ac_cv_header_syslog_h+set}" = set; then
21849   { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21850 $as_echo_n "checking for syslog.h... " >&6; }
21851 if test "${ac_cv_header_syslog_h+set}" = set; then
21852   $as_echo_n "(cached) " >&6
21853 fi
21854 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21855 $as_echo "$ac_cv_header_syslog_h" >&6; }
21856 else
21857   # Is the header compilable?
21858 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
21859 $as_echo_n "checking syslog.h usability... " >&6; }
21860 cat >conftest.$ac_ext <<_ACEOF
21861 /* confdefs.h.  */
21862 _ACEOF
21863 cat confdefs.h >>conftest.$ac_ext
21864 cat >>conftest.$ac_ext <<_ACEOF
21865 /* end confdefs.h.  */
21866 $ac_includes_default
21867 #include <syslog.h>
21868 _ACEOF
21869 rm -f conftest.$ac_objext
21870 if { (ac_try="$ac_compile"
21871 case "(($ac_try" in
21872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21873   *) ac_try_echo=$ac_try;;
21874 esac
21875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21876 $as_echo "$ac_try_echo") >&5
21877   (eval "$ac_compile") 2>conftest.er1
21878   ac_status=$?
21879   grep -v '^ *+' conftest.er1 >conftest.err
21880   rm -f conftest.er1
21881   cat conftest.err >&5
21882   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883   (exit $ac_status); } && {
21884          test -z "$ac_c_werror_flag" ||
21885          test ! -s conftest.err
21886        } && test -s conftest.$ac_objext; then
21887   ac_header_compiler=yes
21888 else
21889   $as_echo "$as_me: failed program was:" >&5
21890 sed 's/^/| /' conftest.$ac_ext >&5
21891
21892         ac_header_compiler=no
21893 fi
21894
21895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21896 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21897 $as_echo "$ac_header_compiler" >&6; }
21898
21899 # Is the header present?
21900 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
21901 $as_echo_n "checking syslog.h presence... " >&6; }
21902 cat >conftest.$ac_ext <<_ACEOF
21903 /* confdefs.h.  */
21904 _ACEOF
21905 cat confdefs.h >>conftest.$ac_ext
21906 cat >>conftest.$ac_ext <<_ACEOF
21907 /* end confdefs.h.  */
21908 #include <syslog.h>
21909 _ACEOF
21910 if { (ac_try="$ac_cpp conftest.$ac_ext"
21911 case "(($ac_try" in
21912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21913   *) ac_try_echo=$ac_try;;
21914 esac
21915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21916 $as_echo "$ac_try_echo") >&5
21917   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21918   ac_status=$?
21919   grep -v '^ *+' conftest.er1 >conftest.err
21920   rm -f conftest.er1
21921   cat conftest.err >&5
21922   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923   (exit $ac_status); } >/dev/null && {
21924          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21925          test ! -s conftest.err
21926        }; then
21927   ac_header_preproc=yes
21928 else
21929   $as_echo "$as_me: failed program was:" >&5
21930 sed 's/^/| /' conftest.$ac_ext >&5
21931
21932   ac_header_preproc=no
21933 fi
21934
21935 rm -f conftest.err conftest.$ac_ext
21936 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21937 $as_echo "$ac_header_preproc" >&6; }
21938
21939 # So?  What about this header?
21940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21941   yes:no: )
21942     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
21943 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21944     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
21945 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
21946     ac_header_preproc=yes
21947     ;;
21948   no:yes:* )
21949     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
21950 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
21951     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     check for missing prerequisite headers?" >&5
21952 $as_echo "$as_me: WARNING: syslog.h:     check for missing prerequisite headers?" >&2;}
21953     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
21954 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
21955     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&5
21956 $as_echo "$as_me: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21957     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
21958 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
21959     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
21960 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
21961     ( cat <<\_ASBOX
21962 ## ---------------------------------------- ##
21963 ## Report this to pgsql-bugs@postgresql.org ##
21964 ## ---------------------------------------- ##
21965 _ASBOX
21966      ) | sed "s/^/$as_me: WARNING:     /" >&2
21967     ;;
21968 esac
21969 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21970 $as_echo_n "checking for syslog.h... " >&6; }
21971 if test "${ac_cv_header_syslog_h+set}" = set; then
21972   $as_echo_n "(cached) " >&6
21973 else
21974   ac_cv_header_syslog_h=$ac_header_preproc
21975 fi
21976 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21977 $as_echo "$ac_cv_header_syslog_h" >&6; }
21978
21979 fi
21980 if test "x$ac_cv_header_syslog_h" = x""yes; then
21981
21982 cat >>confdefs.h <<\_ACEOF
21983 #define HAVE_SYSLOG 1
21984 _ACEOF
21985
21986 fi
21987
21988
21989 fi
21990
21991
21992 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
21993 $as_echo_n "checking for opterr... " >&6; }
21994 if test "${pgac_cv_var_int_opterr+set}" = set; then
21995   $as_echo_n "(cached) " >&6
21996 else
21997   cat >conftest.$ac_ext <<_ACEOF
21998 /* confdefs.h.  */
21999 _ACEOF
22000 cat confdefs.h >>conftest.$ac_ext
22001 cat >>conftest.$ac_ext <<_ACEOF
22002 /* end confdefs.h.  */
22003 #include <unistd.h>
22004 int
22005 main ()
22006 {
22007 extern int opterr; opterr = 1;
22008   ;
22009   return 0;
22010 }
22011 _ACEOF
22012 rm -f conftest.$ac_objext conftest$ac_exeext
22013 if { (ac_try="$ac_link"
22014 case "(($ac_try" in
22015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22016   *) ac_try_echo=$ac_try;;
22017 esac
22018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22019 $as_echo "$ac_try_echo") >&5
22020   (eval "$ac_link") 2>conftest.er1
22021   ac_status=$?
22022   grep -v '^ *+' conftest.er1 >conftest.err
22023   rm -f conftest.er1
22024   cat conftest.err >&5
22025   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026   (exit $ac_status); } && {
22027          test -z "$ac_c_werror_flag" ||
22028          test ! -s conftest.err
22029        } && test -s conftest$ac_exeext && {
22030          test "$cross_compiling" = yes ||
22031          $as_test_x conftest$ac_exeext
22032        }; then
22033   pgac_cv_var_int_opterr=yes
22034 else
22035   $as_echo "$as_me: failed program was:" >&5
22036 sed 's/^/| /' conftest.$ac_ext >&5
22037
22038         pgac_cv_var_int_opterr=no
22039 fi
22040
22041 rm -rf conftest.dSYM
22042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22043       conftest$ac_exeext conftest.$ac_ext
22044 fi
22045 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
22046 $as_echo "$pgac_cv_var_int_opterr" >&6; }
22047 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
22048
22049 cat >>confdefs.h <<\_ACEOF
22050 #define HAVE_INT_OPTERR 1
22051 _ACEOF
22052
22053 fi
22054
22055 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
22056 $as_echo_n "checking for optreset... " >&6; }
22057 if test "${pgac_cv_var_int_optreset+set}" = set; then
22058   $as_echo_n "(cached) " >&6
22059 else
22060   cat >conftest.$ac_ext <<_ACEOF
22061 /* confdefs.h.  */
22062 _ACEOF
22063 cat confdefs.h >>conftest.$ac_ext
22064 cat >>conftest.$ac_ext <<_ACEOF
22065 /* end confdefs.h.  */
22066 #include <unistd.h>
22067 int
22068 main ()
22069 {
22070 extern int optreset; optreset = 1;
22071   ;
22072   return 0;
22073 }
22074 _ACEOF
22075 rm -f conftest.$ac_objext conftest$ac_exeext
22076 if { (ac_try="$ac_link"
22077 case "(($ac_try" in
22078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22079   *) ac_try_echo=$ac_try;;
22080 esac
22081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22082 $as_echo "$ac_try_echo") >&5
22083   (eval "$ac_link") 2>conftest.er1
22084   ac_status=$?
22085   grep -v '^ *+' conftest.er1 >conftest.err
22086   rm -f conftest.er1
22087   cat conftest.err >&5
22088   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089   (exit $ac_status); } && {
22090          test -z "$ac_c_werror_flag" ||
22091          test ! -s conftest.err
22092        } && test -s conftest$ac_exeext && {
22093          test "$cross_compiling" = yes ||
22094          $as_test_x conftest$ac_exeext
22095        }; then
22096   pgac_cv_var_int_optreset=yes
22097 else
22098   $as_echo "$as_me: failed program was:" >&5
22099 sed 's/^/| /' conftest.$ac_ext >&5
22100
22101         pgac_cv_var_int_optreset=no
22102 fi
22103
22104 rm -rf conftest.dSYM
22105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22106       conftest$ac_exeext conftest.$ac_ext
22107 fi
22108 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
22109 $as_echo "$pgac_cv_var_int_optreset" >&6; }
22110 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
22111
22112 cat >>confdefs.h <<\_ACEOF
22113 #define HAVE_INT_OPTRESET 1
22114 _ACEOF
22115
22116 fi
22117
22118
22119
22120 for ac_func in strtoll strtoq
22121 do
22122 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22123 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22124 $as_echo_n "checking for $ac_func... " >&6; }
22125 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22126   $as_echo_n "(cached) " >&6
22127 else
22128   cat >conftest.$ac_ext <<_ACEOF
22129 /* confdefs.h.  */
22130 _ACEOF
22131 cat confdefs.h >>conftest.$ac_ext
22132 cat >>conftest.$ac_ext <<_ACEOF
22133 /* end confdefs.h.  */
22134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22135    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22136 #define $ac_func innocuous_$ac_func
22137
22138 /* System header to define __stub macros and hopefully few prototypes,
22139     which can conflict with char $ac_func (); below.
22140     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22141     <limits.h> exists even on freestanding compilers.  */
22142
22143 #ifdef __STDC__
22144 # include <limits.h>
22145 #else
22146 # include <assert.h>
22147 #endif
22148
22149 #undef $ac_func
22150
22151 /* Override any GCC internal prototype to avoid an error.
22152    Use char because int might match the return type of a GCC
22153    builtin and then its argument prototype would still apply.  */
22154 #ifdef __cplusplus
22155 extern "C"
22156 #endif
22157 char $ac_func ();
22158 /* The GNU C library defines this for functions which it implements
22159     to always fail with ENOSYS.  Some functions are actually named
22160     something starting with __ and the normal name is an alias.  */
22161 #if defined __stub_$ac_func || defined __stub___$ac_func
22162 choke me
22163 #endif
22164
22165 int
22166 main ()
22167 {
22168 return $ac_func ();
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   eval "$as_ac_var=yes"
22195 else
22196   $as_echo "$as_me: failed program was:" >&5
22197 sed 's/^/| /' conftest.$ac_ext >&5
22198
22199         eval "$as_ac_var=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 ac_res=`eval 'as_val=${'$as_ac_var'}
22207                  $as_echo "$as_val"'`
22208                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22209 $as_echo "$ac_res" >&6; }
22210 as_val=`eval 'as_val=${'$as_ac_var'}
22211                  $as_echo "$as_val"'`
22212    if test "x$as_val" = x""yes; then
22213   cat >>confdefs.h <<_ACEOF
22214 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22215 _ACEOF
22216  break
22217 fi
22218 done
22219
22220
22221
22222 for ac_func in strtoull strtouq
22223 do
22224 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22225 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22226 $as_echo_n "checking for $ac_func... " >&6; }
22227 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22228   $as_echo_n "(cached) " >&6
22229 else
22230   cat >conftest.$ac_ext <<_ACEOF
22231 /* confdefs.h.  */
22232 _ACEOF
22233 cat confdefs.h >>conftest.$ac_ext
22234 cat >>conftest.$ac_ext <<_ACEOF
22235 /* end confdefs.h.  */
22236 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22237    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22238 #define $ac_func innocuous_$ac_func
22239
22240 /* System header to define __stub macros and hopefully few prototypes,
22241     which can conflict with char $ac_func (); below.
22242     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22243     <limits.h> exists even on freestanding compilers.  */
22244
22245 #ifdef __STDC__
22246 # include <limits.h>
22247 #else
22248 # include <assert.h>
22249 #endif
22250
22251 #undef $ac_func
22252
22253 /* Override any GCC internal prototype to avoid an error.
22254    Use char because int might match the return type of a GCC
22255    builtin and then its argument prototype would still apply.  */
22256 #ifdef __cplusplus
22257 extern "C"
22258 #endif
22259 char $ac_func ();
22260 /* The GNU C library defines this for functions which it implements
22261     to always fail with ENOSYS.  Some functions are actually named
22262     something starting with __ and the normal name is an alias.  */
22263 #if defined __stub_$ac_func || defined __stub___$ac_func
22264 choke me
22265 #endif
22266
22267 int
22268 main ()
22269 {
22270 return $ac_func ();
22271   ;
22272   return 0;
22273 }
22274 _ACEOF
22275 rm -f conftest.$ac_objext conftest$ac_exeext
22276 if { (ac_try="$ac_link"
22277 case "(($ac_try" in
22278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22279   *) ac_try_echo=$ac_try;;
22280 esac
22281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22282 $as_echo "$ac_try_echo") >&5
22283   (eval "$ac_link") 2>conftest.er1
22284   ac_status=$?
22285   grep -v '^ *+' conftest.er1 >conftest.err
22286   rm -f conftest.er1
22287   cat conftest.err >&5
22288   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289   (exit $ac_status); } && {
22290          test -z "$ac_c_werror_flag" ||
22291          test ! -s conftest.err
22292        } && test -s conftest$ac_exeext && {
22293          test "$cross_compiling" = yes ||
22294          $as_test_x conftest$ac_exeext
22295        }; then
22296   eval "$as_ac_var=yes"
22297 else
22298   $as_echo "$as_me: failed program was:" >&5
22299 sed 's/^/| /' conftest.$ac_ext >&5
22300
22301         eval "$as_ac_var=no"
22302 fi
22303
22304 rm -rf conftest.dSYM
22305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22306       conftest$ac_exeext conftest.$ac_ext
22307 fi
22308 ac_res=`eval 'as_val=${'$as_ac_var'}
22309                  $as_echo "$as_val"'`
22310                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22311 $as_echo "$ac_res" >&6; }
22312 as_val=`eval 'as_val=${'$as_ac_var'}
22313                  $as_echo "$as_val"'`
22314    if test "x$as_val" = x""yes; then
22315   cat >>confdefs.h <<_ACEOF
22316 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22317 _ACEOF
22318  break
22319 fi
22320 done
22321
22322
22323 # Check for one of atexit() or on_exit()
22324
22325 for ac_func in atexit
22326 do
22327 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22328 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22329 $as_echo_n "checking for $ac_func... " >&6; }
22330 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22331   $as_echo_n "(cached) " >&6
22332 else
22333   cat >conftest.$ac_ext <<_ACEOF
22334 /* confdefs.h.  */
22335 _ACEOF
22336 cat confdefs.h >>conftest.$ac_ext
22337 cat >>conftest.$ac_ext <<_ACEOF
22338 /* end confdefs.h.  */
22339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22340    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22341 #define $ac_func innocuous_$ac_func
22342
22343 /* System header to define __stub macros and hopefully few prototypes,
22344     which can conflict with char $ac_func (); below.
22345     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22346     <limits.h> exists even on freestanding compilers.  */
22347
22348 #ifdef __STDC__
22349 # include <limits.h>
22350 #else
22351 # include <assert.h>
22352 #endif
22353
22354 #undef $ac_func
22355
22356 /* Override any GCC internal prototype to avoid an error.
22357    Use char because int might match the return type of a GCC
22358    builtin and then its argument prototype would still apply.  */
22359 #ifdef __cplusplus
22360 extern "C"
22361 #endif
22362 char $ac_func ();
22363 /* The GNU C library defines this for functions which it implements
22364     to always fail with ENOSYS.  Some functions are actually named
22365     something starting with __ and the normal name is an alias.  */
22366 #if defined __stub_$ac_func || defined __stub___$ac_func
22367 choke me
22368 #endif
22369
22370 int
22371 main ()
22372 {
22373 return $ac_func ();
22374   ;
22375   return 0;
22376 }
22377 _ACEOF
22378 rm -f conftest.$ac_objext conftest$ac_exeext
22379 if { (ac_try="$ac_link"
22380 case "(($ac_try" in
22381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22382   *) ac_try_echo=$ac_try;;
22383 esac
22384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22385 $as_echo "$ac_try_echo") >&5
22386   (eval "$ac_link") 2>conftest.er1
22387   ac_status=$?
22388   grep -v '^ *+' conftest.er1 >conftest.err
22389   rm -f conftest.er1
22390   cat conftest.err >&5
22391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392   (exit $ac_status); } && {
22393          test -z "$ac_c_werror_flag" ||
22394          test ! -s conftest.err
22395        } && test -s conftest$ac_exeext && {
22396          test "$cross_compiling" = yes ||
22397          $as_test_x conftest$ac_exeext
22398        }; then
22399   eval "$as_ac_var=yes"
22400 else
22401   $as_echo "$as_me: failed program was:" >&5
22402 sed 's/^/| /' conftest.$ac_ext >&5
22403
22404         eval "$as_ac_var=no"
22405 fi
22406
22407 rm -rf conftest.dSYM
22408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22409       conftest$ac_exeext conftest.$ac_ext
22410 fi
22411 ac_res=`eval 'as_val=${'$as_ac_var'}
22412                  $as_echo "$as_val"'`
22413                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22414 $as_echo "$ac_res" >&6; }
22415 as_val=`eval 'as_val=${'$as_ac_var'}
22416                  $as_echo "$as_val"'`
22417    if test "x$as_val" = x""yes; then
22418   cat >>confdefs.h <<_ACEOF
22419 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22420 _ACEOF
22421
22422 else
22423
22424 for ac_func in on_exit
22425 do
22426 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22427 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22428 $as_echo_n "checking for $ac_func... " >&6; }
22429 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22430   $as_echo_n "(cached) " >&6
22431 else
22432   cat >conftest.$ac_ext <<_ACEOF
22433 /* confdefs.h.  */
22434 _ACEOF
22435 cat confdefs.h >>conftest.$ac_ext
22436 cat >>conftest.$ac_ext <<_ACEOF
22437 /* end confdefs.h.  */
22438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22439    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22440 #define $ac_func innocuous_$ac_func
22441
22442 /* System header to define __stub macros and hopefully few prototypes,
22443     which can conflict with char $ac_func (); below.
22444     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22445     <limits.h> exists even on freestanding compilers.  */
22446
22447 #ifdef __STDC__
22448 # include <limits.h>
22449 #else
22450 # include <assert.h>
22451 #endif
22452
22453 #undef $ac_func
22454
22455 /* Override any GCC internal prototype to avoid an error.
22456    Use char because int might match the return type of a GCC
22457    builtin and then its argument prototype would still apply.  */
22458 #ifdef __cplusplus
22459 extern "C"
22460 #endif
22461 char $ac_func ();
22462 /* The GNU C library defines this for functions which it implements
22463     to always fail with ENOSYS.  Some functions are actually named
22464     something starting with __ and the normal name is an alias.  */
22465 #if defined __stub_$ac_func || defined __stub___$ac_func
22466 choke me
22467 #endif
22468
22469 int
22470 main ()
22471 {
22472 return $ac_func ();
22473   ;
22474   return 0;
22475 }
22476 _ACEOF
22477 rm -f conftest.$ac_objext conftest$ac_exeext
22478 if { (ac_try="$ac_link"
22479 case "(($ac_try" in
22480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22481   *) ac_try_echo=$ac_try;;
22482 esac
22483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22484 $as_echo "$ac_try_echo") >&5
22485   (eval "$ac_link") 2>conftest.er1
22486   ac_status=$?
22487   grep -v '^ *+' conftest.er1 >conftest.err
22488   rm -f conftest.er1
22489   cat conftest.err >&5
22490   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491   (exit $ac_status); } && {
22492          test -z "$ac_c_werror_flag" ||
22493          test ! -s conftest.err
22494        } && test -s conftest$ac_exeext && {
22495          test "$cross_compiling" = yes ||
22496          $as_test_x conftest$ac_exeext
22497        }; then
22498   eval "$as_ac_var=yes"
22499 else
22500   $as_echo "$as_me: failed program was:" >&5
22501 sed 's/^/| /' conftest.$ac_ext >&5
22502
22503         eval "$as_ac_var=no"
22504 fi
22505
22506 rm -rf conftest.dSYM
22507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22508       conftest$ac_exeext conftest.$ac_ext
22509 fi
22510 ac_res=`eval 'as_val=${'$as_ac_var'}
22511                  $as_echo "$as_val"'`
22512                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22513 $as_echo "$ac_res" >&6; }
22514 as_val=`eval 'as_val=${'$as_ac_var'}
22515                  $as_echo "$as_val"'`
22516    if test "x$as_val" = x""yes; then
22517   cat >>confdefs.h <<_ACEOF
22518 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22519 _ACEOF
22520
22521 else
22522   { { $as_echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
22523 $as_echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
22524    { (exit 1); exit 1; }; }
22525 fi
22526 done
22527
22528 fi
22529 done
22530
22531
22532
22533 #
22534 # Pthreads
22535 #
22536 # For each platform, we need to know about any special compile and link
22537 # libraries, and whether the normal C function names are thread-safe.
22538 # See the comment at the top of src/port/thread.c for more information.
22539 # WIN32 doesn't need the pthread tests;  it always uses threads
22540 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
22541
22542
22543
22544 ac_ext=c
22545 ac_cpp='$CPP $CPPFLAGS'
22546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22549
22550 acx_pthread_ok=no
22551
22552 # We used to check for pthread.h first, but this fails if pthread.h
22553 # requires special compiler flags (e.g. on True64 or Sequent).
22554 # It gets checked for in the link test anyway.
22555
22556 # First of all, check if the user has set any of the PTHREAD_LIBS,
22557 # etcetera environment variables, and if threads linking works using
22558 # them:
22559 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22560         save_CFLAGS="$CFLAGS"
22561         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22562         save_LIBS="$LIBS"
22563         LIBS="$PTHREAD_LIBS $LIBS"
22564         { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22565 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
22566         cat >conftest.$ac_ext <<_ACEOF
22567 /* confdefs.h.  */
22568 _ACEOF
22569 cat confdefs.h >>conftest.$ac_ext
22570 cat >>conftest.$ac_ext <<_ACEOF
22571 /* end confdefs.h.  */
22572
22573 /* Override any GCC internal prototype to avoid an error.
22574    Use char because int might match the return type of a GCC
22575    builtin and then its argument prototype would still apply.  */
22576 #ifdef __cplusplus
22577 extern "C"
22578 #endif
22579 char pthread_join ();
22580 int
22581 main ()
22582 {
22583 return pthread_join ();
22584   ;
22585   return 0;
22586 }
22587 _ACEOF
22588 rm -f conftest.$ac_objext conftest$ac_exeext
22589 if { (ac_try="$ac_link"
22590 case "(($ac_try" in
22591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22592   *) ac_try_echo=$ac_try;;
22593 esac
22594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22595 $as_echo "$ac_try_echo") >&5
22596   (eval "$ac_link") 2>conftest.er1
22597   ac_status=$?
22598   grep -v '^ *+' conftest.er1 >conftest.err
22599   rm -f conftest.er1
22600   cat conftest.err >&5
22601   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602   (exit $ac_status); } && {
22603          test -z "$ac_c_werror_flag" ||
22604          test ! -s conftest.err
22605        } && test -s conftest$ac_exeext && {
22606          test "$cross_compiling" = yes ||
22607          $as_test_x conftest$ac_exeext
22608        }; then
22609   acx_pthread_ok=yes
22610 else
22611   $as_echo "$as_me: failed program was:" >&5
22612 sed 's/^/| /' conftest.$ac_ext >&5
22613
22614
22615 fi
22616
22617 rm -rf conftest.dSYM
22618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22619       conftest$ac_exeext conftest.$ac_ext
22620         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22621 $as_echo "$acx_pthread_ok" >&6; }
22622         if test x"$acx_pthread_ok" = xno; then
22623                 PTHREAD_LIBS=""
22624                 PTHREAD_CFLAGS=""
22625         fi
22626         LIBS="$save_LIBS"
22627         CFLAGS="$save_CFLAGS"
22628 fi
22629
22630 # We must check for the threads library under a number of different
22631 # names; the ordering is very important because some systems
22632 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22633 # libraries is broken (non-POSIX).
22634
22635 # Create a list of thread flags to try.  Items starting with a "-" are
22636 # C compiler flags, and other items are library names, except for "none"
22637 # which indicates that we try without any flags at all, and "pthread-config"
22638 # which is a program returning the flags for the Pth emulation library.
22639
22640 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
22641
22642 # The ordering *is* (sometimes) important.  Some notes on the
22643 # individual items follow:
22644
22645 # pthreads: AIX (must check this before -lpthread)
22646 # none: in case threads are in libc; should be tried before -Kthread and
22647 #       other compiler flags to prevent continual compiler warnings
22648 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22649 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22650 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22651 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22652 # -pthreads: Solaris/gcc
22653 # -mthreads: Mingw32/gcc, Lynx/gcc
22654 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22655 #      doesn't hurt to check since this sometimes defines pthreads too;
22656 #      also defines -D_REENTRANT)
22657 # pthread: Linux, etcetera
22658 # --thread-safe: KAI C++
22659 # pthread-config: use pthread-config program (for GNU Pth library)
22660
22661 case "${host_cpu}-${host_os}" in
22662         *solaris*)
22663
22664         # On Solaris (at least, for some versions), libc contains stubbed
22665         # (non-functional) versions of the pthreads routines, so link-based
22666         # tests will erroneously succeed.  (We need to link with -pthread or
22667         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
22668         # a function called by this macro, so we could check for that, but
22669         # who knows whether they'll stub that too in a future libc.)  So,
22670         # we'll just look for -pthreads and -lpthread first:
22671
22672         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22673         ;;
22674 esac
22675
22676 if test x"$acx_pthread_ok" = xno; then
22677 for flag in $acx_pthread_flags; do
22678
22679         tryPTHREAD_CFLAGS=""
22680         tryPTHREAD_LIBS=""
22681         case $flag in
22682                 none)
22683                 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22684 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
22685                 ;;
22686
22687                 -*)
22688                 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22689 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
22690                 tryPTHREAD_CFLAGS="$flag"
22691                 ;;
22692
22693                 pthread-config)
22694                 # skip this if we already have flags defined, for PostgreSQL
22695                 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
22696                 # Extract the first word of "pthread-config", so it can be a program name with args.
22697 set dummy pthread-config; ac_word=$2
22698 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22699 $as_echo_n "checking for $ac_word... " >&6; }
22700 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22701   $as_echo_n "(cached) " >&6
22702 else
22703   if test -n "$acx_pthread_config"; then
22704   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22705 else
22706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22707 for as_dir in $PATH
22708 do
22709   IFS=$as_save_IFS
22710   test -z "$as_dir" && as_dir=.
22711   for ac_exec_ext in '' $ac_executable_extensions; do
22712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22713     ac_cv_prog_acx_pthread_config="yes"
22714     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22715     break 2
22716   fi
22717 done
22718 done
22719 IFS=$as_save_IFS
22720
22721   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22722 fi
22723 fi
22724 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22725 if test -n "$acx_pthread_config"; then
22726   { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22727 $as_echo "$acx_pthread_config" >&6; }
22728 else
22729   { $as_echo "$as_me:$LINENO: result: no" >&5
22730 $as_echo "no" >&6; }
22731 fi
22732
22733
22734                 if test x"$acx_pthread_config" = xno; then continue; fi
22735                 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
22736                 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22737                 ;;
22738
22739                 *)
22740                 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22741 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
22742                 tryPTHREAD_LIBS="-l$flag"
22743                 ;;
22744         esac
22745
22746         save_LIBS="$LIBS"
22747         save_CFLAGS="$CFLAGS"
22748         LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
22749         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22750
22751         # Check for various functions.  We must include pthread.h,
22752         # since some functions may be macros.  (On the Sequent, we
22753         # need a special flag -Kthread to make this header compile.)
22754         # We check for pthread_join because it is in -lpthread on IRIX
22755         # while pthread_create is in libc.  We check for pthread_attr_init
22756         # due to DEC craziness with -lpthreads.  We check for
22757         # pthread_cleanup_push because it is one of the few pthread
22758         # functions on Solaris that doesn't have a non-functional libc stub.
22759         # We try pthread_create on general principles.
22760         cat >conftest.$ac_ext <<_ACEOF
22761 /* confdefs.h.  */
22762 _ACEOF
22763 cat confdefs.h >>conftest.$ac_ext
22764 cat >>conftest.$ac_ext <<_ACEOF
22765 /* end confdefs.h.  */
22766 #include <pthread.h>
22767 int
22768 main ()
22769 {
22770 pthread_t th; pthread_join(th, 0);
22771                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
22772                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22773   ;
22774   return 0;
22775 }
22776 _ACEOF
22777 rm -f conftest.$ac_objext conftest$ac_exeext
22778 if { (ac_try="$ac_link"
22779 case "(($ac_try" in
22780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22781   *) ac_try_echo=$ac_try;;
22782 esac
22783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22784 $as_echo "$ac_try_echo") >&5
22785   (eval "$ac_link") 2>conftest.er1
22786   ac_status=$?
22787   grep -v '^ *+' conftest.er1 >conftest.err
22788   rm -f conftest.er1
22789   cat conftest.err >&5
22790   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791   (exit $ac_status); } && {
22792          test -z "$ac_c_werror_flag" ||
22793          test ! -s conftest.err
22794        } && test -s conftest$ac_exeext && {
22795          test "$cross_compiling" = yes ||
22796          $as_test_x conftest$ac_exeext
22797        }; then
22798   acx_pthread_ok=yes
22799 else
22800   $as_echo "$as_me: failed program was:" >&5
22801 sed 's/^/| /' conftest.$ac_ext >&5
22802
22803         acx_pthread_ok=no
22804 fi
22805
22806 rm -rf conftest.dSYM
22807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22808       conftest$ac_exeext conftest.$ac_ext
22809
22810         if test "x$acx_pthread_ok" = xyes; then
22811             # Don't use options that are ignored by the compiler.
22812             # We find them by checking stderror.
22813             cat >conftest.$ac_ext <<_ACEOF
22814 int
22815 main (int argc, char **argv)
22816 {
22817   (void) argc;
22818   (void) argv;
22819   return 0;
22820 }
22821 _ACEOF
22822             rm -f conftest.$ac_objext conftest$ac_exeext
22823             # Check both linking and compiling, because they might tolerate different options.
22824             if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
22825                 # we continue with more flags because Linux needs -lpthread
22826                 # for libpq builds on PostgreSQL.  The test above only
22827                 # tests for building binaries, not shared libraries.
22828                 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
22829                 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22830             else   acx_pthread_ok=no
22831             fi
22832         fi
22833
22834         LIBS="$save_LIBS"
22835         CFLAGS="$save_CFLAGS"
22836
22837         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22838 $as_echo "$acx_pthread_ok" >&6; }
22839 done
22840 fi
22841
22842 # Various other checks:
22843 if test "x$acx_pthread_ok" = xyes; then
22844         save_LIBS="$LIBS"
22845         LIBS="$PTHREAD_LIBS $LIBS"
22846         save_CFLAGS="$CFLAGS"
22847         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22848
22849         # Detect AIX lossage: threads are created detached by default
22850         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
22851         { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22852 $as_echo_n "checking for joinable pthread attribute... " >&6; }
22853         cat >conftest.$ac_ext <<_ACEOF
22854 /* confdefs.h.  */
22855 _ACEOF
22856 cat confdefs.h >>conftest.$ac_ext
22857 cat >>conftest.$ac_ext <<_ACEOF
22858 /* end confdefs.h.  */
22859 #include <pthread.h>
22860 int
22861 main ()
22862 {
22863 int attr=PTHREAD_CREATE_JOINABLE;
22864   ;
22865   return 0;
22866 }
22867 _ACEOF
22868 rm -f conftest.$ac_objext conftest$ac_exeext
22869 if { (ac_try="$ac_link"
22870 case "(($ac_try" in
22871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22872   *) ac_try_echo=$ac_try;;
22873 esac
22874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22875 $as_echo "$ac_try_echo") >&5
22876   (eval "$ac_link") 2>conftest.er1
22877   ac_status=$?
22878   grep -v '^ *+' conftest.er1 >conftest.err
22879   rm -f conftest.er1
22880   cat conftest.err >&5
22881   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882   (exit $ac_status); } && {
22883          test -z "$ac_c_werror_flag" ||
22884          test ! -s conftest.err
22885        } && test -s conftest$ac_exeext && {
22886          test "$cross_compiling" = yes ||
22887          $as_test_x conftest$ac_exeext
22888        }; then
22889   ok=PTHREAD_CREATE_JOINABLE
22890 else
22891   $as_echo "$as_me: failed program was:" >&5
22892 sed 's/^/| /' conftest.$ac_ext >&5
22893
22894         ok=unknown
22895 fi
22896
22897 rm -rf conftest.dSYM
22898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22899       conftest$ac_exeext conftest.$ac_ext
22900         if test x"$ok" = xunknown; then
22901                 cat >conftest.$ac_ext <<_ACEOF
22902 /* confdefs.h.  */
22903 _ACEOF
22904 cat confdefs.h >>conftest.$ac_ext
22905 cat >>conftest.$ac_ext <<_ACEOF
22906 /* end confdefs.h.  */
22907 #include <pthread.h>
22908 int
22909 main ()
22910 {
22911 int attr=PTHREAD_CREATE_UNDETACHED;
22912   ;
22913   return 0;
22914 }
22915 _ACEOF
22916 rm -f conftest.$ac_objext conftest$ac_exeext
22917 if { (ac_try="$ac_link"
22918 case "(($ac_try" in
22919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22920   *) ac_try_echo=$ac_try;;
22921 esac
22922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22923 $as_echo "$ac_try_echo") >&5
22924   (eval "$ac_link") 2>conftest.er1
22925   ac_status=$?
22926   grep -v '^ *+' conftest.er1 >conftest.err
22927   rm -f conftest.er1
22928   cat conftest.err >&5
22929   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930   (exit $ac_status); } && {
22931          test -z "$ac_c_werror_flag" ||
22932          test ! -s conftest.err
22933        } && test -s conftest$ac_exeext && {
22934          test "$cross_compiling" = yes ||
22935          $as_test_x conftest$ac_exeext
22936        }; then
22937   ok=PTHREAD_CREATE_UNDETACHED
22938 else
22939   $as_echo "$as_me: failed program was:" >&5
22940 sed 's/^/| /' conftest.$ac_ext >&5
22941
22942         ok=unknown
22943 fi
22944
22945 rm -rf conftest.dSYM
22946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22947       conftest$ac_exeext conftest.$ac_ext
22948         fi
22949         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
22950
22951 cat >>confdefs.h <<\_ACEOF
22952 #define PTHREAD_CREATE_JOINABLE $ok
22953 _ACEOF
22954
22955         fi
22956         { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
22957 $as_echo "${ok}" >&6; }
22958         if test x"$ok" = xunknown; then
22959                 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
22960 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
22961         fi
22962
22963         { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22964 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
22965         flag=no
22966 # We always add these in PostgreSQL
22967 #       case "${host_cpu}-${host_os}" in
22968 #               *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
22969 #               *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
22970 #       esac
22971         { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
22972 $as_echo "${flag}" >&6; }
22973         if test "x$flag" != xno; then
22974                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22975         fi
22976
22977         LIBS="$save_LIBS"
22978         CFLAGS="$save_CFLAGS"
22979
22980 # Supporting cc_r would require a special CC in all places that
22981 # use libpq, and that is ugly, so we don't do it.  Users can still
22982 # define their compiler as cc_r to do thread builds of everything.
22983         # More AIX lossage: must compile with cc_r
22984         # Extract the first word of "cc_r", so it can be a program name with args.
22985 set dummy cc_r; ac_word=$2
22986 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22987 $as_echo_n "checking for $ac_word... " >&6; }
22988 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22989   $as_echo_n "(cached) " >&6
22990 else
22991   if test -n "$PTHREAD_CC"; then
22992   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22993 else
22994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22995 for as_dir in $PATH
22996 do
22997   IFS=$as_save_IFS
22998   test -z "$as_dir" && as_dir=.
22999   for ac_exec_ext in '' $ac_executable_extensions; do
23000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23001     ac_cv_prog_PTHREAD_CC="cc_r"
23002     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23003     break 2
23004   fi
23005 done
23006 done
23007 IFS=$as_save_IFS
23008
23009   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
23010 fi
23011 fi
23012 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23013 if test -n "$PTHREAD_CC"; then
23014   { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23015 $as_echo "$PTHREAD_CC" >&6; }
23016 else
23017   { $as_echo "$as_me:$LINENO: result: no" >&5
23018 $as_echo "no" >&6; }
23019 fi
23020
23021
23022 else
23023         PTHREAD_CC="$CC"
23024 fi
23025
23026
23027
23028
23029
23030 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23031 if test x"$acx_pthread_ok" = xyes; then
23032
23033 cat >>confdefs.h <<\_ACEOF
23034 #define HAVE_PTHREAD 1
23035 _ACEOF
23036
23037         :
23038 else
23039         acx_pthread_ok=no
23040
23041 fi
23042 ac_ext=c
23043 ac_cpp='$CPP $CPPFLAGS'
23044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23047
23048         # set thread flags
23049
23050 # Some platforms use these, so just define them.  They can't hurt if they
23051 # are not supported.  For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
23052 # enables 5-arg getpwuid_r, among other things.
23053 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
23054
23055
23056 # At this point, we don't want to muck with the compiler name for threading.
23057 # Let's see who fails, perhaps AIX.  2004-04-23
23058 if test "$PTHREAD_CC" != "$CC"; then
23059 { { $as_echo "$as_me:$LINENO: error:
23060 PostgreSQL does not support platforms that require a special compiler
23061 for thread safety;  use --disable-thread-safety to disable thread safety." >&5
23062 $as_echo "$as_me: error:
23063 PostgreSQL does not support platforms that require a special compiler
23064 for thread safety;  use --disable-thread-safety to disable thread safety." >&2;}
23065    { (exit 1); exit 1; }; }
23066 fi
23067
23068 # Check for *_r functions
23069 _CFLAGS="$CFLAGS"
23070 _LIBS="$LIBS"
23071 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23072 LIBS="$LIBS $PTHREAD_LIBS"
23073
23074 if test "$PORTNAME" != "win32"; then
23075 if test "${ac_cv_header_pthread_h+set}" = set; then
23076   { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23077 $as_echo_n "checking for pthread.h... " >&6; }
23078 if test "${ac_cv_header_pthread_h+set}" = set; then
23079   $as_echo_n "(cached) " >&6
23080 fi
23081 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23082 $as_echo "$ac_cv_header_pthread_h" >&6; }
23083 else
23084   # Is the header compilable?
23085 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
23086 $as_echo_n "checking pthread.h usability... " >&6; }
23087 cat >conftest.$ac_ext <<_ACEOF
23088 /* confdefs.h.  */
23089 _ACEOF
23090 cat confdefs.h >>conftest.$ac_ext
23091 cat >>conftest.$ac_ext <<_ACEOF
23092 /* end confdefs.h.  */
23093 $ac_includes_default
23094 #include <pthread.h>
23095 _ACEOF
23096 rm -f conftest.$ac_objext
23097 if { (ac_try="$ac_compile"
23098 case "(($ac_try" in
23099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23100   *) ac_try_echo=$ac_try;;
23101 esac
23102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23103 $as_echo "$ac_try_echo") >&5
23104   (eval "$ac_compile") 2>conftest.er1
23105   ac_status=$?
23106   grep -v '^ *+' conftest.er1 >conftest.err
23107   rm -f conftest.er1
23108   cat conftest.err >&5
23109   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23110   (exit $ac_status); } && {
23111          test -z "$ac_c_werror_flag" ||
23112          test ! -s conftest.err
23113        } && test -s conftest.$ac_objext; then
23114   ac_header_compiler=yes
23115 else
23116   $as_echo "$as_me: failed program was:" >&5
23117 sed 's/^/| /' conftest.$ac_ext >&5
23118
23119         ac_header_compiler=no
23120 fi
23121
23122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23123 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23124 $as_echo "$ac_header_compiler" >&6; }
23125
23126 # Is the header present?
23127 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
23128 $as_echo_n "checking pthread.h presence... " >&6; }
23129 cat >conftest.$ac_ext <<_ACEOF
23130 /* confdefs.h.  */
23131 _ACEOF
23132 cat confdefs.h >>conftest.$ac_ext
23133 cat >>conftest.$ac_ext <<_ACEOF
23134 /* end confdefs.h.  */
23135 #include <pthread.h>
23136 _ACEOF
23137 if { (ac_try="$ac_cpp conftest.$ac_ext"
23138 case "(($ac_try" in
23139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23140   *) ac_try_echo=$ac_try;;
23141 esac
23142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23143 $as_echo "$ac_try_echo") >&5
23144   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23145   ac_status=$?
23146   grep -v '^ *+' conftest.er1 >conftest.err
23147   rm -f conftest.er1
23148   cat conftest.err >&5
23149   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23150   (exit $ac_status); } >/dev/null && {
23151          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23152          test ! -s conftest.err
23153        }; then
23154   ac_header_preproc=yes
23155 else
23156   $as_echo "$as_me: failed program was:" >&5
23157 sed 's/^/| /' conftest.$ac_ext >&5
23158
23159   ac_header_preproc=no
23160 fi
23161
23162 rm -f conftest.err conftest.$ac_ext
23163 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23164 $as_echo "$ac_header_preproc" >&6; }
23165
23166 # So?  What about this header?
23167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23168   yes:no: )
23169     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
23170 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23171     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
23172 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
23173     ac_header_preproc=yes
23174     ;;
23175   no:yes:* )
23176     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
23177 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
23178     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
23179 $as_echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
23180     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
23181 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
23182     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
23183 $as_echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23184     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
23185 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
23186     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
23187 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
23188     ( cat <<\_ASBOX
23189 ## ---------------------------------------- ##
23190 ## Report this to pgsql-bugs@postgresql.org ##
23191 ## ---------------------------------------- ##
23192 _ASBOX
23193      ) | sed "s/^/$as_me: WARNING:     /" >&2
23194     ;;
23195 esac
23196 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23197 $as_echo_n "checking for pthread.h... " >&6; }
23198 if test "${ac_cv_header_pthread_h+set}" = set; then
23199   $as_echo_n "(cached) " >&6
23200 else
23201   ac_cv_header_pthread_h=$ac_header_preproc
23202 fi
23203 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23204 $as_echo "$ac_cv_header_pthread_h" >&6; }
23205
23206 fi
23207 if test "x$ac_cv_header_pthread_h" = x""yes; then
23208   :
23209 else
23210   { { $as_echo "$as_me:$LINENO: error:
23211 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&5
23212 $as_echo "$as_me: error:
23213 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&2;}
23214    { (exit 1); exit 1; }; }
23215 fi
23216
23217
23218 fi
23219
23220
23221
23222
23223 for ac_func in strerror_r getpwuid_r gethostbyname_r
23224 do
23225 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23226 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23227 $as_echo_n "checking for $ac_func... " >&6; }
23228 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23229   $as_echo_n "(cached) " >&6
23230 else
23231   cat >conftest.$ac_ext <<_ACEOF
23232 /* confdefs.h.  */
23233 _ACEOF
23234 cat confdefs.h >>conftest.$ac_ext
23235 cat >>conftest.$ac_ext <<_ACEOF
23236 /* end confdefs.h.  */
23237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23238    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23239 #define $ac_func innocuous_$ac_func
23240
23241 /* System header to define __stub macros and hopefully few prototypes,
23242     which can conflict with char $ac_func (); below.
23243     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23244     <limits.h> exists even on freestanding compilers.  */
23245
23246 #ifdef __STDC__
23247 # include <limits.h>
23248 #else
23249 # include <assert.h>
23250 #endif
23251
23252 #undef $ac_func
23253
23254 /* Override any GCC internal prototype to avoid an error.
23255    Use char because int might match the return type of a GCC
23256    builtin and then its argument prototype would still apply.  */
23257 #ifdef __cplusplus
23258 extern "C"
23259 #endif
23260 char $ac_func ();
23261 /* The GNU C library defines this for functions which it implements
23262     to always fail with ENOSYS.  Some functions are actually named
23263     something starting with __ and the normal name is an alias.  */
23264 #if defined __stub_$ac_func || defined __stub___$ac_func
23265 choke me
23266 #endif
23267
23268 int
23269 main ()
23270 {
23271 return $ac_func ();
23272   ;
23273   return 0;
23274 }
23275 _ACEOF
23276 rm -f conftest.$ac_objext conftest$ac_exeext
23277 if { (ac_try="$ac_link"
23278 case "(($ac_try" in
23279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23280   *) ac_try_echo=$ac_try;;
23281 esac
23282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23283 $as_echo "$ac_try_echo") >&5
23284   (eval "$ac_link") 2>conftest.er1
23285   ac_status=$?
23286   grep -v '^ *+' conftest.er1 >conftest.err
23287   rm -f conftest.er1
23288   cat conftest.err >&5
23289   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290   (exit $ac_status); } && {
23291          test -z "$ac_c_werror_flag" ||
23292          test ! -s conftest.err
23293        } && test -s conftest$ac_exeext && {
23294          test "$cross_compiling" = yes ||
23295          $as_test_x conftest$ac_exeext
23296        }; then
23297   eval "$as_ac_var=yes"
23298 else
23299   $as_echo "$as_me: failed program was:" >&5
23300 sed 's/^/| /' conftest.$ac_ext >&5
23301
23302         eval "$as_ac_var=no"
23303 fi
23304
23305 rm -rf conftest.dSYM
23306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23307       conftest$ac_exeext conftest.$ac_ext
23308 fi
23309 ac_res=`eval 'as_val=${'$as_ac_var'}
23310                  $as_echo "$as_val"'`
23311                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23312 $as_echo "$ac_res" >&6; }
23313 as_val=`eval 'as_val=${'$as_ac_var'}
23314                  $as_echo "$as_val"'`
23315    if test "x$as_val" = x""yes; then
23316   cat >>confdefs.h <<_ACEOF
23317 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23318 _ACEOF
23319
23320 fi
23321 done
23322
23323
23324 # Do test here with the proper thread flags
23325 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
23326 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
23327 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
23328   $as_echo_n "(cached) " >&6
23329 else
23330   cat >conftest.$ac_ext <<_ACEOF
23331 /* confdefs.h.  */
23332 _ACEOF
23333 cat confdefs.h >>conftest.$ac_ext
23334 cat >>conftest.$ac_ext <<_ACEOF
23335 /* end confdefs.h.  */
23336 #include <sys/types.h>
23337 #include <pwd.h>
23338 int
23339 main ()
23340 {
23341 uid_t uid;
23342 struct passwd *space;
23343 char *buf;
23344 size_t bufsize;
23345 struct passwd **result;
23346 getpwuid_r(uid, space, buf, bufsize, result);
23347   ;
23348   return 0;
23349 }
23350 _ACEOF
23351 rm -f conftest.$ac_objext
23352 if { (ac_try="$ac_compile"
23353 case "(($ac_try" in
23354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23355   *) ac_try_echo=$ac_try;;
23356 esac
23357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23358 $as_echo "$ac_try_echo") >&5
23359   (eval "$ac_compile") 2>conftest.er1
23360   ac_status=$?
23361   grep -v '^ *+' conftest.er1 >conftest.err
23362   rm -f conftest.er1
23363   cat conftest.err >&5
23364   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365   (exit $ac_status); } && {
23366          test -z "$ac_c_werror_flag" ||
23367          test ! -s conftest.err
23368        } && test -s conftest.$ac_objext; then
23369   pgac_cv_func_getpwuid_r_5arg=yes
23370 else
23371   $as_echo "$as_me: failed program was:" >&5
23372 sed 's/^/| /' conftest.$ac_ext >&5
23373
23374         pgac_cv_func_getpwuid_r_5arg=no
23375 fi
23376
23377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23378 fi
23379 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
23380 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
23381 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
23382
23383 cat >>confdefs.h <<\_ACEOF
23384 #define GETPWUID_R_5ARG /**/
23385 _ACEOF
23386
23387 fi
23388
23389 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
23390 $as_echo_n "checking whether strerror_r returns int... " >&6; }
23391 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
23392   $as_echo_n "(cached) " >&6
23393 else
23394   cat >conftest.$ac_ext <<_ACEOF
23395 /* confdefs.h.  */
23396 _ACEOF
23397 cat confdefs.h >>conftest.$ac_ext
23398 cat >>conftest.$ac_ext <<_ACEOF
23399 /* end confdefs.h.  */
23400 #include <string.h>
23401 int
23402 main ()
23403 {
23404 #ifndef _AIX
23405 int strerror_r(int, char *, size_t);
23406 #else
23407 /* Older AIX has 'int' for the third argument so we don't test the args. */
23408 int strerror_r();
23409 #endif
23410   ;
23411   return 0;
23412 }
23413 _ACEOF
23414 rm -f conftest.$ac_objext
23415 if { (ac_try="$ac_compile"
23416 case "(($ac_try" in
23417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23418   *) ac_try_echo=$ac_try;;
23419 esac
23420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23421 $as_echo "$ac_try_echo") >&5
23422   (eval "$ac_compile") 2>conftest.er1
23423   ac_status=$?
23424   grep -v '^ *+' conftest.er1 >conftest.err
23425   rm -f conftest.er1
23426   cat conftest.err >&5
23427   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23428   (exit $ac_status); } && {
23429          test -z "$ac_c_werror_flag" ||
23430          test ! -s conftest.err
23431        } && test -s conftest.$ac_objext; then
23432   pgac_cv_func_strerror_r_int=yes
23433 else
23434   $as_echo "$as_me: failed program was:" >&5
23435 sed 's/^/| /' conftest.$ac_ext >&5
23436
23437         pgac_cv_func_strerror_r_int=no
23438 fi
23439
23440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23441 fi
23442 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
23443 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
23444 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
23445
23446 cat >>confdefs.h <<\_ACEOF
23447 #define STRERROR_R_INT /**/
23448 _ACEOF
23449
23450 fi
23451
23452
23453 CFLAGS="$_CFLAGS"
23454 LIBS="$_LIBS"
23455
23456 else
23457 # do not use values from template file
23458 PTHREAD_CFLAGS=
23459 PTHREAD_LIBS=
23460 fi
23461
23462
23463
23464
23465
23466 # We can test for libldap_r only after we know PTHREAD_LIBS
23467 if test "$with_ldap" = yes ; then
23468   _LIBS="$LIBS"
23469   if test "$PORTNAME" != "win32"; then
23470
23471 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
23472 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
23473 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
23474   $as_echo_n "(cached) " >&6
23475 else
23476   ac_check_lib_save_LIBS=$LIBS
23477 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
23478 cat >conftest.$ac_ext <<_ACEOF
23479 /* confdefs.h.  */
23480 _ACEOF
23481 cat confdefs.h >>conftest.$ac_ext
23482 cat >>conftest.$ac_ext <<_ACEOF
23483 /* end confdefs.h.  */
23484
23485 /* Override any GCC internal prototype to avoid an error.
23486    Use char because int might match the return type of a GCC
23487    builtin and then its argument prototype would still apply.  */
23488 #ifdef __cplusplus
23489 extern "C"
23490 #endif
23491 char ldap_bind ();
23492 int
23493 main ()
23494 {
23495 return ldap_bind ();
23496   ;
23497   return 0;
23498 }
23499 _ACEOF
23500 rm -f conftest.$ac_objext conftest$ac_exeext
23501 if { (ac_try="$ac_link"
23502 case "(($ac_try" in
23503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23504   *) ac_try_echo=$ac_try;;
23505 esac
23506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23507 $as_echo "$ac_try_echo") >&5
23508   (eval "$ac_link") 2>conftest.er1
23509   ac_status=$?
23510   grep -v '^ *+' conftest.er1 >conftest.err
23511   rm -f conftest.er1
23512   cat conftest.err >&5
23513   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514   (exit $ac_status); } && {
23515          test -z "$ac_c_werror_flag" ||
23516          test ! -s conftest.err
23517        } && test -s conftest$ac_exeext && {
23518          test "$cross_compiling" = yes ||
23519          $as_test_x conftest$ac_exeext
23520        }; then
23521   ac_cv_lib_ldap_ldap_bind=yes
23522 else
23523   $as_echo "$as_me: failed program was:" >&5
23524 sed 's/^/| /' conftest.$ac_ext >&5
23525
23526         ac_cv_lib_ldap_ldap_bind=no
23527 fi
23528
23529 rm -rf conftest.dSYM
23530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23531       conftest$ac_exeext conftest.$ac_ext
23532 LIBS=$ac_check_lib_save_LIBS
23533 fi
23534 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
23535 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
23536 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
23537   cat >>confdefs.h <<_ACEOF
23538 #define HAVE_LIBLDAP 1
23539 _ACEOF
23540
23541   LIBS="-lldap $LIBS"
23542
23543 else
23544   { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
23545 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
23546    { (exit 1); exit 1; }; }
23547 fi
23548
23549     LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
23550     if test "$enable_thread_safety" = yes; then
23551       # on some platforms ldap_r fails to link without PTHREAD_LIBS
23552
23553 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
23554 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
23555 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
23556   $as_echo_n "(cached) " >&6
23557 else
23558   ac_check_lib_save_LIBS=$LIBS
23559 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
23560 cat >conftest.$ac_ext <<_ACEOF
23561 /* confdefs.h.  */
23562 _ACEOF
23563 cat confdefs.h >>conftest.$ac_ext
23564 cat >>conftest.$ac_ext <<_ACEOF
23565 /* end confdefs.h.  */
23566
23567 /* Override any GCC internal prototype to avoid an error.
23568    Use char because int might match the return type of a GCC
23569    builtin and then its argument prototype would still apply.  */
23570 #ifdef __cplusplus
23571 extern "C"
23572 #endif
23573 char ldap_simple_bind ();
23574 int
23575 main ()
23576 {
23577 return ldap_simple_bind ();
23578   ;
23579   return 0;
23580 }
23581 _ACEOF
23582 rm -f conftest.$ac_objext conftest$ac_exeext
23583 if { (ac_try="$ac_link"
23584 case "(($ac_try" in
23585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23586   *) ac_try_echo=$ac_try;;
23587 esac
23588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23589 $as_echo "$ac_try_echo") >&5
23590   (eval "$ac_link") 2>conftest.er1
23591   ac_status=$?
23592   grep -v '^ *+' conftest.er1 >conftest.err
23593   rm -f conftest.er1
23594   cat conftest.err >&5
23595   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23596   (exit $ac_status); } && {
23597          test -z "$ac_c_werror_flag" ||
23598          test ! -s conftest.err
23599        } && test -s conftest$ac_exeext && {
23600          test "$cross_compiling" = yes ||
23601          $as_test_x conftest$ac_exeext
23602        }; then
23603   ac_cv_lib_ldap_r_ldap_simple_bind=yes
23604 else
23605   $as_echo "$as_me: failed program was:" >&5
23606 sed 's/^/| /' conftest.$ac_ext >&5
23607
23608         ac_cv_lib_ldap_r_ldap_simple_bind=no
23609 fi
23610
23611 rm -rf conftest.dSYM
23612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23613       conftest$ac_exeext conftest.$ac_ext
23614 LIBS=$ac_check_lib_save_LIBS
23615 fi
23616 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
23617 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
23618 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
23619   cat >>confdefs.h <<_ACEOF
23620 #define HAVE_LIBLDAP_R 1
23621 _ACEOF
23622
23623   LIBS="-lldap_r $LIBS"
23624
23625 else
23626   { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
23627 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
23628    { (exit 1); exit 1; }; }
23629 fi
23630
23631       LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
23632     else
23633       LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
23634     fi
23635   else
23636
23637 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
23638 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
23639 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
23640   $as_echo_n "(cached) " >&6
23641 else
23642   ac_check_lib_save_LIBS=$LIBS
23643 LIBS="-lwldap32  $LIBS"
23644 cat >conftest.$ac_ext <<_ACEOF
23645 /* confdefs.h.  */
23646 _ACEOF
23647 cat confdefs.h >>conftest.$ac_ext
23648 cat >>conftest.$ac_ext <<_ACEOF
23649 /* end confdefs.h.  */
23650
23651 /* Override any GCC internal prototype to avoid an error.
23652    Use char because int might match the return type of a GCC
23653    builtin and then its argument prototype would still apply.  */
23654 #ifdef __cplusplus
23655 extern "C"
23656 #endif
23657 char ldap_bind ();
23658 int
23659 main ()
23660 {
23661 return ldap_bind ();
23662   ;
23663   return 0;
23664 }
23665 _ACEOF
23666 rm -f conftest.$ac_objext conftest$ac_exeext
23667 if { (ac_try="$ac_link"
23668 case "(($ac_try" in
23669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23670   *) ac_try_echo=$ac_try;;
23671 esac
23672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23673 $as_echo "$ac_try_echo") >&5
23674   (eval "$ac_link") 2>conftest.er1
23675   ac_status=$?
23676   grep -v '^ *+' conftest.er1 >conftest.err
23677   rm -f conftest.er1
23678   cat conftest.err >&5
23679   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680   (exit $ac_status); } && {
23681          test -z "$ac_c_werror_flag" ||
23682          test ! -s conftest.err
23683        } && test -s conftest$ac_exeext && {
23684          test "$cross_compiling" = yes ||
23685          $as_test_x conftest$ac_exeext
23686        }; then
23687   ac_cv_lib_wldap32_ldap_bind=yes
23688 else
23689   $as_echo "$as_me: failed program was:" >&5
23690 sed 's/^/| /' conftest.$ac_ext >&5
23691
23692         ac_cv_lib_wldap32_ldap_bind=no
23693 fi
23694
23695 rm -rf conftest.dSYM
23696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23697       conftest$ac_exeext conftest.$ac_ext
23698 LIBS=$ac_check_lib_save_LIBS
23699 fi
23700 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
23701 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
23702 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
23703   cat >>confdefs.h <<_ACEOF
23704 #define HAVE_LIBWLDAP32 1
23705 _ACEOF
23706
23707   LIBS="-lwldap32 $LIBS"
23708
23709 else
23710   { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
23711 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
23712    { (exit 1); exit 1; }; }
23713 fi
23714
23715     LDAP_LIBS_FE="-lwldap32"
23716     LDAP_LIBS_BE="-lwldap32"
23717   fi
23718   LIBS="$_LIBS"
23719 fi
23720
23721
23722
23723
23724 # Older versions of libxml2 lack the xmlStructuredErrorContext variable
23725 # (which could be a macro referring to a function, if threading is enabled)
23726 if test "$with_libxml" = yes ; then
23727   { $as_echo "$as_me:$LINENO: checking for xmlStructuredErrorContext" >&5
23728 $as_echo_n "checking for xmlStructuredErrorContext... " >&6; }
23729 if test "${pgac_cv_libxml_structerrctx+set}" = set; then
23730   $as_echo_n "(cached) " >&6
23731 else
23732   cat >conftest.$ac_ext <<_ACEOF
23733 /* confdefs.h.  */
23734 _ACEOF
23735 cat confdefs.h >>conftest.$ac_ext
23736 cat >>conftest.$ac_ext <<_ACEOF
23737 /* end confdefs.h.  */
23738 #include <libxml/globals.h>
23739                 void *globptr;
23740 int
23741 main ()
23742 {
23743 globptr = xmlStructuredErrorContext
23744   ;
23745   return 0;
23746 }
23747 _ACEOF
23748 rm -f conftest.$ac_objext conftest$ac_exeext
23749 if { (ac_try="$ac_link"
23750 case "(($ac_try" in
23751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23752   *) ac_try_echo=$ac_try;;
23753 esac
23754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23755 $as_echo "$ac_try_echo") >&5
23756   (eval "$ac_link") 2>conftest.er1
23757   ac_status=$?
23758   grep -v '^ *+' conftest.er1 >conftest.err
23759   rm -f conftest.er1
23760   cat conftest.err >&5
23761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762   (exit $ac_status); } && {
23763          test -z "$ac_c_werror_flag" ||
23764          test ! -s conftest.err
23765        } && test -s conftest$ac_exeext && {
23766          test "$cross_compiling" = yes ||
23767          $as_test_x conftest$ac_exeext
23768        }; then
23769   pgac_cv_libxml_structerrctx=yes
23770 else
23771   $as_echo "$as_me: failed program was:" >&5
23772 sed 's/^/| /' conftest.$ac_ext >&5
23773
23774         pgac_cv_libxml_structerrctx=no
23775 fi
23776
23777 rm -rf conftest.dSYM
23778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23779       conftest$ac_exeext conftest.$ac_ext
23780 fi
23781 { $as_echo "$as_me:$LINENO: result: $pgac_cv_libxml_structerrctx" >&5
23782 $as_echo "$pgac_cv_libxml_structerrctx" >&6; }
23783   if test x"$pgac_cv_libxml_structerrctx" = x"yes"; then
23784
23785 cat >>confdefs.h <<\_ACEOF
23786 #define HAVE_XMLSTRUCTUREDERRORCONTEXT 1
23787 _ACEOF
23788
23789   fi
23790 fi
23791
23792
23793 # This test makes sure that run tests work at all.  Sometimes a shared
23794 # library is found by the linker, but the runtime linker can't find it.
23795 # This check should come after all modifications of compiler or linker
23796 # variables, and before any other run tests.
23797 { $as_echo "$as_me:$LINENO: checking test program" >&5
23798 $as_echo_n "checking test program... " >&6; }
23799 if test "$cross_compiling" = yes; then
23800   { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
23801 $as_echo "cross-compiling" >&6; }
23802 else
23803   cat >conftest.$ac_ext <<_ACEOF
23804 /* confdefs.h.  */
23805 _ACEOF
23806 cat confdefs.h >>conftest.$ac_ext
23807 cat >>conftest.$ac_ext <<_ACEOF
23808 /* end confdefs.h.  */
23809 int main() { return 0; }
23810 _ACEOF
23811 rm -f conftest$ac_exeext
23812 if { (ac_try="$ac_link"
23813 case "(($ac_try" in
23814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23815   *) ac_try_echo=$ac_try;;
23816 esac
23817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23818 $as_echo "$ac_try_echo") >&5
23819   (eval "$ac_link") 2>&5
23820   ac_status=$?
23821   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23822   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23823   { (case "(($ac_try" in
23824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23825   *) ac_try_echo=$ac_try;;
23826 esac
23827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23828 $as_echo "$ac_try_echo") >&5
23829   (eval "$ac_try") 2>&5
23830   ac_status=$?
23831   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23832   (exit $ac_status); }; }; then
23833   { $as_echo "$as_me:$LINENO: result: ok" >&5
23834 $as_echo "ok" >&6; }
23835 else
23836   $as_echo "$as_me: program exited with status $ac_status" >&5
23837 $as_echo "$as_me: failed program was:" >&5
23838 sed 's/^/| /' conftest.$ac_ext >&5
23839
23840 ( exit $ac_status )
23841 { $as_echo "$as_me:$LINENO: result: failed" >&5
23842 $as_echo "failed" >&6; }
23843 { { $as_echo "$as_me:$LINENO: error:
23844 Could not execute a simple test program.  This may be a problem
23845 related to locating shared libraries.  Check the file 'config.log'
23846 for the exact reason." >&5
23847 $as_echo "$as_me: error:
23848 Could not execute a simple test program.  This may be a problem
23849 related to locating shared libraries.  Check the file 'config.log'
23850 for the exact reason." >&2;}
23851    { (exit 1); exit 1; }; }
23852 fi
23853 rm -rf conftest.dSYM
23854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23855 fi
23856
23857
23858
23859 # --------------------
23860 # Run tests below here
23861 # --------------------
23862
23863 # Force use of our snprintf if system's doesn't do arg control
23864 # See comment above at snprintf test for details.
23865 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
23866   { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
23867 $as_echo_n "checking whether printf supports argument control... " >&6; }
23868 if test "${pgac_cv_printf_arg_control+set}" = set; then
23869   $as_echo_n "(cached) " >&6
23870 else
23871   if test "$cross_compiling" = yes; then
23872   pgac_cv_printf_arg_control=cross
23873 else
23874   cat >conftest.$ac_ext <<_ACEOF
23875 /* confdefs.h.  */
23876 _ACEOF
23877 cat confdefs.h >>conftest.$ac_ext
23878 cat >>conftest.$ac_ext <<_ACEOF
23879 /* end confdefs.h.  */
23880 #include <stdio.h>
23881 #include <string.h>
23882
23883 int main()
23884 {
23885   char buf[100];
23886
23887   /* can it swap arguments? */
23888   snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
23889   if (strcmp(buf, "4 3") != 0)
23890     return 1;
23891   return 0;
23892 }
23893 _ACEOF
23894 rm -f conftest$ac_exeext
23895 if { (ac_try="$ac_link"
23896 case "(($ac_try" in
23897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23898   *) ac_try_echo=$ac_try;;
23899 esac
23900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23901 $as_echo "$ac_try_echo") >&5
23902   (eval "$ac_link") 2>&5
23903   ac_status=$?
23904   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23905   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23906   { (case "(($ac_try" in
23907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23908   *) ac_try_echo=$ac_try;;
23909 esac
23910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23911 $as_echo "$ac_try_echo") >&5
23912   (eval "$ac_try") 2>&5
23913   ac_status=$?
23914   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23915   (exit $ac_status); }; }; then
23916   pgac_cv_printf_arg_control=yes
23917 else
23918   $as_echo "$as_me: program exited with status $ac_status" >&5
23919 $as_echo "$as_me: failed program was:" >&5
23920 sed 's/^/| /' conftest.$ac_ext >&5
23921
23922 ( exit $ac_status )
23923 pgac_cv_printf_arg_control=no
23924 fi
23925 rm -rf conftest.dSYM
23926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23927 fi
23928
23929
23930
23931 fi
23932 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
23933 $as_echo "$pgac_cv_printf_arg_control" >&6; }
23934
23935   if test $pgac_cv_printf_arg_control != yes ; then
23936     pgac_need_repl_snprintf=yes
23937   fi
23938 fi
23939
23940
23941
23942
23943 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
23944 $as_echo_n "checking whether long int is 64 bits... " >&6; }
23945 if test "${pgac_cv_type_long_int_64+set}" = set; then
23946   $as_echo_n "(cached) " >&6
23947 else
23948   if test "$cross_compiling" = yes; then
23949   # If cross-compiling, check the size reported by the compiler and
23950 # trust that the arithmetic works.
23951 cat >conftest.$ac_ext <<_ACEOF
23952 /* confdefs.h.  */
23953 _ACEOF
23954 cat confdefs.h >>conftest.$ac_ext
23955 cat >>conftest.$ac_ext <<_ACEOF
23956 /* end confdefs.h.  */
23957
23958 int
23959 main ()
23960 {
23961 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
23962 test_array [0] = 0
23963
23964   ;
23965   return 0;
23966 }
23967 _ACEOF
23968 rm -f conftest.$ac_objext
23969 if { (ac_try="$ac_compile"
23970 case "(($ac_try" in
23971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23972   *) ac_try_echo=$ac_try;;
23973 esac
23974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23975 $as_echo "$ac_try_echo") >&5
23976   (eval "$ac_compile") 2>conftest.er1
23977   ac_status=$?
23978   grep -v '^ *+' conftest.er1 >conftest.err
23979   rm -f conftest.er1
23980   cat conftest.err >&5
23981   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23982   (exit $ac_status); } && {
23983          test -z "$ac_c_werror_flag" ||
23984          test ! -s conftest.err
23985        } && test -s conftest.$ac_objext; then
23986   pgac_cv_type_long_int_64=yes
23987 else
23988   $as_echo "$as_me: failed program was:" >&5
23989 sed 's/^/| /' conftest.$ac_ext >&5
23990
23991         pgac_cv_type_long_int_64=no
23992 fi
23993
23994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23995 else
23996   cat >conftest.$ac_ext <<_ACEOF
23997 /* confdefs.h.  */
23998 _ACEOF
23999 cat confdefs.h >>conftest.$ac_ext
24000 cat >>conftest.$ac_ext <<_ACEOF
24001 /* end confdefs.h.  */
24002 typedef long int ac_int64;
24003
24004 /*
24005  * These are globals to discourage the compiler from folding all the
24006  * arithmetic tests down to compile-time constants.
24007  */
24008 ac_int64 a = 20000001;
24009 ac_int64 b = 40000005;
24010
24011 int does_int64_work()
24012 {
24013   ac_int64 c,d;
24014
24015   if (sizeof(ac_int64) != 8)
24016     return 0;                   /* definitely not the right size */
24017
24018   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24019   c = a * b;
24020   d = (c + b) / b;
24021   if (d != a+1)
24022     return 0;
24023   return 1;
24024 }
24025 main() {
24026   exit(! does_int64_work());
24027 }
24028 _ACEOF
24029 rm -f conftest$ac_exeext
24030 if { (ac_try="$ac_link"
24031 case "(($ac_try" in
24032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24033   *) ac_try_echo=$ac_try;;
24034 esac
24035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24036 $as_echo "$ac_try_echo") >&5
24037   (eval "$ac_link") 2>&5
24038   ac_status=$?
24039   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24040   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24041   { (case "(($ac_try" in
24042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24043   *) ac_try_echo=$ac_try;;
24044 esac
24045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24046 $as_echo "$ac_try_echo") >&5
24047   (eval "$ac_try") 2>&5
24048   ac_status=$?
24049   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24050   (exit $ac_status); }; }; then
24051   pgac_cv_type_long_int_64=yes
24052 else
24053   $as_echo "$as_me: program exited with status $ac_status" >&5
24054 $as_echo "$as_me: failed program was:" >&5
24055 sed 's/^/| /' conftest.$ac_ext >&5
24056
24057 ( exit $ac_status )
24058 pgac_cv_type_long_int_64=no
24059 fi
24060 rm -rf conftest.dSYM
24061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24062 fi
24063
24064
24065 fi
24066 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
24067 $as_echo "$pgac_cv_type_long_int_64" >&6; }
24068
24069 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
24070 if test x"$pgac_cv_type_long_int_64" = xyes ; then
24071
24072 cat >>confdefs.h <<\_ACEOF
24073 #define HAVE_LONG_INT_64 1
24074 _ACEOF
24075
24076 fi
24077
24078
24079 if test x"$HAVE_LONG_INT_64" = x"no" ; then
24080   { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
24081 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
24082 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
24083   $as_echo_n "(cached) " >&6
24084 else
24085   if test "$cross_compiling" = yes; then
24086   # If cross-compiling, check the size reported by the compiler and
24087 # trust that the arithmetic works.
24088 cat >conftest.$ac_ext <<_ACEOF
24089 /* confdefs.h.  */
24090 _ACEOF
24091 cat confdefs.h >>conftest.$ac_ext
24092 cat >>conftest.$ac_ext <<_ACEOF
24093 /* end confdefs.h.  */
24094
24095 int
24096 main ()
24097 {
24098 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
24099 test_array [0] = 0
24100
24101   ;
24102   return 0;
24103 }
24104 _ACEOF
24105 rm -f conftest.$ac_objext
24106 if { (ac_try="$ac_compile"
24107 case "(($ac_try" in
24108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24109   *) ac_try_echo=$ac_try;;
24110 esac
24111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24112 $as_echo "$ac_try_echo") >&5
24113   (eval "$ac_compile") 2>conftest.er1
24114   ac_status=$?
24115   grep -v '^ *+' conftest.er1 >conftest.err
24116   rm -f conftest.er1
24117   cat conftest.err >&5
24118   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24119   (exit $ac_status); } && {
24120          test -z "$ac_c_werror_flag" ||
24121          test ! -s conftest.err
24122        } && test -s conftest.$ac_objext; then
24123   pgac_cv_type_long_long_int_64=yes
24124 else
24125   $as_echo "$as_me: failed program was:" >&5
24126 sed 's/^/| /' conftest.$ac_ext >&5
24127
24128         pgac_cv_type_long_long_int_64=no
24129 fi
24130
24131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24132 else
24133   cat >conftest.$ac_ext <<_ACEOF
24134 /* confdefs.h.  */
24135 _ACEOF
24136 cat confdefs.h >>conftest.$ac_ext
24137 cat >>conftest.$ac_ext <<_ACEOF
24138 /* end confdefs.h.  */
24139 typedef long long int ac_int64;
24140
24141 /*
24142  * These are globals to discourage the compiler from folding all the
24143  * arithmetic tests down to compile-time constants.
24144  */
24145 ac_int64 a = 20000001;
24146 ac_int64 b = 40000005;
24147
24148 int does_int64_work()
24149 {
24150   ac_int64 c,d;
24151
24152   if (sizeof(ac_int64) != 8)
24153     return 0;                   /* definitely not the right size */
24154
24155   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24156   c = a * b;
24157   d = (c + b) / b;
24158   if (d != a+1)
24159     return 0;
24160   return 1;
24161 }
24162 main() {
24163   exit(! does_int64_work());
24164 }
24165 _ACEOF
24166 rm -f conftest$ac_exeext
24167 if { (ac_try="$ac_link"
24168 case "(($ac_try" in
24169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24170   *) ac_try_echo=$ac_try;;
24171 esac
24172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24173 $as_echo "$ac_try_echo") >&5
24174   (eval "$ac_link") 2>&5
24175   ac_status=$?
24176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24177   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24178   { (case "(($ac_try" in
24179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24180   *) ac_try_echo=$ac_try;;
24181 esac
24182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24183 $as_echo "$ac_try_echo") >&5
24184   (eval "$ac_try") 2>&5
24185   ac_status=$?
24186   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24187   (exit $ac_status); }; }; then
24188   pgac_cv_type_long_long_int_64=yes
24189 else
24190   $as_echo "$as_me: program exited with status $ac_status" >&5
24191 $as_echo "$as_me: failed program was:" >&5
24192 sed 's/^/| /' conftest.$ac_ext >&5
24193
24194 ( exit $ac_status )
24195 pgac_cv_type_long_long_int_64=no
24196 fi
24197 rm -rf conftest.dSYM
24198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24199 fi
24200
24201
24202 fi
24203 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
24204 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
24205
24206 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
24207 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
24208
24209 cat >>confdefs.h <<\_ACEOF
24210 #define HAVE_LONG_LONG_INT_64 1
24211 _ACEOF
24212
24213 fi
24214
24215   if test x"$HAVE_LONG_LONG_INT_64" = x"no" ; then
24216     { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
24217 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
24218    { (exit 1); exit 1; }; }
24219   fi
24220 fi
24221
24222
24223
24224 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
24225   cat >conftest.$ac_ext <<_ACEOF
24226 /* confdefs.h.  */
24227 _ACEOF
24228 cat confdefs.h >>conftest.$ac_ext
24229 cat >>conftest.$ac_ext <<_ACEOF
24230 /* end confdefs.h.  */
24231
24232 #define INT64CONST(x)  x##LL
24233 long long int foo = INT64CONST(0x1234567890123456);
24234
24235 int
24236 main ()
24237 {
24238
24239   ;
24240   return 0;
24241 }
24242 _ACEOF
24243 rm -f conftest.$ac_objext
24244 if { (ac_try="$ac_compile"
24245 case "(($ac_try" in
24246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24247   *) ac_try_echo=$ac_try;;
24248 esac
24249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24250 $as_echo "$ac_try_echo") >&5
24251   (eval "$ac_compile") 2>conftest.er1
24252   ac_status=$?
24253   grep -v '^ *+' conftest.er1 >conftest.err
24254   rm -f conftest.er1
24255   cat conftest.err >&5
24256   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24257   (exit $ac_status); } && {
24258          test -z "$ac_c_werror_flag" ||
24259          test ! -s conftest.err
24260        } && test -s conftest.$ac_objext; then
24261
24262 cat >>confdefs.h <<\_ACEOF
24263 #define HAVE_LL_CONSTANTS 1
24264 _ACEOF
24265
24266 else
24267   $as_echo "$as_me: failed program was:" >&5
24268 sed 's/^/| /' conftest.$ac_ext >&5
24269
24270
24271 fi
24272
24273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24274 fi
24275
24276
24277 # If we found "long int" is 64 bits, assume snprintf handles it.  If
24278 # we found we need to use "long long int", better check.  We cope with
24279 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
24280 # work, fall back to our own snprintf emulation (which we know uses %lld).
24281
24282 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
24283   if test $pgac_need_repl_snprintf = no; then
24284     { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
24285 $as_echo_n "checking snprintf format for long long int... " >&6; }
24286 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
24287   $as_echo_n "(cached) " >&6
24288 else
24289   for pgac_format in '%lld' '%qd' '%I64d'; do
24290 if test "$cross_compiling" = yes; then
24291   pgac_cv_snprintf_long_long_int_format=cross; break
24292 else
24293   cat >conftest.$ac_ext <<_ACEOF
24294 /* confdefs.h.  */
24295 _ACEOF
24296 cat confdefs.h >>conftest.$ac_ext
24297 cat >>conftest.$ac_ext <<_ACEOF
24298 /* end confdefs.h.  */
24299 #include <stdio.h>
24300 typedef long long int ac_int64;
24301 #define INT64_FORMAT "$pgac_format"
24302
24303 ac_int64 a = 20000001;
24304 ac_int64 b = 40000005;
24305
24306 int does_int64_snprintf_work()
24307 {
24308   ac_int64 c;
24309   char buf[100];
24310
24311   if (sizeof(ac_int64) != 8)
24312     return 0;                   /* doesn't look like the right size */
24313
24314   c = a * b;
24315   snprintf(buf, 100, INT64_FORMAT, c);
24316   if (strcmp(buf, "800000140000005") != 0)
24317     return 0;                   /* either multiply or snprintf is busted */
24318   return 1;
24319 }
24320 main() {
24321   exit(! does_int64_snprintf_work());
24322 }
24323 _ACEOF
24324 rm -f conftest$ac_exeext
24325 if { (ac_try="$ac_link"
24326 case "(($ac_try" in
24327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24328   *) ac_try_echo=$ac_try;;
24329 esac
24330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24331 $as_echo "$ac_try_echo") >&5
24332   (eval "$ac_link") 2>&5
24333   ac_status=$?
24334   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24335   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24336   { (case "(($ac_try" in
24337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24338   *) ac_try_echo=$ac_try;;
24339 esac
24340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24341 $as_echo "$ac_try_echo") >&5
24342   (eval "$ac_try") 2>&5
24343   ac_status=$?
24344   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24345   (exit $ac_status); }; }; then
24346   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
24347 else
24348   $as_echo "$as_me: program exited with status $ac_status" >&5
24349 $as_echo "$as_me: failed program was:" >&5
24350 sed 's/^/| /' conftest.$ac_ext >&5
24351
24352 fi
24353 rm -rf conftest.dSYM
24354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24355 fi
24356
24357
24358 done
24359 fi
24360
24361 LONG_LONG_INT_FORMAT=''
24362
24363 case $pgac_cv_snprintf_long_long_int_format in
24364   cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
24365 $as_echo "cannot test (not on host machine)" >&6; };;
24366   ?*)    { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
24367 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
24368          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
24369   *)     { $as_echo "$as_me:$LINENO: result: none" >&5
24370 $as_echo "none" >&6; };;
24371 esac
24372     if test "$LONG_LONG_INT_FORMAT" = ""; then
24373       # Force usage of our own snprintf, since system snprintf is broken
24374       pgac_need_repl_snprintf=yes
24375       LONG_LONG_INT_FORMAT='%lld'
24376     fi
24377   else
24378     # Here if we previously decided we needed to use our own snprintf
24379     LONG_LONG_INT_FORMAT='%lld'
24380   fi
24381   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
24382   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
24383   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
24384 else
24385   # Here if we are not using 'long long int' at all
24386   INT64_FORMAT='"%ld"'
24387   UINT64_FORMAT='"%lu"'
24388 fi
24389
24390
24391 cat >>confdefs.h <<_ACEOF
24392 #define INT64_FORMAT $INT64_FORMAT
24393 _ACEOF
24394
24395
24396
24397 cat >>confdefs.h <<_ACEOF
24398 #define UINT64_FORMAT $UINT64_FORMAT
24399 _ACEOF
24400
24401
24402 # Now we have checked all the reasons to replace snprintf
24403 if test $pgac_need_repl_snprintf = yes; then
24404
24405 cat >>confdefs.h <<\_ACEOF
24406 #define USE_REPL_SNPRINTF 1
24407 _ACEOF
24408
24409   case " $LIBOBJS " in
24410   *" snprintf.$ac_objext "* ) ;;
24411   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
24412  ;;
24413 esac
24414
24415 fi
24416
24417 # Check size of void *, size_t (enables tweaks for > 32bit address space)
24418 # The cast to long int works around a bug in the HP C Compiler
24419 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24420 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24421 # This bug is HP SR number 8606223364.
24422 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
24423 $as_echo_n "checking size of void *... " >&6; }
24424 if test "${ac_cv_sizeof_void_p+set}" = set; then
24425   $as_echo_n "(cached) " >&6
24426 else
24427   if test "$cross_compiling" = yes; then
24428   # Depending upon the size, compute the lo and hi bounds.
24429 cat >conftest.$ac_ext <<_ACEOF
24430 /* confdefs.h.  */
24431 _ACEOF
24432 cat confdefs.h >>conftest.$ac_ext
24433 cat >>conftest.$ac_ext <<_ACEOF
24434 /* end confdefs.h.  */
24435 $ac_includes_default
24436 int
24437 main ()
24438 {
24439 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
24440 test_array [0] = 0
24441
24442   ;
24443   return 0;
24444 }
24445 _ACEOF
24446 rm -f conftest.$ac_objext
24447 if { (ac_try="$ac_compile"
24448 case "(($ac_try" in
24449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24450   *) ac_try_echo=$ac_try;;
24451 esac
24452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24453 $as_echo "$ac_try_echo") >&5
24454   (eval "$ac_compile") 2>conftest.er1
24455   ac_status=$?
24456   grep -v '^ *+' conftest.er1 >conftest.err
24457   rm -f conftest.er1
24458   cat conftest.err >&5
24459   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24460   (exit $ac_status); } && {
24461          test -z "$ac_c_werror_flag" ||
24462          test ! -s conftest.err
24463        } && test -s conftest.$ac_objext; then
24464   ac_lo=0 ac_mid=0
24465   while :; do
24466     cat >conftest.$ac_ext <<_ACEOF
24467 /* confdefs.h.  */
24468 _ACEOF
24469 cat confdefs.h >>conftest.$ac_ext
24470 cat >>conftest.$ac_ext <<_ACEOF
24471 /* end confdefs.h.  */
24472 $ac_includes_default
24473 int
24474 main ()
24475 {
24476 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24477 test_array [0] = 0
24478
24479   ;
24480   return 0;
24481 }
24482 _ACEOF
24483 rm -f conftest.$ac_objext
24484 if { (ac_try="$ac_compile"
24485 case "(($ac_try" in
24486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24487   *) ac_try_echo=$ac_try;;
24488 esac
24489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24490 $as_echo "$ac_try_echo") >&5
24491   (eval "$ac_compile") 2>conftest.er1
24492   ac_status=$?
24493   grep -v '^ *+' conftest.er1 >conftest.err
24494   rm -f conftest.er1
24495   cat conftest.err >&5
24496   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24497   (exit $ac_status); } && {
24498          test -z "$ac_c_werror_flag" ||
24499          test ! -s conftest.err
24500        } && test -s conftest.$ac_objext; then
24501   ac_hi=$ac_mid; break
24502 else
24503   $as_echo "$as_me: failed program was:" >&5
24504 sed 's/^/| /' conftest.$ac_ext >&5
24505
24506         ac_lo=`expr $ac_mid + 1`
24507                         if test $ac_lo -le $ac_mid; then
24508                           ac_lo= ac_hi=
24509                           break
24510                         fi
24511                         ac_mid=`expr 2 '*' $ac_mid + 1`
24512 fi
24513
24514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24515   done
24516 else
24517   $as_echo "$as_me: failed program was:" >&5
24518 sed 's/^/| /' conftest.$ac_ext >&5
24519
24520         cat >conftest.$ac_ext <<_ACEOF
24521 /* confdefs.h.  */
24522 _ACEOF
24523 cat confdefs.h >>conftest.$ac_ext
24524 cat >>conftest.$ac_ext <<_ACEOF
24525 /* end confdefs.h.  */
24526 $ac_includes_default
24527 int
24528 main ()
24529 {
24530 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
24531 test_array [0] = 0
24532
24533   ;
24534   return 0;
24535 }
24536 _ACEOF
24537 rm -f conftest.$ac_objext
24538 if { (ac_try="$ac_compile"
24539 case "(($ac_try" in
24540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24541   *) ac_try_echo=$ac_try;;
24542 esac
24543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24544 $as_echo "$ac_try_echo") >&5
24545   (eval "$ac_compile") 2>conftest.er1
24546   ac_status=$?
24547   grep -v '^ *+' conftest.er1 >conftest.err
24548   rm -f conftest.er1
24549   cat conftest.err >&5
24550   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24551   (exit $ac_status); } && {
24552          test -z "$ac_c_werror_flag" ||
24553          test ! -s conftest.err
24554        } && test -s conftest.$ac_objext; then
24555   ac_hi=-1 ac_mid=-1
24556   while :; do
24557     cat >conftest.$ac_ext <<_ACEOF
24558 /* confdefs.h.  */
24559 _ACEOF
24560 cat confdefs.h >>conftest.$ac_ext
24561 cat >>conftest.$ac_ext <<_ACEOF
24562 /* end confdefs.h.  */
24563 $ac_includes_default
24564 int
24565 main ()
24566 {
24567 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
24568 test_array [0] = 0
24569
24570   ;
24571   return 0;
24572 }
24573 _ACEOF
24574 rm -f conftest.$ac_objext
24575 if { (ac_try="$ac_compile"
24576 case "(($ac_try" in
24577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24578   *) ac_try_echo=$ac_try;;
24579 esac
24580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24581 $as_echo "$ac_try_echo") >&5
24582   (eval "$ac_compile") 2>conftest.er1
24583   ac_status=$?
24584   grep -v '^ *+' conftest.er1 >conftest.err
24585   rm -f conftest.er1
24586   cat conftest.err >&5
24587   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588   (exit $ac_status); } && {
24589          test -z "$ac_c_werror_flag" ||
24590          test ! -s conftest.err
24591        } && test -s conftest.$ac_objext; then
24592   ac_lo=$ac_mid; break
24593 else
24594   $as_echo "$as_me: failed program was:" >&5
24595 sed 's/^/| /' conftest.$ac_ext >&5
24596
24597         ac_hi=`expr '(' $ac_mid ')' - 1`
24598                         if test $ac_mid -le $ac_hi; then
24599                           ac_lo= ac_hi=
24600                           break
24601                         fi
24602                         ac_mid=`expr 2 '*' $ac_mid`
24603 fi
24604
24605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24606   done
24607 else
24608   $as_echo "$as_me: failed program was:" >&5
24609 sed 's/^/| /' conftest.$ac_ext >&5
24610
24611         ac_lo= ac_hi=
24612 fi
24613
24614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24615 fi
24616
24617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24618 # Binary search between lo and hi bounds.
24619 while test "x$ac_lo" != "x$ac_hi"; do
24620   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24621   cat >conftest.$ac_ext <<_ACEOF
24622 /* confdefs.h.  */
24623 _ACEOF
24624 cat confdefs.h >>conftest.$ac_ext
24625 cat >>conftest.$ac_ext <<_ACEOF
24626 /* end confdefs.h.  */
24627 $ac_includes_default
24628 int
24629 main ()
24630 {
24631 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24632 test_array [0] = 0
24633
24634   ;
24635   return 0;
24636 }
24637 _ACEOF
24638 rm -f conftest.$ac_objext
24639 if { (ac_try="$ac_compile"
24640 case "(($ac_try" in
24641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24642   *) ac_try_echo=$ac_try;;
24643 esac
24644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24645 $as_echo "$ac_try_echo") >&5
24646   (eval "$ac_compile") 2>conftest.er1
24647   ac_status=$?
24648   grep -v '^ *+' conftest.er1 >conftest.err
24649   rm -f conftest.er1
24650   cat conftest.err >&5
24651   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24652   (exit $ac_status); } && {
24653          test -z "$ac_c_werror_flag" ||
24654          test ! -s conftest.err
24655        } && test -s conftest.$ac_objext; then
24656   ac_hi=$ac_mid
24657 else
24658   $as_echo "$as_me: failed program was:" >&5
24659 sed 's/^/| /' conftest.$ac_ext >&5
24660
24661         ac_lo=`expr '(' $ac_mid ')' + 1`
24662 fi
24663
24664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24665 done
24666 case $ac_lo in
24667 ?*) ac_cv_sizeof_void_p=$ac_lo;;
24668 '') if test "$ac_cv_type_void_p" = yes; then
24669      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24671 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24672 See \`config.log' for more details." >&5
24673 $as_echo "$as_me: error: cannot compute sizeof (void *)
24674 See \`config.log' for more details." >&2;}
24675    { (exit 77); exit 77; }; }; }
24676    else
24677      ac_cv_sizeof_void_p=0
24678    fi ;;
24679 esac
24680 else
24681   cat >conftest.$ac_ext <<_ACEOF
24682 /* confdefs.h.  */
24683 _ACEOF
24684 cat confdefs.h >>conftest.$ac_ext
24685 cat >>conftest.$ac_ext <<_ACEOF
24686 /* end confdefs.h.  */
24687 $ac_includes_default
24688 static long int longval () { return (long int) (sizeof (void *)); }
24689 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
24690 #include <stdio.h>
24691 #include <stdlib.h>
24692 int
24693 main ()
24694 {
24695
24696   FILE *f = fopen ("conftest.val", "w");
24697   if (! f)
24698     return 1;
24699   if (((long int) (sizeof (void *))) < 0)
24700     {
24701       long int i = longval ();
24702       if (i != ((long int) (sizeof (void *))))
24703         return 1;
24704       fprintf (f, "%ld", i);
24705     }
24706   else
24707     {
24708       unsigned long int i = ulongval ();
24709       if (i != ((long int) (sizeof (void *))))
24710         return 1;
24711       fprintf (f, "%lu", i);
24712     }
24713   /* Do not output a trailing newline, as this causes \r\n confusion
24714      on some platforms.  */
24715   return ferror (f) || fclose (f) != 0;
24716
24717   ;
24718   return 0;
24719 }
24720 _ACEOF
24721 rm -f conftest$ac_exeext
24722 if { (ac_try="$ac_link"
24723 case "(($ac_try" in
24724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24725   *) ac_try_echo=$ac_try;;
24726 esac
24727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24728 $as_echo "$ac_try_echo") >&5
24729   (eval "$ac_link") 2>&5
24730   ac_status=$?
24731   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24732   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24733   { (case "(($ac_try" in
24734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24735   *) ac_try_echo=$ac_try;;
24736 esac
24737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24738 $as_echo "$ac_try_echo") >&5
24739   (eval "$ac_try") 2>&5
24740   ac_status=$?
24741   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24742   (exit $ac_status); }; }; then
24743   ac_cv_sizeof_void_p=`cat conftest.val`
24744 else
24745   $as_echo "$as_me: program exited with status $ac_status" >&5
24746 $as_echo "$as_me: failed program was:" >&5
24747 sed 's/^/| /' conftest.$ac_ext >&5
24748
24749 ( exit $ac_status )
24750 if test "$ac_cv_type_void_p" = yes; then
24751      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24753 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24754 See \`config.log' for more details." >&5
24755 $as_echo "$as_me: error: cannot compute sizeof (void *)
24756 See \`config.log' for more details." >&2;}
24757    { (exit 77); exit 77; }; }; }
24758    else
24759      ac_cv_sizeof_void_p=0
24760    fi
24761 fi
24762 rm -rf conftest.dSYM
24763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24764 fi
24765 rm -f conftest.val
24766 fi
24767 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24768 $as_echo "$ac_cv_sizeof_void_p" >&6; }
24769
24770
24771
24772 cat >>confdefs.h <<_ACEOF
24773 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24774 _ACEOF
24775
24776
24777 # The cast to long int works around a bug in the HP C Compiler
24778 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24779 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24780 # This bug is HP SR number 8606223364.
24781 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
24782 $as_echo_n "checking size of size_t... " >&6; }
24783 if test "${ac_cv_sizeof_size_t+set}" = set; then
24784   $as_echo_n "(cached) " >&6
24785 else
24786   if test "$cross_compiling" = yes; then
24787   # Depending upon the size, compute the lo and hi bounds.
24788 cat >conftest.$ac_ext <<_ACEOF
24789 /* confdefs.h.  */
24790 _ACEOF
24791 cat confdefs.h >>conftest.$ac_ext
24792 cat >>conftest.$ac_ext <<_ACEOF
24793 /* end confdefs.h.  */
24794 $ac_includes_default
24795 int
24796 main ()
24797 {
24798 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
24799 test_array [0] = 0
24800
24801   ;
24802   return 0;
24803 }
24804 _ACEOF
24805 rm -f conftest.$ac_objext
24806 if { (ac_try="$ac_compile"
24807 case "(($ac_try" in
24808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24809   *) ac_try_echo=$ac_try;;
24810 esac
24811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24812 $as_echo "$ac_try_echo") >&5
24813   (eval "$ac_compile") 2>conftest.er1
24814   ac_status=$?
24815   grep -v '^ *+' conftest.er1 >conftest.err
24816   rm -f conftest.er1
24817   cat conftest.err >&5
24818   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24819   (exit $ac_status); } && {
24820          test -z "$ac_c_werror_flag" ||
24821          test ! -s conftest.err
24822        } && test -s conftest.$ac_objext; then
24823   ac_lo=0 ac_mid=0
24824   while :; do
24825     cat >conftest.$ac_ext <<_ACEOF
24826 /* confdefs.h.  */
24827 _ACEOF
24828 cat confdefs.h >>conftest.$ac_ext
24829 cat >>conftest.$ac_ext <<_ACEOF
24830 /* end confdefs.h.  */
24831 $ac_includes_default
24832 int
24833 main ()
24834 {
24835 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24836 test_array [0] = 0
24837
24838   ;
24839   return 0;
24840 }
24841 _ACEOF
24842 rm -f conftest.$ac_objext
24843 if { (ac_try="$ac_compile"
24844 case "(($ac_try" in
24845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24846   *) ac_try_echo=$ac_try;;
24847 esac
24848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24849 $as_echo "$ac_try_echo") >&5
24850   (eval "$ac_compile") 2>conftest.er1
24851   ac_status=$?
24852   grep -v '^ *+' conftest.er1 >conftest.err
24853   rm -f conftest.er1
24854   cat conftest.err >&5
24855   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856   (exit $ac_status); } && {
24857          test -z "$ac_c_werror_flag" ||
24858          test ! -s conftest.err
24859        } && test -s conftest.$ac_objext; then
24860   ac_hi=$ac_mid; break
24861 else
24862   $as_echo "$as_me: failed program was:" >&5
24863 sed 's/^/| /' conftest.$ac_ext >&5
24864
24865         ac_lo=`expr $ac_mid + 1`
24866                         if test $ac_lo -le $ac_mid; then
24867                           ac_lo= ac_hi=
24868                           break
24869                         fi
24870                         ac_mid=`expr 2 '*' $ac_mid + 1`
24871 fi
24872
24873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24874   done
24875 else
24876   $as_echo "$as_me: failed program was:" >&5
24877 sed 's/^/| /' conftest.$ac_ext >&5
24878
24879         cat >conftest.$ac_ext <<_ACEOF
24880 /* confdefs.h.  */
24881 _ACEOF
24882 cat confdefs.h >>conftest.$ac_ext
24883 cat >>conftest.$ac_ext <<_ACEOF
24884 /* end confdefs.h.  */
24885 $ac_includes_default
24886 int
24887 main ()
24888 {
24889 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
24890 test_array [0] = 0
24891
24892   ;
24893   return 0;
24894 }
24895 _ACEOF
24896 rm -f conftest.$ac_objext
24897 if { (ac_try="$ac_compile"
24898 case "(($ac_try" in
24899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24900   *) ac_try_echo=$ac_try;;
24901 esac
24902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24903 $as_echo "$ac_try_echo") >&5
24904   (eval "$ac_compile") 2>conftest.er1
24905   ac_status=$?
24906   grep -v '^ *+' conftest.er1 >conftest.err
24907   rm -f conftest.er1
24908   cat conftest.err >&5
24909   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24910   (exit $ac_status); } && {
24911          test -z "$ac_c_werror_flag" ||
24912          test ! -s conftest.err
24913        } && test -s conftest.$ac_objext; then
24914   ac_hi=-1 ac_mid=-1
24915   while :; do
24916     cat >conftest.$ac_ext <<_ACEOF
24917 /* confdefs.h.  */
24918 _ACEOF
24919 cat confdefs.h >>conftest.$ac_ext
24920 cat >>conftest.$ac_ext <<_ACEOF
24921 /* end confdefs.h.  */
24922 $ac_includes_default
24923 int
24924 main ()
24925 {
24926 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
24927 test_array [0] = 0
24928
24929   ;
24930   return 0;
24931 }
24932 _ACEOF
24933 rm -f conftest.$ac_objext
24934 if { (ac_try="$ac_compile"
24935 case "(($ac_try" in
24936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24937   *) ac_try_echo=$ac_try;;
24938 esac
24939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24940 $as_echo "$ac_try_echo") >&5
24941   (eval "$ac_compile") 2>conftest.er1
24942   ac_status=$?
24943   grep -v '^ *+' conftest.er1 >conftest.err
24944   rm -f conftest.er1
24945   cat conftest.err >&5
24946   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947   (exit $ac_status); } && {
24948          test -z "$ac_c_werror_flag" ||
24949          test ! -s conftest.err
24950        } && test -s conftest.$ac_objext; then
24951   ac_lo=$ac_mid; break
24952 else
24953   $as_echo "$as_me: failed program was:" >&5
24954 sed 's/^/| /' conftest.$ac_ext >&5
24955
24956         ac_hi=`expr '(' $ac_mid ')' - 1`
24957                         if test $ac_mid -le $ac_hi; then
24958                           ac_lo= ac_hi=
24959                           break
24960                         fi
24961                         ac_mid=`expr 2 '*' $ac_mid`
24962 fi
24963
24964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24965   done
24966 else
24967   $as_echo "$as_me: failed program was:" >&5
24968 sed 's/^/| /' conftest.$ac_ext >&5
24969
24970         ac_lo= ac_hi=
24971 fi
24972
24973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24974 fi
24975
24976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24977 # Binary search between lo and hi bounds.
24978 while test "x$ac_lo" != "x$ac_hi"; do
24979   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24980   cat >conftest.$ac_ext <<_ACEOF
24981 /* confdefs.h.  */
24982 _ACEOF
24983 cat confdefs.h >>conftest.$ac_ext
24984 cat >>conftest.$ac_ext <<_ACEOF
24985 /* end confdefs.h.  */
24986 $ac_includes_default
24987 int
24988 main ()
24989 {
24990 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24991 test_array [0] = 0
24992
24993   ;
24994   return 0;
24995 }
24996 _ACEOF
24997 rm -f conftest.$ac_objext
24998 if { (ac_try="$ac_compile"
24999 case "(($ac_try" in
25000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25001   *) ac_try_echo=$ac_try;;
25002 esac
25003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25004 $as_echo "$ac_try_echo") >&5
25005   (eval "$ac_compile") 2>conftest.er1
25006   ac_status=$?
25007   grep -v '^ *+' conftest.er1 >conftest.err
25008   rm -f conftest.er1
25009   cat conftest.err >&5
25010   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25011   (exit $ac_status); } && {
25012          test -z "$ac_c_werror_flag" ||
25013          test ! -s conftest.err
25014        } && test -s conftest.$ac_objext; then
25015   ac_hi=$ac_mid
25016 else
25017   $as_echo "$as_me: failed program was:" >&5
25018 sed 's/^/| /' conftest.$ac_ext >&5
25019
25020         ac_lo=`expr '(' $ac_mid ')' + 1`
25021 fi
25022
25023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25024 done
25025 case $ac_lo in
25026 ?*) ac_cv_sizeof_size_t=$ac_lo;;
25027 '') if test "$ac_cv_type_size_t" = yes; then
25028      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25030 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25031 See \`config.log' for more details." >&5
25032 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25033 See \`config.log' for more details." >&2;}
25034    { (exit 77); exit 77; }; }; }
25035    else
25036      ac_cv_sizeof_size_t=0
25037    fi ;;
25038 esac
25039 else
25040   cat >conftest.$ac_ext <<_ACEOF
25041 /* confdefs.h.  */
25042 _ACEOF
25043 cat confdefs.h >>conftest.$ac_ext
25044 cat >>conftest.$ac_ext <<_ACEOF
25045 /* end confdefs.h.  */
25046 $ac_includes_default
25047 static long int longval () { return (long int) (sizeof (size_t)); }
25048 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
25049 #include <stdio.h>
25050 #include <stdlib.h>
25051 int
25052 main ()
25053 {
25054
25055   FILE *f = fopen ("conftest.val", "w");
25056   if (! f)
25057     return 1;
25058   if (((long int) (sizeof (size_t))) < 0)
25059     {
25060       long int i = longval ();
25061       if (i != ((long int) (sizeof (size_t))))
25062         return 1;
25063       fprintf (f, "%ld", i);
25064     }
25065   else
25066     {
25067       unsigned long int i = ulongval ();
25068       if (i != ((long int) (sizeof (size_t))))
25069         return 1;
25070       fprintf (f, "%lu", i);
25071     }
25072   /* Do not output a trailing newline, as this causes \r\n confusion
25073      on some platforms.  */
25074   return ferror (f) || fclose (f) != 0;
25075
25076   ;
25077   return 0;
25078 }
25079 _ACEOF
25080 rm -f conftest$ac_exeext
25081 if { (ac_try="$ac_link"
25082 case "(($ac_try" in
25083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25084   *) ac_try_echo=$ac_try;;
25085 esac
25086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25087 $as_echo "$ac_try_echo") >&5
25088   (eval "$ac_link") 2>&5
25089   ac_status=$?
25090   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25091   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25092   { (case "(($ac_try" in
25093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25094   *) ac_try_echo=$ac_try;;
25095 esac
25096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25097 $as_echo "$ac_try_echo") >&5
25098   (eval "$ac_try") 2>&5
25099   ac_status=$?
25100   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25101   (exit $ac_status); }; }; then
25102   ac_cv_sizeof_size_t=`cat conftest.val`
25103 else
25104   $as_echo "$as_me: program exited with status $ac_status" >&5
25105 $as_echo "$as_me: failed program was:" >&5
25106 sed 's/^/| /' conftest.$ac_ext >&5
25107
25108 ( exit $ac_status )
25109 if test "$ac_cv_type_size_t" = yes; then
25110      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25112 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25113 See \`config.log' for more details." >&5
25114 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25115 See \`config.log' for more details." >&2;}
25116    { (exit 77); exit 77; }; }; }
25117    else
25118      ac_cv_sizeof_size_t=0
25119    fi
25120 fi
25121 rm -rf conftest.dSYM
25122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25123 fi
25124 rm -f conftest.val
25125 fi
25126 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
25127 $as_echo "$ac_cv_sizeof_size_t" >&6; }
25128
25129
25130
25131 cat >>confdefs.h <<_ACEOF
25132 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
25133 _ACEOF
25134
25135
25136 # The cast to long int works around a bug in the HP C Compiler
25137 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25138 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25139 # This bug is HP SR number 8606223364.
25140 { $as_echo "$as_me:$LINENO: checking size of long" >&5
25141 $as_echo_n "checking size of long... " >&6; }
25142 if test "${ac_cv_sizeof_long+set}" = set; then
25143   $as_echo_n "(cached) " >&6
25144 else
25145   if test "$cross_compiling" = yes; then
25146   # Depending upon the size, compute the lo and hi bounds.
25147 cat >conftest.$ac_ext <<_ACEOF
25148 /* confdefs.h.  */
25149 _ACEOF
25150 cat confdefs.h >>conftest.$ac_ext
25151 cat >>conftest.$ac_ext <<_ACEOF
25152 /* end confdefs.h.  */
25153 $ac_includes_default
25154 int
25155 main ()
25156 {
25157 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
25158 test_array [0] = 0
25159
25160   ;
25161   return 0;
25162 }
25163 _ACEOF
25164 rm -f conftest.$ac_objext
25165 if { (ac_try="$ac_compile"
25166 case "(($ac_try" in
25167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25168   *) ac_try_echo=$ac_try;;
25169 esac
25170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25171 $as_echo "$ac_try_echo") >&5
25172   (eval "$ac_compile") 2>conftest.er1
25173   ac_status=$?
25174   grep -v '^ *+' conftest.er1 >conftest.err
25175   rm -f conftest.er1
25176   cat conftest.err >&5
25177   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25178   (exit $ac_status); } && {
25179          test -z "$ac_c_werror_flag" ||
25180          test ! -s conftest.err
25181        } && test -s conftest.$ac_objext; then
25182   ac_lo=0 ac_mid=0
25183   while :; do
25184     cat >conftest.$ac_ext <<_ACEOF
25185 /* confdefs.h.  */
25186 _ACEOF
25187 cat confdefs.h >>conftest.$ac_ext
25188 cat >>conftest.$ac_ext <<_ACEOF
25189 /* end confdefs.h.  */
25190 $ac_includes_default
25191 int
25192 main ()
25193 {
25194 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25195 test_array [0] = 0
25196
25197   ;
25198   return 0;
25199 }
25200 _ACEOF
25201 rm -f conftest.$ac_objext
25202 if { (ac_try="$ac_compile"
25203 case "(($ac_try" in
25204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25205   *) ac_try_echo=$ac_try;;
25206 esac
25207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25208 $as_echo "$ac_try_echo") >&5
25209   (eval "$ac_compile") 2>conftest.er1
25210   ac_status=$?
25211   grep -v '^ *+' conftest.er1 >conftest.err
25212   rm -f conftest.er1
25213   cat conftest.err >&5
25214   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215   (exit $ac_status); } && {
25216          test -z "$ac_c_werror_flag" ||
25217          test ! -s conftest.err
25218        } && test -s conftest.$ac_objext; then
25219   ac_hi=$ac_mid; break
25220 else
25221   $as_echo "$as_me: failed program was:" >&5
25222 sed 's/^/| /' conftest.$ac_ext >&5
25223
25224         ac_lo=`expr $ac_mid + 1`
25225                         if test $ac_lo -le $ac_mid; then
25226                           ac_lo= ac_hi=
25227                           break
25228                         fi
25229                         ac_mid=`expr 2 '*' $ac_mid + 1`
25230 fi
25231
25232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25233   done
25234 else
25235   $as_echo "$as_me: failed program was:" >&5
25236 sed 's/^/| /' conftest.$ac_ext >&5
25237
25238         cat >conftest.$ac_ext <<_ACEOF
25239 /* confdefs.h.  */
25240 _ACEOF
25241 cat confdefs.h >>conftest.$ac_ext
25242 cat >>conftest.$ac_ext <<_ACEOF
25243 /* end confdefs.h.  */
25244 $ac_includes_default
25245 int
25246 main ()
25247 {
25248 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
25249 test_array [0] = 0
25250
25251   ;
25252   return 0;
25253 }
25254 _ACEOF
25255 rm -f conftest.$ac_objext
25256 if { (ac_try="$ac_compile"
25257 case "(($ac_try" in
25258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25259   *) ac_try_echo=$ac_try;;
25260 esac
25261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25262 $as_echo "$ac_try_echo") >&5
25263   (eval "$ac_compile") 2>conftest.er1
25264   ac_status=$?
25265   grep -v '^ *+' conftest.er1 >conftest.err
25266   rm -f conftest.er1
25267   cat conftest.err >&5
25268   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25269   (exit $ac_status); } && {
25270          test -z "$ac_c_werror_flag" ||
25271          test ! -s conftest.err
25272        } && test -s conftest.$ac_objext; then
25273   ac_hi=-1 ac_mid=-1
25274   while :; do
25275     cat >conftest.$ac_ext <<_ACEOF
25276 /* confdefs.h.  */
25277 _ACEOF
25278 cat confdefs.h >>conftest.$ac_ext
25279 cat >>conftest.$ac_ext <<_ACEOF
25280 /* end confdefs.h.  */
25281 $ac_includes_default
25282 int
25283 main ()
25284 {
25285 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
25286 test_array [0] = 0
25287
25288   ;
25289   return 0;
25290 }
25291 _ACEOF
25292 rm -f conftest.$ac_objext
25293 if { (ac_try="$ac_compile"
25294 case "(($ac_try" in
25295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25296   *) ac_try_echo=$ac_try;;
25297 esac
25298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25299 $as_echo "$ac_try_echo") >&5
25300   (eval "$ac_compile") 2>conftest.er1
25301   ac_status=$?
25302   grep -v '^ *+' conftest.er1 >conftest.err
25303   rm -f conftest.er1
25304   cat conftest.err >&5
25305   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25306   (exit $ac_status); } && {
25307          test -z "$ac_c_werror_flag" ||
25308          test ! -s conftest.err
25309        } && test -s conftest.$ac_objext; then
25310   ac_lo=$ac_mid; break
25311 else
25312   $as_echo "$as_me: failed program was:" >&5
25313 sed 's/^/| /' conftest.$ac_ext >&5
25314
25315         ac_hi=`expr '(' $ac_mid ')' - 1`
25316                         if test $ac_mid -le $ac_hi; then
25317                           ac_lo= ac_hi=
25318                           break
25319                         fi
25320                         ac_mid=`expr 2 '*' $ac_mid`
25321 fi
25322
25323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25324   done
25325 else
25326   $as_echo "$as_me: failed program was:" >&5
25327 sed 's/^/| /' conftest.$ac_ext >&5
25328
25329         ac_lo= ac_hi=
25330 fi
25331
25332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25333 fi
25334
25335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25336 # Binary search between lo and hi bounds.
25337 while test "x$ac_lo" != "x$ac_hi"; do
25338   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25339   cat >conftest.$ac_ext <<_ACEOF
25340 /* confdefs.h.  */
25341 _ACEOF
25342 cat confdefs.h >>conftest.$ac_ext
25343 cat >>conftest.$ac_ext <<_ACEOF
25344 /* end confdefs.h.  */
25345 $ac_includes_default
25346 int
25347 main ()
25348 {
25349 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25350 test_array [0] = 0
25351
25352   ;
25353   return 0;
25354 }
25355 _ACEOF
25356 rm -f conftest.$ac_objext
25357 if { (ac_try="$ac_compile"
25358 case "(($ac_try" in
25359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25360   *) ac_try_echo=$ac_try;;
25361 esac
25362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25363 $as_echo "$ac_try_echo") >&5
25364   (eval "$ac_compile") 2>conftest.er1
25365   ac_status=$?
25366   grep -v '^ *+' conftest.er1 >conftest.err
25367   rm -f conftest.er1
25368   cat conftest.err >&5
25369   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25370   (exit $ac_status); } && {
25371          test -z "$ac_c_werror_flag" ||
25372          test ! -s conftest.err
25373        } && test -s conftest.$ac_objext; then
25374   ac_hi=$ac_mid
25375 else
25376   $as_echo "$as_me: failed program was:" >&5
25377 sed 's/^/| /' conftest.$ac_ext >&5
25378
25379         ac_lo=`expr '(' $ac_mid ')' + 1`
25380 fi
25381
25382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25383 done
25384 case $ac_lo in
25385 ?*) ac_cv_sizeof_long=$ac_lo;;
25386 '') if test "$ac_cv_type_long" = yes; then
25387      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25389 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25390 See \`config.log' for more details." >&5
25391 $as_echo "$as_me: error: cannot compute sizeof (long)
25392 See \`config.log' for more details." >&2;}
25393    { (exit 77); exit 77; }; }; }
25394    else
25395      ac_cv_sizeof_long=0
25396    fi ;;
25397 esac
25398 else
25399   cat >conftest.$ac_ext <<_ACEOF
25400 /* confdefs.h.  */
25401 _ACEOF
25402 cat confdefs.h >>conftest.$ac_ext
25403 cat >>conftest.$ac_ext <<_ACEOF
25404 /* end confdefs.h.  */
25405 $ac_includes_default
25406 static long int longval () { return (long int) (sizeof (long)); }
25407 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
25408 #include <stdio.h>
25409 #include <stdlib.h>
25410 int
25411 main ()
25412 {
25413
25414   FILE *f = fopen ("conftest.val", "w");
25415   if (! f)
25416     return 1;
25417   if (((long int) (sizeof (long))) < 0)
25418     {
25419       long int i = longval ();
25420       if (i != ((long int) (sizeof (long))))
25421         return 1;
25422       fprintf (f, "%ld", i);
25423     }
25424   else
25425     {
25426       unsigned long int i = ulongval ();
25427       if (i != ((long int) (sizeof (long))))
25428         return 1;
25429       fprintf (f, "%lu", i);
25430     }
25431   /* Do not output a trailing newline, as this causes \r\n confusion
25432      on some platforms.  */
25433   return ferror (f) || fclose (f) != 0;
25434
25435   ;
25436   return 0;
25437 }
25438 _ACEOF
25439 rm -f conftest$ac_exeext
25440 if { (ac_try="$ac_link"
25441 case "(($ac_try" in
25442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25443   *) ac_try_echo=$ac_try;;
25444 esac
25445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25446 $as_echo "$ac_try_echo") >&5
25447   (eval "$ac_link") 2>&5
25448   ac_status=$?
25449   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25450   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25451   { (case "(($ac_try" in
25452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25453   *) ac_try_echo=$ac_try;;
25454 esac
25455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25456 $as_echo "$ac_try_echo") >&5
25457   (eval "$ac_try") 2>&5
25458   ac_status=$?
25459   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460   (exit $ac_status); }; }; then
25461   ac_cv_sizeof_long=`cat conftest.val`
25462 else
25463   $as_echo "$as_me: program exited with status $ac_status" >&5
25464 $as_echo "$as_me: failed program was:" >&5
25465 sed 's/^/| /' conftest.$ac_ext >&5
25466
25467 ( exit $ac_status )
25468 if test "$ac_cv_type_long" = yes; then
25469      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25471 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25472 See \`config.log' for more details." >&5
25473 $as_echo "$as_me: error: cannot compute sizeof (long)
25474 See \`config.log' for more details." >&2;}
25475    { (exit 77); exit 77; }; }; }
25476    else
25477      ac_cv_sizeof_long=0
25478    fi
25479 fi
25480 rm -rf conftest.dSYM
25481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25482 fi
25483 rm -f conftest.val
25484 fi
25485 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
25486 $as_echo "$ac_cv_sizeof_long" >&6; }
25487
25488
25489
25490 cat >>confdefs.h <<_ACEOF
25491 #define SIZEOF_LONG $ac_cv_sizeof_long
25492 _ACEOF
25493
25494
25495
25496 # Decide whether float4 is passed by value: user-selectable, enabled by default
25497 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
25498 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
25499
25500
25501 # Check whether --enable-float4-byval was given.
25502 if test "${enable_float4_byval+set}" = set; then
25503   enableval=$enable_float4_byval;
25504   case $enableval in
25505     yes)
25506
25507 cat >>confdefs.h <<\_ACEOF
25508 #define USE_FLOAT4_BYVAL 1
25509 _ACEOF
25510
25511                float4passbyval=true
25512       ;;
25513     no)
25514       float4passbyval=false
25515       ;;
25516     *)
25517       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
25518 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
25519    { (exit 1); exit 1; }; }
25520       ;;
25521   esac
25522
25523 else
25524   enable_float4_byval=yes
25525
25526 cat >>confdefs.h <<\_ACEOF
25527 #define USE_FLOAT4_BYVAL 1
25528 _ACEOF
25529
25530                float4passbyval=true
25531 fi
25532
25533
25534 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
25535 $as_echo "$enable_float4_byval" >&6; }
25536
25537 cat >>confdefs.h <<_ACEOF
25538 #define FLOAT4PASSBYVAL $float4passbyval
25539 _ACEOF
25540
25541
25542 # Decide whether float8 is passed by value.
25543 # Note: this setting also controls int8 and related types such as timestamp.
25544 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
25545 # If not, trying to select it is an error.
25546 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
25547 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
25548 if test $ac_cv_sizeof_void_p -ge 8 ; then
25549
25550
25551 # Check whether --enable-float8-byval was given.
25552 if test "${enable_float8_byval+set}" = set; then
25553   enableval=$enable_float8_byval;
25554   case $enableval in
25555     yes)
25556       :
25557       ;;
25558     no)
25559       :
25560       ;;
25561     *)
25562       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25563 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25564    { (exit 1); exit 1; }; }
25565       ;;
25566   esac
25567
25568 else
25569   enable_float8_byval=yes
25570
25571 fi
25572
25573
25574 else
25575
25576
25577 # Check whether --enable-float8-byval was given.
25578 if test "${enable_float8_byval+set}" = set; then
25579   enableval=$enable_float8_byval;
25580   case $enableval in
25581     yes)
25582       :
25583       ;;
25584     no)
25585       :
25586       ;;
25587     *)
25588       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25589 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25590    { (exit 1); exit 1; }; }
25591       ;;
25592   esac
25593
25594 else
25595   enable_float8_byval=no
25596
25597 fi
25598
25599
25600   if test "$enable_float8_byval" = yes ; then
25601     { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
25602 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
25603    { (exit 1); exit 1; }; }
25604   fi
25605 fi
25606 if test "$enable_float8_byval" = yes ; then
25607
25608 cat >>confdefs.h <<\_ACEOF
25609 #define USE_FLOAT8_BYVAL 1
25610 _ACEOF
25611
25612   float8passbyval=true
25613 else
25614   float8passbyval=false
25615 fi
25616 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
25617 $as_echo "$enable_float8_byval" >&6; }
25618
25619 cat >>confdefs.h <<_ACEOF
25620 #define FLOAT8PASSBYVAL $float8passbyval
25621 _ACEOF
25622
25623
25624 # Determine memory alignment requirements for the basic C data types.
25625
25626 # The cast to long int works around a bug in the HP C Compiler,
25627 # see AC_CHECK_SIZEOF for more information.
25628 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
25629 $as_echo_n "checking alignment of short... " >&6; }
25630 if test "${ac_cv_alignof_short+set}" = set; then
25631   $as_echo_n "(cached) " >&6
25632 else
25633   if test "$cross_compiling" = yes; then
25634   # Depending upon the size, compute the lo and hi bounds.
25635 cat >conftest.$ac_ext <<_ACEOF
25636 /* confdefs.h.  */
25637 _ACEOF
25638 cat confdefs.h >>conftest.$ac_ext
25639 cat >>conftest.$ac_ext <<_ACEOF
25640 /* end confdefs.h.  */
25641 $ac_includes_default
25642 #ifndef offsetof
25643 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25644 #endif
25645 typedef struct { char x; short y; } ac__type_alignof_;
25646 int
25647 main ()
25648 {
25649 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25650 test_array [0] = 0
25651
25652   ;
25653   return 0;
25654 }
25655 _ACEOF
25656 rm -f conftest.$ac_objext
25657 if { (ac_try="$ac_compile"
25658 case "(($ac_try" in
25659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25660   *) ac_try_echo=$ac_try;;
25661 esac
25662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25663 $as_echo "$ac_try_echo") >&5
25664   (eval "$ac_compile") 2>conftest.er1
25665   ac_status=$?
25666   grep -v '^ *+' conftest.er1 >conftest.err
25667   rm -f conftest.er1
25668   cat conftest.err >&5
25669   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25670   (exit $ac_status); } && {
25671          test -z "$ac_c_werror_flag" ||
25672          test ! -s conftest.err
25673        } && test -s conftest.$ac_objext; then
25674   ac_lo=0 ac_mid=0
25675   while :; do
25676     cat >conftest.$ac_ext <<_ACEOF
25677 /* confdefs.h.  */
25678 _ACEOF
25679 cat confdefs.h >>conftest.$ac_ext
25680 cat >>conftest.$ac_ext <<_ACEOF
25681 /* end confdefs.h.  */
25682 $ac_includes_default
25683 #ifndef offsetof
25684 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25685 #endif
25686 typedef struct { char x; short y; } ac__type_alignof_;
25687 int
25688 main ()
25689 {
25690 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25691 test_array [0] = 0
25692
25693   ;
25694   return 0;
25695 }
25696 _ACEOF
25697 rm -f conftest.$ac_objext
25698 if { (ac_try="$ac_compile"
25699 case "(($ac_try" in
25700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25701   *) ac_try_echo=$ac_try;;
25702 esac
25703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25704 $as_echo "$ac_try_echo") >&5
25705   (eval "$ac_compile") 2>conftest.er1
25706   ac_status=$?
25707   grep -v '^ *+' conftest.er1 >conftest.err
25708   rm -f conftest.er1
25709   cat conftest.err >&5
25710   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25711   (exit $ac_status); } && {
25712          test -z "$ac_c_werror_flag" ||
25713          test ! -s conftest.err
25714        } && test -s conftest.$ac_objext; then
25715   ac_hi=$ac_mid; break
25716 else
25717   $as_echo "$as_me: failed program was:" >&5
25718 sed 's/^/| /' conftest.$ac_ext >&5
25719
25720         ac_lo=`expr $ac_mid + 1`
25721                         if test $ac_lo -le $ac_mid; then
25722                           ac_lo= ac_hi=
25723                           break
25724                         fi
25725                         ac_mid=`expr 2 '*' $ac_mid + 1`
25726 fi
25727
25728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25729   done
25730 else
25731   $as_echo "$as_me: failed program was:" >&5
25732 sed 's/^/| /' conftest.$ac_ext >&5
25733
25734         cat >conftest.$ac_ext <<_ACEOF
25735 /* confdefs.h.  */
25736 _ACEOF
25737 cat confdefs.h >>conftest.$ac_ext
25738 cat >>conftest.$ac_ext <<_ACEOF
25739 /* end confdefs.h.  */
25740 $ac_includes_default
25741 #ifndef offsetof
25742 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25743 #endif
25744 typedef struct { char x; short y; } ac__type_alignof_;
25745 int
25746 main ()
25747 {
25748 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25749 test_array [0] = 0
25750
25751   ;
25752   return 0;
25753 }
25754 _ACEOF
25755 rm -f conftest.$ac_objext
25756 if { (ac_try="$ac_compile"
25757 case "(($ac_try" in
25758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25759   *) ac_try_echo=$ac_try;;
25760 esac
25761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25762 $as_echo "$ac_try_echo") >&5
25763   (eval "$ac_compile") 2>conftest.er1
25764   ac_status=$?
25765   grep -v '^ *+' conftest.er1 >conftest.err
25766   rm -f conftest.er1
25767   cat conftest.err >&5
25768   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25769   (exit $ac_status); } && {
25770          test -z "$ac_c_werror_flag" ||
25771          test ! -s conftest.err
25772        } && test -s conftest.$ac_objext; then
25773   ac_hi=-1 ac_mid=-1
25774   while :; do
25775     cat >conftest.$ac_ext <<_ACEOF
25776 /* confdefs.h.  */
25777 _ACEOF
25778 cat confdefs.h >>conftest.$ac_ext
25779 cat >>conftest.$ac_ext <<_ACEOF
25780 /* end confdefs.h.  */
25781 $ac_includes_default
25782 #ifndef offsetof
25783 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25784 #endif
25785 typedef struct { char x; short y; } ac__type_alignof_;
25786 int
25787 main ()
25788 {
25789 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25790 test_array [0] = 0
25791
25792   ;
25793   return 0;
25794 }
25795 _ACEOF
25796 rm -f conftest.$ac_objext
25797 if { (ac_try="$ac_compile"
25798 case "(($ac_try" in
25799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25800   *) ac_try_echo=$ac_try;;
25801 esac
25802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25803 $as_echo "$ac_try_echo") >&5
25804   (eval "$ac_compile") 2>conftest.er1
25805   ac_status=$?
25806   grep -v '^ *+' conftest.er1 >conftest.err
25807   rm -f conftest.er1
25808   cat conftest.err >&5
25809   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25810   (exit $ac_status); } && {
25811          test -z "$ac_c_werror_flag" ||
25812          test ! -s conftest.err
25813        } && test -s conftest.$ac_objext; then
25814   ac_lo=$ac_mid; break
25815 else
25816   $as_echo "$as_me: failed program was:" >&5
25817 sed 's/^/| /' conftest.$ac_ext >&5
25818
25819         ac_hi=`expr '(' $ac_mid ')' - 1`
25820                         if test $ac_mid -le $ac_hi; then
25821                           ac_lo= ac_hi=
25822                           break
25823                         fi
25824                         ac_mid=`expr 2 '*' $ac_mid`
25825 fi
25826
25827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25828   done
25829 else
25830   $as_echo "$as_me: failed program was:" >&5
25831 sed 's/^/| /' conftest.$ac_ext >&5
25832
25833         ac_lo= ac_hi=
25834 fi
25835
25836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25837 fi
25838
25839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25840 # Binary search between lo and hi bounds.
25841 while test "x$ac_lo" != "x$ac_hi"; do
25842   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25843   cat >conftest.$ac_ext <<_ACEOF
25844 /* confdefs.h.  */
25845 _ACEOF
25846 cat confdefs.h >>conftest.$ac_ext
25847 cat >>conftest.$ac_ext <<_ACEOF
25848 /* end confdefs.h.  */
25849 $ac_includes_default
25850 #ifndef offsetof
25851 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25852 #endif
25853 typedef struct { char x; short y; } ac__type_alignof_;
25854 int
25855 main ()
25856 {
25857 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25858 test_array [0] = 0
25859
25860   ;
25861   return 0;
25862 }
25863 _ACEOF
25864 rm -f conftest.$ac_objext
25865 if { (ac_try="$ac_compile"
25866 case "(($ac_try" in
25867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25868   *) ac_try_echo=$ac_try;;
25869 esac
25870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25871 $as_echo "$ac_try_echo") >&5
25872   (eval "$ac_compile") 2>conftest.er1
25873   ac_status=$?
25874   grep -v '^ *+' conftest.er1 >conftest.err
25875   rm -f conftest.er1
25876   cat conftest.err >&5
25877   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25878   (exit $ac_status); } && {
25879          test -z "$ac_c_werror_flag" ||
25880          test ! -s conftest.err
25881        } && test -s conftest.$ac_objext; then
25882   ac_hi=$ac_mid
25883 else
25884   $as_echo "$as_me: failed program was:" >&5
25885 sed 's/^/| /' conftest.$ac_ext >&5
25886
25887         ac_lo=`expr '(' $ac_mid ')' + 1`
25888 fi
25889
25890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25891 done
25892 case $ac_lo in
25893 ?*) ac_cv_alignof_short=$ac_lo;;
25894 '') if test "$ac_cv_type_short" = yes; then
25895      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25897 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25898 See \`config.log' for more details." >&5
25899 $as_echo "$as_me: error: cannot compute alignment of short
25900 See \`config.log' for more details." >&2;}
25901    { (exit 77); exit 77; }; }; }
25902    else
25903      ac_cv_alignof_short=0
25904    fi ;;
25905 esac
25906 else
25907   cat >conftest.$ac_ext <<_ACEOF
25908 /* confdefs.h.  */
25909 _ACEOF
25910 cat confdefs.h >>conftest.$ac_ext
25911 cat >>conftest.$ac_ext <<_ACEOF
25912 /* end confdefs.h.  */
25913 $ac_includes_default
25914 #ifndef offsetof
25915 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25916 #endif
25917 typedef struct { char x; short y; } ac__type_alignof_;
25918 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25919 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25920 #include <stdio.h>
25921 #include <stdlib.h>
25922 int
25923 main ()
25924 {
25925
25926   FILE *f = fopen ("conftest.val", "w");
25927   if (! f)
25928     return 1;
25929   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25930     {
25931       long int i = longval ();
25932       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25933         return 1;
25934       fprintf (f, "%ld", i);
25935     }
25936   else
25937     {
25938       unsigned long int i = ulongval ();
25939       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25940         return 1;
25941       fprintf (f, "%lu", i);
25942     }
25943   /* Do not output a trailing newline, as this causes \r\n confusion
25944      on some platforms.  */
25945   return ferror (f) || fclose (f) != 0;
25946
25947   ;
25948   return 0;
25949 }
25950 _ACEOF
25951 rm -f conftest$ac_exeext
25952 if { (ac_try="$ac_link"
25953 case "(($ac_try" in
25954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25955   *) ac_try_echo=$ac_try;;
25956 esac
25957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25958 $as_echo "$ac_try_echo") >&5
25959   (eval "$ac_link") 2>&5
25960   ac_status=$?
25961   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25963   { (case "(($ac_try" in
25964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25965   *) ac_try_echo=$ac_try;;
25966 esac
25967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25968 $as_echo "$ac_try_echo") >&5
25969   (eval "$ac_try") 2>&5
25970   ac_status=$?
25971   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25972   (exit $ac_status); }; }; then
25973   ac_cv_alignof_short=`cat conftest.val`
25974 else
25975   $as_echo "$as_me: program exited with status $ac_status" >&5
25976 $as_echo "$as_me: failed program was:" >&5
25977 sed 's/^/| /' conftest.$ac_ext >&5
25978
25979 ( exit $ac_status )
25980 if test "$ac_cv_type_short" = yes; then
25981      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25983 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25984 See \`config.log' for more details." >&5
25985 $as_echo "$as_me: error: cannot compute alignment of short
25986 See \`config.log' for more details." >&2;}
25987    { (exit 77); exit 77; }; }; }
25988    else
25989      ac_cv_alignof_short=0
25990    fi
25991 fi
25992 rm -rf conftest.dSYM
25993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25994 fi
25995 rm -f conftest.val
25996 fi
25997 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
25998 $as_echo "$ac_cv_alignof_short" >&6; }
25999
26000
26001
26002 cat >>confdefs.h <<_ACEOF
26003 #define ALIGNOF_SHORT $ac_cv_alignof_short
26004 _ACEOF
26005
26006
26007 # The cast to long int works around a bug in the HP C Compiler,
26008 # see AC_CHECK_SIZEOF for more information.
26009 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
26010 $as_echo_n "checking alignment of int... " >&6; }
26011 if test "${ac_cv_alignof_int+set}" = set; then
26012   $as_echo_n "(cached) " >&6
26013 else
26014   if test "$cross_compiling" = yes; then
26015   # Depending upon the size, compute the lo and hi bounds.
26016 cat >conftest.$ac_ext <<_ACEOF
26017 /* confdefs.h.  */
26018 _ACEOF
26019 cat confdefs.h >>conftest.$ac_ext
26020 cat >>conftest.$ac_ext <<_ACEOF
26021 /* end confdefs.h.  */
26022 $ac_includes_default
26023 #ifndef offsetof
26024 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26025 #endif
26026 typedef struct { char x; int y; } ac__type_alignof_;
26027 int
26028 main ()
26029 {
26030 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26031 test_array [0] = 0
26032
26033   ;
26034   return 0;
26035 }
26036 _ACEOF
26037 rm -f conftest.$ac_objext
26038 if { (ac_try="$ac_compile"
26039 case "(($ac_try" in
26040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26041   *) ac_try_echo=$ac_try;;
26042 esac
26043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26044 $as_echo "$ac_try_echo") >&5
26045   (eval "$ac_compile") 2>conftest.er1
26046   ac_status=$?
26047   grep -v '^ *+' conftest.er1 >conftest.err
26048   rm -f conftest.er1
26049   cat conftest.err >&5
26050   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051   (exit $ac_status); } && {
26052          test -z "$ac_c_werror_flag" ||
26053          test ! -s conftest.err
26054        } && test -s conftest.$ac_objext; then
26055   ac_lo=0 ac_mid=0
26056   while :; do
26057     cat >conftest.$ac_ext <<_ACEOF
26058 /* confdefs.h.  */
26059 _ACEOF
26060 cat confdefs.h >>conftest.$ac_ext
26061 cat >>conftest.$ac_ext <<_ACEOF
26062 /* end confdefs.h.  */
26063 $ac_includes_default
26064 #ifndef offsetof
26065 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26066 #endif
26067 typedef struct { char x; int y; } ac__type_alignof_;
26068 int
26069 main ()
26070 {
26071 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26072 test_array [0] = 0
26073
26074   ;
26075   return 0;
26076 }
26077 _ACEOF
26078 rm -f conftest.$ac_objext
26079 if { (ac_try="$ac_compile"
26080 case "(($ac_try" in
26081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26082   *) ac_try_echo=$ac_try;;
26083 esac
26084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26085 $as_echo "$ac_try_echo") >&5
26086   (eval "$ac_compile") 2>conftest.er1
26087   ac_status=$?
26088   grep -v '^ *+' conftest.er1 >conftest.err
26089   rm -f conftest.er1
26090   cat conftest.err >&5
26091   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26092   (exit $ac_status); } && {
26093          test -z "$ac_c_werror_flag" ||
26094          test ! -s conftest.err
26095        } && test -s conftest.$ac_objext; then
26096   ac_hi=$ac_mid; break
26097 else
26098   $as_echo "$as_me: failed program was:" >&5
26099 sed 's/^/| /' conftest.$ac_ext >&5
26100
26101         ac_lo=`expr $ac_mid + 1`
26102                         if test $ac_lo -le $ac_mid; then
26103                           ac_lo= ac_hi=
26104                           break
26105                         fi
26106                         ac_mid=`expr 2 '*' $ac_mid + 1`
26107 fi
26108
26109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26110   done
26111 else
26112   $as_echo "$as_me: failed program was:" >&5
26113 sed 's/^/| /' conftest.$ac_ext >&5
26114
26115         cat >conftest.$ac_ext <<_ACEOF
26116 /* confdefs.h.  */
26117 _ACEOF
26118 cat confdefs.h >>conftest.$ac_ext
26119 cat >>conftest.$ac_ext <<_ACEOF
26120 /* end confdefs.h.  */
26121 $ac_includes_default
26122 #ifndef offsetof
26123 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26124 #endif
26125 typedef struct { char x; int y; } ac__type_alignof_;
26126 int
26127 main ()
26128 {
26129 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26130 test_array [0] = 0
26131
26132   ;
26133   return 0;
26134 }
26135 _ACEOF
26136 rm -f conftest.$ac_objext
26137 if { (ac_try="$ac_compile"
26138 case "(($ac_try" in
26139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26140   *) ac_try_echo=$ac_try;;
26141 esac
26142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26143 $as_echo "$ac_try_echo") >&5
26144   (eval "$ac_compile") 2>conftest.er1
26145   ac_status=$?
26146   grep -v '^ *+' conftest.er1 >conftest.err
26147   rm -f conftest.er1
26148   cat conftest.err >&5
26149   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26150   (exit $ac_status); } && {
26151          test -z "$ac_c_werror_flag" ||
26152          test ! -s conftest.err
26153        } && test -s conftest.$ac_objext; then
26154   ac_hi=-1 ac_mid=-1
26155   while :; do
26156     cat >conftest.$ac_ext <<_ACEOF
26157 /* confdefs.h.  */
26158 _ACEOF
26159 cat confdefs.h >>conftest.$ac_ext
26160 cat >>conftest.$ac_ext <<_ACEOF
26161 /* end confdefs.h.  */
26162 $ac_includes_default
26163 #ifndef offsetof
26164 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26165 #endif
26166 typedef struct { char x; int y; } ac__type_alignof_;
26167 int
26168 main ()
26169 {
26170 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26171 test_array [0] = 0
26172
26173   ;
26174   return 0;
26175 }
26176 _ACEOF
26177 rm -f conftest.$ac_objext
26178 if { (ac_try="$ac_compile"
26179 case "(($ac_try" in
26180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26181   *) ac_try_echo=$ac_try;;
26182 esac
26183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26184 $as_echo "$ac_try_echo") >&5
26185   (eval "$ac_compile") 2>conftest.er1
26186   ac_status=$?
26187   grep -v '^ *+' conftest.er1 >conftest.err
26188   rm -f conftest.er1
26189   cat conftest.err >&5
26190   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191   (exit $ac_status); } && {
26192          test -z "$ac_c_werror_flag" ||
26193          test ! -s conftest.err
26194        } && test -s conftest.$ac_objext; then
26195   ac_lo=$ac_mid; break
26196 else
26197   $as_echo "$as_me: failed program was:" >&5
26198 sed 's/^/| /' conftest.$ac_ext >&5
26199
26200         ac_hi=`expr '(' $ac_mid ')' - 1`
26201                         if test $ac_mid -le $ac_hi; then
26202                           ac_lo= ac_hi=
26203                           break
26204                         fi
26205                         ac_mid=`expr 2 '*' $ac_mid`
26206 fi
26207
26208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26209   done
26210 else
26211   $as_echo "$as_me: failed program was:" >&5
26212 sed 's/^/| /' conftest.$ac_ext >&5
26213
26214         ac_lo= ac_hi=
26215 fi
26216
26217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26218 fi
26219
26220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26221 # Binary search between lo and hi bounds.
26222 while test "x$ac_lo" != "x$ac_hi"; do
26223   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26224   cat >conftest.$ac_ext <<_ACEOF
26225 /* confdefs.h.  */
26226 _ACEOF
26227 cat confdefs.h >>conftest.$ac_ext
26228 cat >>conftest.$ac_ext <<_ACEOF
26229 /* end confdefs.h.  */
26230 $ac_includes_default
26231 #ifndef offsetof
26232 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26233 #endif
26234 typedef struct { char x; int y; } ac__type_alignof_;
26235 int
26236 main ()
26237 {
26238 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26239 test_array [0] = 0
26240
26241   ;
26242   return 0;
26243 }
26244 _ACEOF
26245 rm -f conftest.$ac_objext
26246 if { (ac_try="$ac_compile"
26247 case "(($ac_try" in
26248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26249   *) ac_try_echo=$ac_try;;
26250 esac
26251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26252 $as_echo "$ac_try_echo") >&5
26253   (eval "$ac_compile") 2>conftest.er1
26254   ac_status=$?
26255   grep -v '^ *+' conftest.er1 >conftest.err
26256   rm -f conftest.er1
26257   cat conftest.err >&5
26258   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259   (exit $ac_status); } && {
26260          test -z "$ac_c_werror_flag" ||
26261          test ! -s conftest.err
26262        } && test -s conftest.$ac_objext; then
26263   ac_hi=$ac_mid
26264 else
26265   $as_echo "$as_me: failed program was:" >&5
26266 sed 's/^/| /' conftest.$ac_ext >&5
26267
26268         ac_lo=`expr '(' $ac_mid ')' + 1`
26269 fi
26270
26271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26272 done
26273 case $ac_lo in
26274 ?*) ac_cv_alignof_int=$ac_lo;;
26275 '') if test "$ac_cv_type_int" = yes; then
26276      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26278 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26279 See \`config.log' for more details." >&5
26280 $as_echo "$as_me: error: cannot compute alignment of int
26281 See \`config.log' for more details." >&2;}
26282    { (exit 77); exit 77; }; }; }
26283    else
26284      ac_cv_alignof_int=0
26285    fi ;;
26286 esac
26287 else
26288   cat >conftest.$ac_ext <<_ACEOF
26289 /* confdefs.h.  */
26290 _ACEOF
26291 cat confdefs.h >>conftest.$ac_ext
26292 cat >>conftest.$ac_ext <<_ACEOF
26293 /* end confdefs.h.  */
26294 $ac_includes_default
26295 #ifndef offsetof
26296 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26297 #endif
26298 typedef struct { char x; int y; } ac__type_alignof_;
26299 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26300 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26301 #include <stdio.h>
26302 #include <stdlib.h>
26303 int
26304 main ()
26305 {
26306
26307   FILE *f = fopen ("conftest.val", "w");
26308   if (! f)
26309     return 1;
26310   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26311     {
26312       long int i = longval ();
26313       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26314         return 1;
26315       fprintf (f, "%ld", i);
26316     }
26317   else
26318     {
26319       unsigned long int i = ulongval ();
26320       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26321         return 1;
26322       fprintf (f, "%lu", i);
26323     }
26324   /* Do not output a trailing newline, as this causes \r\n confusion
26325      on some platforms.  */
26326   return ferror (f) || fclose (f) != 0;
26327
26328   ;
26329   return 0;
26330 }
26331 _ACEOF
26332 rm -f conftest$ac_exeext
26333 if { (ac_try="$ac_link"
26334 case "(($ac_try" in
26335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26336   *) ac_try_echo=$ac_try;;
26337 esac
26338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26339 $as_echo "$ac_try_echo") >&5
26340   (eval "$ac_link") 2>&5
26341   ac_status=$?
26342   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26343   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26344   { (case "(($ac_try" in
26345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26346   *) ac_try_echo=$ac_try;;
26347 esac
26348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26349 $as_echo "$ac_try_echo") >&5
26350   (eval "$ac_try") 2>&5
26351   ac_status=$?
26352   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26353   (exit $ac_status); }; }; then
26354   ac_cv_alignof_int=`cat conftest.val`
26355 else
26356   $as_echo "$as_me: program exited with status $ac_status" >&5
26357 $as_echo "$as_me: failed program was:" >&5
26358 sed 's/^/| /' conftest.$ac_ext >&5
26359
26360 ( exit $ac_status )
26361 if test "$ac_cv_type_int" = yes; then
26362      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26364 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26365 See \`config.log' for more details." >&5
26366 $as_echo "$as_me: error: cannot compute alignment of int
26367 See \`config.log' for more details." >&2;}
26368    { (exit 77); exit 77; }; }; }
26369    else
26370      ac_cv_alignof_int=0
26371    fi
26372 fi
26373 rm -rf conftest.dSYM
26374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26375 fi
26376 rm -f conftest.val
26377 fi
26378 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
26379 $as_echo "$ac_cv_alignof_int" >&6; }
26380
26381
26382
26383 cat >>confdefs.h <<_ACEOF
26384 #define ALIGNOF_INT $ac_cv_alignof_int
26385 _ACEOF
26386
26387
26388 # The cast to long int works around a bug in the HP C Compiler,
26389 # see AC_CHECK_SIZEOF for more information.
26390 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
26391 $as_echo_n "checking alignment of long... " >&6; }
26392 if test "${ac_cv_alignof_long+set}" = set; then
26393   $as_echo_n "(cached) " >&6
26394 else
26395   if test "$cross_compiling" = yes; then
26396   # Depending upon the size, compute the lo and hi bounds.
26397 cat >conftest.$ac_ext <<_ACEOF
26398 /* confdefs.h.  */
26399 _ACEOF
26400 cat confdefs.h >>conftest.$ac_ext
26401 cat >>conftest.$ac_ext <<_ACEOF
26402 /* end confdefs.h.  */
26403 $ac_includes_default
26404 #ifndef offsetof
26405 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26406 #endif
26407 typedef struct { char x; long y; } ac__type_alignof_;
26408 int
26409 main ()
26410 {
26411 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26412 test_array [0] = 0
26413
26414   ;
26415   return 0;
26416 }
26417 _ACEOF
26418 rm -f conftest.$ac_objext
26419 if { (ac_try="$ac_compile"
26420 case "(($ac_try" in
26421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26422   *) ac_try_echo=$ac_try;;
26423 esac
26424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26425 $as_echo "$ac_try_echo") >&5
26426   (eval "$ac_compile") 2>conftest.er1
26427   ac_status=$?
26428   grep -v '^ *+' conftest.er1 >conftest.err
26429   rm -f conftest.er1
26430   cat conftest.err >&5
26431   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26432   (exit $ac_status); } && {
26433          test -z "$ac_c_werror_flag" ||
26434          test ! -s conftest.err
26435        } && test -s conftest.$ac_objext; then
26436   ac_lo=0 ac_mid=0
26437   while :; do
26438     cat >conftest.$ac_ext <<_ACEOF
26439 /* confdefs.h.  */
26440 _ACEOF
26441 cat confdefs.h >>conftest.$ac_ext
26442 cat >>conftest.$ac_ext <<_ACEOF
26443 /* end confdefs.h.  */
26444 $ac_includes_default
26445 #ifndef offsetof
26446 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26447 #endif
26448 typedef struct { char x; long y; } ac__type_alignof_;
26449 int
26450 main ()
26451 {
26452 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26453 test_array [0] = 0
26454
26455   ;
26456   return 0;
26457 }
26458 _ACEOF
26459 rm -f conftest.$ac_objext
26460 if { (ac_try="$ac_compile"
26461 case "(($ac_try" in
26462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26463   *) ac_try_echo=$ac_try;;
26464 esac
26465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26466 $as_echo "$ac_try_echo") >&5
26467   (eval "$ac_compile") 2>conftest.er1
26468   ac_status=$?
26469   grep -v '^ *+' conftest.er1 >conftest.err
26470   rm -f conftest.er1
26471   cat conftest.err >&5
26472   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26473   (exit $ac_status); } && {
26474          test -z "$ac_c_werror_flag" ||
26475          test ! -s conftest.err
26476        } && test -s conftest.$ac_objext; then
26477   ac_hi=$ac_mid; break
26478 else
26479   $as_echo "$as_me: failed program was:" >&5
26480 sed 's/^/| /' conftest.$ac_ext >&5
26481
26482         ac_lo=`expr $ac_mid + 1`
26483                         if test $ac_lo -le $ac_mid; then
26484                           ac_lo= ac_hi=
26485                           break
26486                         fi
26487                         ac_mid=`expr 2 '*' $ac_mid + 1`
26488 fi
26489
26490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26491   done
26492 else
26493   $as_echo "$as_me: failed program was:" >&5
26494 sed 's/^/| /' conftest.$ac_ext >&5
26495
26496         cat >conftest.$ac_ext <<_ACEOF
26497 /* confdefs.h.  */
26498 _ACEOF
26499 cat confdefs.h >>conftest.$ac_ext
26500 cat >>conftest.$ac_ext <<_ACEOF
26501 /* end confdefs.h.  */
26502 $ac_includes_default
26503 #ifndef offsetof
26504 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26505 #endif
26506 typedef struct { char x; long y; } ac__type_alignof_;
26507 int
26508 main ()
26509 {
26510 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26511 test_array [0] = 0
26512
26513   ;
26514   return 0;
26515 }
26516 _ACEOF
26517 rm -f conftest.$ac_objext
26518 if { (ac_try="$ac_compile"
26519 case "(($ac_try" in
26520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26521   *) ac_try_echo=$ac_try;;
26522 esac
26523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26524 $as_echo "$ac_try_echo") >&5
26525   (eval "$ac_compile") 2>conftest.er1
26526   ac_status=$?
26527   grep -v '^ *+' conftest.er1 >conftest.err
26528   rm -f conftest.er1
26529   cat conftest.err >&5
26530   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26531   (exit $ac_status); } && {
26532          test -z "$ac_c_werror_flag" ||
26533          test ! -s conftest.err
26534        } && test -s conftest.$ac_objext; then
26535   ac_hi=-1 ac_mid=-1
26536   while :; do
26537     cat >conftest.$ac_ext <<_ACEOF
26538 /* confdefs.h.  */
26539 _ACEOF
26540 cat confdefs.h >>conftest.$ac_ext
26541 cat >>conftest.$ac_ext <<_ACEOF
26542 /* end confdefs.h.  */
26543 $ac_includes_default
26544 #ifndef offsetof
26545 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26546 #endif
26547 typedef struct { char x; long y; } ac__type_alignof_;
26548 int
26549 main ()
26550 {
26551 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26552 test_array [0] = 0
26553
26554   ;
26555   return 0;
26556 }
26557 _ACEOF
26558 rm -f conftest.$ac_objext
26559 if { (ac_try="$ac_compile"
26560 case "(($ac_try" in
26561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26562   *) ac_try_echo=$ac_try;;
26563 esac
26564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26565 $as_echo "$ac_try_echo") >&5
26566   (eval "$ac_compile") 2>conftest.er1
26567   ac_status=$?
26568   grep -v '^ *+' conftest.er1 >conftest.err
26569   rm -f conftest.er1
26570   cat conftest.err >&5
26571   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26572   (exit $ac_status); } && {
26573          test -z "$ac_c_werror_flag" ||
26574          test ! -s conftest.err
26575        } && test -s conftest.$ac_objext; then
26576   ac_lo=$ac_mid; break
26577 else
26578   $as_echo "$as_me: failed program was:" >&5
26579 sed 's/^/| /' conftest.$ac_ext >&5
26580
26581         ac_hi=`expr '(' $ac_mid ')' - 1`
26582                         if test $ac_mid -le $ac_hi; then
26583                           ac_lo= ac_hi=
26584                           break
26585                         fi
26586                         ac_mid=`expr 2 '*' $ac_mid`
26587 fi
26588
26589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26590   done
26591 else
26592   $as_echo "$as_me: failed program was:" >&5
26593 sed 's/^/| /' conftest.$ac_ext >&5
26594
26595         ac_lo= ac_hi=
26596 fi
26597
26598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26599 fi
26600
26601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26602 # Binary search between lo and hi bounds.
26603 while test "x$ac_lo" != "x$ac_hi"; do
26604   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26605   cat >conftest.$ac_ext <<_ACEOF
26606 /* confdefs.h.  */
26607 _ACEOF
26608 cat confdefs.h >>conftest.$ac_ext
26609 cat >>conftest.$ac_ext <<_ACEOF
26610 /* end confdefs.h.  */
26611 $ac_includes_default
26612 #ifndef offsetof
26613 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26614 #endif
26615 typedef struct { char x; long y; } ac__type_alignof_;
26616 int
26617 main ()
26618 {
26619 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26620 test_array [0] = 0
26621
26622   ;
26623   return 0;
26624 }
26625 _ACEOF
26626 rm -f conftest.$ac_objext
26627 if { (ac_try="$ac_compile"
26628 case "(($ac_try" in
26629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26630   *) ac_try_echo=$ac_try;;
26631 esac
26632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26633 $as_echo "$ac_try_echo") >&5
26634   (eval "$ac_compile") 2>conftest.er1
26635   ac_status=$?
26636   grep -v '^ *+' conftest.er1 >conftest.err
26637   rm -f conftest.er1
26638   cat conftest.err >&5
26639   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26640   (exit $ac_status); } && {
26641          test -z "$ac_c_werror_flag" ||
26642          test ! -s conftest.err
26643        } && test -s conftest.$ac_objext; then
26644   ac_hi=$ac_mid
26645 else
26646   $as_echo "$as_me: failed program was:" >&5
26647 sed 's/^/| /' conftest.$ac_ext >&5
26648
26649         ac_lo=`expr '(' $ac_mid ')' + 1`
26650 fi
26651
26652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26653 done
26654 case $ac_lo in
26655 ?*) ac_cv_alignof_long=$ac_lo;;
26656 '') if test "$ac_cv_type_long" = yes; then
26657      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26659 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26660 See \`config.log' for more details." >&5
26661 $as_echo "$as_me: error: cannot compute alignment of long
26662 See \`config.log' for more details." >&2;}
26663    { (exit 77); exit 77; }; }; }
26664    else
26665      ac_cv_alignof_long=0
26666    fi ;;
26667 esac
26668 else
26669   cat >conftest.$ac_ext <<_ACEOF
26670 /* confdefs.h.  */
26671 _ACEOF
26672 cat confdefs.h >>conftest.$ac_ext
26673 cat >>conftest.$ac_ext <<_ACEOF
26674 /* end confdefs.h.  */
26675 $ac_includes_default
26676 #ifndef offsetof
26677 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26678 #endif
26679 typedef struct { char x; long y; } ac__type_alignof_;
26680 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26681 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26682 #include <stdio.h>
26683 #include <stdlib.h>
26684 int
26685 main ()
26686 {
26687
26688   FILE *f = fopen ("conftest.val", "w");
26689   if (! f)
26690     return 1;
26691   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26692     {
26693       long int i = longval ();
26694       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26695         return 1;
26696       fprintf (f, "%ld", i);
26697     }
26698   else
26699     {
26700       unsigned long int i = ulongval ();
26701       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26702         return 1;
26703       fprintf (f, "%lu", i);
26704     }
26705   /* Do not output a trailing newline, as this causes \r\n confusion
26706      on some platforms.  */
26707   return ferror (f) || fclose (f) != 0;
26708
26709   ;
26710   return 0;
26711 }
26712 _ACEOF
26713 rm -f conftest$ac_exeext
26714 if { (ac_try="$ac_link"
26715 case "(($ac_try" in
26716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26717   *) ac_try_echo=$ac_try;;
26718 esac
26719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26720 $as_echo "$ac_try_echo") >&5
26721   (eval "$ac_link") 2>&5
26722   ac_status=$?
26723   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26724   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26725   { (case "(($ac_try" in
26726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26727   *) ac_try_echo=$ac_try;;
26728 esac
26729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26730 $as_echo "$ac_try_echo") >&5
26731   (eval "$ac_try") 2>&5
26732   ac_status=$?
26733   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26734   (exit $ac_status); }; }; then
26735   ac_cv_alignof_long=`cat conftest.val`
26736 else
26737   $as_echo "$as_me: program exited with status $ac_status" >&5
26738 $as_echo "$as_me: failed program was:" >&5
26739 sed 's/^/| /' conftest.$ac_ext >&5
26740
26741 ( exit $ac_status )
26742 if test "$ac_cv_type_long" = yes; then
26743      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26745 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26746 See \`config.log' for more details." >&5
26747 $as_echo "$as_me: error: cannot compute alignment of long
26748 See \`config.log' for more details." >&2;}
26749    { (exit 77); exit 77; }; }; }
26750    else
26751      ac_cv_alignof_long=0
26752    fi
26753 fi
26754 rm -rf conftest.dSYM
26755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26756 fi
26757 rm -f conftest.val
26758 fi
26759 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
26760 $as_echo "$ac_cv_alignof_long" >&6; }
26761
26762
26763
26764 cat >>confdefs.h <<_ACEOF
26765 #define ALIGNOF_LONG $ac_cv_alignof_long
26766 _ACEOF
26767
26768
26769 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
26770   # The cast to long int works around a bug in the HP C Compiler,
26771 # see AC_CHECK_SIZEOF for more information.
26772 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
26773 $as_echo_n "checking alignment of long long int... " >&6; }
26774 if test "${ac_cv_alignof_long_long_int+set}" = set; then
26775   $as_echo_n "(cached) " >&6
26776 else
26777   if test "$cross_compiling" = yes; then
26778   # Depending upon the size, compute the lo and hi bounds.
26779 cat >conftest.$ac_ext <<_ACEOF
26780 /* confdefs.h.  */
26781 _ACEOF
26782 cat confdefs.h >>conftest.$ac_ext
26783 cat >>conftest.$ac_ext <<_ACEOF
26784 /* end confdefs.h.  */
26785 $ac_includes_default
26786 #ifndef offsetof
26787 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26788 #endif
26789 typedef struct { char x; long long int y; } ac__type_alignof_;
26790 int
26791 main ()
26792 {
26793 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26794 test_array [0] = 0
26795
26796   ;
26797   return 0;
26798 }
26799 _ACEOF
26800 rm -f conftest.$ac_objext
26801 if { (ac_try="$ac_compile"
26802 case "(($ac_try" in
26803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26804   *) ac_try_echo=$ac_try;;
26805 esac
26806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26807 $as_echo "$ac_try_echo") >&5
26808   (eval "$ac_compile") 2>conftest.er1
26809   ac_status=$?
26810   grep -v '^ *+' conftest.er1 >conftest.err
26811   rm -f conftest.er1
26812   cat conftest.err >&5
26813   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26814   (exit $ac_status); } && {
26815          test -z "$ac_c_werror_flag" ||
26816          test ! -s conftest.err
26817        } && test -s conftest.$ac_objext; then
26818   ac_lo=0 ac_mid=0
26819   while :; do
26820     cat >conftest.$ac_ext <<_ACEOF
26821 /* confdefs.h.  */
26822 _ACEOF
26823 cat confdefs.h >>conftest.$ac_ext
26824 cat >>conftest.$ac_ext <<_ACEOF
26825 /* end confdefs.h.  */
26826 $ac_includes_default
26827 #ifndef offsetof
26828 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26829 #endif
26830 typedef struct { char x; long long int y; } ac__type_alignof_;
26831 int
26832 main ()
26833 {
26834 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26835 test_array [0] = 0
26836
26837   ;
26838   return 0;
26839 }
26840 _ACEOF
26841 rm -f conftest.$ac_objext
26842 if { (ac_try="$ac_compile"
26843 case "(($ac_try" in
26844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26845   *) ac_try_echo=$ac_try;;
26846 esac
26847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26848 $as_echo "$ac_try_echo") >&5
26849   (eval "$ac_compile") 2>conftest.er1
26850   ac_status=$?
26851   grep -v '^ *+' conftest.er1 >conftest.err
26852   rm -f conftest.er1
26853   cat conftest.err >&5
26854   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26855   (exit $ac_status); } && {
26856          test -z "$ac_c_werror_flag" ||
26857          test ! -s conftest.err
26858        } && test -s conftest.$ac_objext; then
26859   ac_hi=$ac_mid; break
26860 else
26861   $as_echo "$as_me: failed program was:" >&5
26862 sed 's/^/| /' conftest.$ac_ext >&5
26863
26864         ac_lo=`expr $ac_mid + 1`
26865                         if test $ac_lo -le $ac_mid; then
26866                           ac_lo= ac_hi=
26867                           break
26868                         fi
26869                         ac_mid=`expr 2 '*' $ac_mid + 1`
26870 fi
26871
26872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26873   done
26874 else
26875   $as_echo "$as_me: failed program was:" >&5
26876 sed 's/^/| /' conftest.$ac_ext >&5
26877
26878         cat >conftest.$ac_ext <<_ACEOF
26879 /* confdefs.h.  */
26880 _ACEOF
26881 cat confdefs.h >>conftest.$ac_ext
26882 cat >>conftest.$ac_ext <<_ACEOF
26883 /* end confdefs.h.  */
26884 $ac_includes_default
26885 #ifndef offsetof
26886 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26887 #endif
26888 typedef struct { char x; long long int y; } ac__type_alignof_;
26889 int
26890 main ()
26891 {
26892 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26893 test_array [0] = 0
26894
26895   ;
26896   return 0;
26897 }
26898 _ACEOF
26899 rm -f conftest.$ac_objext
26900 if { (ac_try="$ac_compile"
26901 case "(($ac_try" in
26902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26903   *) ac_try_echo=$ac_try;;
26904 esac
26905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26906 $as_echo "$ac_try_echo") >&5
26907   (eval "$ac_compile") 2>conftest.er1
26908   ac_status=$?
26909   grep -v '^ *+' conftest.er1 >conftest.err
26910   rm -f conftest.er1
26911   cat conftest.err >&5
26912   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913   (exit $ac_status); } && {
26914          test -z "$ac_c_werror_flag" ||
26915          test ! -s conftest.err
26916        } && test -s conftest.$ac_objext; then
26917   ac_hi=-1 ac_mid=-1
26918   while :; do
26919     cat >conftest.$ac_ext <<_ACEOF
26920 /* confdefs.h.  */
26921 _ACEOF
26922 cat confdefs.h >>conftest.$ac_ext
26923 cat >>conftest.$ac_ext <<_ACEOF
26924 /* end confdefs.h.  */
26925 $ac_includes_default
26926 #ifndef offsetof
26927 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26928 #endif
26929 typedef struct { char x; long long int y; } ac__type_alignof_;
26930 int
26931 main ()
26932 {
26933 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26934 test_array [0] = 0
26935
26936   ;
26937   return 0;
26938 }
26939 _ACEOF
26940 rm -f conftest.$ac_objext
26941 if { (ac_try="$ac_compile"
26942 case "(($ac_try" in
26943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26944   *) ac_try_echo=$ac_try;;
26945 esac
26946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26947 $as_echo "$ac_try_echo") >&5
26948   (eval "$ac_compile") 2>conftest.er1
26949   ac_status=$?
26950   grep -v '^ *+' conftest.er1 >conftest.err
26951   rm -f conftest.er1
26952   cat conftest.err >&5
26953   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954   (exit $ac_status); } && {
26955          test -z "$ac_c_werror_flag" ||
26956          test ! -s conftest.err
26957        } && test -s conftest.$ac_objext; then
26958   ac_lo=$ac_mid; break
26959 else
26960   $as_echo "$as_me: failed program was:" >&5
26961 sed 's/^/| /' conftest.$ac_ext >&5
26962
26963         ac_hi=`expr '(' $ac_mid ')' - 1`
26964                         if test $ac_mid -le $ac_hi; then
26965                           ac_lo= ac_hi=
26966                           break
26967                         fi
26968                         ac_mid=`expr 2 '*' $ac_mid`
26969 fi
26970
26971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26972   done
26973 else
26974   $as_echo "$as_me: failed program was:" >&5
26975 sed 's/^/| /' conftest.$ac_ext >&5
26976
26977         ac_lo= ac_hi=
26978 fi
26979
26980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26981 fi
26982
26983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26984 # Binary search between lo and hi bounds.
26985 while test "x$ac_lo" != "x$ac_hi"; do
26986   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26987   cat >conftest.$ac_ext <<_ACEOF
26988 /* confdefs.h.  */
26989 _ACEOF
26990 cat confdefs.h >>conftest.$ac_ext
26991 cat >>conftest.$ac_ext <<_ACEOF
26992 /* end confdefs.h.  */
26993 $ac_includes_default
26994 #ifndef offsetof
26995 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26996 #endif
26997 typedef struct { char x; long long int y; } ac__type_alignof_;
26998 int
26999 main ()
27000 {
27001 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27002 test_array [0] = 0
27003
27004   ;
27005   return 0;
27006 }
27007 _ACEOF
27008 rm -f conftest.$ac_objext
27009 if { (ac_try="$ac_compile"
27010 case "(($ac_try" in
27011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27012   *) ac_try_echo=$ac_try;;
27013 esac
27014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27015 $as_echo "$ac_try_echo") >&5
27016   (eval "$ac_compile") 2>conftest.er1
27017   ac_status=$?
27018   grep -v '^ *+' conftest.er1 >conftest.err
27019   rm -f conftest.er1
27020   cat conftest.err >&5
27021   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27022   (exit $ac_status); } && {
27023          test -z "$ac_c_werror_flag" ||
27024          test ! -s conftest.err
27025        } && test -s conftest.$ac_objext; then
27026   ac_hi=$ac_mid
27027 else
27028   $as_echo "$as_me: failed program was:" >&5
27029 sed 's/^/| /' conftest.$ac_ext >&5
27030
27031         ac_lo=`expr '(' $ac_mid ')' + 1`
27032 fi
27033
27034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27035 done
27036 case $ac_lo in
27037 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
27038 '') if test "$ac_cv_type_long_long_int" = yes; then
27039      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27041 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27042 See \`config.log' for more details." >&5
27043 $as_echo "$as_me: error: cannot compute alignment of long long int
27044 See \`config.log' for more details." >&2;}
27045    { (exit 77); exit 77; }; }; }
27046    else
27047      ac_cv_alignof_long_long_int=0
27048    fi ;;
27049 esac
27050 else
27051   cat >conftest.$ac_ext <<_ACEOF
27052 /* confdefs.h.  */
27053 _ACEOF
27054 cat confdefs.h >>conftest.$ac_ext
27055 cat >>conftest.$ac_ext <<_ACEOF
27056 /* end confdefs.h.  */
27057 $ac_includes_default
27058 #ifndef offsetof
27059 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27060 #endif
27061 typedef struct { char x; long long int y; } ac__type_alignof_;
27062 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27063 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27064 #include <stdio.h>
27065 #include <stdlib.h>
27066 int
27067 main ()
27068 {
27069
27070   FILE *f = fopen ("conftest.val", "w");
27071   if (! f)
27072     return 1;
27073   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27074     {
27075       long int i = longval ();
27076       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27077         return 1;
27078       fprintf (f, "%ld", i);
27079     }
27080   else
27081     {
27082       unsigned long int i = ulongval ();
27083       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27084         return 1;
27085       fprintf (f, "%lu", i);
27086     }
27087   /* Do not output a trailing newline, as this causes \r\n confusion
27088      on some platforms.  */
27089   return ferror (f) || fclose (f) != 0;
27090
27091   ;
27092   return 0;
27093 }
27094 _ACEOF
27095 rm -f conftest$ac_exeext
27096 if { (ac_try="$ac_link"
27097 case "(($ac_try" in
27098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27099   *) ac_try_echo=$ac_try;;
27100 esac
27101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27102 $as_echo "$ac_try_echo") >&5
27103   (eval "$ac_link") 2>&5
27104   ac_status=$?
27105   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27106   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27107   { (case "(($ac_try" in
27108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27109   *) ac_try_echo=$ac_try;;
27110 esac
27111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27112 $as_echo "$ac_try_echo") >&5
27113   (eval "$ac_try") 2>&5
27114   ac_status=$?
27115   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27116   (exit $ac_status); }; }; then
27117   ac_cv_alignof_long_long_int=`cat conftest.val`
27118 else
27119   $as_echo "$as_me: program exited with status $ac_status" >&5
27120 $as_echo "$as_me: failed program was:" >&5
27121 sed 's/^/| /' conftest.$ac_ext >&5
27122
27123 ( exit $ac_status )
27124 if test "$ac_cv_type_long_long_int" = yes; then
27125      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27127 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27128 See \`config.log' for more details." >&5
27129 $as_echo "$as_me: error: cannot compute alignment of long long int
27130 See \`config.log' for more details." >&2;}
27131    { (exit 77); exit 77; }; }; }
27132    else
27133      ac_cv_alignof_long_long_int=0
27134    fi
27135 fi
27136 rm -rf conftest.dSYM
27137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27138 fi
27139 rm -f conftest.val
27140 fi
27141 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
27142 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
27143
27144
27145
27146 cat >>confdefs.h <<_ACEOF
27147 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
27148 _ACEOF
27149
27150
27151 fi
27152 # The cast to long int works around a bug in the HP C Compiler,
27153 # see AC_CHECK_SIZEOF for more information.
27154 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
27155 $as_echo_n "checking alignment of double... " >&6; }
27156 if test "${ac_cv_alignof_double+set}" = set; then
27157   $as_echo_n "(cached) " >&6
27158 else
27159   if test "$cross_compiling" = yes; then
27160   # Depending upon the size, compute the lo and hi bounds.
27161 cat >conftest.$ac_ext <<_ACEOF
27162 /* confdefs.h.  */
27163 _ACEOF
27164 cat confdefs.h >>conftest.$ac_ext
27165 cat >>conftest.$ac_ext <<_ACEOF
27166 /* end confdefs.h.  */
27167 $ac_includes_default
27168 #ifndef offsetof
27169 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27170 #endif
27171 typedef struct { char x; double y; } ac__type_alignof_;
27172 int
27173 main ()
27174 {
27175 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27176 test_array [0] = 0
27177
27178   ;
27179   return 0;
27180 }
27181 _ACEOF
27182 rm -f conftest.$ac_objext
27183 if { (ac_try="$ac_compile"
27184 case "(($ac_try" in
27185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27186   *) ac_try_echo=$ac_try;;
27187 esac
27188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27189 $as_echo "$ac_try_echo") >&5
27190   (eval "$ac_compile") 2>conftest.er1
27191   ac_status=$?
27192   grep -v '^ *+' conftest.er1 >conftest.err
27193   rm -f conftest.er1
27194   cat conftest.err >&5
27195   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27196   (exit $ac_status); } && {
27197          test -z "$ac_c_werror_flag" ||
27198          test ! -s conftest.err
27199        } && test -s conftest.$ac_objext; then
27200   ac_lo=0 ac_mid=0
27201   while :; do
27202     cat >conftest.$ac_ext <<_ACEOF
27203 /* confdefs.h.  */
27204 _ACEOF
27205 cat confdefs.h >>conftest.$ac_ext
27206 cat >>conftest.$ac_ext <<_ACEOF
27207 /* end confdefs.h.  */
27208 $ac_includes_default
27209 #ifndef offsetof
27210 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27211 #endif
27212 typedef struct { char x; double y; } ac__type_alignof_;
27213 int
27214 main ()
27215 {
27216 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27217 test_array [0] = 0
27218
27219   ;
27220   return 0;
27221 }
27222 _ACEOF
27223 rm -f conftest.$ac_objext
27224 if { (ac_try="$ac_compile"
27225 case "(($ac_try" in
27226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27227   *) ac_try_echo=$ac_try;;
27228 esac
27229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27230 $as_echo "$ac_try_echo") >&5
27231   (eval "$ac_compile") 2>conftest.er1
27232   ac_status=$?
27233   grep -v '^ *+' conftest.er1 >conftest.err
27234   rm -f conftest.er1
27235   cat conftest.err >&5
27236   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27237   (exit $ac_status); } && {
27238          test -z "$ac_c_werror_flag" ||
27239          test ! -s conftest.err
27240        } && test -s conftest.$ac_objext; then
27241   ac_hi=$ac_mid; break
27242 else
27243   $as_echo "$as_me: failed program was:" >&5
27244 sed 's/^/| /' conftest.$ac_ext >&5
27245
27246         ac_lo=`expr $ac_mid + 1`
27247                         if test $ac_lo -le $ac_mid; then
27248                           ac_lo= ac_hi=
27249                           break
27250                         fi
27251                         ac_mid=`expr 2 '*' $ac_mid + 1`
27252 fi
27253
27254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27255   done
27256 else
27257   $as_echo "$as_me: failed program was:" >&5
27258 sed 's/^/| /' conftest.$ac_ext >&5
27259
27260         cat >conftest.$ac_ext <<_ACEOF
27261 /* confdefs.h.  */
27262 _ACEOF
27263 cat confdefs.h >>conftest.$ac_ext
27264 cat >>conftest.$ac_ext <<_ACEOF
27265 /* end confdefs.h.  */
27266 $ac_includes_default
27267 #ifndef offsetof
27268 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27269 #endif
27270 typedef struct { char x; double y; } ac__type_alignof_;
27271 int
27272 main ()
27273 {
27274 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27275 test_array [0] = 0
27276
27277   ;
27278   return 0;
27279 }
27280 _ACEOF
27281 rm -f conftest.$ac_objext
27282 if { (ac_try="$ac_compile"
27283 case "(($ac_try" in
27284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27285   *) ac_try_echo=$ac_try;;
27286 esac
27287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27288 $as_echo "$ac_try_echo") >&5
27289   (eval "$ac_compile") 2>conftest.er1
27290   ac_status=$?
27291   grep -v '^ *+' conftest.er1 >conftest.err
27292   rm -f conftest.er1
27293   cat conftest.err >&5
27294   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27295   (exit $ac_status); } && {
27296          test -z "$ac_c_werror_flag" ||
27297          test ! -s conftest.err
27298        } && test -s conftest.$ac_objext; then
27299   ac_hi=-1 ac_mid=-1
27300   while :; do
27301     cat >conftest.$ac_ext <<_ACEOF
27302 /* confdefs.h.  */
27303 _ACEOF
27304 cat confdefs.h >>conftest.$ac_ext
27305 cat >>conftest.$ac_ext <<_ACEOF
27306 /* end confdefs.h.  */
27307 $ac_includes_default
27308 #ifndef offsetof
27309 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27310 #endif
27311 typedef struct { char x; double y; } ac__type_alignof_;
27312 int
27313 main ()
27314 {
27315 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27316 test_array [0] = 0
27317
27318   ;
27319   return 0;
27320 }
27321 _ACEOF
27322 rm -f conftest.$ac_objext
27323 if { (ac_try="$ac_compile"
27324 case "(($ac_try" in
27325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27326   *) ac_try_echo=$ac_try;;
27327 esac
27328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27329 $as_echo "$ac_try_echo") >&5
27330   (eval "$ac_compile") 2>conftest.er1
27331   ac_status=$?
27332   grep -v '^ *+' conftest.er1 >conftest.err
27333   rm -f conftest.er1
27334   cat conftest.err >&5
27335   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27336   (exit $ac_status); } && {
27337          test -z "$ac_c_werror_flag" ||
27338          test ! -s conftest.err
27339        } && test -s conftest.$ac_objext; then
27340   ac_lo=$ac_mid; break
27341 else
27342   $as_echo "$as_me: failed program was:" >&5
27343 sed 's/^/| /' conftest.$ac_ext >&5
27344
27345         ac_hi=`expr '(' $ac_mid ')' - 1`
27346                         if test $ac_mid -le $ac_hi; then
27347                           ac_lo= ac_hi=
27348                           break
27349                         fi
27350                         ac_mid=`expr 2 '*' $ac_mid`
27351 fi
27352
27353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27354   done
27355 else
27356   $as_echo "$as_me: failed program was:" >&5
27357 sed 's/^/| /' conftest.$ac_ext >&5
27358
27359         ac_lo= ac_hi=
27360 fi
27361
27362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27363 fi
27364
27365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27366 # Binary search between lo and hi bounds.
27367 while test "x$ac_lo" != "x$ac_hi"; do
27368   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27369   cat >conftest.$ac_ext <<_ACEOF
27370 /* confdefs.h.  */
27371 _ACEOF
27372 cat confdefs.h >>conftest.$ac_ext
27373 cat >>conftest.$ac_ext <<_ACEOF
27374 /* end confdefs.h.  */
27375 $ac_includes_default
27376 #ifndef offsetof
27377 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27378 #endif
27379 typedef struct { char x; double y; } ac__type_alignof_;
27380 int
27381 main ()
27382 {
27383 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27384 test_array [0] = 0
27385
27386   ;
27387   return 0;
27388 }
27389 _ACEOF
27390 rm -f conftest.$ac_objext
27391 if { (ac_try="$ac_compile"
27392 case "(($ac_try" in
27393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27394   *) ac_try_echo=$ac_try;;
27395 esac
27396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27397 $as_echo "$ac_try_echo") >&5
27398   (eval "$ac_compile") 2>conftest.er1
27399   ac_status=$?
27400   grep -v '^ *+' conftest.er1 >conftest.err
27401   rm -f conftest.er1
27402   cat conftest.err >&5
27403   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27404   (exit $ac_status); } && {
27405          test -z "$ac_c_werror_flag" ||
27406          test ! -s conftest.err
27407        } && test -s conftest.$ac_objext; then
27408   ac_hi=$ac_mid
27409 else
27410   $as_echo "$as_me: failed program was:" >&5
27411 sed 's/^/| /' conftest.$ac_ext >&5
27412
27413         ac_lo=`expr '(' $ac_mid ')' + 1`
27414 fi
27415
27416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27417 done
27418 case $ac_lo in
27419 ?*) ac_cv_alignof_double=$ac_lo;;
27420 '') if test "$ac_cv_type_double" = yes; then
27421      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27423 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27424 See \`config.log' for more details." >&5
27425 $as_echo "$as_me: error: cannot compute alignment of double
27426 See \`config.log' for more details." >&2;}
27427    { (exit 77); exit 77; }; }; }
27428    else
27429      ac_cv_alignof_double=0
27430    fi ;;
27431 esac
27432 else
27433   cat >conftest.$ac_ext <<_ACEOF
27434 /* confdefs.h.  */
27435 _ACEOF
27436 cat confdefs.h >>conftest.$ac_ext
27437 cat >>conftest.$ac_ext <<_ACEOF
27438 /* end confdefs.h.  */
27439 $ac_includes_default
27440 #ifndef offsetof
27441 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27442 #endif
27443 typedef struct { char x; double y; } ac__type_alignof_;
27444 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27445 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27446 #include <stdio.h>
27447 #include <stdlib.h>
27448 int
27449 main ()
27450 {
27451
27452   FILE *f = fopen ("conftest.val", "w");
27453   if (! f)
27454     return 1;
27455   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27456     {
27457       long int i = longval ();
27458       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27459         return 1;
27460       fprintf (f, "%ld", i);
27461     }
27462   else
27463     {
27464       unsigned long int i = ulongval ();
27465       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27466         return 1;
27467       fprintf (f, "%lu", i);
27468     }
27469   /* Do not output a trailing newline, as this causes \r\n confusion
27470      on some platforms.  */
27471   return ferror (f) || fclose (f) != 0;
27472
27473   ;
27474   return 0;
27475 }
27476 _ACEOF
27477 rm -f conftest$ac_exeext
27478 if { (ac_try="$ac_link"
27479 case "(($ac_try" in
27480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27481   *) ac_try_echo=$ac_try;;
27482 esac
27483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27484 $as_echo "$ac_try_echo") >&5
27485   (eval "$ac_link") 2>&5
27486   ac_status=$?
27487   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27488   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27489   { (case "(($ac_try" in
27490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27491   *) ac_try_echo=$ac_try;;
27492 esac
27493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27494 $as_echo "$ac_try_echo") >&5
27495   (eval "$ac_try") 2>&5
27496   ac_status=$?
27497   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498   (exit $ac_status); }; }; then
27499   ac_cv_alignof_double=`cat conftest.val`
27500 else
27501   $as_echo "$as_me: program exited with status $ac_status" >&5
27502 $as_echo "$as_me: failed program was:" >&5
27503 sed 's/^/| /' conftest.$ac_ext >&5
27504
27505 ( exit $ac_status )
27506 if test "$ac_cv_type_double" = yes; then
27507      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27509 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27510 See \`config.log' for more details." >&5
27511 $as_echo "$as_me: error: cannot compute alignment of double
27512 See \`config.log' for more details." >&2;}
27513    { (exit 77); exit 77; }; }; }
27514    else
27515      ac_cv_alignof_double=0
27516    fi
27517 fi
27518 rm -rf conftest.dSYM
27519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27520 fi
27521 rm -f conftest.val
27522 fi
27523 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
27524 $as_echo "$ac_cv_alignof_double" >&6; }
27525
27526
27527
27528 cat >>confdefs.h <<_ACEOF
27529 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
27530 _ACEOF
27531
27532
27533
27534 # Compute maximum alignment of any basic type.
27535 # We assume long's alignment is at least as strong as char, short, or int;
27536 # but we must check long long (if it exists) and double.
27537
27538 MAX_ALIGNOF=$ac_cv_alignof_long
27539 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
27540   MAX_ALIGNOF=$ac_cv_alignof_double
27541 fi
27542 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
27543   MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
27544 fi
27545
27546 cat >>confdefs.h <<_ACEOF
27547 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
27548 _ACEOF
27549
27550
27551
27552 # Some platforms predefine the types int8, int16, etc.  Only check
27553 # a (hopefully) representative subset.
27554 { $as_echo "$as_me:$LINENO: checking for int8" >&5
27555 $as_echo_n "checking for int8... " >&6; }
27556 if test "${ac_cv_type_int8+set}" = set; then
27557   $as_echo_n "(cached) " >&6
27558 else
27559   ac_cv_type_int8=no
27560 cat >conftest.$ac_ext <<_ACEOF
27561 /* confdefs.h.  */
27562 _ACEOF
27563 cat confdefs.h >>conftest.$ac_ext
27564 cat >>conftest.$ac_ext <<_ACEOF
27565 /* end confdefs.h.  */
27566 #include <stdio.h>
27567 #ifdef HAVE_SUPPORTDEFS_H
27568 #include <SupportDefs.h>
27569 #endif
27570
27571 int
27572 main ()
27573 {
27574 if (sizeof (int8))
27575        return 0;
27576   ;
27577   return 0;
27578 }
27579 _ACEOF
27580 rm -f conftest.$ac_objext
27581 if { (ac_try="$ac_compile"
27582 case "(($ac_try" in
27583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27584   *) ac_try_echo=$ac_try;;
27585 esac
27586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27587 $as_echo "$ac_try_echo") >&5
27588   (eval "$ac_compile") 2>conftest.er1
27589   ac_status=$?
27590   grep -v '^ *+' conftest.er1 >conftest.err
27591   rm -f conftest.er1
27592   cat conftest.err >&5
27593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27594   (exit $ac_status); } && {
27595          test -z "$ac_c_werror_flag" ||
27596          test ! -s conftest.err
27597        } && test -s conftest.$ac_objext; then
27598   cat >conftest.$ac_ext <<_ACEOF
27599 /* confdefs.h.  */
27600 _ACEOF
27601 cat confdefs.h >>conftest.$ac_ext
27602 cat >>conftest.$ac_ext <<_ACEOF
27603 /* end confdefs.h.  */
27604 #include <stdio.h>
27605 #ifdef HAVE_SUPPORTDEFS_H
27606 #include <SupportDefs.h>
27607 #endif
27608
27609 int
27610 main ()
27611 {
27612 if (sizeof ((int8)))
27613           return 0;
27614   ;
27615   return 0;
27616 }
27617 _ACEOF
27618 rm -f conftest.$ac_objext
27619 if { (ac_try="$ac_compile"
27620 case "(($ac_try" in
27621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27622   *) ac_try_echo=$ac_try;;
27623 esac
27624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27625 $as_echo "$ac_try_echo") >&5
27626   (eval "$ac_compile") 2>conftest.er1
27627   ac_status=$?
27628   grep -v '^ *+' conftest.er1 >conftest.err
27629   rm -f conftest.er1
27630   cat conftest.err >&5
27631   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27632   (exit $ac_status); } && {
27633          test -z "$ac_c_werror_flag" ||
27634          test ! -s conftest.err
27635        } && test -s conftest.$ac_objext; then
27636   :
27637 else
27638   $as_echo "$as_me: failed program was:" >&5
27639 sed 's/^/| /' conftest.$ac_ext >&5
27640
27641         ac_cv_type_int8=yes
27642 fi
27643
27644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27645 else
27646   $as_echo "$as_me: failed program was:" >&5
27647 sed 's/^/| /' conftest.$ac_ext >&5
27648
27649
27650 fi
27651
27652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27653 fi
27654 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
27655 $as_echo "$ac_cv_type_int8" >&6; }
27656 if test "x$ac_cv_type_int8" = x""yes; then
27657
27658 cat >>confdefs.h <<_ACEOF
27659 #define HAVE_INT8 1
27660 _ACEOF
27661
27662
27663 fi
27664 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
27665 $as_echo_n "checking for uint8... " >&6; }
27666 if test "${ac_cv_type_uint8+set}" = set; then
27667   $as_echo_n "(cached) " >&6
27668 else
27669   ac_cv_type_uint8=no
27670 cat >conftest.$ac_ext <<_ACEOF
27671 /* confdefs.h.  */
27672 _ACEOF
27673 cat confdefs.h >>conftest.$ac_ext
27674 cat >>conftest.$ac_ext <<_ACEOF
27675 /* end confdefs.h.  */
27676 #include <stdio.h>
27677 #ifdef HAVE_SUPPORTDEFS_H
27678 #include <SupportDefs.h>
27679 #endif
27680
27681 int
27682 main ()
27683 {
27684 if (sizeof (uint8))
27685        return 0;
27686   ;
27687   return 0;
27688 }
27689 _ACEOF
27690 rm -f conftest.$ac_objext
27691 if { (ac_try="$ac_compile"
27692 case "(($ac_try" in
27693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27694   *) ac_try_echo=$ac_try;;
27695 esac
27696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27697 $as_echo "$ac_try_echo") >&5
27698   (eval "$ac_compile") 2>conftest.er1
27699   ac_status=$?
27700   grep -v '^ *+' conftest.er1 >conftest.err
27701   rm -f conftest.er1
27702   cat conftest.err >&5
27703   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27704   (exit $ac_status); } && {
27705          test -z "$ac_c_werror_flag" ||
27706          test ! -s conftest.err
27707        } && test -s conftest.$ac_objext; then
27708   cat >conftest.$ac_ext <<_ACEOF
27709 /* confdefs.h.  */
27710 _ACEOF
27711 cat confdefs.h >>conftest.$ac_ext
27712 cat >>conftest.$ac_ext <<_ACEOF
27713 /* end confdefs.h.  */
27714 #include <stdio.h>
27715 #ifdef HAVE_SUPPORTDEFS_H
27716 #include <SupportDefs.h>
27717 #endif
27718
27719 int
27720 main ()
27721 {
27722 if (sizeof ((uint8)))
27723           return 0;
27724   ;
27725   return 0;
27726 }
27727 _ACEOF
27728 rm -f conftest.$ac_objext
27729 if { (ac_try="$ac_compile"
27730 case "(($ac_try" in
27731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27732   *) ac_try_echo=$ac_try;;
27733 esac
27734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27735 $as_echo "$ac_try_echo") >&5
27736   (eval "$ac_compile") 2>conftest.er1
27737   ac_status=$?
27738   grep -v '^ *+' conftest.er1 >conftest.err
27739   rm -f conftest.er1
27740   cat conftest.err >&5
27741   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27742   (exit $ac_status); } && {
27743          test -z "$ac_c_werror_flag" ||
27744          test ! -s conftest.err
27745        } && test -s conftest.$ac_objext; then
27746   :
27747 else
27748   $as_echo "$as_me: failed program was:" >&5
27749 sed 's/^/| /' conftest.$ac_ext >&5
27750
27751         ac_cv_type_uint8=yes
27752 fi
27753
27754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27755 else
27756   $as_echo "$as_me: failed program was:" >&5
27757 sed 's/^/| /' conftest.$ac_ext >&5
27758
27759
27760 fi
27761
27762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27763 fi
27764 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
27765 $as_echo "$ac_cv_type_uint8" >&6; }
27766 if test "x$ac_cv_type_uint8" = x""yes; then
27767
27768 cat >>confdefs.h <<_ACEOF
27769 #define HAVE_UINT8 1
27770 _ACEOF
27771
27772
27773 fi
27774 { $as_echo "$as_me:$LINENO: checking for int64" >&5
27775 $as_echo_n "checking for int64... " >&6; }
27776 if test "${ac_cv_type_int64+set}" = set; then
27777   $as_echo_n "(cached) " >&6
27778 else
27779   ac_cv_type_int64=no
27780 cat >conftest.$ac_ext <<_ACEOF
27781 /* confdefs.h.  */
27782 _ACEOF
27783 cat confdefs.h >>conftest.$ac_ext
27784 cat >>conftest.$ac_ext <<_ACEOF
27785 /* end confdefs.h.  */
27786 #include <stdio.h>
27787 #ifdef HAVE_SUPPORTDEFS_H
27788 #include <SupportDefs.h>
27789 #endif
27790
27791 int
27792 main ()
27793 {
27794 if (sizeof (int64))
27795        return 0;
27796   ;
27797   return 0;
27798 }
27799 _ACEOF
27800 rm -f conftest.$ac_objext
27801 if { (ac_try="$ac_compile"
27802 case "(($ac_try" in
27803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27804   *) ac_try_echo=$ac_try;;
27805 esac
27806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27807 $as_echo "$ac_try_echo") >&5
27808   (eval "$ac_compile") 2>conftest.er1
27809   ac_status=$?
27810   grep -v '^ *+' conftest.er1 >conftest.err
27811   rm -f conftest.er1
27812   cat conftest.err >&5
27813   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27814   (exit $ac_status); } && {
27815          test -z "$ac_c_werror_flag" ||
27816          test ! -s conftest.err
27817        } && test -s conftest.$ac_objext; then
27818   cat >conftest.$ac_ext <<_ACEOF
27819 /* confdefs.h.  */
27820 _ACEOF
27821 cat confdefs.h >>conftest.$ac_ext
27822 cat >>conftest.$ac_ext <<_ACEOF
27823 /* end confdefs.h.  */
27824 #include <stdio.h>
27825 #ifdef HAVE_SUPPORTDEFS_H
27826 #include <SupportDefs.h>
27827 #endif
27828
27829 int
27830 main ()
27831 {
27832 if (sizeof ((int64)))
27833           return 0;
27834   ;
27835   return 0;
27836 }
27837 _ACEOF
27838 rm -f conftest.$ac_objext
27839 if { (ac_try="$ac_compile"
27840 case "(($ac_try" in
27841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27842   *) ac_try_echo=$ac_try;;
27843 esac
27844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27845 $as_echo "$ac_try_echo") >&5
27846   (eval "$ac_compile") 2>conftest.er1
27847   ac_status=$?
27848   grep -v '^ *+' conftest.er1 >conftest.err
27849   rm -f conftest.er1
27850   cat conftest.err >&5
27851   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27852   (exit $ac_status); } && {
27853          test -z "$ac_c_werror_flag" ||
27854          test ! -s conftest.err
27855        } && test -s conftest.$ac_objext; then
27856   :
27857 else
27858   $as_echo "$as_me: failed program was:" >&5
27859 sed 's/^/| /' conftest.$ac_ext >&5
27860
27861         ac_cv_type_int64=yes
27862 fi
27863
27864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27865 else
27866   $as_echo "$as_me: failed program was:" >&5
27867 sed 's/^/| /' conftest.$ac_ext >&5
27868
27869
27870 fi
27871
27872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27873 fi
27874 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
27875 $as_echo "$ac_cv_type_int64" >&6; }
27876 if test "x$ac_cv_type_int64" = x""yes; then
27877
27878 cat >>confdefs.h <<_ACEOF
27879 #define HAVE_INT64 1
27880 _ACEOF
27881
27882
27883 fi
27884 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
27885 $as_echo_n "checking for uint64... " >&6; }
27886 if test "${ac_cv_type_uint64+set}" = set; then
27887   $as_echo_n "(cached) " >&6
27888 else
27889   ac_cv_type_uint64=no
27890 cat >conftest.$ac_ext <<_ACEOF
27891 /* confdefs.h.  */
27892 _ACEOF
27893 cat confdefs.h >>conftest.$ac_ext
27894 cat >>conftest.$ac_ext <<_ACEOF
27895 /* end confdefs.h.  */
27896 #include <stdio.h>
27897 #ifdef HAVE_SUPPORTDEFS_H
27898 #include <SupportDefs.h>
27899 #endif
27900
27901 int
27902 main ()
27903 {
27904 if (sizeof (uint64))
27905        return 0;
27906   ;
27907   return 0;
27908 }
27909 _ACEOF
27910 rm -f conftest.$ac_objext
27911 if { (ac_try="$ac_compile"
27912 case "(($ac_try" in
27913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27914   *) ac_try_echo=$ac_try;;
27915 esac
27916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27917 $as_echo "$ac_try_echo") >&5
27918   (eval "$ac_compile") 2>conftest.er1
27919   ac_status=$?
27920   grep -v '^ *+' conftest.er1 >conftest.err
27921   rm -f conftest.er1
27922   cat conftest.err >&5
27923   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27924   (exit $ac_status); } && {
27925          test -z "$ac_c_werror_flag" ||
27926          test ! -s conftest.err
27927        } && test -s conftest.$ac_objext; then
27928   cat >conftest.$ac_ext <<_ACEOF
27929 /* confdefs.h.  */
27930 _ACEOF
27931 cat confdefs.h >>conftest.$ac_ext
27932 cat >>conftest.$ac_ext <<_ACEOF
27933 /* end confdefs.h.  */
27934 #include <stdio.h>
27935 #ifdef HAVE_SUPPORTDEFS_H
27936 #include <SupportDefs.h>
27937 #endif
27938
27939 int
27940 main ()
27941 {
27942 if (sizeof ((uint64)))
27943           return 0;
27944   ;
27945   return 0;
27946 }
27947 _ACEOF
27948 rm -f conftest.$ac_objext
27949 if { (ac_try="$ac_compile"
27950 case "(($ac_try" in
27951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27952   *) ac_try_echo=$ac_try;;
27953 esac
27954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27955 $as_echo "$ac_try_echo") >&5
27956   (eval "$ac_compile") 2>conftest.er1
27957   ac_status=$?
27958   grep -v '^ *+' conftest.er1 >conftest.err
27959   rm -f conftest.er1
27960   cat conftest.err >&5
27961   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27962   (exit $ac_status); } && {
27963          test -z "$ac_c_werror_flag" ||
27964          test ! -s conftest.err
27965        } && test -s conftest.$ac_objext; then
27966   :
27967 else
27968   $as_echo "$as_me: failed program was:" >&5
27969 sed 's/^/| /' conftest.$ac_ext >&5
27970
27971         ac_cv_type_uint64=yes
27972 fi
27973
27974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27975 else
27976   $as_echo "$as_me: failed program was:" >&5
27977 sed 's/^/| /' conftest.$ac_ext >&5
27978
27979
27980 fi
27981
27982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27983 fi
27984 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
27985 $as_echo "$ac_cv_type_uint64" >&6; }
27986 if test "x$ac_cv_type_uint64" = x""yes; then
27987
27988 cat >>confdefs.h <<_ACEOF
27989 #define HAVE_UINT64 1
27990 _ACEOF
27991
27992
27993 fi
27994
27995
27996 # We also check for sig_atomic_t, which *should* be defined per ANSI
27997 # C, but is missing on some old platforms.
27998 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
27999 $as_echo_n "checking for sig_atomic_t... " >&6; }
28000 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
28001   $as_echo_n "(cached) " >&6
28002 else
28003   ac_cv_type_sig_atomic_t=no
28004 cat >conftest.$ac_ext <<_ACEOF
28005 /* confdefs.h.  */
28006 _ACEOF
28007 cat confdefs.h >>conftest.$ac_ext
28008 cat >>conftest.$ac_ext <<_ACEOF
28009 /* end confdefs.h.  */
28010 #include <signal.h>
28011
28012 int
28013 main ()
28014 {
28015 if (sizeof (sig_atomic_t))
28016        return 0;
28017   ;
28018   return 0;
28019 }
28020 _ACEOF
28021 rm -f conftest.$ac_objext
28022 if { (ac_try="$ac_compile"
28023 case "(($ac_try" in
28024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28025   *) ac_try_echo=$ac_try;;
28026 esac
28027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28028 $as_echo "$ac_try_echo") >&5
28029   (eval "$ac_compile") 2>conftest.er1
28030   ac_status=$?
28031   grep -v '^ *+' conftest.er1 >conftest.err
28032   rm -f conftest.er1
28033   cat conftest.err >&5
28034   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28035   (exit $ac_status); } && {
28036          test -z "$ac_c_werror_flag" ||
28037          test ! -s conftest.err
28038        } && test -s conftest.$ac_objext; then
28039   cat >conftest.$ac_ext <<_ACEOF
28040 /* confdefs.h.  */
28041 _ACEOF
28042 cat confdefs.h >>conftest.$ac_ext
28043 cat >>conftest.$ac_ext <<_ACEOF
28044 /* end confdefs.h.  */
28045 #include <signal.h>
28046
28047 int
28048 main ()
28049 {
28050 if (sizeof ((sig_atomic_t)))
28051           return 0;
28052   ;
28053   return 0;
28054 }
28055 _ACEOF
28056 rm -f conftest.$ac_objext
28057 if { (ac_try="$ac_compile"
28058 case "(($ac_try" in
28059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28060   *) ac_try_echo=$ac_try;;
28061 esac
28062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28063 $as_echo "$ac_try_echo") >&5
28064   (eval "$ac_compile") 2>conftest.er1
28065   ac_status=$?
28066   grep -v '^ *+' conftest.er1 >conftest.err
28067   rm -f conftest.er1
28068   cat conftest.err >&5
28069   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28070   (exit $ac_status); } && {
28071          test -z "$ac_c_werror_flag" ||
28072          test ! -s conftest.err
28073        } && test -s conftest.$ac_objext; then
28074   :
28075 else
28076   $as_echo "$as_me: failed program was:" >&5
28077 sed 's/^/| /' conftest.$ac_ext >&5
28078
28079         ac_cv_type_sig_atomic_t=yes
28080 fi
28081
28082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28083 else
28084   $as_echo "$as_me: failed program was:" >&5
28085 sed 's/^/| /' conftest.$ac_ext >&5
28086
28087
28088 fi
28089
28090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28091 fi
28092 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
28093 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
28094 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
28095
28096 cat >>confdefs.h <<_ACEOF
28097 #define HAVE_SIG_ATOMIC_T 1
28098 _ACEOF
28099
28100
28101 fi
28102
28103
28104
28105 if test "$PORTNAME" != "win32"
28106 then
28107 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
28108 $as_echo_n "checking for POSIX signal interface... " >&6; }
28109 if test "${pgac_cv_func_posix_signals+set}" = set; then
28110   $as_echo_n "(cached) " >&6
28111 else
28112   cat >conftest.$ac_ext <<_ACEOF
28113 /* confdefs.h.  */
28114 _ACEOF
28115 cat confdefs.h >>conftest.$ac_ext
28116 cat >>conftest.$ac_ext <<_ACEOF
28117 /* end confdefs.h.  */
28118 #include <signal.h>
28119
28120 int
28121 main ()
28122 {
28123 struct sigaction act, oact;
28124 sigemptyset(&act.sa_mask);
28125 act.sa_flags = SA_RESTART;
28126 sigaction(0, &act, &oact);
28127   ;
28128   return 0;
28129 }
28130 _ACEOF
28131 rm -f conftest.$ac_objext conftest$ac_exeext
28132 if { (ac_try="$ac_link"
28133 case "(($ac_try" in
28134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28135   *) ac_try_echo=$ac_try;;
28136 esac
28137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28138 $as_echo "$ac_try_echo") >&5
28139   (eval "$ac_link") 2>conftest.er1
28140   ac_status=$?
28141   grep -v '^ *+' conftest.er1 >conftest.err
28142   rm -f conftest.er1
28143   cat conftest.err >&5
28144   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145   (exit $ac_status); } && {
28146          test -z "$ac_c_werror_flag" ||
28147          test ! -s conftest.err
28148        } && test -s conftest$ac_exeext && {
28149          test "$cross_compiling" = yes ||
28150          $as_test_x conftest$ac_exeext
28151        }; then
28152   pgac_cv_func_posix_signals=yes
28153 else
28154   $as_echo "$as_me: failed program was:" >&5
28155 sed 's/^/| /' conftest.$ac_ext >&5
28156
28157         pgac_cv_func_posix_signals=no
28158 fi
28159
28160 rm -rf conftest.dSYM
28161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28162       conftest$ac_exeext conftest.$ac_ext
28163 fi
28164 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
28165 $as_echo "$pgac_cv_func_posix_signals" >&6; }
28166 if test x"$pgac_cv_func_posix_signals" = xyes ; then
28167
28168 cat >>confdefs.h <<\_ACEOF
28169 #define HAVE_POSIX_SIGNALS /**/
28170 _ACEOF
28171
28172 fi
28173 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
28174
28175 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
28176   { { $as_echo "$as_me:$LINENO: error:
28177 Thread-safety requires POSIX signals, which are not supported by this
28178 operating system;  use --disable-thread-safety to disable thread safety." >&5
28179 $as_echo "$as_me: error:
28180 Thread-safety requires POSIX signals, which are not supported by this
28181 operating system;  use --disable-thread-safety to disable thread safety." >&2;}
28182    { (exit 1); exit 1; }; }
28183 fi
28184 fi
28185
28186 # SunOS doesn't handle negative byte comparisons properly with +/- return
28187 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
28188 $as_echo_n "checking for working memcmp... " >&6; }
28189 if test "${ac_cv_func_memcmp_working+set}" = set; then
28190   $as_echo_n "(cached) " >&6
28191 else
28192   if test "$cross_compiling" = yes; then
28193   ac_cv_func_memcmp_working=no
28194 else
28195   cat >conftest.$ac_ext <<_ACEOF
28196 /* confdefs.h.  */
28197 _ACEOF
28198 cat confdefs.h >>conftest.$ac_ext
28199 cat >>conftest.$ac_ext <<_ACEOF
28200 /* end confdefs.h.  */
28201 $ac_includes_default
28202 int
28203 main ()
28204 {
28205
28206   /* Some versions of memcmp are not 8-bit clean.  */
28207   char c0 = '\100', c1 = '\200', c2 = '\201';
28208   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
28209     return 1;
28210
28211   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
28212      or more and with at least one buffer not starting on a 4-byte boundary.
28213      William Lewis provided this test program.   */
28214   {
28215     char foo[21];
28216     char bar[21];
28217     int i;
28218     for (i = 0; i < 4; i++)
28219       {
28220         char *a = foo + i;
28221         char *b = bar + i;
28222         strcpy (a, "--------01111111");
28223         strcpy (b, "--------10000000");
28224         if (memcmp (a, b, 16) >= 0)
28225           return 1;
28226       }
28227     return 0;
28228   }
28229
28230   ;
28231   return 0;
28232 }
28233 _ACEOF
28234 rm -f conftest$ac_exeext
28235 if { (ac_try="$ac_link"
28236 case "(($ac_try" in
28237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28238   *) ac_try_echo=$ac_try;;
28239 esac
28240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28241 $as_echo "$ac_try_echo") >&5
28242   (eval "$ac_link") 2>&5
28243   ac_status=$?
28244   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28245   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28246   { (case "(($ac_try" in
28247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28248   *) ac_try_echo=$ac_try;;
28249 esac
28250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28251 $as_echo "$ac_try_echo") >&5
28252   (eval "$ac_try") 2>&5
28253   ac_status=$?
28254   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28255   (exit $ac_status); }; }; then
28256   ac_cv_func_memcmp_working=yes
28257 else
28258   $as_echo "$as_me: program exited with status $ac_status" >&5
28259 $as_echo "$as_me: failed program was:" >&5
28260 sed 's/^/| /' conftest.$ac_ext >&5
28261
28262 ( exit $ac_status )
28263 ac_cv_func_memcmp_working=no
28264 fi
28265 rm -rf conftest.dSYM
28266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28267 fi
28268
28269
28270 fi
28271 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
28272 $as_echo "$ac_cv_func_memcmp_working" >&6; }
28273 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
28274   *" memcmp.$ac_objext "* ) ;;
28275   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
28276  ;;
28277 esac
28278
28279
28280
28281
28282 # Select semaphore implementation type.
28283 if test "$PORTNAME" != "win32"; then
28284   if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
28285
28286 cat >>confdefs.h <<\_ACEOF
28287 #define USE_NAMED_POSIX_SEMAPHORES 1
28288 _ACEOF
28289
28290     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28291   else
28292     if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
28293
28294 cat >>confdefs.h <<\_ACEOF
28295 #define USE_UNNAMED_POSIX_SEMAPHORES 1
28296 _ACEOF
28297
28298       SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28299     else
28300
28301 cat >>confdefs.h <<\_ACEOF
28302 #define USE_SYSV_SEMAPHORES 1
28303 _ACEOF
28304
28305       SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
28306     fi
28307   fi
28308 else
28309
28310 cat >>confdefs.h <<\_ACEOF
28311 #define USE_WIN32_SEMAPHORES 1
28312 _ACEOF
28313
28314   SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
28315 fi
28316
28317
28318 # Select shared-memory implementation type.
28319 if test "$PORTNAME" != "win32"; then
28320
28321 cat >>confdefs.h <<\_ACEOF
28322 #define USE_SYSV_SHARED_MEMORY 1
28323 _ACEOF
28324
28325   SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
28326 else
28327
28328 cat >>confdefs.h <<\_ACEOF
28329 #define USE_WIN32_SHARED_MEMORY 1
28330 _ACEOF
28331
28332   SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
28333 fi
28334
28335 # Select latch implementation type.
28336 if test "$PORTNAME" != "win32"; then
28337   LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
28338 else
28339   LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
28340 fi
28341
28342 # If not set in template file, set bytes to use libc memset()
28343 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
28344   MEMSET_LOOP_LIMIT=1024
28345 fi
28346
28347 cat >>confdefs.h <<_ACEOF
28348 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
28349 _ACEOF
28350
28351
28352
28353 if test "$enable_nls" = yes ; then
28354
28355   { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
28356 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
28357 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28358   $as_echo_n "(cached) " >&6
28359 else
28360   ac_func_search_save_LIBS=$LIBS
28361 cat >conftest.$ac_ext <<_ACEOF
28362 /* confdefs.h.  */
28363 _ACEOF
28364 cat confdefs.h >>conftest.$ac_ext
28365 cat >>conftest.$ac_ext <<_ACEOF
28366 /* end confdefs.h.  */
28367
28368 /* Override any GCC internal prototype to avoid an error.
28369    Use char because int might match the return type of a GCC
28370    builtin and then its argument prototype would still apply.  */
28371 #ifdef __cplusplus
28372 extern "C"
28373 #endif
28374 char bind_textdomain_codeset ();
28375 int
28376 main ()
28377 {
28378 return bind_textdomain_codeset ();
28379   ;
28380   return 0;
28381 }
28382 _ACEOF
28383 for ac_lib in '' intl; do
28384   if test -z "$ac_lib"; then
28385     ac_res="none required"
28386   else
28387     ac_res=-l$ac_lib
28388     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28389   fi
28390   rm -f conftest.$ac_objext conftest$ac_exeext
28391 if { (ac_try="$ac_link"
28392 case "(($ac_try" in
28393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28394   *) ac_try_echo=$ac_try;;
28395 esac
28396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28397 $as_echo "$ac_try_echo") >&5
28398   (eval "$ac_link") 2>conftest.er1
28399   ac_status=$?
28400   grep -v '^ *+' conftest.er1 >conftest.err
28401   rm -f conftest.er1
28402   cat conftest.err >&5
28403   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28404   (exit $ac_status); } && {
28405          test -z "$ac_c_werror_flag" ||
28406          test ! -s conftest.err
28407        } && test -s conftest$ac_exeext && {
28408          test "$cross_compiling" = yes ||
28409          $as_test_x conftest$ac_exeext
28410        }; then
28411   ac_cv_search_bind_textdomain_codeset=$ac_res
28412 else
28413   $as_echo "$as_me: failed program was:" >&5
28414 sed 's/^/| /' conftest.$ac_ext >&5
28415
28416
28417 fi
28418
28419 rm -rf conftest.dSYM
28420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28421       conftest$ac_exeext
28422   if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28423   break
28424 fi
28425 done
28426 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28427   :
28428 else
28429   ac_cv_search_bind_textdomain_codeset=no
28430 fi
28431 rm conftest.$ac_ext
28432 LIBS=$ac_func_search_save_LIBS
28433 fi
28434 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
28435 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
28436 ac_res=$ac_cv_search_bind_textdomain_codeset
28437 if test "$ac_res" != no; then
28438   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28439
28440 else
28441   { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
28442 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
28443    { (exit 1); exit 1; }; }
28444 fi
28445
28446   if test "${ac_cv_header_libintl_h+set}" = set; then
28447   { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28448 $as_echo_n "checking for libintl.h... " >&6; }
28449 if test "${ac_cv_header_libintl_h+set}" = set; then
28450   $as_echo_n "(cached) " >&6
28451 fi
28452 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28453 $as_echo "$ac_cv_header_libintl_h" >&6; }
28454 else
28455   # Is the header compilable?
28456 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
28457 $as_echo_n "checking libintl.h usability... " >&6; }
28458 cat >conftest.$ac_ext <<_ACEOF
28459 /* confdefs.h.  */
28460 _ACEOF
28461 cat confdefs.h >>conftest.$ac_ext
28462 cat >>conftest.$ac_ext <<_ACEOF
28463 /* end confdefs.h.  */
28464 $ac_includes_default
28465 #include <libintl.h>
28466 _ACEOF
28467 rm -f conftest.$ac_objext
28468 if { (ac_try="$ac_compile"
28469 case "(($ac_try" in
28470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28471   *) ac_try_echo=$ac_try;;
28472 esac
28473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28474 $as_echo "$ac_try_echo") >&5
28475   (eval "$ac_compile") 2>conftest.er1
28476   ac_status=$?
28477   grep -v '^ *+' conftest.er1 >conftest.err
28478   rm -f conftest.er1
28479   cat conftest.err >&5
28480   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28481   (exit $ac_status); } && {
28482          test -z "$ac_c_werror_flag" ||
28483          test ! -s conftest.err
28484        } && test -s conftest.$ac_objext; then
28485   ac_header_compiler=yes
28486 else
28487   $as_echo "$as_me: failed program was:" >&5
28488 sed 's/^/| /' conftest.$ac_ext >&5
28489
28490         ac_header_compiler=no
28491 fi
28492
28493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28494 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28495 $as_echo "$ac_header_compiler" >&6; }
28496
28497 # Is the header present?
28498 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
28499 $as_echo_n "checking libintl.h presence... " >&6; }
28500 cat >conftest.$ac_ext <<_ACEOF
28501 /* confdefs.h.  */
28502 _ACEOF
28503 cat confdefs.h >>conftest.$ac_ext
28504 cat >>conftest.$ac_ext <<_ACEOF
28505 /* end confdefs.h.  */
28506 #include <libintl.h>
28507 _ACEOF
28508 if { (ac_try="$ac_cpp conftest.$ac_ext"
28509 case "(($ac_try" in
28510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28511   *) ac_try_echo=$ac_try;;
28512 esac
28513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28514 $as_echo "$ac_try_echo") >&5
28515   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28516   ac_status=$?
28517   grep -v '^ *+' conftest.er1 >conftest.err
28518   rm -f conftest.er1
28519   cat conftest.err >&5
28520   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28521   (exit $ac_status); } >/dev/null && {
28522          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28523          test ! -s conftest.err
28524        }; then
28525   ac_header_preproc=yes
28526 else
28527   $as_echo "$as_me: failed program was:" >&5
28528 sed 's/^/| /' conftest.$ac_ext >&5
28529
28530   ac_header_preproc=no
28531 fi
28532
28533 rm -f conftest.err conftest.$ac_ext
28534 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28535 $as_echo "$ac_header_preproc" >&6; }
28536
28537 # So?  What about this header?
28538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28539   yes:no: )
28540     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28541 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28542     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
28543 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
28544     ac_header_preproc=yes
28545     ;;
28546   no:yes:* )
28547     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
28548 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
28549     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
28550 $as_echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
28551     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
28552 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
28553     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
28554 $as_echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28555     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
28556 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
28557     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
28558 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
28559     ( cat <<\_ASBOX
28560 ## ---------------------------------------- ##
28561 ## Report this to pgsql-bugs@postgresql.org ##
28562 ## ---------------------------------------- ##
28563 _ASBOX
28564      ) | sed "s/^/$as_me: WARNING:     /" >&2
28565     ;;
28566 esac
28567 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28568 $as_echo_n "checking for libintl.h... " >&6; }
28569 if test "${ac_cv_header_libintl_h+set}" = set; then
28570   $as_echo_n "(cached) " >&6
28571 else
28572   ac_cv_header_libintl_h=$ac_header_preproc
28573 fi
28574 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28575 $as_echo "$ac_cv_header_libintl_h" >&6; }
28576
28577 fi
28578 if test "x$ac_cv_header_libintl_h" = x""yes; then
28579   :
28580 else
28581   { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
28582 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
28583    { (exit 1); exit 1; }; }
28584 fi
28585
28586
28587   for ac_prog in msgfmt
28588 do
28589   # Extract the first word of "$ac_prog", so it can be a program name with args.
28590 set dummy $ac_prog; ac_word=$2
28591 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28592 $as_echo_n "checking for $ac_word... " >&6; }
28593 if test "${ac_cv_prog_MSGFMT+set}" = set; then
28594   $as_echo_n "(cached) " >&6
28595 else
28596   if test -n "$MSGFMT"; then
28597   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
28598 else
28599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28600 for as_dir in $PATH
28601 do
28602   IFS=$as_save_IFS
28603   test -z "$as_dir" && as_dir=.
28604   for ac_exec_ext in '' $ac_executable_extensions; do
28605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28606     ac_cv_prog_MSGFMT="$ac_prog"
28607     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28608     break 2
28609   fi
28610 done
28611 done
28612 IFS=$as_save_IFS
28613
28614 fi
28615 fi
28616 MSGFMT=$ac_cv_prog_MSGFMT
28617 if test -n "$MSGFMT"; then
28618   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
28619 $as_echo "$MSGFMT" >&6; }
28620 else
28621   { $as_echo "$as_me:$LINENO: result: no" >&5
28622 $as_echo "no" >&6; }
28623 fi
28624
28625
28626   test -n "$MSGFMT" && break
28627 done
28628
28629   if test -z "$MSGFMT"; then
28630     { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
28631 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
28632    { (exit 1); exit 1; }; }
28633   fi
28634   for ac_prog in msgmerge
28635 do
28636   # Extract the first word of "$ac_prog", so it can be a program name with args.
28637 set dummy $ac_prog; ac_word=$2
28638 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28639 $as_echo_n "checking for $ac_word... " >&6; }
28640 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
28641   $as_echo_n "(cached) " >&6
28642 else
28643   if test -n "$MSGMERGE"; then
28644   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
28645 else
28646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28647 for as_dir in $PATH
28648 do
28649   IFS=$as_save_IFS
28650   test -z "$as_dir" && as_dir=.
28651   for ac_exec_ext in '' $ac_executable_extensions; do
28652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28653     ac_cv_prog_MSGMERGE="$ac_prog"
28654     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28655     break 2
28656   fi
28657 done
28658 done
28659 IFS=$as_save_IFS
28660
28661 fi
28662 fi
28663 MSGMERGE=$ac_cv_prog_MSGMERGE
28664 if test -n "$MSGMERGE"; then
28665   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
28666 $as_echo "$MSGMERGE" >&6; }
28667 else
28668   { $as_echo "$as_me:$LINENO: result: no" >&5
28669 $as_echo "no" >&6; }
28670 fi
28671
28672
28673   test -n "$MSGMERGE" && break
28674 done
28675
28676   for ac_prog in xgettext
28677 do
28678   # Extract the first word of "$ac_prog", so it can be a program name with args.
28679 set dummy $ac_prog; ac_word=$2
28680 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28681 $as_echo_n "checking for $ac_word... " >&6; }
28682 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
28683   $as_echo_n "(cached) " >&6
28684 else
28685   if test -n "$XGETTEXT"; then
28686   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
28687 else
28688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28689 for as_dir in $PATH
28690 do
28691   IFS=$as_save_IFS
28692   test -z "$as_dir" && as_dir=.
28693   for ac_exec_ext in '' $ac_executable_extensions; do
28694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28695     ac_cv_prog_XGETTEXT="$ac_prog"
28696     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28697     break 2
28698   fi
28699 done
28700 done
28701 IFS=$as_save_IFS
28702
28703 fi
28704 fi
28705 XGETTEXT=$ac_cv_prog_XGETTEXT
28706 if test -n "$XGETTEXT"; then
28707   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
28708 $as_echo "$XGETTEXT" >&6; }
28709 else
28710   { $as_echo "$as_me:$LINENO: result: no" >&5
28711 $as_echo "no" >&6; }
28712 fi
28713
28714
28715   test -n "$XGETTEXT" && break
28716 done
28717
28718
28719 fi
28720
28721 # Check for Tcl configuration script tclConfig.sh
28722 if test "$with_tcl" = yes; then
28723     for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
28724 do
28725   # Extract the first word of "$ac_prog", so it can be a program name with args.
28726 set dummy $ac_prog; ac_word=$2
28727 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28728 $as_echo_n "checking for $ac_word... " >&6; }
28729 if test "${ac_cv_path_TCLSH+set}" = set; then
28730   $as_echo_n "(cached) " >&6
28731 else
28732   case $TCLSH in
28733   [\\/]* | ?:[\\/]*)
28734   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
28735   ;;
28736   *)
28737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28738 for as_dir in $PATH
28739 do
28740   IFS=$as_save_IFS
28741   test -z "$as_dir" && as_dir=.
28742   for ac_exec_ext in '' $ac_executable_extensions; do
28743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28744     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
28745     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28746     break 2
28747   fi
28748 done
28749 done
28750 IFS=$as_save_IFS
28751
28752   ;;
28753 esac
28754 fi
28755 TCLSH=$ac_cv_path_TCLSH
28756 if test -n "$TCLSH"; then
28757   { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
28758 $as_echo "$TCLSH" >&6; }
28759 else
28760   { $as_echo "$as_me:$LINENO: result: no" >&5
28761 $as_echo "no" >&6; }
28762 fi
28763
28764
28765   test -n "$TCLSH" && break
28766 done
28767
28768 if test x"$TCLSH" = x""; then
28769   { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
28770 $as_echo "$as_me: error: Tcl shell not found" >&2;}
28771    { (exit 1); exit 1; }; }
28772 fi
28773
28774 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
28775 $as_echo_n "checking for tclConfig.sh... " >&6; }
28776 # Let user override test
28777 if test -z "$TCL_CONFIG_SH"; then
28778     pgac_test_dirs="$with_tclconfig"
28779
28780     set X $pgac_test_dirs; shift
28781     if test $# -eq 0; then
28782         test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
28783 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
28784    { (exit 1); exit 1; }; }
28785         set X `echo 'puts $auto_path' | $TCLSH`; shift
28786     fi
28787
28788     for pgac_dir do
28789         if test -r "$pgac_dir/tclConfig.sh"; then
28790             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
28791             break
28792         fi
28793     done
28794 fi
28795
28796 if test -z "$TCL_CONFIG_SH"; then
28797     { $as_echo "$as_me:$LINENO: result: no" >&5
28798 $as_echo "no" >&6; }
28799     { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
28800 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
28801    { (exit 1); exit 1; }; }
28802 else
28803     { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
28804 $as_echo "$TCL_CONFIG_SH" >&6; }
28805 fi
28806
28807
28808
28809     . "$TCL_CONFIG_SH"
28810 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
28811 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
28812 eval TCL_LIBS=\"$TCL_LIBS\"
28813 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
28814 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
28815
28816         # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
28817     ac_save_CPPFLAGS=$CPPFLAGS
28818     CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
28819     if test "${ac_cv_header_tcl_h+set}" = set; then
28820   { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28821 $as_echo_n "checking for tcl.h... " >&6; }
28822 if test "${ac_cv_header_tcl_h+set}" = set; then
28823   $as_echo_n "(cached) " >&6
28824 fi
28825 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28826 $as_echo "$ac_cv_header_tcl_h" >&6; }
28827 else
28828   # Is the header compilable?
28829 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
28830 $as_echo_n "checking tcl.h usability... " >&6; }
28831 cat >conftest.$ac_ext <<_ACEOF
28832 /* confdefs.h.  */
28833 _ACEOF
28834 cat confdefs.h >>conftest.$ac_ext
28835 cat >>conftest.$ac_ext <<_ACEOF
28836 /* end confdefs.h.  */
28837 $ac_includes_default
28838 #include <tcl.h>
28839 _ACEOF
28840 rm -f conftest.$ac_objext
28841 if { (ac_try="$ac_compile"
28842 case "(($ac_try" in
28843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28844   *) ac_try_echo=$ac_try;;
28845 esac
28846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28847 $as_echo "$ac_try_echo") >&5
28848   (eval "$ac_compile") 2>conftest.er1
28849   ac_status=$?
28850   grep -v '^ *+' conftest.er1 >conftest.err
28851   rm -f conftest.er1
28852   cat conftest.err >&5
28853   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28854   (exit $ac_status); } && {
28855          test -z "$ac_c_werror_flag" ||
28856          test ! -s conftest.err
28857        } && test -s conftest.$ac_objext; then
28858   ac_header_compiler=yes
28859 else
28860   $as_echo "$as_me: failed program was:" >&5
28861 sed 's/^/| /' conftest.$ac_ext >&5
28862
28863         ac_header_compiler=no
28864 fi
28865
28866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28867 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28868 $as_echo "$ac_header_compiler" >&6; }
28869
28870 # Is the header present?
28871 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
28872 $as_echo_n "checking tcl.h presence... " >&6; }
28873 cat >conftest.$ac_ext <<_ACEOF
28874 /* confdefs.h.  */
28875 _ACEOF
28876 cat confdefs.h >>conftest.$ac_ext
28877 cat >>conftest.$ac_ext <<_ACEOF
28878 /* end confdefs.h.  */
28879 #include <tcl.h>
28880 _ACEOF
28881 if { (ac_try="$ac_cpp conftest.$ac_ext"
28882 case "(($ac_try" in
28883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28884   *) ac_try_echo=$ac_try;;
28885 esac
28886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28887 $as_echo "$ac_try_echo") >&5
28888   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28889   ac_status=$?
28890   grep -v '^ *+' conftest.er1 >conftest.err
28891   rm -f conftest.er1
28892   cat conftest.err >&5
28893   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28894   (exit $ac_status); } >/dev/null && {
28895          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28896          test ! -s conftest.err
28897        }; then
28898   ac_header_preproc=yes
28899 else
28900   $as_echo "$as_me: failed program was:" >&5
28901 sed 's/^/| /' conftest.$ac_ext >&5
28902
28903   ac_header_preproc=no
28904 fi
28905
28906 rm -f conftest.err conftest.$ac_ext
28907 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28908 $as_echo "$ac_header_preproc" >&6; }
28909
28910 # So?  What about this header?
28911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28912   yes:no: )
28913     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28914 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28915     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
28916 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
28917     ac_header_preproc=yes
28918     ;;
28919   no:yes:* )
28920     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
28921 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
28922     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     check for missing prerequisite headers?" >&5
28923 $as_echo "$as_me: WARNING: tcl.h:     check for missing prerequisite headers?" >&2;}
28924     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
28925 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
28926     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
28927 $as_echo "$as_me: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28928     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
28929 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
28930     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
28931 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
28932     ( cat <<\_ASBOX
28933 ## ---------------------------------------- ##
28934 ## Report this to pgsql-bugs@postgresql.org ##
28935 ## ---------------------------------------- ##
28936 _ASBOX
28937      ) | sed "s/^/$as_me: WARNING:     /" >&2
28938     ;;
28939 esac
28940 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28941 $as_echo_n "checking for tcl.h... " >&6; }
28942 if test "${ac_cv_header_tcl_h+set}" = set; then
28943   $as_echo_n "(cached) " >&6
28944 else
28945   ac_cv_header_tcl_h=$ac_header_preproc
28946 fi
28947 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28948 $as_echo "$ac_cv_header_tcl_h" >&6; }
28949
28950 fi
28951 if test "x$ac_cv_header_tcl_h" = x""yes; then
28952   :
28953 else
28954   { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
28955 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
28956    { (exit 1); exit 1; }; }
28957 fi
28958
28959
28960     CPPFLAGS=$ac_save_CPPFLAGS
28961 fi
28962
28963 # check for <Python.h>
28964 if test "$with_python" = yes; then
28965   ac_save_CPPFLAGS=$CPPFLAGS
28966   CPPFLAGS="$python_includespec $CPPFLAGS"
28967   if test "${ac_cv_header_Python_h+set}" = set; then
28968   { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
28969 $as_echo_n "checking for Python.h... " >&6; }
28970 if test "${ac_cv_header_Python_h+set}" = set; then
28971   $as_echo_n "(cached) " >&6
28972 fi
28973 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
28974 $as_echo "$ac_cv_header_Python_h" >&6; }
28975 else
28976   # Is the header compilable?
28977 { $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
28978 $as_echo_n "checking Python.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 <Python.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 Python.h presence" >&5
29020 $as_echo_n "checking Python.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 <Python.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: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
29062 $as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29063     { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
29064 $as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
29065     ac_header_preproc=yes
29066     ;;
29067   no:yes:* )
29068     { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
29069 $as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
29070     { $as_echo "$as_me:$LINENO: WARNING: Python.h:     check for missing prerequisite headers?" >&5
29071 $as_echo "$as_me: WARNING: Python.h:     check for missing prerequisite headers?" >&2;}
29072     { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
29073 $as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
29074     { $as_echo "$as_me:$LINENO: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&5
29075 $as_echo "$as_me: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29076     { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
29077 $as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
29078     { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
29079 $as_echo "$as_me: WARNING: Python.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 Python.h" >&5
29089 $as_echo_n "checking for Python.h... " >&6; }
29090 if test "${ac_cv_header_Python_h+set}" = set; then
29091   $as_echo_n "(cached) " >&6
29092 else
29093   ac_cv_header_Python_h=$ac_header_preproc
29094 fi
29095 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29096 $as_echo "$ac_cv_header_Python_h" >&6; }
29097
29098 fi
29099 if test "x$ac_cv_header_Python_h" = x""yes; then
29100   :
29101 else
29102   { { $as_echo "$as_me:$LINENO: error: header file <Python.h> is required for Python" >&5
29103 $as_echo "$as_me: error: header file <Python.h> is required for Python" >&2;}
29104    { (exit 1); exit 1; }; }
29105 fi
29106
29107
29108   CPPFLAGS=$ac_save_CPPFLAGS
29109 fi
29110
29111 #
29112 # Check for DocBook and tools
29113 #
29114 for ac_prog in onsgmls nsgmls
29115 do
29116   # Extract the first word of "$ac_prog", so it can be a program name with args.
29117 set dummy $ac_prog; ac_word=$2
29118 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29119 $as_echo_n "checking for $ac_word... " >&6; }
29120 if test "${ac_cv_prog_NSGMLS+set}" = set; then
29121   $as_echo_n "(cached) " >&6
29122 else
29123   if test -n "$NSGMLS"; then
29124   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
29125 else
29126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29127 for as_dir in $PATH
29128 do
29129   IFS=$as_save_IFS
29130   test -z "$as_dir" && as_dir=.
29131   for ac_exec_ext in '' $ac_executable_extensions; do
29132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29133     ac_cv_prog_NSGMLS="$ac_prog"
29134     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29135     break 2
29136   fi
29137 done
29138 done
29139 IFS=$as_save_IFS
29140
29141 fi
29142 fi
29143 NSGMLS=$ac_cv_prog_NSGMLS
29144 if test -n "$NSGMLS"; then
29145   { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
29146 $as_echo "$NSGMLS" >&6; }
29147 else
29148   { $as_echo "$as_me:$LINENO: result: no" >&5
29149 $as_echo "no" >&6; }
29150 fi
29151
29152
29153   test -n "$NSGMLS" && break
29154 done
29155
29156 for ac_prog in openjade jade
29157 do
29158   # Extract the first word of "$ac_prog", so it can be a program name with args.
29159 set dummy $ac_prog; ac_word=$2
29160 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29161 $as_echo_n "checking for $ac_word... " >&6; }
29162 if test "${ac_cv_prog_JADE+set}" = set; then
29163   $as_echo_n "(cached) " >&6
29164 else
29165   if test -n "$JADE"; then
29166   ac_cv_prog_JADE="$JADE" # Let the user override the test.
29167 else
29168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29169 for as_dir in $PATH
29170 do
29171   IFS=$as_save_IFS
29172   test -z "$as_dir" && as_dir=.
29173   for ac_exec_ext in '' $ac_executable_extensions; do
29174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29175     ac_cv_prog_JADE="$ac_prog"
29176     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29177     break 2
29178   fi
29179 done
29180 done
29181 IFS=$as_save_IFS
29182
29183 fi
29184 fi
29185 JADE=$ac_cv_prog_JADE
29186 if test -n "$JADE"; then
29187   { $as_echo "$as_me:$LINENO: result: $JADE" >&5
29188 $as_echo "$JADE" >&6; }
29189 else
29190   { $as_echo "$as_me:$LINENO: result: no" >&5
29191 $as_echo "no" >&6; }
29192 fi
29193
29194
29195   test -n "$JADE" && break
29196 done
29197
29198
29199 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
29200 $as_echo_n "checking for DocBook V4.2... " >&6; }
29201 if test "${pgac_cv_check_docbook+set}" = set; then
29202   $as_echo_n "(cached) " >&6
29203 else
29204   cat >conftest.sgml <<EOF
29205 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
29206 <book>
29207  <title>test</title>
29208  <chapter>
29209   <title>random</title>
29210    <sect1>
29211     <title>testsect</title>
29212     <para>text</para>
29213   </sect1>
29214  </chapter>
29215 </book>
29216 EOF
29217
29218 pgac_cv_check_docbook=no
29219
29220 if test -n "$NSGMLS"; then
29221   $NSGMLS -s conftest.sgml 1>&5 2>&1
29222   if test $? -eq 0; then
29223     pgac_cv_check_docbook=yes
29224   fi
29225 fi
29226 rm -f conftest.sgml
29227 fi
29228 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
29229 $as_echo "$pgac_cv_check_docbook" >&6; }
29230
29231 have_docbook=$pgac_cv_check_docbook
29232
29233
29234 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
29235 $as_echo_n "checking for DocBook stylesheets... " >&6; }
29236 if test "${pgac_cv_path_stylesheets+set}" = set; then
29237   $as_echo_n "(cached) " >&6
29238 else
29239   if test -n "$DOCBOOKSTYLE"; then
29240   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
29241 else
29242   for pgac_prefix in /usr /usr/local /opt /sw; do
29243     for pgac_infix in share lib; do
29244       for pgac_postfix in \
29245         sgml/stylesheets/nwalsh-modular \
29246         sgml/stylesheets/docbook \
29247         sgml/stylesheets/dsssl/docbook \
29248         sgml/docbook-dsssl \
29249         sgml/docbook/dsssl/modular \
29250         sgml/docbook/stylesheet/dsssl/modular \
29251         sgml/docbook/dsssl-stylesheets \
29252         sgml/dsssl/docbook-dsssl-nwalsh
29253       do
29254         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
29255         if test -r "$pgac_candidate/html/docbook.dsl" \
29256            && test -r "$pgac_candidate/print/docbook.dsl"
29257         then
29258           pgac_cv_path_stylesheets=$pgac_candidate
29259           break 3
29260         fi
29261       done
29262     done
29263   done
29264 fi
29265 fi
29266
29267 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
29268
29269 if test -n "$DOCBOOKSTYLE"; then
29270   { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
29271 $as_echo "$DOCBOOKSTYLE" >&6; }
29272 else
29273   { $as_echo "$as_me:$LINENO: result: no" >&5
29274 $as_echo "no" >&6; }
29275 fi
29276 if test -n "$DOCBOOKSTYLE"; then
29277   for ac_prog in collateindex.pl
29278 do
29279   # Extract the first word of "$ac_prog", so it can be a program name with args.
29280 set dummy $ac_prog; ac_word=$2
29281 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29282 $as_echo_n "checking for $ac_word... " >&6; }
29283 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29284   $as_echo_n "(cached) " >&6
29285 else
29286   case $COLLATEINDEX in
29287   [\\/]* | ?:[\\/]*)
29288   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29289   ;;
29290   *)
29291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29292 for as_dir in $DOCBOOKSTYLE/bin $PATH
29293 do
29294   IFS=$as_save_IFS
29295   test -z "$as_dir" && as_dir=.
29296   for ac_exec_ext in '' $ac_executable_extensions; do
29297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29298     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29299     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29300     break 2
29301   fi
29302 done
29303 done
29304 IFS=$as_save_IFS
29305
29306   ;;
29307 esac
29308 fi
29309 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29310 if test -n "$COLLATEINDEX"; then
29311   { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29312 $as_echo "$COLLATEINDEX" >&6; }
29313 else
29314   { $as_echo "$as_me:$LINENO: result: no" >&5
29315 $as_echo "no" >&6; }
29316 fi
29317
29318
29319   test -n "$COLLATEINDEX" && break
29320 done
29321
29322 else
29323   for ac_prog in collateindex.pl
29324 do
29325   # Extract the first word of "$ac_prog", so it can be a program name with args.
29326 set dummy $ac_prog; ac_word=$2
29327 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29328 $as_echo_n "checking for $ac_word... " >&6; }
29329 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29330   $as_echo_n "(cached) " >&6
29331 else
29332   case $COLLATEINDEX in
29333   [\\/]* | ?:[\\/]*)
29334   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29335   ;;
29336   *)
29337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29338 for as_dir in $PATH
29339 do
29340   IFS=$as_save_IFS
29341   test -z "$as_dir" && as_dir=.
29342   for ac_exec_ext in '' $ac_executable_extensions; do
29343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29344     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29345     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29346     break 2
29347   fi
29348 done
29349 done
29350 IFS=$as_save_IFS
29351
29352   ;;
29353 esac
29354 fi
29355 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29356 if test -n "$COLLATEINDEX"; then
29357   { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29358 $as_echo "$COLLATEINDEX" >&6; }
29359 else
29360   { $as_echo "$as_me:$LINENO: result: no" >&5
29361 $as_echo "no" >&6; }
29362 fi
29363
29364
29365   test -n "$COLLATEINDEX" && break
29366 done
29367
29368 fi
29369 for ac_prog in xsltproc
29370 do
29371   # Extract the first word of "$ac_prog", so it can be a program name with args.
29372 set dummy $ac_prog; ac_word=$2
29373 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29374 $as_echo_n "checking for $ac_word... " >&6; }
29375 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
29376   $as_echo_n "(cached) " >&6
29377 else
29378   if test -n "$XSLTPROC"; then
29379   ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
29380 else
29381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29382 for as_dir in $PATH
29383 do
29384   IFS=$as_save_IFS
29385   test -z "$as_dir" && as_dir=.
29386   for ac_exec_ext in '' $ac_executable_extensions; do
29387   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29388     ac_cv_prog_XSLTPROC="$ac_prog"
29389     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29390     break 2
29391   fi
29392 done
29393 done
29394 IFS=$as_save_IFS
29395
29396 fi
29397 fi
29398 XSLTPROC=$ac_cv_prog_XSLTPROC
29399 if test -n "$XSLTPROC"; then
29400   { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
29401 $as_echo "$XSLTPROC" >&6; }
29402 else
29403   { $as_echo "$as_me:$LINENO: result: no" >&5
29404 $as_echo "no" >&6; }
29405 fi
29406
29407
29408   test -n "$XSLTPROC" && break
29409 done
29410
29411 for ac_prog in osx sgml2xml sx
29412 do
29413   # Extract the first word of "$ac_prog", so it can be a program name with args.
29414 set dummy $ac_prog; ac_word=$2
29415 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29416 $as_echo_n "checking for $ac_word... " >&6; }
29417 if test "${ac_cv_prog_OSX+set}" = set; then
29418   $as_echo_n "(cached) " >&6
29419 else
29420   if test -n "$OSX"; then
29421   ac_cv_prog_OSX="$OSX" # Let the user override the test.
29422 else
29423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29424 for as_dir in $PATH
29425 do
29426   IFS=$as_save_IFS
29427   test -z "$as_dir" && as_dir=.
29428   for ac_exec_ext in '' $ac_executable_extensions; do
29429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29430     ac_cv_prog_OSX="$ac_prog"
29431     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29432     break 2
29433   fi
29434 done
29435 done
29436 IFS=$as_save_IFS
29437
29438 fi
29439 fi
29440 OSX=$ac_cv_prog_OSX
29441 if test -n "$OSX"; then
29442   { $as_echo "$as_me:$LINENO: result: $OSX" >&5
29443 $as_echo "$OSX" >&6; }
29444 else
29445   { $as_echo "$as_me:$LINENO: result: no" >&5
29446 $as_echo "no" >&6; }
29447 fi
29448
29449
29450   test -n "$OSX" && break
29451 done
29452
29453
29454 # Thread testing
29455
29456 # We have to run the thread test near the end so we have all our symbols
29457 # defined.  Cross compiling throws a warning.
29458 #
29459 if test "$enable_thread_safety" = yes; then
29460 if test "$PORTNAME" != "win32"
29461 then
29462 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
29463 $as_echo_n "checking thread safety of required library functions... " >&6; }
29464
29465 _CFLAGS="$CFLAGS"
29466 _LIBS="$LIBS"
29467 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
29468 LIBS="$LIBS $PTHREAD_LIBS"
29469 if test "$cross_compiling" = yes; then
29470   { $as_echo "$as_me:$LINENO: result: maybe" >&5
29471 $as_echo "maybe" >&6; }
29472   { $as_echo "$as_me:$LINENO: WARNING:
29473 *** Skipping thread test program because of cross-compile build.
29474 *** Run the program in src/test/thread on the target machine.
29475 " >&5
29476 $as_echo "$as_me: WARNING:
29477 *** Skipping thread test program because of cross-compile build.
29478 *** Run the program in src/test/thread on the target machine.
29479 " >&2;}
29480 else
29481   cat >conftest.$ac_ext <<_ACEOF
29482 /* confdefs.h.  */
29483 _ACEOF
29484 cat confdefs.h >>conftest.$ac_ext
29485 cat >>conftest.$ac_ext <<_ACEOF
29486 /* end confdefs.h.  */
29487 #include "$srcdir/src/test/thread/thread_test.c"
29488 _ACEOF
29489 rm -f conftest$ac_exeext
29490 if { (ac_try="$ac_link"
29491 case "(($ac_try" in
29492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29493   *) ac_try_echo=$ac_try;;
29494 esac
29495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29496 $as_echo "$ac_try_echo") >&5
29497   (eval "$ac_link") 2>&5
29498   ac_status=$?
29499   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29500   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29501   { (case "(($ac_try" in
29502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29503   *) ac_try_echo=$ac_try;;
29504 esac
29505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29506 $as_echo "$ac_try_echo") >&5
29507   (eval "$ac_try") 2>&5
29508   ac_status=$?
29509   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29510   (exit $ac_status); }; }; then
29511   { $as_echo "$as_me:$LINENO: result: yes" >&5
29512 $as_echo "yes" >&6; }
29513 else
29514   $as_echo "$as_me: program exited with status $ac_status" >&5
29515 $as_echo "$as_me: failed program was:" >&5
29516 sed 's/^/| /' conftest.$ac_ext >&5
29517
29518 ( exit $ac_status )
29519 { $as_echo "$as_me:$LINENO: result: no" >&5
29520 $as_echo "no" >&6; }
29521   { { $as_echo "$as_me:$LINENO: error: thread test program failed
29522 This platform is not thread-safe.  Check the file 'config.log' or compile
29523 and run src/test/thread/thread_test for the exact reason.
29524 Use --disable-thread-safety to disable thread safety." >&5
29525 $as_echo "$as_me: error: thread test program failed
29526 This platform is not thread-safe.  Check the file 'config.log' or compile
29527 and run src/test/thread/thread_test for the exact reason.
29528 Use --disable-thread-safety to disable thread safety." >&2;}
29529    { (exit 1); exit 1; }; }
29530 fi
29531 rm -rf conftest.dSYM
29532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29533 fi
29534
29535
29536 CFLAGS="$_CFLAGS"
29537 LIBS="$_LIBS"
29538 else
29539 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
29540 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
29541 fi
29542 fi
29543
29544 # If compiler will take -Wl,--as-needed (or various platform-specific
29545 # spellings thereof) then add that to LDFLAGS.  This is much easier than
29546 # trying to filter LIBS to the minimum for each executable.
29547 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
29548 # libreadline; therefore we postpone testing it until we know what library
29549 # dependencies readline has.  The test code will try to link with $LIBS.
29550 if test "$with_readline" = yes; then
29551   link_test_func=readline
29552 else
29553   link_test_func=exit
29554 fi
29555
29556 if test "$PORTNAME" = "darwin"; then
29557   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
29558 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
29559 if test "${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+set}" = set; then
29560   $as_echo_n "(cached) " >&6
29561 else
29562   pgac_save_LDFLAGS=$LDFLAGS
29563 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
29564 if test "$cross_compiling" = yes; then
29565   pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
29566 else
29567   cat >conftest.$ac_ext <<_ACEOF
29568 /* confdefs.h.  */
29569 _ACEOF
29570 cat confdefs.h >>conftest.$ac_ext
29571 cat >>conftest.$ac_ext <<_ACEOF
29572 /* end confdefs.h.  */
29573 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29574 int
29575 main ()
29576 {
29577
29578   ;
29579   return 0;
29580 }
29581 _ACEOF
29582 rm -f conftest$ac_exeext
29583 if { (ac_try="$ac_link"
29584 case "(($ac_try" in
29585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29586   *) ac_try_echo=$ac_try;;
29587 esac
29588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29589 $as_echo "$ac_try_echo") >&5
29590   (eval "$ac_link") 2>&5
29591   ac_status=$?
29592   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29593   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29594   { (case "(($ac_try" in
29595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29596   *) ac_try_echo=$ac_try;;
29597 esac
29598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29599 $as_echo "$ac_try_echo") >&5
29600   (eval "$ac_try") 2>&5
29601   ac_status=$?
29602   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29603   (exit $ac_status); }; }; then
29604   pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
29605 else
29606   $as_echo "$as_me: program exited with status $ac_status" >&5
29607 $as_echo "$as_me: failed program was:" >&5
29608 sed 's/^/| /' conftest.$ac_ext >&5
29609
29610 ( exit $ac_status )
29611 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
29612 fi
29613 rm -rf conftest.dSYM
29614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29615 fi
29616
29617
29618 LDFLAGS="$pgac_save_LDFLAGS"
29619 fi
29620 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
29621 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
29622 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
29623   LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
29624 fi
29625
29626 elif test "$PORTNAME" = "openbsd"; then
29627   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-Bdynamic" >&5
29628 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
29629 if test "${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+set}" = set; then
29630   $as_echo_n "(cached) " >&6
29631 else
29632   pgac_save_LDFLAGS=$LDFLAGS
29633 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
29634 if test "$cross_compiling" = yes; then
29635   pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
29636 else
29637   cat >conftest.$ac_ext <<_ACEOF
29638 /* confdefs.h.  */
29639 _ACEOF
29640 cat confdefs.h >>conftest.$ac_ext
29641 cat >>conftest.$ac_ext <<_ACEOF
29642 /* end confdefs.h.  */
29643 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29644 int
29645 main ()
29646 {
29647
29648   ;
29649   return 0;
29650 }
29651 _ACEOF
29652 rm -f conftest$ac_exeext
29653 if { (ac_try="$ac_link"
29654 case "(($ac_try" in
29655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29656   *) ac_try_echo=$ac_try;;
29657 esac
29658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29659 $as_echo "$ac_try_echo") >&5
29660   (eval "$ac_link") 2>&5
29661   ac_status=$?
29662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29663   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29664   { (case "(($ac_try" in
29665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29666   *) ac_try_echo=$ac_try;;
29667 esac
29668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29669 $as_echo "$ac_try_echo") >&5
29670   (eval "$ac_try") 2>&5
29671   ac_status=$?
29672   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29673   (exit $ac_status); }; }; then
29674   pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
29675 else
29676   $as_echo "$as_me: program exited with status $ac_status" >&5
29677 $as_echo "$as_me: failed program was:" >&5
29678 sed 's/^/| /' conftest.$ac_ext >&5
29679
29680 ( exit $ac_status )
29681 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
29682 fi
29683 rm -rf conftest.dSYM
29684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29685 fi
29686
29687
29688 LDFLAGS="$pgac_save_LDFLAGS"
29689 fi
29690 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
29691 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
29692 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
29693   LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
29694 fi
29695
29696 else
29697   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,--as-needed" >&5
29698 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
29699 if test "${pgac_cv_prog_cc_ldflags__Wl___as_needed+set}" = set; then
29700   $as_echo_n "(cached) " >&6
29701 else
29702   pgac_save_LDFLAGS=$LDFLAGS
29703 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
29704 if test "$cross_compiling" = yes; then
29705   pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
29706 else
29707   cat >conftest.$ac_ext <<_ACEOF
29708 /* confdefs.h.  */
29709 _ACEOF
29710 cat confdefs.h >>conftest.$ac_ext
29711 cat >>conftest.$ac_ext <<_ACEOF
29712 /* end confdefs.h.  */
29713 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29714 int
29715 main ()
29716 {
29717
29718   ;
29719   return 0;
29720 }
29721 _ACEOF
29722 rm -f conftest$ac_exeext
29723 if { (ac_try="$ac_link"
29724 case "(($ac_try" in
29725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29726   *) ac_try_echo=$ac_try;;
29727 esac
29728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29729 $as_echo "$ac_try_echo") >&5
29730   (eval "$ac_link") 2>&5
29731   ac_status=$?
29732   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29733   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29734   { (case "(($ac_try" in
29735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29736   *) ac_try_echo=$ac_try;;
29737 esac
29738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29739 $as_echo "$ac_try_echo") >&5
29740   (eval "$ac_try") 2>&5
29741   ac_status=$?
29742   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29743   (exit $ac_status); }; }; then
29744   pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
29745 else
29746   $as_echo "$as_me: program exited with status $ac_status" >&5
29747 $as_echo "$as_me: failed program was:" >&5
29748 sed 's/^/| /' conftest.$ac_ext >&5
29749
29750 ( exit $ac_status )
29751 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
29752 fi
29753 rm -rf conftest.dSYM
29754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29755 fi
29756
29757
29758 LDFLAGS="$pgac_save_LDFLAGS"
29759 fi
29760 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
29761 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
29762 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
29763   LDFLAGS="$LDFLAGS -Wl,--as-needed"
29764 fi
29765
29766 fi
29767
29768 # Create compiler version string
29769 if test x"$GCC" = x"yes" ; then
29770   cc_string=`${CC} --version | sed q`
29771   case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
29772 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
29773   cc_string=`${CC} -V 2>&1 | sed q`
29774 else
29775   cc_string=$CC
29776 fi
29777
29778
29779 cat >>confdefs.h <<_ACEOF
29780 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
29781 _ACEOF
29782
29783
29784 # Supply a numeric version string for use by 3rd party add-ons
29785 # awk -F is a regex on some platforms, and not on others, so make "." a tab
29786 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
29787 tr '.' '        ' |
29788 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
29789
29790 cat >>confdefs.h <<_ACEOF
29791 #define PG_VERSION_NUM $PG_VERSION_NUM
29792 _ACEOF
29793
29794
29795
29796 # Begin output steps
29797
29798 { $as_echo "$as_me:$LINENO: using compiler=$cc_string" >&5
29799 $as_echo "$as_me: using compiler=$cc_string" >&6;}
29800 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
29801 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
29802 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
29803 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
29804 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
29805 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
29806
29807 # prepare build tree if outside source tree
29808 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
29809 # Note 2: /bin/pwd might be better than shell's built-in at getting
29810 #         a symlink-free name.
29811 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
29812   vpath_build=no
29813 else
29814   vpath_build=yes
29815   if test "$no_create" != yes; then
29816     $as_echo_n "preparing build tree... " >&6
29817     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
29818     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
29819       || { { $as_echo "$as_me:$LINENO: error: failed" >&5
29820 $as_echo "$as_me: error: failed" >&2;}
29821    { (exit 1); exit 1; }; }
29822     { $as_echo "$as_me:$LINENO: result: done" >&5
29823 $as_echo "done" >&6; }
29824   fi
29825 fi
29826
29827
29828
29829 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
29830
29831
29832 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}"
29833
29834
29835 if test "$PORTNAME" = "win32"; then
29836 ac_config_commands="$ac_config_commands check_win32_symlinks"
29837
29838 fi
29839
29840 ac_config_headers="$ac_config_headers src/include/pg_config.h"
29841
29842
29843 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
29844
29845
29846 cat >confcache <<\_ACEOF
29847 # This file is a shell script that caches the results of configure
29848 # tests run on this system so they can be shared between configure
29849 # scripts and configure runs, see configure's option --config-cache.
29850 # It is not useful on other systems.  If it contains results you don't
29851 # want to keep, you may remove or edit it.
29852 #
29853 # config.status only pays attention to the cache file if you give it
29854 # the --recheck option to rerun configure.
29855 #
29856 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29857 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29858 # following values.
29859
29860 _ACEOF
29861
29862 # The following way of writing the cache mishandles newlines in values,
29863 # but we know of no workaround that is simple, portable, and efficient.
29864 # So, we kill variables containing newlines.
29865 # Ultrix sh set writes to stderr and can't be redirected directly,
29866 # and sets the high bit in the cache file unless we assign to the vars.
29867 (
29868   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29869     eval ac_val=\$$ac_var
29870     case $ac_val in #(
29871     *${as_nl}*)
29872       case $ac_var in #(
29873       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
29874 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29875       esac
29876       case $ac_var in #(
29877       _ | IFS | as_nl) ;; #(
29878       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29879       *) $as_unset $ac_var ;;
29880       esac ;;
29881     esac
29882   done
29883
29884   (set) 2>&1 |
29885     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29886     *${as_nl}ac_space=\ *)
29887       # `set' does not quote correctly, so add quotes (double-quote
29888       # substitution turns \\\\ into \\, and sed turns \\ into \).
29889       sed -n \
29890         "s/'/'\\\\''/g;
29891           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29892       ;; #(
29893     *)
29894       # `set' quotes correctly as required by POSIX, so do not add quotes.
29895       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29896       ;;
29897     esac |
29898     sort
29899 ) |
29900   sed '
29901      /^ac_cv_env_/b end
29902      t clear
29903      :clear
29904      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29905      t end
29906      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29907      :end' >>confcache
29908 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29909   if test -w "$cache_file"; then
29910     test "x$cache_file" != "x/dev/null" &&
29911       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
29912 $as_echo "$as_me: updating cache $cache_file" >&6;}
29913     cat confcache >$cache_file
29914   else
29915     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29916 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29917   fi
29918 fi
29919 rm -f confcache
29920
29921 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29922 # Let make expand exec_prefix.
29923 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29924
29925 DEFS=-DHAVE_CONFIG_H
29926
29927 ac_libobjs=
29928 ac_ltlibobjs=
29929 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29930   # 1. Remove the extension, and $U if already installed.
29931   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29932   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29933   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29934   #    will be set to the directory where LIBOBJS objects are built.
29935   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29936   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29937 done
29938 LIBOBJS=$ac_libobjs
29939
29940 LTLIBOBJS=$ac_ltlibobjs
29941
29942
29943
29944
29945 : ${CONFIG_STATUS=./config.status}
29946 ac_write_fail=0
29947 ac_clean_files_save=$ac_clean_files
29948 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29949 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29950 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29951 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29952 #! $SHELL
29953 # Generated by $as_me.
29954 # Run this file to recreate the current configuration.
29955 # Compiler output produced by configure, useful for debugging
29956 # configure, is in config.log if it exists.
29957
29958 debug=false
29959 ac_cs_recheck=false
29960 ac_cs_silent=false
29961 SHELL=\${CONFIG_SHELL-$SHELL}
29962 _ACEOF
29963
29964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29965 ## --------------------- ##
29966 ## M4sh Initialization.  ##
29967 ## --------------------- ##
29968
29969 # Be more Bourne compatible
29970 DUALCASE=1; export DUALCASE # for MKS sh
29971 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29972   emulate sh
29973   NULLCMD=:
29974   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29975   # is contrary to our usage.  Disable this feature.
29976   alias -g '${1+"$@"}'='"$@"'
29977   setopt NO_GLOB_SUBST
29978 else
29979   case `(set -o) 2>/dev/null` in
29980   *posix*) set -o posix ;;
29981 esac
29982
29983 fi
29984
29985
29986
29987
29988 # PATH needs CR
29989 # Avoid depending upon Character Ranges.
29990 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29991 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29992 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29993 as_cr_digits='0123456789'
29994 as_cr_alnum=$as_cr_Letters$as_cr_digits
29995
29996 as_nl='
29997 '
29998 export as_nl
29999 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30000 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30001 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30002 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30003 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30004   as_echo='printf %s\n'
30005   as_echo_n='printf %s'
30006 else
30007   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30008     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30009     as_echo_n='/usr/ucb/echo -n'
30010   else
30011     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30012     as_echo_n_body='eval
30013       arg=$1;
30014       case $arg in
30015       *"$as_nl"*)
30016         expr "X$arg" : "X\\(.*\\)$as_nl";
30017         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30018       esac;
30019       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30020     '
30021     export as_echo_n_body
30022     as_echo_n='sh -c $as_echo_n_body as_echo'
30023   fi
30024   export as_echo_body
30025   as_echo='sh -c $as_echo_body as_echo'
30026 fi
30027
30028 # The user is always right.
30029 if test "${PATH_SEPARATOR+set}" != set; then
30030   PATH_SEPARATOR=:
30031   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30032     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30033       PATH_SEPARATOR=';'
30034   }
30035 fi
30036
30037 # Support unset when possible.
30038 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30039   as_unset=unset
30040 else
30041   as_unset=false
30042 fi
30043
30044
30045 # IFS
30046 # We need space, tab and new line, in precisely that order.  Quoting is
30047 # there to prevent editors from complaining about space-tab.
30048 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30049 # splitting by setting IFS to empty value.)
30050 IFS=" ""        $as_nl"
30051
30052 # Find who we are.  Look in the path if we contain no directory separator.
30053 case $0 in
30054   *[\\/]* ) as_myself=$0 ;;
30055   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30056 for as_dir in $PATH
30057 do
30058   IFS=$as_save_IFS
30059   test -z "$as_dir" && as_dir=.
30060   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30061 done
30062 IFS=$as_save_IFS
30063
30064      ;;
30065 esac
30066 # We did not find ourselves, most probably we were run as `sh COMMAND'
30067 # in which case we are not to be found in the path.
30068 if test "x$as_myself" = x; then
30069   as_myself=$0
30070 fi
30071 if test ! -f "$as_myself"; then
30072   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30073   { (exit 1); exit 1; }
30074 fi
30075
30076 # Work around bugs in pre-3.0 UWIN ksh.
30077 for as_var in ENV MAIL MAILPATH
30078 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30079 done
30080 PS1='$ '
30081 PS2='> '
30082 PS4='+ '
30083
30084 # NLS nuisances.
30085 LC_ALL=C
30086 export LC_ALL
30087 LANGUAGE=C
30088 export LANGUAGE
30089
30090 # Required to use basename.
30091 if expr a : '\(a\)' >/dev/null 2>&1 &&
30092    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30093   as_expr=expr
30094 else
30095   as_expr=false
30096 fi
30097
30098 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30099   as_basename=basename
30100 else
30101   as_basename=false
30102 fi
30103
30104
30105 # Name of the executable.
30106 as_me=`$as_basename -- "$0" ||
30107 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30108          X"$0" : 'X\(//\)$' \| \
30109          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30110 $as_echo X/"$0" |
30111     sed '/^.*\/\([^/][^/]*\)\/*$/{
30112             s//\1/
30113             q
30114           }
30115           /^X\/\(\/\/\)$/{
30116             s//\1/
30117             q
30118           }
30119           /^X\/\(\/\).*/{
30120             s//\1/
30121             q
30122           }
30123           s/.*/./; q'`
30124
30125 # CDPATH.
30126 $as_unset CDPATH
30127
30128
30129
30130   as_lineno_1=$LINENO
30131   as_lineno_2=$LINENO
30132   test "x$as_lineno_1" != "x$as_lineno_2" &&
30133   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30134
30135   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30136   # uniformly replaced by the line number.  The first 'sed' inserts a
30137   # line-number line after each line using $LINENO; the second 'sed'
30138   # does the real work.  The second script uses 'N' to pair each
30139   # line-number line with the line containing $LINENO, and appends
30140   # trailing '-' during substitution so that $LINENO is not a special
30141   # case at line end.
30142   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30143   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30144   # E. McMahon (1931-1989) for sed's syntax.  :-)
30145   sed -n '
30146     p
30147     /[$]LINENO/=
30148   ' <$as_myself |
30149     sed '
30150       s/[$]LINENO.*/&-/
30151       t lineno
30152       b
30153       :lineno
30154       N
30155       :loop
30156       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30157       t loop
30158       s/-\n.*//
30159     ' >$as_me.lineno &&
30160   chmod +x "$as_me.lineno" ||
30161     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30162    { (exit 1); exit 1; }; }
30163
30164   # Don't try to exec as it changes $[0], causing all sort of problems
30165   # (the dirname of $[0] is not the place where we might find the
30166   # original and so on.  Autoconf is especially sensitive to this).
30167   . "./$as_me.lineno"
30168   # Exit status is that of the last command.
30169   exit
30170 }
30171
30172
30173 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30174   as_dirname=dirname
30175 else
30176   as_dirname=false
30177 fi
30178
30179 ECHO_C= ECHO_N= ECHO_T=
30180 case `echo -n x` in
30181 -n*)
30182   case `echo 'x\c'` in
30183   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30184   *)   ECHO_C='\c';;
30185   esac;;
30186 *)
30187   ECHO_N='-n';;
30188 esac
30189 if expr a : '\(a\)' >/dev/null 2>&1 &&
30190    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30191   as_expr=expr
30192 else
30193   as_expr=false
30194 fi
30195
30196 rm -f conf$$ conf$$.exe conf$$.file
30197 if test -d conf$$.dir; then
30198   rm -f conf$$.dir/conf$$.file
30199 else
30200   rm -f conf$$.dir
30201   mkdir conf$$.dir 2>/dev/null
30202 fi
30203 if (echo >conf$$.file) 2>/dev/null; then
30204   if ln -s conf$$.file conf$$ 2>/dev/null; then
30205     as_ln_s='ln -s'
30206     # ... but there are two gotchas:
30207     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30208     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30209     # In both cases, we have to default to `cp -p'.
30210     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30211       as_ln_s='cp -p'
30212   elif ln conf$$.file conf$$ 2>/dev/null; then
30213     as_ln_s=ln
30214   else
30215     as_ln_s='cp -p'
30216   fi
30217 else
30218   as_ln_s='cp -p'
30219 fi
30220 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30221 rmdir conf$$.dir 2>/dev/null
30222
30223 if mkdir -p . 2>/dev/null; then
30224   as_mkdir_p=:
30225 else
30226   test -d ./-p && rmdir ./-p
30227   as_mkdir_p=false
30228 fi
30229
30230 if test -x / >/dev/null 2>&1; then
30231   as_test_x='test -x'
30232 else
30233   if ls -dL / >/dev/null 2>&1; then
30234     as_ls_L_option=L
30235   else
30236     as_ls_L_option=
30237   fi
30238   as_test_x='
30239     eval sh -c '\''
30240       if test -d "$1"; then
30241         test -d "$1/.";
30242       else
30243         case $1 in
30244         -*)set "./$1";;
30245         esac;
30246         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30247         ???[sx]*):;;*)false;;esac;fi
30248     '\'' sh
30249   '
30250 fi
30251 as_executable_p=$as_test_x
30252
30253 # Sed expression to map a string onto a valid CPP name.
30254 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30255
30256 # Sed expression to map a string onto a valid variable name.
30257 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30258
30259
30260 exec 6>&1
30261
30262 # Save the log message, to keep $[0] and so on meaningful, and to
30263 # report actual input values of CONFIG_FILES etc. instead of their
30264 # values after options handling.
30265 ac_log="
30266 This file was extended by PostgreSQL $as_me 9.2devel, which was
30267 generated by GNU Autoconf 2.63.  Invocation command line was
30268
30269   CONFIG_FILES    = $CONFIG_FILES
30270   CONFIG_HEADERS  = $CONFIG_HEADERS
30271   CONFIG_LINKS    = $CONFIG_LINKS
30272   CONFIG_COMMANDS = $CONFIG_COMMANDS
30273   $ $0 $@
30274
30275 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30276 "
30277
30278 _ACEOF
30279
30280 case $ac_config_files in *"
30281 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30282 esac
30283
30284 case $ac_config_headers in *"
30285 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30286 esac
30287
30288
30289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30290 # Files that config.status was made for.
30291 config_files="$ac_config_files"
30292 config_headers="$ac_config_headers"
30293 config_links="$ac_config_links"
30294 config_commands="$ac_config_commands"
30295
30296 _ACEOF
30297
30298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30299 ac_cs_usage="\
30300 \`$as_me' instantiates files from templates according to the
30301 current configuration.
30302
30303 Usage: $0 [OPTION]... [FILE]...
30304
30305   -h, --help       print this help, then exit
30306   -V, --version    print version number and configuration settings, then exit
30307   -q, --quiet, --silent
30308                    do not print progress messages
30309   -d, --debug      don't remove temporary files
30310       --recheck    update $as_me by reconfiguring in the same conditions
30311       --file=FILE[:TEMPLATE]
30312                    instantiate the configuration file FILE
30313       --header=FILE[:TEMPLATE]
30314                    instantiate the configuration header FILE
30315
30316 Configuration files:
30317 $config_files
30318
30319 Configuration headers:
30320 $config_headers
30321
30322 Configuration links:
30323 $config_links
30324
30325 Configuration commands:
30326 $config_commands
30327
30328 Report bugs to <bug-autoconf@gnu.org>."
30329
30330 _ACEOF
30331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30332 ac_cs_version="\\
30333 PostgreSQL config.status 9.2devel
30334 configured by $0, generated by GNU Autoconf 2.63,
30335   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30336
30337 Copyright (C) 2008 Free Software Foundation, Inc.
30338 This config.status script is free software; the Free Software Foundation
30339 gives unlimited permission to copy, distribute and modify it."
30340
30341 ac_pwd='$ac_pwd'
30342 srcdir='$srcdir'
30343 MKDIR_P='$MKDIR_P'
30344 AWK='$AWK'
30345 test -n "\$AWK" || AWK=awk
30346 _ACEOF
30347
30348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30349 # The default lists apply if the user does not specify any file.
30350 ac_need_defaults=:
30351 while test $# != 0
30352 do
30353   case $1 in
30354   --*=*)
30355     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30356     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30357     ac_shift=:
30358     ;;
30359   *)
30360     ac_option=$1
30361     ac_optarg=$2
30362     ac_shift=shift
30363     ;;
30364   esac
30365
30366   case $ac_option in
30367   # Handling of the options.
30368   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30369     ac_cs_recheck=: ;;
30370   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30371     $as_echo "$ac_cs_version"; exit ;;
30372   --debug | --debu | --deb | --de | --d | -d )
30373     debug=: ;;
30374   --file | --fil | --fi | --f )
30375     $ac_shift
30376     case $ac_optarg in
30377     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30378     esac
30379     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
30380     ac_need_defaults=false;;
30381   --header | --heade | --head | --hea )
30382     $ac_shift
30383     case $ac_optarg in
30384     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30385     esac
30386     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
30387     ac_need_defaults=false;;
30388   --he | --h)
30389     # Conflict between --help and --header
30390     { $as_echo "$as_me: error: ambiguous option: $1
30391 Try \`$0 --help' for more information." >&2
30392    { (exit 1); exit 1; }; };;
30393   --help | --hel | -h )
30394     $as_echo "$ac_cs_usage"; exit ;;
30395   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30396   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30397     ac_cs_silent=: ;;
30398
30399   # This is an error.
30400   -*) { $as_echo "$as_me: error: unrecognized option: $1
30401 Try \`$0 --help' for more information." >&2
30402    { (exit 1); exit 1; }; } ;;
30403
30404   *) ac_config_targets="$ac_config_targets $1"
30405      ac_need_defaults=false ;;
30406
30407   esac
30408   shift
30409 done
30410
30411 ac_configure_extra_args=
30412
30413 if $ac_cs_silent; then
30414   exec 6>/dev/null
30415   ac_configure_extra_args="$ac_configure_extra_args --silent"
30416 fi
30417
30418 _ACEOF
30419 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30420 if \$ac_cs_recheck; then
30421   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30422   shift
30423   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30424   CONFIG_SHELL='$SHELL'
30425   export CONFIG_SHELL
30426   exec "\$@"
30427 fi
30428
30429 _ACEOF
30430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30431 exec 5>>config.log
30432 {
30433   echo
30434   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30435 ## Running $as_me. ##
30436 _ASBOX
30437   $as_echo "$ac_log"
30438 } >&5
30439
30440 _ACEOF
30441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30442 _ACEOF
30443
30444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30445
30446 # Handling of arguments.
30447 for ac_config_target in $ac_config_targets
30448 do
30449   case $ac_config_target in
30450     "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
30451     "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
30452     "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
30453     "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
30454     "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
30455     "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
30456     "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
30457     "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
30458     "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
30459     "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
30460     "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
30461     "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
30462     "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
30463
30464   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30465 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30466    { (exit 1); exit 1; }; };;
30467   esac
30468 done
30469
30470
30471 # If the user did not use the arguments to specify the items to instantiate,
30472 # then the envvar interface is used.  Set only those that are not.
30473 # We use the long form for the default assignment because of an extremely
30474 # bizarre bug on SunOS 4.1.3.
30475 if $ac_need_defaults; then
30476   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30477   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30478   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30479   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30480 fi
30481
30482 # Have a temporary directory for convenience.  Make it in the build tree
30483 # simply because there is no reason against having it here, and in addition,
30484 # creating and moving files from /tmp can sometimes cause problems.
30485 # Hook for its removal unless debugging.
30486 # Note that there is a small window in which the directory will not be cleaned:
30487 # after its creation but before its name has been assigned to `$tmp'.
30488 $debug ||
30489 {
30490   tmp=
30491   trap 'exit_status=$?
30492   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30493 ' 0
30494   trap '{ (exit 1); exit 1; }' 1 2 13 15
30495 }
30496 # Create a (secure) tmp directory for tmp files.
30497
30498 {
30499   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30500   test -n "$tmp" && test -d "$tmp"
30501 }  ||
30502 {
30503   tmp=./conf$$-$RANDOM
30504   (umask 077 && mkdir "$tmp")
30505 } ||
30506 {
30507    $as_echo "$as_me: cannot create a temporary directory in ." >&2
30508    { (exit 1); exit 1; }
30509 }
30510
30511 # Set up the scripts for CONFIG_FILES section.
30512 # No need to generate them if there are no CONFIG_FILES.
30513 # This happens for instance with `./config.status config.h'.
30514 if test -n "$CONFIG_FILES"; then
30515
30516
30517 ac_cr='\r'
30518 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30519 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30520   ac_cs_awk_cr='\\r'
30521 else
30522   ac_cs_awk_cr=$ac_cr
30523 fi
30524
30525 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30526 _ACEOF
30527
30528
30529 {
30530   echo "cat >conf$$subs.awk <<_ACEOF" &&
30531   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30532   echo "_ACEOF"
30533 } >conf$$subs.sh ||
30534   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30535 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30536    { (exit 1); exit 1; }; }
30537 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30538 ac_delim='%!_!# '
30539 for ac_last_try in false false false false false :; do
30540   . ./conf$$subs.sh ||
30541     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30542 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30543    { (exit 1); exit 1; }; }
30544
30545   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30546   if test $ac_delim_n = $ac_delim_num; then
30547     break
30548   elif $ac_last_try; then
30549     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30550 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30551    { (exit 1); exit 1; }; }
30552   else
30553     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30554   fi
30555 done
30556 rm -f conf$$subs.sh
30557
30558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30559 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30560 _ACEOF
30561 sed -n '
30562 h
30563 s/^/S["/; s/!.*/"]=/
30564 p
30565 g
30566 s/^[^!]*!//
30567 :repl
30568 t repl
30569 s/'"$ac_delim"'$//
30570 t delim
30571 :nl
30572 h
30573 s/\(.\{148\}\).*/\1/
30574 t more1
30575 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30576 p
30577 n
30578 b repl
30579 :more1
30580 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30581 p
30582 g
30583 s/.\{148\}//
30584 t nl
30585 :delim
30586 h
30587 s/\(.\{148\}\).*/\1/
30588 t more2
30589 s/["\\]/\\&/g; s/^/"/; s/$/"/
30590 p
30591 b
30592 :more2
30593 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30594 p
30595 g
30596 s/.\{148\}//
30597 t delim
30598 ' <conf$$subs.awk | sed '
30599 /^[^""]/{
30600   N
30601   s/\n//
30602 }
30603 ' >>$CONFIG_STATUS || ac_write_fail=1
30604 rm -f conf$$subs.awk
30605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30606 _ACAWK
30607 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30608   for (key in S) S_is_set[key] = 1
30609   FS = "\a"
30610
30611 }
30612 {
30613   line = $ 0
30614   nfields = split(line, field, "@")
30615   substed = 0
30616   len = length(field[1])
30617   for (i = 2; i < nfields; i++) {
30618     key = field[i]
30619     keylen = length(key)
30620     if (S_is_set[key]) {
30621       value = S[key]
30622       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30623       len += length(value) + length(field[++i])
30624       substed = 1
30625     } else
30626       len += 1 + keylen
30627   }
30628
30629   print line
30630 }
30631
30632 _ACAWK
30633 _ACEOF
30634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30635 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30636   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30637 else
30638   cat
30639 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30640   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
30641 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
30642    { (exit 1); exit 1; }; }
30643 _ACEOF
30644
30645 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30646 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30647 # trailing colons and then remove the whole line if VPATH becomes empty
30648 # (actually we leave an empty line to preserve line numbers).
30649 if test "x$srcdir" = x.; then
30650   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30651 s/:*\$(srcdir):*/:/
30652 s/:*\${srcdir}:*/:/
30653 s/:*@srcdir@:*/:/
30654 s/^\([^=]*=[     ]*\):*/\1/
30655 s/:*$//
30656 s/^[^=]*=[       ]*$//
30657 }'
30658 fi
30659
30660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30661 fi # test -n "$CONFIG_FILES"
30662
30663 # Set up the scripts for CONFIG_HEADERS section.
30664 # No need to generate them if there are no CONFIG_HEADERS.
30665 # This happens for instance with `./config.status Makefile'.
30666 if test -n "$CONFIG_HEADERS"; then
30667 cat >"$tmp/defines.awk" <<\_ACAWK ||
30668 BEGIN {
30669 _ACEOF
30670
30671 # Transform confdefs.h into an awk script `defines.awk', embedded as
30672 # here-document in config.status, that substitutes the proper values into
30673 # config.h.in to produce config.h.
30674
30675 # Create a delimiter string that does not exist in confdefs.h, to ease
30676 # handling of long lines.
30677 ac_delim='%!_!# '
30678 for ac_last_try in false false :; do
30679   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30680   if test -z "$ac_t"; then
30681     break
30682   elif $ac_last_try; then
30683     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
30684 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
30685    { (exit 1); exit 1; }; }
30686   else
30687     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30688   fi
30689 done
30690
30691 # For the awk script, D is an array of macro values keyed by name,
30692 # likewise P contains macro parameters if any.  Preserve backslash
30693 # newline sequences.
30694
30695 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30696 sed -n '
30697 s/.\{148\}/&'"$ac_delim"'/g
30698 t rset
30699 :rset
30700 s/^[     ]*#[    ]*define[       ][      ]*/ /
30701 t def
30702 d
30703 :def
30704 s/\\$//
30705 t bsnl
30706 s/["\\]/\\&/g
30707 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30708 D["\1"]=" \3"/p
30709 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
30710 d
30711 :bsnl
30712 s/["\\]/\\&/g
30713 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30714 D["\1"]=" \3\\\\\\n"\\/p
30715 t cont
30716 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30717 t cont
30718 d
30719 :cont
30720 n
30721 s/.\{148\}/&'"$ac_delim"'/g
30722 t clear
30723 :clear
30724 s/\\$//
30725 t bsnlc
30726 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30727 d
30728 :bsnlc
30729 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30730 b cont
30731 ' <confdefs.h | sed '
30732 s/'"$ac_delim"'/"\\\
30733 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30734
30735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30736   for (key in D) D_is_set[key] = 1
30737   FS = "\a"
30738 }
30739 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30740   line = \$ 0
30741   split(line, arg, " ")
30742   if (arg[1] == "#") {
30743     defundef = arg[2]
30744     mac1 = arg[3]
30745   } else {
30746     defundef = substr(arg[1], 2)
30747     mac1 = arg[2]
30748   }
30749   split(mac1, mac2, "(") #)
30750   macro = mac2[1]
30751   prefix = substr(line, 1, index(line, defundef) - 1)
30752   if (D_is_set[macro]) {
30753     # Preserve the white space surrounding the "#".
30754     print prefix "define", macro P[macro] D[macro]
30755     next
30756   } else {
30757     # Replace #undef with comments.  This is necessary, for example,
30758     # in the case of _POSIX_SOURCE, which is predefined and required
30759     # on some systems where configure will not decide to define it.
30760     if (defundef == "undef") {
30761       print "/*", prefix defundef, macro, "*/"
30762       next
30763     }
30764   }
30765 }
30766 { print }
30767 _ACAWK
30768 _ACEOF
30769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30770   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
30771 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
30772    { (exit 1); exit 1; }; }
30773 fi # test -n "$CONFIG_HEADERS"
30774
30775
30776 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
30777 shift
30778 for ac_tag
30779 do
30780   case $ac_tag in
30781   :[FHLC]) ac_mode=$ac_tag; continue;;
30782   esac
30783   case $ac_mode$ac_tag in
30784   :[FHL]*:*);;
30785   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
30786 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
30787    { (exit 1); exit 1; }; };;
30788   :[FH]-) ac_tag=-:-;;
30789   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30790   esac
30791   ac_save_IFS=$IFS
30792   IFS=:
30793   set x $ac_tag
30794   IFS=$ac_save_IFS
30795   shift
30796   ac_file=$1
30797   shift
30798
30799   case $ac_mode in
30800   :L) ac_source=$1;;
30801   :[FH])
30802     ac_file_inputs=
30803     for ac_f
30804     do
30805       case $ac_f in
30806       -) ac_f="$tmp/stdin";;
30807       *) # Look for the file first in the build tree, then in the source tree
30808          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30809          # because $ac_f cannot contain `:'.
30810          test -f "$ac_f" ||
30811            case $ac_f in
30812            [\\/$]*) false;;
30813            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30814            esac ||
30815            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30816 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30817    { (exit 1); exit 1; }; };;
30818       esac
30819       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30820       ac_file_inputs="$ac_file_inputs '$ac_f'"
30821     done
30822
30823     # Let's still pretend it is `configure' which instantiates (i.e., don't
30824     # use $as_me), people would be surprised to read:
30825     #    /* config.h.  Generated by config.status.  */
30826     configure_input='Generated from '`
30827           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30828         `' by configure.'
30829     if test x"$ac_file" != x-; then
30830       configure_input="$ac_file.  $configure_input"
30831       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
30832 $as_echo "$as_me: creating $ac_file" >&6;}
30833     fi
30834     # Neutralize special characters interpreted by sed in replacement strings.
30835     case $configure_input in #(
30836     *\&* | *\|* | *\\* )
30837        ac_sed_conf_input=`$as_echo "$configure_input" |
30838        sed 's/[\\\\&|]/\\\\&/g'`;; #(
30839     *) ac_sed_conf_input=$configure_input;;
30840     esac
30841
30842     case $ac_tag in
30843     *:-:* | *:-) cat >"$tmp/stdin" \
30844       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30845 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30846    { (exit 1); exit 1; }; } ;;
30847     esac
30848     ;;
30849   esac
30850
30851   ac_dir=`$as_dirname -- "$ac_file" ||
30852 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30853          X"$ac_file" : 'X\(//\)[^/]' \| \
30854          X"$ac_file" : 'X\(//\)$' \| \
30855          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30856 $as_echo X"$ac_file" |
30857     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30858             s//\1/
30859             q
30860           }
30861           /^X\(\/\/\)[^/].*/{
30862             s//\1/
30863             q
30864           }
30865           /^X\(\/\/\)$/{
30866             s//\1/
30867             q
30868           }
30869           /^X\(\/\).*/{
30870             s//\1/
30871             q
30872           }
30873           s/.*/./; q'`
30874   { as_dir="$ac_dir"
30875   case $as_dir in #(
30876   -*) as_dir=./$as_dir;;
30877   esac
30878   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30879     as_dirs=
30880     while :; do
30881       case $as_dir in #(
30882       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30883       *) as_qdir=$as_dir;;
30884       esac
30885       as_dirs="'$as_qdir' $as_dirs"
30886       as_dir=`$as_dirname -- "$as_dir" ||
30887 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30888          X"$as_dir" : 'X\(//\)[^/]' \| \
30889          X"$as_dir" : 'X\(//\)$' \| \
30890          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30891 $as_echo X"$as_dir" |
30892     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30893             s//\1/
30894             q
30895           }
30896           /^X\(\/\/\)[^/].*/{
30897             s//\1/
30898             q
30899           }
30900           /^X\(\/\/\)$/{
30901             s//\1/
30902             q
30903           }
30904           /^X\(\/\).*/{
30905             s//\1/
30906             q
30907           }
30908           s/.*/./; q'`
30909       test -d "$as_dir" && break
30910     done
30911     test -z "$as_dirs" || eval "mkdir $as_dirs"
30912   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30913 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
30914    { (exit 1); exit 1; }; }; }
30915   ac_builddir=.
30916
30917 case "$ac_dir" in
30918 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30919 *)
30920   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30921   # A ".." for each directory in $ac_dir_suffix.
30922   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30923   case $ac_top_builddir_sub in
30924   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30925   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30926   esac ;;
30927 esac
30928 ac_abs_top_builddir=$ac_pwd
30929 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30930 # for backward compatibility:
30931 ac_top_builddir=$ac_top_build_prefix
30932
30933 case $srcdir in
30934   .)  # We are building in place.
30935     ac_srcdir=.
30936     ac_top_srcdir=$ac_top_builddir_sub
30937     ac_abs_top_srcdir=$ac_pwd ;;
30938   [\\/]* | ?:[\\/]* )  # Absolute name.
30939     ac_srcdir=$srcdir$ac_dir_suffix;
30940     ac_top_srcdir=$srcdir
30941     ac_abs_top_srcdir=$srcdir ;;
30942   *) # Relative name.
30943     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30944     ac_top_srcdir=$ac_top_build_prefix$srcdir
30945     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30946 esac
30947 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30948
30949
30950   case $ac_mode in
30951   :F)
30952   #
30953   # CONFIG_FILE
30954   #
30955
30956   ac_MKDIR_P=$MKDIR_P
30957   case $MKDIR_P in
30958   [\\/$]* | ?:[\\/]* ) ;;
30959   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30960   esac
30961 _ACEOF
30962
30963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30964 # If the template does not know about datarootdir, expand it.
30965 # FIXME: This hack should be removed a few years after 2.60.
30966 ac_datarootdir_hack=; ac_datarootdir_seen=
30967
30968 ac_sed_dataroot='
30969 /datarootdir/ {
30970   p
30971   q
30972 }
30973 /@datadir@/p
30974 /@docdir@/p
30975 /@infodir@/p
30976 /@localedir@/p
30977 /@mandir@/p
30978 '
30979 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30980 *datarootdir*) ac_datarootdir_seen=yes;;
30981 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30982   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30983 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30984 _ACEOF
30985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30986   ac_datarootdir_hack='
30987   s&@datadir@&$datadir&g
30988   s&@docdir@&$docdir&g
30989   s&@infodir@&$infodir&g
30990   s&@localedir@&$localedir&g
30991   s&@mandir@&$mandir&g
30992     s&\\\${datarootdir}&$datarootdir&g' ;;
30993 esac
30994 _ACEOF
30995
30996 # Neutralize VPATH when `$srcdir' = `.'.
30997 # Shell code in configure.ac might set extrasub.
30998 # FIXME: do we really want to maintain this feature?
30999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31000 ac_sed_extra="$ac_vpsub
31001 $extrasub
31002 _ACEOF
31003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31004 :t
31005 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31006 s|@configure_input@|$ac_sed_conf_input|;t t
31007 s&@top_builddir@&$ac_top_builddir_sub&;t t
31008 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31009 s&@srcdir@&$ac_srcdir&;t t
31010 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31011 s&@top_srcdir@&$ac_top_srcdir&;t t
31012 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31013 s&@builddir@&$ac_builddir&;t t
31014 s&@abs_builddir@&$ac_abs_builddir&;t t
31015 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31016 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31017 $ac_datarootdir_hack
31018 "
31019 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
31020   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31021 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31022    { (exit 1); exit 1; }; }
31023
31024 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31025   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31026   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31027   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31028 which seems to be undefined.  Please make sure it is defined." >&5
31029 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31030 which seems to be undefined.  Please make sure it is defined." >&2;}
31031
31032   rm -f "$tmp/stdin"
31033   case $ac_file in
31034   -) cat "$tmp/out" && rm -f "$tmp/out";;
31035   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31036   esac \
31037   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31038 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31039    { (exit 1); exit 1; }; }
31040  ;;
31041   :H)
31042   #
31043   # CONFIG_HEADER
31044   #
31045   if test x"$ac_file" != x-; then
31046     {
31047       $as_echo "/* $configure_input  */" \
31048       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31049     } >"$tmp/config.h" \
31050       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31051 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31052    { (exit 1); exit 1; }; }
31053     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31054       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31055 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31056     else
31057       rm -f "$ac_file"
31058       mv "$tmp/config.h" "$ac_file" \
31059         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31060 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31061    { (exit 1); exit 1; }; }
31062     fi
31063   else
31064     $as_echo "/* $configure_input  */" \
31065       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31066       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31067 $as_echo "$as_me: error: could not create -" >&2;}
31068    { (exit 1); exit 1; }; }
31069   fi
31070  ;;
31071   :L)
31072   #
31073   # CONFIG_LINK
31074   #
31075
31076   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31077     :
31078   else
31079     # Prefer the file from the source tree if names are identical.
31080     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31081       ac_source=$srcdir/$ac_source
31082     fi
31083
31084     { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
31085 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31086
31087     if test ! -r "$ac_source"; then
31088       { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
31089 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
31090    { (exit 1); exit 1; }; }
31091     fi
31092     rm -f "$ac_file"
31093
31094     # Try a relative symlink, then a hard link, then a copy.
31095     case $srcdir in
31096     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31097         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31098     esac
31099     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31100       ln "$ac_source" "$ac_file" 2>/dev/null ||
31101       cp -p "$ac_source" "$ac_file" ||
31102       { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
31103 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
31104    { (exit 1); exit 1; }; }
31105   fi
31106  ;;
31107   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31108 $as_echo "$as_me: executing $ac_file commands" >&6;}
31109  ;;
31110   esac
31111
31112
31113   case $ac_file$ac_mode in
31114     "check_win32_symlinks":C)
31115 # Links sometimes fail undetected on Mingw -
31116 # so here we detect it and warn the user
31117 for FILE in $CONFIG_LINKS
31118  do
31119         # test -e works for symlinks in the MinGW console
31120         test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
31121 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
31122  done
31123  ;;
31124     "src/include/pg_config.h":H)
31125 # Update timestamp for pg_config.h (see Makefile.global)
31126 echo >src/include/stamp-h
31127  ;;
31128     "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
31129
31130   esac
31131 done # for ac_tag
31132
31133
31134 { (exit 0); exit 0; }
31135 _ACEOF
31136 chmod +x $CONFIG_STATUS
31137 ac_clean_files=$ac_clean_files_save
31138
31139 test $ac_write_fail = 0 ||
31140   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
31141 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
31142    { (exit 1); exit 1; }; }
31143
31144
31145 # configure is writing to config.log, and then calls config.status.
31146 # config.status does its own redirection, appending to config.log.
31147 # Unfortunately, on DOS this fails, as config.log is still kept open
31148 # by configure, so config.status won't be able to write to it; its
31149 # output is simply discarded.  So we exec the FD to /dev/null,
31150 # effectively closing config.log, so it can be properly (re)opened and
31151 # appended to by config.status.  When coming back to configure, we
31152 # need to make the FD available again.
31153 if test "$no_create" != yes; then
31154   ac_cs_success=:
31155   ac_config_status_args=
31156   test "$silent" = yes &&
31157     ac_config_status_args="$ac_config_status_args --quiet"
31158   exec 5>/dev/null
31159   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31160   exec 5>>config.log
31161   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31162   # would make configure fail if this is the last instruction.
31163   $ac_cs_success || { (exit 1); exit 1; }
31164 fi
31165 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31166   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31167 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31168 fi
31169