]> granicus.if.org Git - postgresql/blob - configure
Improve git_changelog's handling of inconsistent commit orderings.
[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,string; 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,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7317 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7318 python_so=`${PYTHON} -c "import distutils.sysconfig,string; 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,string; 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,string; 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
18991 for ac_func in cbrt dlopen fcvt fdatasync getifaddrs getpeerucred getrlimit memmove poll pstat readlink scandir setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs wcstombs_l
18992 do
18993 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18994 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18995 $as_echo_n "checking for $ac_func... " >&6; }
18996 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18997   $as_echo_n "(cached) " >&6
18998 else
18999   cat >conftest.$ac_ext <<_ACEOF
19000 /* confdefs.h.  */
19001 _ACEOF
19002 cat confdefs.h >>conftest.$ac_ext
19003 cat >>conftest.$ac_ext <<_ACEOF
19004 /* end confdefs.h.  */
19005 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19006    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19007 #define $ac_func innocuous_$ac_func
19008
19009 /* System header to define __stub macros and hopefully few prototypes,
19010     which can conflict with char $ac_func (); below.
19011     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19012     <limits.h> exists even on freestanding compilers.  */
19013
19014 #ifdef __STDC__
19015 # include <limits.h>
19016 #else
19017 # include <assert.h>
19018 #endif
19019
19020 #undef $ac_func
19021
19022 /* Override any GCC internal prototype to avoid an error.
19023    Use char because int might match the return type of a GCC
19024    builtin and then its argument prototype would still apply.  */
19025 #ifdef __cplusplus
19026 extern "C"
19027 #endif
19028 char $ac_func ();
19029 /* The GNU C library defines this for functions which it implements
19030     to always fail with ENOSYS.  Some functions are actually named
19031     something starting with __ and the normal name is an alias.  */
19032 #if defined __stub_$ac_func || defined __stub___$ac_func
19033 choke me
19034 #endif
19035
19036 int
19037 main ()
19038 {
19039 return $ac_func ();
19040   ;
19041   return 0;
19042 }
19043 _ACEOF
19044 rm -f conftest.$ac_objext conftest$ac_exeext
19045 if { (ac_try="$ac_link"
19046 case "(($ac_try" in
19047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19048   *) ac_try_echo=$ac_try;;
19049 esac
19050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19051 $as_echo "$ac_try_echo") >&5
19052   (eval "$ac_link") 2>conftest.er1
19053   ac_status=$?
19054   grep -v '^ *+' conftest.er1 >conftest.err
19055   rm -f conftest.er1
19056   cat conftest.err >&5
19057   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058   (exit $ac_status); } && {
19059          test -z "$ac_c_werror_flag" ||
19060          test ! -s conftest.err
19061        } && test -s conftest$ac_exeext && {
19062          test "$cross_compiling" = yes ||
19063          $as_test_x conftest$ac_exeext
19064        }; then
19065   eval "$as_ac_var=yes"
19066 else
19067   $as_echo "$as_me: failed program was:" >&5
19068 sed 's/^/| /' conftest.$ac_ext >&5
19069
19070         eval "$as_ac_var=no"
19071 fi
19072
19073 rm -rf conftest.dSYM
19074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19075       conftest$ac_exeext conftest.$ac_ext
19076 fi
19077 ac_res=`eval 'as_val=${'$as_ac_var'}
19078                  $as_echo "$as_val"'`
19079                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19080 $as_echo "$ac_res" >&6; }
19081 as_val=`eval 'as_val=${'$as_ac_var'}
19082                  $as_echo "$as_val"'`
19083    if test "x$as_val" = x""yes; then
19084   cat >>confdefs.h <<_ACEOF
19085 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19086 _ACEOF
19087
19088 fi
19089 done
19090
19091
19092
19093 for ac_func in fseeko
19094 do
19095 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19096 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19097 $as_echo_n "checking for $ac_func... " >&6; }
19098 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19099   $as_echo_n "(cached) " >&6
19100 else
19101   cat >conftest.$ac_ext <<_ACEOF
19102 /* confdefs.h.  */
19103 _ACEOF
19104 cat confdefs.h >>conftest.$ac_ext
19105 cat >>conftest.$ac_ext <<_ACEOF
19106 /* end confdefs.h.  */
19107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19108    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19109 #define $ac_func innocuous_$ac_func
19110
19111 /* System header to define __stub macros and hopefully few prototypes,
19112     which can conflict with char $ac_func (); below.
19113     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19114     <limits.h> exists even on freestanding compilers.  */
19115
19116 #ifdef __STDC__
19117 # include <limits.h>
19118 #else
19119 # include <assert.h>
19120 #endif
19121
19122 #undef $ac_func
19123
19124 /* Override any GCC internal prototype to avoid an error.
19125    Use char because int might match the return type of a GCC
19126    builtin and then its argument prototype would still apply.  */
19127 #ifdef __cplusplus
19128 extern "C"
19129 #endif
19130 char $ac_func ();
19131 /* The GNU C library defines this for functions which it implements
19132     to always fail with ENOSYS.  Some functions are actually named
19133     something starting with __ and the normal name is an alias.  */
19134 #if defined __stub_$ac_func || defined __stub___$ac_func
19135 choke me
19136 #endif
19137
19138 int
19139 main ()
19140 {
19141 return $ac_func ();
19142   ;
19143   return 0;
19144 }
19145 _ACEOF
19146 rm -f conftest.$ac_objext conftest$ac_exeext
19147 if { (ac_try="$ac_link"
19148 case "(($ac_try" in
19149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19150   *) ac_try_echo=$ac_try;;
19151 esac
19152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19153 $as_echo "$ac_try_echo") >&5
19154   (eval "$ac_link") 2>conftest.er1
19155   ac_status=$?
19156   grep -v '^ *+' conftest.er1 >conftest.err
19157   rm -f conftest.er1
19158   cat conftest.err >&5
19159   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160   (exit $ac_status); } && {
19161          test -z "$ac_c_werror_flag" ||
19162          test ! -s conftest.err
19163        } && test -s conftest$ac_exeext && {
19164          test "$cross_compiling" = yes ||
19165          $as_test_x conftest$ac_exeext
19166        }; then
19167   eval "$as_ac_var=yes"
19168 else
19169   $as_echo "$as_me: failed program was:" >&5
19170 sed 's/^/| /' conftest.$ac_ext >&5
19171
19172         eval "$as_ac_var=no"
19173 fi
19174
19175 rm -rf conftest.dSYM
19176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19177       conftest$ac_exeext conftest.$ac_ext
19178 fi
19179 ac_res=`eval 'as_val=${'$as_ac_var'}
19180                  $as_echo "$as_val"'`
19181                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19182 $as_echo "$ac_res" >&6; }
19183 as_val=`eval 'as_val=${'$as_ac_var'}
19184                  $as_echo "$as_val"'`
19185    if test "x$as_val" = x""yes; then
19186   cat >>confdefs.h <<_ACEOF
19187 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19188 _ACEOF
19189
19190 else
19191   case " $LIBOBJS " in
19192   *" $ac_func.$ac_objext "* ) ;;
19193   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19194  ;;
19195 esac
19196
19197 fi
19198 done
19199
19200
19201 case $host_os in
19202         # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
19203         # Mingw uses macros to access Win32 API calls
19204         bsdi*|netbsd*|mingw*)
19205
19206 cat >>confdefs.h <<\_ACEOF
19207 #define HAVE_FSEEKO 1
19208 _ACEOF
19209
19210                 ac_cv_func_fseeko=yes;;
19211         *)
19212                 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19213 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19214 if test "${ac_cv_sys_largefile_source+set}" = set; then
19215   $as_echo_n "(cached) " >&6
19216 else
19217   while :; do
19218   cat >conftest.$ac_ext <<_ACEOF
19219 /* confdefs.h.  */
19220 _ACEOF
19221 cat confdefs.h >>conftest.$ac_ext
19222 cat >>conftest.$ac_ext <<_ACEOF
19223 /* end confdefs.h.  */
19224 #include <sys/types.h> /* for off_t */
19225      #include <stdio.h>
19226 int
19227 main ()
19228 {
19229 int (*fp) (FILE *, off_t, int) = fseeko;
19230      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19231   ;
19232   return 0;
19233 }
19234 _ACEOF
19235 rm -f conftest.$ac_objext conftest$ac_exeext
19236 if { (ac_try="$ac_link"
19237 case "(($ac_try" in
19238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19239   *) ac_try_echo=$ac_try;;
19240 esac
19241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19242 $as_echo "$ac_try_echo") >&5
19243   (eval "$ac_link") 2>conftest.er1
19244   ac_status=$?
19245   grep -v '^ *+' conftest.er1 >conftest.err
19246   rm -f conftest.er1
19247   cat conftest.err >&5
19248   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249   (exit $ac_status); } && {
19250          test -z "$ac_c_werror_flag" ||
19251          test ! -s conftest.err
19252        } && test -s conftest$ac_exeext && {
19253          test "$cross_compiling" = yes ||
19254          $as_test_x conftest$ac_exeext
19255        }; then
19256   ac_cv_sys_largefile_source=no; break
19257 else
19258   $as_echo "$as_me: failed program was:" >&5
19259 sed 's/^/| /' conftest.$ac_ext >&5
19260
19261
19262 fi
19263
19264 rm -rf conftest.dSYM
19265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19266       conftest$ac_exeext conftest.$ac_ext
19267   cat >conftest.$ac_ext <<_ACEOF
19268 /* confdefs.h.  */
19269 _ACEOF
19270 cat confdefs.h >>conftest.$ac_ext
19271 cat >>conftest.$ac_ext <<_ACEOF
19272 /* end confdefs.h.  */
19273 #define _LARGEFILE_SOURCE 1
19274 #include <sys/types.h> /* for off_t */
19275      #include <stdio.h>
19276 int
19277 main ()
19278 {
19279 int (*fp) (FILE *, off_t, int) = fseeko;
19280      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19281   ;
19282   return 0;
19283 }
19284 _ACEOF
19285 rm -f conftest.$ac_objext conftest$ac_exeext
19286 if { (ac_try="$ac_link"
19287 case "(($ac_try" in
19288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19289   *) ac_try_echo=$ac_try;;
19290 esac
19291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19292 $as_echo "$ac_try_echo") >&5
19293   (eval "$ac_link") 2>conftest.er1
19294   ac_status=$?
19295   grep -v '^ *+' conftest.er1 >conftest.err
19296   rm -f conftest.er1
19297   cat conftest.err >&5
19298   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299   (exit $ac_status); } && {
19300          test -z "$ac_c_werror_flag" ||
19301          test ! -s conftest.err
19302        } && test -s conftest$ac_exeext && {
19303          test "$cross_compiling" = yes ||
19304          $as_test_x conftest$ac_exeext
19305        }; then
19306   ac_cv_sys_largefile_source=1; break
19307 else
19308   $as_echo "$as_me: failed program was:" >&5
19309 sed 's/^/| /' conftest.$ac_ext >&5
19310
19311
19312 fi
19313
19314 rm -rf conftest.dSYM
19315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19316       conftest$ac_exeext conftest.$ac_ext
19317   ac_cv_sys_largefile_source=unknown
19318   break
19319 done
19320 fi
19321 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19322 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19323 case $ac_cv_sys_largefile_source in #(
19324   no | unknown) ;;
19325   *)
19326 cat >>confdefs.h <<_ACEOF
19327 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19328 _ACEOF
19329 ;;
19330 esac
19331 rm -rf conftest*
19332
19333 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19334 # in glibc 2.1.3, but that breaks too many other things.
19335 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19336 if test $ac_cv_sys_largefile_source != unknown; then
19337
19338 cat >>confdefs.h <<\_ACEOF
19339 #define HAVE_FSEEKO 1
19340 _ACEOF
19341
19342 fi
19343 ;;
19344 esac
19345
19346 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
19347 # by calling it, 2009-04-02
19348 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
19349 if test "$PORTNAME" != "solaris"; then
19350
19351 for ac_func in posix_fadvise
19352 do
19353 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19354 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19355 $as_echo_n "checking for $ac_func... " >&6; }
19356 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19357   $as_echo_n "(cached) " >&6
19358 else
19359   cat >conftest.$ac_ext <<_ACEOF
19360 /* confdefs.h.  */
19361 _ACEOF
19362 cat confdefs.h >>conftest.$ac_ext
19363 cat >>conftest.$ac_ext <<_ACEOF
19364 /* end confdefs.h.  */
19365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19366    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19367 #define $ac_func innocuous_$ac_func
19368
19369 /* System header to define __stub macros and hopefully few prototypes,
19370     which can conflict with char $ac_func (); below.
19371     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19372     <limits.h> exists even on freestanding compilers.  */
19373
19374 #ifdef __STDC__
19375 # include <limits.h>
19376 #else
19377 # include <assert.h>
19378 #endif
19379
19380 #undef $ac_func
19381
19382 /* Override any GCC internal prototype to avoid an error.
19383    Use char because int might match the return type of a GCC
19384    builtin and then its argument prototype would still apply.  */
19385 #ifdef __cplusplus
19386 extern "C"
19387 #endif
19388 char $ac_func ();
19389 /* The GNU C library defines this for functions which it implements
19390     to always fail with ENOSYS.  Some functions are actually named
19391     something starting with __ and the normal name is an alias.  */
19392 #if defined __stub_$ac_func || defined __stub___$ac_func
19393 choke me
19394 #endif
19395
19396 int
19397 main ()
19398 {
19399 return $ac_func ();
19400   ;
19401   return 0;
19402 }
19403 _ACEOF
19404 rm -f conftest.$ac_objext conftest$ac_exeext
19405 if { (ac_try="$ac_link"
19406 case "(($ac_try" in
19407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19408   *) ac_try_echo=$ac_try;;
19409 esac
19410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19411 $as_echo "$ac_try_echo") >&5
19412   (eval "$ac_link") 2>conftest.er1
19413   ac_status=$?
19414   grep -v '^ *+' conftest.er1 >conftest.err
19415   rm -f conftest.er1
19416   cat conftest.err >&5
19417   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418   (exit $ac_status); } && {
19419          test -z "$ac_c_werror_flag" ||
19420          test ! -s conftest.err
19421        } && test -s conftest$ac_exeext && {
19422          test "$cross_compiling" = yes ||
19423          $as_test_x conftest$ac_exeext
19424        }; then
19425   eval "$as_ac_var=yes"
19426 else
19427   $as_echo "$as_me: failed program was:" >&5
19428 sed 's/^/| /' conftest.$ac_ext >&5
19429
19430         eval "$as_ac_var=no"
19431 fi
19432
19433 rm -rf conftest.dSYM
19434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19435       conftest$ac_exeext conftest.$ac_ext
19436 fi
19437 ac_res=`eval 'as_val=${'$as_ac_var'}
19438                  $as_echo "$as_val"'`
19439                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19440 $as_echo "$ac_res" >&6; }
19441 as_val=`eval 'as_val=${'$as_ac_var'}
19442                  $as_echo "$as_val"'`
19443    if test "x$as_val" = x""yes; then
19444   cat >>confdefs.h <<_ACEOF
19445 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19446 _ACEOF
19447
19448 fi
19449 done
19450
19451 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
19452 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
19453 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
19454   $as_echo_n "(cached) " >&6
19455 else
19456   cat >conftest.$ac_ext <<_ACEOF
19457 /* confdefs.h.  */
19458 _ACEOF
19459 cat confdefs.h >>conftest.$ac_ext
19460 cat >>conftest.$ac_ext <<_ACEOF
19461 /* end confdefs.h.  */
19462 #include <fcntl.h>
19463
19464 int
19465 main ()
19466 {
19467 #ifndef posix_fadvise
19468   (void) posix_fadvise;
19469 #endif
19470
19471   ;
19472   return 0;
19473 }
19474 _ACEOF
19475 rm -f conftest.$ac_objext
19476 if { (ac_try="$ac_compile"
19477 case "(($ac_try" in
19478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19479   *) ac_try_echo=$ac_try;;
19480 esac
19481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19482 $as_echo "$ac_try_echo") >&5
19483   (eval "$ac_compile") 2>conftest.er1
19484   ac_status=$?
19485   grep -v '^ *+' conftest.er1 >conftest.err
19486   rm -f conftest.er1
19487   cat conftest.err >&5
19488   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489   (exit $ac_status); } && {
19490          test -z "$ac_c_werror_flag" ||
19491          test ! -s conftest.err
19492        } && test -s conftest.$ac_objext; then
19493   ac_cv_have_decl_posix_fadvise=yes
19494 else
19495   $as_echo "$as_me: failed program was:" >&5
19496 sed 's/^/| /' conftest.$ac_ext >&5
19497
19498         ac_cv_have_decl_posix_fadvise=no
19499 fi
19500
19501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19502 fi
19503 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
19504 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
19505 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
19506
19507 cat >>confdefs.h <<_ACEOF
19508 #define HAVE_DECL_POSIX_FADVISE 1
19509 _ACEOF
19510
19511
19512 else
19513   cat >>confdefs.h <<_ACEOF
19514 #define HAVE_DECL_POSIX_FADVISE 0
19515 _ACEOF
19516
19517
19518 fi
19519
19520
19521 fi
19522
19523 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
19524 $as_echo_n "checking whether fdatasync is declared... " >&6; }
19525 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
19526   $as_echo_n "(cached) " >&6
19527 else
19528   cat >conftest.$ac_ext <<_ACEOF
19529 /* confdefs.h.  */
19530 _ACEOF
19531 cat confdefs.h >>conftest.$ac_ext
19532 cat >>conftest.$ac_ext <<_ACEOF
19533 /* end confdefs.h.  */
19534 #include <unistd.h>
19535
19536 int
19537 main ()
19538 {
19539 #ifndef fdatasync
19540   (void) fdatasync;
19541 #endif
19542
19543   ;
19544   return 0;
19545 }
19546 _ACEOF
19547 rm -f conftest.$ac_objext
19548 if { (ac_try="$ac_compile"
19549 case "(($ac_try" in
19550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19551   *) ac_try_echo=$ac_try;;
19552 esac
19553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19554 $as_echo "$ac_try_echo") >&5
19555   (eval "$ac_compile") 2>conftest.er1
19556   ac_status=$?
19557   grep -v '^ *+' conftest.er1 >conftest.err
19558   rm -f conftest.er1
19559   cat conftest.err >&5
19560   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561   (exit $ac_status); } && {
19562          test -z "$ac_c_werror_flag" ||
19563          test ! -s conftest.err
19564        } && test -s conftest.$ac_objext; then
19565   ac_cv_have_decl_fdatasync=yes
19566 else
19567   $as_echo "$as_me: failed program was:" >&5
19568 sed 's/^/| /' conftest.$ac_ext >&5
19569
19570         ac_cv_have_decl_fdatasync=no
19571 fi
19572
19573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19574 fi
19575 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
19576 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
19577 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
19578
19579 cat >>confdefs.h <<_ACEOF
19580 #define HAVE_DECL_FDATASYNC 1
19581 _ACEOF
19582
19583
19584 else
19585   cat >>confdefs.h <<_ACEOF
19586 #define HAVE_DECL_FDATASYNC 0
19587 _ACEOF
19588
19589
19590 fi
19591
19592
19593 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
19594 $as_echo_n "checking whether strlcat is declared... " >&6; }
19595 if test "${ac_cv_have_decl_strlcat+set}" = set; then
19596   $as_echo_n "(cached) " >&6
19597 else
19598   cat >conftest.$ac_ext <<_ACEOF
19599 /* confdefs.h.  */
19600 _ACEOF
19601 cat confdefs.h >>conftest.$ac_ext
19602 cat >>conftest.$ac_ext <<_ACEOF
19603 /* end confdefs.h.  */
19604 $ac_includes_default
19605 int
19606 main ()
19607 {
19608 #ifndef strlcat
19609   (void) strlcat;
19610 #endif
19611
19612   ;
19613   return 0;
19614 }
19615 _ACEOF
19616 rm -f conftest.$ac_objext
19617 if { (ac_try="$ac_compile"
19618 case "(($ac_try" in
19619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620   *) ac_try_echo=$ac_try;;
19621 esac
19622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19623 $as_echo "$ac_try_echo") >&5
19624   (eval "$ac_compile") 2>conftest.er1
19625   ac_status=$?
19626   grep -v '^ *+' conftest.er1 >conftest.err
19627   rm -f conftest.er1
19628   cat conftest.err >&5
19629   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630   (exit $ac_status); } && {
19631          test -z "$ac_c_werror_flag" ||
19632          test ! -s conftest.err
19633        } && test -s conftest.$ac_objext; then
19634   ac_cv_have_decl_strlcat=yes
19635 else
19636   $as_echo "$as_me: failed program was:" >&5
19637 sed 's/^/| /' conftest.$ac_ext >&5
19638
19639         ac_cv_have_decl_strlcat=no
19640 fi
19641
19642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19643 fi
19644 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
19645 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
19646 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
19647
19648 cat >>confdefs.h <<_ACEOF
19649 #define HAVE_DECL_STRLCAT 1
19650 _ACEOF
19651
19652
19653 else
19654   cat >>confdefs.h <<_ACEOF
19655 #define HAVE_DECL_STRLCAT 0
19656 _ACEOF
19657
19658
19659 fi
19660 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
19661 $as_echo_n "checking whether strlcpy is declared... " >&6; }
19662 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
19663   $as_echo_n "(cached) " >&6
19664 else
19665   cat >conftest.$ac_ext <<_ACEOF
19666 /* confdefs.h.  */
19667 _ACEOF
19668 cat confdefs.h >>conftest.$ac_ext
19669 cat >>conftest.$ac_ext <<_ACEOF
19670 /* end confdefs.h.  */
19671 $ac_includes_default
19672 int
19673 main ()
19674 {
19675 #ifndef strlcpy
19676   (void) strlcpy;
19677 #endif
19678
19679   ;
19680   return 0;
19681 }
19682 _ACEOF
19683 rm -f conftest.$ac_objext
19684 if { (ac_try="$ac_compile"
19685 case "(($ac_try" in
19686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19687   *) ac_try_echo=$ac_try;;
19688 esac
19689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19690 $as_echo "$ac_try_echo") >&5
19691   (eval "$ac_compile") 2>conftest.er1
19692   ac_status=$?
19693   grep -v '^ *+' conftest.er1 >conftest.err
19694   rm -f conftest.er1
19695   cat conftest.err >&5
19696   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697   (exit $ac_status); } && {
19698          test -z "$ac_c_werror_flag" ||
19699          test ! -s conftest.err
19700        } && test -s conftest.$ac_objext; then
19701   ac_cv_have_decl_strlcpy=yes
19702 else
19703   $as_echo "$as_me: failed program was:" >&5
19704 sed 's/^/| /' conftest.$ac_ext >&5
19705
19706         ac_cv_have_decl_strlcpy=no
19707 fi
19708
19709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19710 fi
19711 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
19712 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
19713 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
19714
19715 cat >>confdefs.h <<_ACEOF
19716 #define HAVE_DECL_STRLCPY 1
19717 _ACEOF
19718
19719
19720 else
19721   cat >>confdefs.h <<_ACEOF
19722 #define HAVE_DECL_STRLCPY 0
19723 _ACEOF
19724
19725
19726 fi
19727
19728
19729 # This is probably only present on Darwin, but may as well check always
19730 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
19731 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
19732 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
19733   $as_echo_n "(cached) " >&6
19734 else
19735   cat >conftest.$ac_ext <<_ACEOF
19736 /* confdefs.h.  */
19737 _ACEOF
19738 cat confdefs.h >>conftest.$ac_ext
19739 cat >>conftest.$ac_ext <<_ACEOF
19740 /* end confdefs.h.  */
19741 #include <fcntl.h>
19742
19743 int
19744 main ()
19745 {
19746 #ifndef F_FULLFSYNC
19747   (void) F_FULLFSYNC;
19748 #endif
19749
19750   ;
19751   return 0;
19752 }
19753 _ACEOF
19754 rm -f conftest.$ac_objext
19755 if { (ac_try="$ac_compile"
19756 case "(($ac_try" in
19757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19758   *) ac_try_echo=$ac_try;;
19759 esac
19760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19761 $as_echo "$ac_try_echo") >&5
19762   (eval "$ac_compile") 2>conftest.er1
19763   ac_status=$?
19764   grep -v '^ *+' conftest.er1 >conftest.err
19765   rm -f conftest.er1
19766   cat conftest.err >&5
19767   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768   (exit $ac_status); } && {
19769          test -z "$ac_c_werror_flag" ||
19770          test ! -s conftest.err
19771        } && test -s conftest.$ac_objext; then
19772   ac_cv_have_decl_F_FULLFSYNC=yes
19773 else
19774   $as_echo "$as_me: failed program was:" >&5
19775 sed 's/^/| /' conftest.$ac_ext >&5
19776
19777         ac_cv_have_decl_F_FULLFSYNC=no
19778 fi
19779
19780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19781 fi
19782 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
19783 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
19784 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
19785
19786 cat >>confdefs.h <<_ACEOF
19787 #define HAVE_DECL_F_FULLFSYNC 1
19788 _ACEOF
19789
19790
19791 else
19792   cat >>confdefs.h <<_ACEOF
19793 #define HAVE_DECL_F_FULLFSYNC 0
19794 _ACEOF
19795
19796
19797 fi
19798
19799
19800
19801 HAVE_IPV6=no
19802 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
19803 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
19804 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
19805   $as_echo_n "(cached) " >&6
19806 else
19807   ac_cv_type_struct_sockaddr_in6=no
19808 cat >conftest.$ac_ext <<_ACEOF
19809 /* confdefs.h.  */
19810 _ACEOF
19811 cat confdefs.h >>conftest.$ac_ext
19812 cat >>conftest.$ac_ext <<_ACEOF
19813 /* end confdefs.h.  */
19814 $ac_includes_default
19815 #include <netinet/in.h>
19816
19817 int
19818 main ()
19819 {
19820 if (sizeof (struct sockaddr_in6))
19821        return 0;
19822   ;
19823   return 0;
19824 }
19825 _ACEOF
19826 rm -f conftest.$ac_objext
19827 if { (ac_try="$ac_compile"
19828 case "(($ac_try" in
19829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19830   *) ac_try_echo=$ac_try;;
19831 esac
19832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19833 $as_echo "$ac_try_echo") >&5
19834   (eval "$ac_compile") 2>conftest.er1
19835   ac_status=$?
19836   grep -v '^ *+' conftest.er1 >conftest.err
19837   rm -f conftest.er1
19838   cat conftest.err >&5
19839   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840   (exit $ac_status); } && {
19841          test -z "$ac_c_werror_flag" ||
19842          test ! -s conftest.err
19843        } && test -s conftest.$ac_objext; then
19844   cat >conftest.$ac_ext <<_ACEOF
19845 /* confdefs.h.  */
19846 _ACEOF
19847 cat confdefs.h >>conftest.$ac_ext
19848 cat >>conftest.$ac_ext <<_ACEOF
19849 /* end confdefs.h.  */
19850 $ac_includes_default
19851 #include <netinet/in.h>
19852
19853 int
19854 main ()
19855 {
19856 if (sizeof ((struct sockaddr_in6)))
19857           return 0;
19858   ;
19859   return 0;
19860 }
19861 _ACEOF
19862 rm -f conftest.$ac_objext
19863 if { (ac_try="$ac_compile"
19864 case "(($ac_try" in
19865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19866   *) ac_try_echo=$ac_try;;
19867 esac
19868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19869 $as_echo "$ac_try_echo") >&5
19870   (eval "$ac_compile") 2>conftest.er1
19871   ac_status=$?
19872   grep -v '^ *+' conftest.er1 >conftest.err
19873   rm -f conftest.er1
19874   cat conftest.err >&5
19875   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876   (exit $ac_status); } && {
19877          test -z "$ac_c_werror_flag" ||
19878          test ! -s conftest.err
19879        } && test -s conftest.$ac_objext; then
19880   :
19881 else
19882   $as_echo "$as_me: failed program was:" >&5
19883 sed 's/^/| /' conftest.$ac_ext >&5
19884
19885         ac_cv_type_struct_sockaddr_in6=yes
19886 fi
19887
19888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19889 else
19890   $as_echo "$as_me: failed program was:" >&5
19891 sed 's/^/| /' conftest.$ac_ext >&5
19892
19893
19894 fi
19895
19896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19897 fi
19898 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
19899 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
19900 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
19901
19902 cat >>confdefs.h <<\_ACEOF
19903 #define HAVE_IPV6 1
19904 _ACEOF
19905
19906          HAVE_IPV6=yes
19907 fi
19908
19909
19910
19911 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
19912 $as_echo_n "checking for PS_STRINGS... " >&6; }
19913 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
19914   $as_echo_n "(cached) " >&6
19915 else
19916   cat >conftest.$ac_ext <<_ACEOF
19917 /* confdefs.h.  */
19918 _ACEOF
19919 cat confdefs.h >>conftest.$ac_ext
19920 cat >>conftest.$ac_ext <<_ACEOF
19921 /* end confdefs.h.  */
19922 #include <machine/vmparam.h>
19923 #include <sys/exec.h>
19924
19925 int
19926 main ()
19927 {
19928 PS_STRINGS->ps_nargvstr = 1;
19929 PS_STRINGS->ps_argvstr = "foo";
19930   ;
19931   return 0;
19932 }
19933 _ACEOF
19934 rm -f conftest.$ac_objext conftest$ac_exeext
19935 if { (ac_try="$ac_link"
19936 case "(($ac_try" in
19937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19938   *) ac_try_echo=$ac_try;;
19939 esac
19940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19941 $as_echo "$ac_try_echo") >&5
19942   (eval "$ac_link") 2>conftest.er1
19943   ac_status=$?
19944   grep -v '^ *+' conftest.er1 >conftest.err
19945   rm -f conftest.er1
19946   cat conftest.err >&5
19947   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948   (exit $ac_status); } && {
19949          test -z "$ac_c_werror_flag" ||
19950          test ! -s conftest.err
19951        } && test -s conftest$ac_exeext && {
19952          test "$cross_compiling" = yes ||
19953          $as_test_x conftest$ac_exeext
19954        }; then
19955   pgac_cv_var_PS_STRINGS=yes
19956 else
19957   $as_echo "$as_me: failed program was:" >&5
19958 sed 's/^/| /' conftest.$ac_ext >&5
19959
19960         pgac_cv_var_PS_STRINGS=no
19961 fi
19962
19963 rm -rf conftest.dSYM
19964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19965       conftest$ac_exeext conftest.$ac_ext
19966 fi
19967 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
19968 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
19969 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
19970
19971 cat >>confdefs.h <<\_ACEOF
19972 #define HAVE_PS_STRINGS /**/
19973 _ACEOF
19974
19975 fi
19976
19977
19978 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
19979 # is missing.  Yes, there are machines that have only one.  We may
19980 # also decide to use snprintf.c if snprintf() is present but does not
19981 # have all the features we need --- see below.
19982
19983 if test "$PORTNAME" = "win32"; then
19984   # Win32 gets snprintf.c built unconditionally.
19985   #
19986   # To properly translate all NLS languages strings, we must support the
19987   # *printf() %$ format, which allows *printf() arguments to be selected
19988   # by position in the translated string.
19989   #
19990   # libintl versions < 0.13 use the native *printf() functions, and Win32
19991   # *printf() doesn't understand %$, so we must use our /port versions,
19992   # which do understand %$. libintl versions >= 0.13 include their own
19993   # *printf versions on Win32.  The libintl 0.13 release note text is:
19994   #
19995   #   C format strings with positions, as they arise when a translator
19996   #   needs to reorder a sentence, are now supported on all platforms.
19997   #   On those few platforms (NetBSD and Woe32) for which the native
19998   #   printf()/fprintf()/... functions don't support such format
19999   #   strings, replacements are provided through <libintl.h>.
20000   #
20001   # We could use libintl >= 0.13's *printf() if we were sure that we had
20002   # a litint >= 0.13 at runtime, but seeing that there is no clean way
20003   # to guarantee that, it is best to just use our own, so we are sure to
20004   # get %$ support. In include/port.h we disable the *printf() macros
20005   # that might have been defined by libintl.
20006   #
20007   # We do this unconditionally whether NLS is used or not so we are sure
20008   # that all Win32 libraries and binaries behave the same.
20009   pgac_need_repl_snprintf=yes
20010 else
20011   pgac_need_repl_snprintf=no
20012
20013 for ac_func in snprintf
20014 do
20015 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20016 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20017 $as_echo_n "checking for $ac_func... " >&6; }
20018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20019   $as_echo_n "(cached) " >&6
20020 else
20021   cat >conftest.$ac_ext <<_ACEOF
20022 /* confdefs.h.  */
20023 _ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h.  */
20027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20028    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20029 #define $ac_func innocuous_$ac_func
20030
20031 /* System header to define __stub macros and hopefully few prototypes,
20032     which can conflict with char $ac_func (); below.
20033     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20034     <limits.h> exists even on freestanding compilers.  */
20035
20036 #ifdef __STDC__
20037 # include <limits.h>
20038 #else
20039 # include <assert.h>
20040 #endif
20041
20042 #undef $ac_func
20043
20044 /* Override any GCC internal prototype to avoid an error.
20045    Use char because int might match the return type of a GCC
20046    builtin and then its argument prototype would still apply.  */
20047 #ifdef __cplusplus
20048 extern "C"
20049 #endif
20050 char $ac_func ();
20051 /* The GNU C library defines this for functions which it implements
20052     to always fail with ENOSYS.  Some functions are actually named
20053     something starting with __ and the normal name is an alias.  */
20054 #if defined __stub_$ac_func || defined __stub___$ac_func
20055 choke me
20056 #endif
20057
20058 int
20059 main ()
20060 {
20061 return $ac_func ();
20062   ;
20063   return 0;
20064 }
20065 _ACEOF
20066 rm -f conftest.$ac_objext conftest$ac_exeext
20067 if { (ac_try="$ac_link"
20068 case "(($ac_try" in
20069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20070   *) ac_try_echo=$ac_try;;
20071 esac
20072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20073 $as_echo "$ac_try_echo") >&5
20074   (eval "$ac_link") 2>conftest.er1
20075   ac_status=$?
20076   grep -v '^ *+' conftest.er1 >conftest.err
20077   rm -f conftest.er1
20078   cat conftest.err >&5
20079   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080   (exit $ac_status); } && {
20081          test -z "$ac_c_werror_flag" ||
20082          test ! -s conftest.err
20083        } && test -s conftest$ac_exeext && {
20084          test "$cross_compiling" = yes ||
20085          $as_test_x conftest$ac_exeext
20086        }; then
20087   eval "$as_ac_var=yes"
20088 else
20089   $as_echo "$as_me: failed program was:" >&5
20090 sed 's/^/| /' conftest.$ac_ext >&5
20091
20092         eval "$as_ac_var=no"
20093 fi
20094
20095 rm -rf conftest.dSYM
20096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20097       conftest$ac_exeext conftest.$ac_ext
20098 fi
20099 ac_res=`eval 'as_val=${'$as_ac_var'}
20100                  $as_echo "$as_val"'`
20101                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20102 $as_echo "$ac_res" >&6; }
20103 as_val=`eval 'as_val=${'$as_ac_var'}
20104                  $as_echo "$as_val"'`
20105    if test "x$as_val" = x""yes; then
20106   cat >>confdefs.h <<_ACEOF
20107 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20108 _ACEOF
20109
20110 else
20111   pgac_need_repl_snprintf=yes
20112 fi
20113 done
20114
20115
20116 for ac_func in vsnprintf
20117 do
20118 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20119 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20120 $as_echo_n "checking for $ac_func... " >&6; }
20121 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20122   $as_echo_n "(cached) " >&6
20123 else
20124   cat >conftest.$ac_ext <<_ACEOF
20125 /* confdefs.h.  */
20126 _ACEOF
20127 cat confdefs.h >>conftest.$ac_ext
20128 cat >>conftest.$ac_ext <<_ACEOF
20129 /* end confdefs.h.  */
20130 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20131    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20132 #define $ac_func innocuous_$ac_func
20133
20134 /* System header to define __stub macros and hopefully few prototypes,
20135     which can conflict with char $ac_func (); below.
20136     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20137     <limits.h> exists even on freestanding compilers.  */
20138
20139 #ifdef __STDC__
20140 # include <limits.h>
20141 #else
20142 # include <assert.h>
20143 #endif
20144
20145 #undef $ac_func
20146
20147 /* Override any GCC internal prototype to avoid an error.
20148    Use char because int might match the return type of a GCC
20149    builtin and then its argument prototype would still apply.  */
20150 #ifdef __cplusplus
20151 extern "C"
20152 #endif
20153 char $ac_func ();
20154 /* The GNU C library defines this for functions which it implements
20155     to always fail with ENOSYS.  Some functions are actually named
20156     something starting with __ and the normal name is an alias.  */
20157 #if defined __stub_$ac_func || defined __stub___$ac_func
20158 choke me
20159 #endif
20160
20161 int
20162 main ()
20163 {
20164 return $ac_func ();
20165   ;
20166   return 0;
20167 }
20168 _ACEOF
20169 rm -f conftest.$ac_objext conftest$ac_exeext
20170 if { (ac_try="$ac_link"
20171 case "(($ac_try" in
20172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20173   *) ac_try_echo=$ac_try;;
20174 esac
20175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20176 $as_echo "$ac_try_echo") >&5
20177   (eval "$ac_link") 2>conftest.er1
20178   ac_status=$?
20179   grep -v '^ *+' conftest.er1 >conftest.err
20180   rm -f conftest.er1
20181   cat conftest.err >&5
20182   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183   (exit $ac_status); } && {
20184          test -z "$ac_c_werror_flag" ||
20185          test ! -s conftest.err
20186        } && test -s conftest$ac_exeext && {
20187          test "$cross_compiling" = yes ||
20188          $as_test_x conftest$ac_exeext
20189        }; then
20190   eval "$as_ac_var=yes"
20191 else
20192   $as_echo "$as_me: failed program was:" >&5
20193 sed 's/^/| /' conftest.$ac_ext >&5
20194
20195         eval "$as_ac_var=no"
20196 fi
20197
20198 rm -rf conftest.dSYM
20199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20200       conftest$ac_exeext conftest.$ac_ext
20201 fi
20202 ac_res=`eval 'as_val=${'$as_ac_var'}
20203                  $as_echo "$as_val"'`
20204                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20205 $as_echo "$ac_res" >&6; }
20206 as_val=`eval 'as_val=${'$as_ac_var'}
20207                  $as_echo "$as_val"'`
20208    if test "x$as_val" = x""yes; then
20209   cat >>confdefs.h <<_ACEOF
20210 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20211 _ACEOF
20212
20213 else
20214   pgac_need_repl_snprintf=yes
20215 fi
20216 done
20217
20218 fi
20219
20220
20221 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
20222 # include/c.h will provide declarations.  Note this is a separate test
20223 # from whether the functions exist in the C library --- there are
20224 # systems that have the functions but don't bother to declare them :-(
20225
20226 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
20227 $as_echo_n "checking whether snprintf is declared... " >&6; }
20228 if test "${ac_cv_have_decl_snprintf+set}" = set; then
20229   $as_echo_n "(cached) " >&6
20230 else
20231   cat >conftest.$ac_ext <<_ACEOF
20232 /* confdefs.h.  */
20233 _ACEOF
20234 cat confdefs.h >>conftest.$ac_ext
20235 cat >>conftest.$ac_ext <<_ACEOF
20236 /* end confdefs.h.  */
20237 $ac_includes_default
20238 int
20239 main ()
20240 {
20241 #ifndef snprintf
20242   (void) snprintf;
20243 #endif
20244
20245   ;
20246   return 0;
20247 }
20248 _ACEOF
20249 rm -f conftest.$ac_objext
20250 if { (ac_try="$ac_compile"
20251 case "(($ac_try" in
20252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20253   *) ac_try_echo=$ac_try;;
20254 esac
20255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20256 $as_echo "$ac_try_echo") >&5
20257   (eval "$ac_compile") 2>conftest.er1
20258   ac_status=$?
20259   grep -v '^ *+' conftest.er1 >conftest.err
20260   rm -f conftest.er1
20261   cat conftest.err >&5
20262   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263   (exit $ac_status); } && {
20264          test -z "$ac_c_werror_flag" ||
20265          test ! -s conftest.err
20266        } && test -s conftest.$ac_objext; then
20267   ac_cv_have_decl_snprintf=yes
20268 else
20269   $as_echo "$as_me: failed program was:" >&5
20270 sed 's/^/| /' conftest.$ac_ext >&5
20271
20272         ac_cv_have_decl_snprintf=no
20273 fi
20274
20275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20276 fi
20277 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
20278 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
20279 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
20280
20281 cat >>confdefs.h <<_ACEOF
20282 #define HAVE_DECL_SNPRINTF 1
20283 _ACEOF
20284
20285
20286 else
20287   cat >>confdefs.h <<_ACEOF
20288 #define HAVE_DECL_SNPRINTF 0
20289 _ACEOF
20290
20291
20292 fi
20293 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
20294 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
20295 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
20296   $as_echo_n "(cached) " >&6
20297 else
20298   cat >conftest.$ac_ext <<_ACEOF
20299 /* confdefs.h.  */
20300 _ACEOF
20301 cat confdefs.h >>conftest.$ac_ext
20302 cat >>conftest.$ac_ext <<_ACEOF
20303 /* end confdefs.h.  */
20304 $ac_includes_default
20305 int
20306 main ()
20307 {
20308 #ifndef vsnprintf
20309   (void) vsnprintf;
20310 #endif
20311
20312   ;
20313   return 0;
20314 }
20315 _ACEOF
20316 rm -f conftest.$ac_objext
20317 if { (ac_try="$ac_compile"
20318 case "(($ac_try" in
20319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20320   *) ac_try_echo=$ac_try;;
20321 esac
20322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20323 $as_echo "$ac_try_echo") >&5
20324   (eval "$ac_compile") 2>conftest.er1
20325   ac_status=$?
20326   grep -v '^ *+' conftest.er1 >conftest.err
20327   rm -f conftest.er1
20328   cat conftest.err >&5
20329   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330   (exit $ac_status); } && {
20331          test -z "$ac_c_werror_flag" ||
20332          test ! -s conftest.err
20333        } && test -s conftest.$ac_objext; then
20334   ac_cv_have_decl_vsnprintf=yes
20335 else
20336   $as_echo "$as_me: failed program was:" >&5
20337 sed 's/^/| /' conftest.$ac_ext >&5
20338
20339         ac_cv_have_decl_vsnprintf=no
20340 fi
20341
20342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20343 fi
20344 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
20345 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
20346 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
20347
20348 cat >>confdefs.h <<_ACEOF
20349 #define HAVE_DECL_VSNPRINTF 1
20350 _ACEOF
20351
20352
20353 else
20354   cat >>confdefs.h <<_ACEOF
20355 #define HAVE_DECL_VSNPRINTF 0
20356 _ACEOF
20357
20358
20359 fi
20360
20361
20362
20363
20364 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
20365 $as_echo_n "checking for isinf... " >&6; }
20366 if test "${ac_cv_func_isinf+set}" = set; then
20367   $as_echo_n "(cached) " >&6
20368 else
20369   cat >conftest.$ac_ext <<_ACEOF
20370 /* confdefs.h.  */
20371 _ACEOF
20372 cat confdefs.h >>conftest.$ac_ext
20373 cat >>conftest.$ac_ext <<_ACEOF
20374 /* end confdefs.h.  */
20375
20376 #include <math.h>
20377 double glob_double;
20378
20379 int
20380 main ()
20381 {
20382 return isinf(glob_double) ? 0 : 1;
20383   ;
20384   return 0;
20385 }
20386 _ACEOF
20387 rm -f conftest.$ac_objext conftest$ac_exeext
20388 if { (ac_try="$ac_link"
20389 case "(($ac_try" in
20390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20391   *) ac_try_echo=$ac_try;;
20392 esac
20393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20394 $as_echo "$ac_try_echo") >&5
20395   (eval "$ac_link") 2>conftest.er1
20396   ac_status=$?
20397   grep -v '^ *+' conftest.er1 >conftest.err
20398   rm -f conftest.er1
20399   cat conftest.err >&5
20400   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401   (exit $ac_status); } && {
20402          test -z "$ac_c_werror_flag" ||
20403          test ! -s conftest.err
20404        } && test -s conftest$ac_exeext && {
20405          test "$cross_compiling" = yes ||
20406          $as_test_x conftest$ac_exeext
20407        }; then
20408   ac_cv_func_isinf=yes
20409 else
20410   $as_echo "$as_me: failed program was:" >&5
20411 sed 's/^/| /' conftest.$ac_ext >&5
20412
20413         ac_cv_func_isinf=no
20414 fi
20415
20416 rm -rf conftest.dSYM
20417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20418       conftest$ac_exeext conftest.$ac_ext
20419 fi
20420 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
20421 $as_echo "$ac_cv_func_isinf" >&6; }
20422
20423 if test $ac_cv_func_isinf = yes ; then
20424
20425 cat >>confdefs.h <<\_ACEOF
20426 #define HAVE_ISINF 1
20427 _ACEOF
20428
20429 else
20430   case " $LIBOBJS " in
20431   *" isinf.$ac_objext "* ) ;;
20432   *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
20433  ;;
20434 esac
20435
20436   # Look for a way to implement a substitute for isinf()
20437
20438
20439
20440
20441 for ac_func in fpclass fp_class fp_class_d class
20442 do
20443 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20444 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20445 $as_echo_n "checking for $ac_func... " >&6; }
20446 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20447   $as_echo_n "(cached) " >&6
20448 else
20449   cat >conftest.$ac_ext <<_ACEOF
20450 /* confdefs.h.  */
20451 _ACEOF
20452 cat confdefs.h >>conftest.$ac_ext
20453 cat >>conftest.$ac_ext <<_ACEOF
20454 /* end confdefs.h.  */
20455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20456    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20457 #define $ac_func innocuous_$ac_func
20458
20459 /* System header to define __stub macros and hopefully few prototypes,
20460     which can conflict with char $ac_func (); below.
20461     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20462     <limits.h> exists even on freestanding compilers.  */
20463
20464 #ifdef __STDC__
20465 # include <limits.h>
20466 #else
20467 # include <assert.h>
20468 #endif
20469
20470 #undef $ac_func
20471
20472 /* Override any GCC internal prototype to avoid an error.
20473    Use char because int might match the return type of a GCC
20474    builtin and then its argument prototype would still apply.  */
20475 #ifdef __cplusplus
20476 extern "C"
20477 #endif
20478 char $ac_func ();
20479 /* The GNU C library defines this for functions which it implements
20480     to always fail with ENOSYS.  Some functions are actually named
20481     something starting with __ and the normal name is an alias.  */
20482 #if defined __stub_$ac_func || defined __stub___$ac_func
20483 choke me
20484 #endif
20485
20486 int
20487 main ()
20488 {
20489 return $ac_func ();
20490   ;
20491   return 0;
20492 }
20493 _ACEOF
20494 rm -f conftest.$ac_objext conftest$ac_exeext
20495 if { (ac_try="$ac_link"
20496 case "(($ac_try" in
20497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20498   *) ac_try_echo=$ac_try;;
20499 esac
20500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20501 $as_echo "$ac_try_echo") >&5
20502   (eval "$ac_link") 2>conftest.er1
20503   ac_status=$?
20504   grep -v '^ *+' conftest.er1 >conftest.err
20505   rm -f conftest.er1
20506   cat conftest.err >&5
20507   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508   (exit $ac_status); } && {
20509          test -z "$ac_c_werror_flag" ||
20510          test ! -s conftest.err
20511        } && test -s conftest$ac_exeext && {
20512          test "$cross_compiling" = yes ||
20513          $as_test_x conftest$ac_exeext
20514        }; then
20515   eval "$as_ac_var=yes"
20516 else
20517   $as_echo "$as_me: failed program was:" >&5
20518 sed 's/^/| /' conftest.$ac_ext >&5
20519
20520         eval "$as_ac_var=no"
20521 fi
20522
20523 rm -rf conftest.dSYM
20524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20525       conftest$ac_exeext conftest.$ac_ext
20526 fi
20527 ac_res=`eval 'as_val=${'$as_ac_var'}
20528                  $as_echo "$as_val"'`
20529                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20530 $as_echo "$ac_res" >&6; }
20531 as_val=`eval 'as_val=${'$as_ac_var'}
20532                  $as_echo "$as_val"'`
20533    if test "x$as_val" = x""yes; then
20534   cat >>confdefs.h <<_ACEOF
20535 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20536 _ACEOF
20537  break
20538 fi
20539 done
20540
20541 fi
20542
20543 # Some versions of libedit contain strlcpy(); so disregard that library while
20544 # checking for these standard libc functions.
20545 pgac_save_LIBS="$LIBS"
20546 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561 for ac_func in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
20562 do
20563 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20564 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20565 $as_echo_n "checking for $ac_func... " >&6; }
20566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20567   $as_echo_n "(cached) " >&6
20568 else
20569   cat >conftest.$ac_ext <<_ACEOF
20570 /* confdefs.h.  */
20571 _ACEOF
20572 cat confdefs.h >>conftest.$ac_ext
20573 cat >>conftest.$ac_ext <<_ACEOF
20574 /* end confdefs.h.  */
20575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20576    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20577 #define $ac_func innocuous_$ac_func
20578
20579 /* System header to define __stub macros and hopefully few prototypes,
20580     which can conflict with char $ac_func (); below.
20581     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20582     <limits.h> exists even on freestanding compilers.  */
20583
20584 #ifdef __STDC__
20585 # include <limits.h>
20586 #else
20587 # include <assert.h>
20588 #endif
20589
20590 #undef $ac_func
20591
20592 /* Override any GCC internal prototype to avoid an error.
20593    Use char because int might match the return type of a GCC
20594    builtin and then its argument prototype would still apply.  */
20595 #ifdef __cplusplus
20596 extern "C"
20597 #endif
20598 char $ac_func ();
20599 /* The GNU C library defines this for functions which it implements
20600     to always fail with ENOSYS.  Some functions are actually named
20601     something starting with __ and the normal name is an alias.  */
20602 #if defined __stub_$ac_func || defined __stub___$ac_func
20603 choke me
20604 #endif
20605
20606 int
20607 main ()
20608 {
20609 return $ac_func ();
20610   ;
20611   return 0;
20612 }
20613 _ACEOF
20614 rm -f conftest.$ac_objext conftest$ac_exeext
20615 if { (ac_try="$ac_link"
20616 case "(($ac_try" in
20617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20618   *) ac_try_echo=$ac_try;;
20619 esac
20620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20621 $as_echo "$ac_try_echo") >&5
20622   (eval "$ac_link") 2>conftest.er1
20623   ac_status=$?
20624   grep -v '^ *+' conftest.er1 >conftest.err
20625   rm -f conftest.er1
20626   cat conftest.err >&5
20627   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628   (exit $ac_status); } && {
20629          test -z "$ac_c_werror_flag" ||
20630          test ! -s conftest.err
20631        } && test -s conftest$ac_exeext && {
20632          test "$cross_compiling" = yes ||
20633          $as_test_x conftest$ac_exeext
20634        }; then
20635   eval "$as_ac_var=yes"
20636 else
20637   $as_echo "$as_me: failed program was:" >&5
20638 sed 's/^/| /' conftest.$ac_ext >&5
20639
20640         eval "$as_ac_var=no"
20641 fi
20642
20643 rm -rf conftest.dSYM
20644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20645       conftest$ac_exeext conftest.$ac_ext
20646 fi
20647 ac_res=`eval 'as_val=${'$as_ac_var'}
20648                  $as_echo "$as_val"'`
20649                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20650 $as_echo "$ac_res" >&6; }
20651 as_val=`eval 'as_val=${'$as_ac_var'}
20652                  $as_echo "$as_val"'`
20653    if test "x$as_val" = x""yes; then
20654   cat >>confdefs.h <<_ACEOF
20655 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20656 _ACEOF
20657
20658 else
20659   case " $LIBOBJS " in
20660   *" $ac_func.$ac_objext "* ) ;;
20661   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20662  ;;
20663 esac
20664
20665 fi
20666 done
20667
20668
20669
20670 case $host_os in
20671
20672         # Windows uses a specialised env handler
20673         # and doesn't need a replacement getpeereid because it doesn't use
20674         # Unix sockets.
20675         mingw*)
20676
20677 cat >>confdefs.h <<\_ACEOF
20678 #define HAVE_UNSETENV 1
20679 _ACEOF
20680
20681
20682 cat >>confdefs.h <<\_ACEOF
20683 #define HAVE_GETPEEREID 1
20684 _ACEOF
20685
20686                 ac_cv_func_unsetenv=yes
20687                 ac_cv_func_getpeereid=yes;;
20688         *)
20689
20690
20691 for ac_func in unsetenv getpeereid
20692 do
20693 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20694 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20695 $as_echo_n "checking for $ac_func... " >&6; }
20696 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20697   $as_echo_n "(cached) " >&6
20698 else
20699   cat >conftest.$ac_ext <<_ACEOF
20700 /* confdefs.h.  */
20701 _ACEOF
20702 cat confdefs.h >>conftest.$ac_ext
20703 cat >>conftest.$ac_ext <<_ACEOF
20704 /* end confdefs.h.  */
20705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20706    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20707 #define $ac_func innocuous_$ac_func
20708
20709 /* System header to define __stub macros and hopefully few prototypes,
20710     which can conflict with char $ac_func (); below.
20711     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20712     <limits.h> exists even on freestanding compilers.  */
20713
20714 #ifdef __STDC__
20715 # include <limits.h>
20716 #else
20717 # include <assert.h>
20718 #endif
20719
20720 #undef $ac_func
20721
20722 /* Override any GCC internal prototype to avoid an error.
20723    Use char because int might match the return type of a GCC
20724    builtin and then its argument prototype would still apply.  */
20725 #ifdef __cplusplus
20726 extern "C"
20727 #endif
20728 char $ac_func ();
20729 /* The GNU C library defines this for functions which it implements
20730     to always fail with ENOSYS.  Some functions are actually named
20731     something starting with __ and the normal name is an alias.  */
20732 #if defined __stub_$ac_func || defined __stub___$ac_func
20733 choke me
20734 #endif
20735
20736 int
20737 main ()
20738 {
20739 return $ac_func ();
20740   ;
20741   return 0;
20742 }
20743 _ACEOF
20744 rm -f conftest.$ac_objext conftest$ac_exeext
20745 if { (ac_try="$ac_link"
20746 case "(($ac_try" in
20747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20748   *) ac_try_echo=$ac_try;;
20749 esac
20750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20751 $as_echo "$ac_try_echo") >&5
20752   (eval "$ac_link") 2>conftest.er1
20753   ac_status=$?
20754   grep -v '^ *+' conftest.er1 >conftest.err
20755   rm -f conftest.er1
20756   cat conftest.err >&5
20757   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758   (exit $ac_status); } && {
20759          test -z "$ac_c_werror_flag" ||
20760          test ! -s conftest.err
20761        } && test -s conftest$ac_exeext && {
20762          test "$cross_compiling" = yes ||
20763          $as_test_x conftest$ac_exeext
20764        }; then
20765   eval "$as_ac_var=yes"
20766 else
20767   $as_echo "$as_me: failed program was:" >&5
20768 sed 's/^/| /' conftest.$ac_ext >&5
20769
20770         eval "$as_ac_var=no"
20771 fi
20772
20773 rm -rf conftest.dSYM
20774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20775       conftest$ac_exeext conftest.$ac_ext
20776 fi
20777 ac_res=`eval 'as_val=${'$as_ac_var'}
20778                  $as_echo "$as_val"'`
20779                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20780 $as_echo "$ac_res" >&6; }
20781 as_val=`eval 'as_val=${'$as_ac_var'}
20782                  $as_echo "$as_val"'`
20783    if test "x$as_val" = x""yes; then
20784   cat >>confdefs.h <<_ACEOF
20785 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20786 _ACEOF
20787
20788 else
20789   case " $LIBOBJS " in
20790   *" $ac_func.$ac_objext "* ) ;;
20791   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20792  ;;
20793 esac
20794
20795 fi
20796 done
20797
20798
20799                 ;;
20800 esac
20801
20802
20803 LIBS="$pgac_save_LIBS"
20804
20805 # System's version of getaddrinfo(), if any, may be used only if we found
20806 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
20807 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
20808 # versions of getaddrinfo don't follow normal C call protocol.  This is OK
20809 # because we want to use our own getaddrinfo.c on Windows anyway.)
20810 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
20811
20812 for ac_func in getaddrinfo
20813 do
20814 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20815 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20816 $as_echo_n "checking for $ac_func... " >&6; }
20817 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20818   $as_echo_n "(cached) " >&6
20819 else
20820   cat >conftest.$ac_ext <<_ACEOF
20821 /* confdefs.h.  */
20822 _ACEOF
20823 cat confdefs.h >>conftest.$ac_ext
20824 cat >>conftest.$ac_ext <<_ACEOF
20825 /* end confdefs.h.  */
20826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20827    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20828 #define $ac_func innocuous_$ac_func
20829
20830 /* System header to define __stub macros and hopefully few prototypes,
20831     which can conflict with char $ac_func (); below.
20832     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20833     <limits.h> exists even on freestanding compilers.  */
20834
20835 #ifdef __STDC__
20836 # include <limits.h>
20837 #else
20838 # include <assert.h>
20839 #endif
20840
20841 #undef $ac_func
20842
20843 /* Override any GCC internal prototype to avoid an error.
20844    Use char because int might match the return type of a GCC
20845    builtin and then its argument prototype would still apply.  */
20846 #ifdef __cplusplus
20847 extern "C"
20848 #endif
20849 char $ac_func ();
20850 /* The GNU C library defines this for functions which it implements
20851     to always fail with ENOSYS.  Some functions are actually named
20852     something starting with __ and the normal name is an alias.  */
20853 #if defined __stub_$ac_func || defined __stub___$ac_func
20854 choke me
20855 #endif
20856
20857 int
20858 main ()
20859 {
20860 return $ac_func ();
20861   ;
20862   return 0;
20863 }
20864 _ACEOF
20865 rm -f conftest.$ac_objext conftest$ac_exeext
20866 if { (ac_try="$ac_link"
20867 case "(($ac_try" in
20868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20869   *) ac_try_echo=$ac_try;;
20870 esac
20871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20872 $as_echo "$ac_try_echo") >&5
20873   (eval "$ac_link") 2>conftest.er1
20874   ac_status=$?
20875   grep -v '^ *+' conftest.er1 >conftest.err
20876   rm -f conftest.er1
20877   cat conftest.err >&5
20878   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879   (exit $ac_status); } && {
20880          test -z "$ac_c_werror_flag" ||
20881          test ! -s conftest.err
20882        } && test -s conftest$ac_exeext && {
20883          test "$cross_compiling" = yes ||
20884          $as_test_x conftest$ac_exeext
20885        }; then
20886   eval "$as_ac_var=yes"
20887 else
20888   $as_echo "$as_me: failed program was:" >&5
20889 sed 's/^/| /' conftest.$ac_ext >&5
20890
20891         eval "$as_ac_var=no"
20892 fi
20893
20894 rm -rf conftest.dSYM
20895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20896       conftest$ac_exeext conftest.$ac_ext
20897 fi
20898 ac_res=`eval 'as_val=${'$as_ac_var'}
20899                  $as_echo "$as_val"'`
20900                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20901 $as_echo "$ac_res" >&6; }
20902 as_val=`eval 'as_val=${'$as_ac_var'}
20903                  $as_echo "$as_val"'`
20904    if test "x$as_val" = x""yes; then
20905   cat >>confdefs.h <<_ACEOF
20906 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20907 _ACEOF
20908
20909 else
20910   case " $LIBOBJS " in
20911   *" $ac_func.$ac_objext "* ) ;;
20912   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20913  ;;
20914 esac
20915
20916 fi
20917 done
20918
20919
20920 else
20921   case " $LIBOBJS " in
20922   *" getaddrinfo.$ac_objext "* ) ;;
20923   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
20924  ;;
20925 esac
20926
20927 fi
20928
20929 # Similarly, use system's getopt_long() only if system provides struct option.
20930 if test x"$ac_cv_type_struct_option" = xyes ; then
20931
20932 for ac_func in getopt_long
20933 do
20934 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20935 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20936 $as_echo_n "checking for $ac_func... " >&6; }
20937 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20938   $as_echo_n "(cached) " >&6
20939 else
20940   cat >conftest.$ac_ext <<_ACEOF
20941 /* confdefs.h.  */
20942 _ACEOF
20943 cat confdefs.h >>conftest.$ac_ext
20944 cat >>conftest.$ac_ext <<_ACEOF
20945 /* end confdefs.h.  */
20946 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20947    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20948 #define $ac_func innocuous_$ac_func
20949
20950 /* System header to define __stub macros and hopefully few prototypes,
20951     which can conflict with char $ac_func (); below.
20952     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20953     <limits.h> exists even on freestanding compilers.  */
20954
20955 #ifdef __STDC__
20956 # include <limits.h>
20957 #else
20958 # include <assert.h>
20959 #endif
20960
20961 #undef $ac_func
20962
20963 /* Override any GCC internal prototype to avoid an error.
20964    Use char because int might match the return type of a GCC
20965    builtin and then its argument prototype would still apply.  */
20966 #ifdef __cplusplus
20967 extern "C"
20968 #endif
20969 char $ac_func ();
20970 /* The GNU C library defines this for functions which it implements
20971     to always fail with ENOSYS.  Some functions are actually named
20972     something starting with __ and the normal name is an alias.  */
20973 #if defined __stub_$ac_func || defined __stub___$ac_func
20974 choke me
20975 #endif
20976
20977 int
20978 main ()
20979 {
20980 return $ac_func ();
20981   ;
20982   return 0;
20983 }
20984 _ACEOF
20985 rm -f conftest.$ac_objext conftest$ac_exeext
20986 if { (ac_try="$ac_link"
20987 case "(($ac_try" in
20988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20989   *) ac_try_echo=$ac_try;;
20990 esac
20991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20992 $as_echo "$ac_try_echo") >&5
20993   (eval "$ac_link") 2>conftest.er1
20994   ac_status=$?
20995   grep -v '^ *+' conftest.er1 >conftest.err
20996   rm -f conftest.er1
20997   cat conftest.err >&5
20998   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999   (exit $ac_status); } && {
21000          test -z "$ac_c_werror_flag" ||
21001          test ! -s conftest.err
21002        } && test -s conftest$ac_exeext && {
21003          test "$cross_compiling" = yes ||
21004          $as_test_x conftest$ac_exeext
21005        }; then
21006   eval "$as_ac_var=yes"
21007 else
21008   $as_echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21010
21011         eval "$as_ac_var=no"
21012 fi
21013
21014 rm -rf conftest.dSYM
21015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21016       conftest$ac_exeext conftest.$ac_ext
21017 fi
21018 ac_res=`eval 'as_val=${'$as_ac_var'}
21019                  $as_echo "$as_val"'`
21020                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21021 $as_echo "$ac_res" >&6; }
21022 as_val=`eval 'as_val=${'$as_ac_var'}
21023                  $as_echo "$as_val"'`
21024    if test "x$as_val" = x""yes; then
21025   cat >>confdefs.h <<_ACEOF
21026 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21027 _ACEOF
21028
21029 else
21030   case " $LIBOBJS " in
21031   *" $ac_func.$ac_objext "* ) ;;
21032   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21033  ;;
21034 esac
21035
21036 fi
21037 done
21038
21039
21040 else
21041   case " $LIBOBJS " in
21042   *" getopt_long.$ac_objext "* ) ;;
21043   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21044  ;;
21045 esac
21046
21047 fi
21048
21049 # Solaris' getopt() doesn't do what we want for long options, so always use
21050 # our version on that platform.
21051 if test "$PORTNAME" = "solaris"; then
21052   case " $LIBOBJS " in
21053   *" getopt.$ac_objext "* ) ;;
21054   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21055  ;;
21056 esac
21057
21058 fi
21059
21060 # mingw has adopted a GNU-centric interpretation of optind/optreset,
21061 # so always use our version on Windows.
21062 if test "$PORTNAME" = "win32"; then
21063   case " $LIBOBJS " in
21064   *" getopt.$ac_objext "* ) ;;
21065   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21066  ;;
21067 esac
21068
21069   case " $LIBOBJS " in
21070   *" getopt_long.$ac_objext "* ) ;;
21071   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21072  ;;
21073 esac
21074
21075 fi
21076
21077 # Win32 support
21078 if test "$PORTNAME" = "win32"; then
21079
21080 for ac_func in gettimeofday
21081 do
21082 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21083 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21084 $as_echo_n "checking for $ac_func... " >&6; }
21085 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21086   $as_echo_n "(cached) " >&6
21087 else
21088   cat >conftest.$ac_ext <<_ACEOF
21089 /* confdefs.h.  */
21090 _ACEOF
21091 cat confdefs.h >>conftest.$ac_ext
21092 cat >>conftest.$ac_ext <<_ACEOF
21093 /* end confdefs.h.  */
21094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21095    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21096 #define $ac_func innocuous_$ac_func
21097
21098 /* System header to define __stub macros and hopefully few prototypes,
21099     which can conflict with char $ac_func (); below.
21100     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21101     <limits.h> exists even on freestanding compilers.  */
21102
21103 #ifdef __STDC__
21104 # include <limits.h>
21105 #else
21106 # include <assert.h>
21107 #endif
21108
21109 #undef $ac_func
21110
21111 /* Override any GCC internal prototype to avoid an error.
21112    Use char because int might match the return type of a GCC
21113    builtin and then its argument prototype would still apply.  */
21114 #ifdef __cplusplus
21115 extern "C"
21116 #endif
21117 char $ac_func ();
21118 /* The GNU C library defines this for functions which it implements
21119     to always fail with ENOSYS.  Some functions are actually named
21120     something starting with __ and the normal name is an alias.  */
21121 #if defined __stub_$ac_func || defined __stub___$ac_func
21122 choke me
21123 #endif
21124
21125 int
21126 main ()
21127 {
21128 return $ac_func ();
21129   ;
21130   return 0;
21131 }
21132 _ACEOF
21133 rm -f conftest.$ac_objext conftest$ac_exeext
21134 if { (ac_try="$ac_link"
21135 case "(($ac_try" in
21136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21137   *) ac_try_echo=$ac_try;;
21138 esac
21139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21140 $as_echo "$ac_try_echo") >&5
21141   (eval "$ac_link") 2>conftest.er1
21142   ac_status=$?
21143   grep -v '^ *+' conftest.er1 >conftest.err
21144   rm -f conftest.er1
21145   cat conftest.err >&5
21146   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147   (exit $ac_status); } && {
21148          test -z "$ac_c_werror_flag" ||
21149          test ! -s conftest.err
21150        } && test -s conftest$ac_exeext && {
21151          test "$cross_compiling" = yes ||
21152          $as_test_x conftest$ac_exeext
21153        }; then
21154   eval "$as_ac_var=yes"
21155 else
21156   $as_echo "$as_me: failed program was:" >&5
21157 sed 's/^/| /' conftest.$ac_ext >&5
21158
21159         eval "$as_ac_var=no"
21160 fi
21161
21162 rm -rf conftest.dSYM
21163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21164       conftest$ac_exeext conftest.$ac_ext
21165 fi
21166 ac_res=`eval 'as_val=${'$as_ac_var'}
21167                  $as_echo "$as_val"'`
21168                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21169 $as_echo "$ac_res" >&6; }
21170 as_val=`eval 'as_val=${'$as_ac_var'}
21171                  $as_echo "$as_val"'`
21172    if test "x$as_val" = x""yes; then
21173   cat >>confdefs.h <<_ACEOF
21174 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21175 _ACEOF
21176
21177 else
21178   case " $LIBOBJS " in
21179   *" $ac_func.$ac_objext "* ) ;;
21180   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21181  ;;
21182 esac
21183
21184 fi
21185 done
21186
21187
21188   case " $LIBOBJS " in
21189   *" kill.$ac_objext "* ) ;;
21190   *) LIBOBJS="$LIBOBJS kill.$ac_objext"
21191  ;;
21192 esac
21193
21194   case " $LIBOBJS " in
21195   *" open.$ac_objext "* ) ;;
21196   *) LIBOBJS="$LIBOBJS open.$ac_objext"
21197  ;;
21198 esac
21199
21200   case " $LIBOBJS " in
21201   *" win32env.$ac_objext "* ) ;;
21202   *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
21203  ;;
21204 esac
21205
21206   case " $LIBOBJS " in
21207   *" win32error.$ac_objext "* ) ;;
21208   *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
21209  ;;
21210 esac
21211
21212   case " $LIBOBJS " in
21213   *" win32setlocale.$ac_objext "* ) ;;
21214   *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
21215  ;;
21216 esac
21217
21218
21219 cat >>confdefs.h <<\_ACEOF
21220 #define HAVE_SYMLINK 1
21221 _ACEOF
21222
21223   { $as_echo "$as_me:$LINENO: checking for MINIDUMP_TYPE" >&5
21224 $as_echo_n "checking for MINIDUMP_TYPE... " >&6; }
21225 if test "${ac_cv_type_MINIDUMP_TYPE+set}" = set; then
21226   $as_echo_n "(cached) " >&6
21227 else
21228   ac_cv_type_MINIDUMP_TYPE=no
21229 cat >conftest.$ac_ext <<_ACEOF
21230 /* confdefs.h.  */
21231 _ACEOF
21232 cat confdefs.h >>conftest.$ac_ext
21233 cat >>conftest.$ac_ext <<_ACEOF
21234 /* end confdefs.h.  */
21235
21236 #define WIN32_LEAN_AND_MEAN
21237 #include <windows.h>
21238 #include <string.h>
21239 #include <dbghelp.h>
21240
21241 int
21242 main ()
21243 {
21244 if (sizeof (MINIDUMP_TYPE))
21245        return 0;
21246   ;
21247   return 0;
21248 }
21249 _ACEOF
21250 rm -f conftest.$ac_objext
21251 if { (ac_try="$ac_compile"
21252 case "(($ac_try" in
21253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21254   *) ac_try_echo=$ac_try;;
21255 esac
21256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21257 $as_echo "$ac_try_echo") >&5
21258   (eval "$ac_compile") 2>conftest.er1
21259   ac_status=$?
21260   grep -v '^ *+' conftest.er1 >conftest.err
21261   rm -f conftest.er1
21262   cat conftest.err >&5
21263   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264   (exit $ac_status); } && {
21265          test -z "$ac_c_werror_flag" ||
21266          test ! -s conftest.err
21267        } && test -s conftest.$ac_objext; then
21268   cat >conftest.$ac_ext <<_ACEOF
21269 /* confdefs.h.  */
21270 _ACEOF
21271 cat confdefs.h >>conftest.$ac_ext
21272 cat >>conftest.$ac_ext <<_ACEOF
21273 /* end confdefs.h.  */
21274
21275 #define WIN32_LEAN_AND_MEAN
21276 #include <windows.h>
21277 #include <string.h>
21278 #include <dbghelp.h>
21279
21280 int
21281 main ()
21282 {
21283 if (sizeof ((MINIDUMP_TYPE)))
21284           return 0;
21285   ;
21286   return 0;
21287 }
21288 _ACEOF
21289 rm -f conftest.$ac_objext
21290 if { (ac_try="$ac_compile"
21291 case "(($ac_try" in
21292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21293   *) ac_try_echo=$ac_try;;
21294 esac
21295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21296 $as_echo "$ac_try_echo") >&5
21297   (eval "$ac_compile") 2>conftest.er1
21298   ac_status=$?
21299   grep -v '^ *+' conftest.er1 >conftest.err
21300   rm -f conftest.er1
21301   cat conftest.err >&5
21302   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303   (exit $ac_status); } && {
21304          test -z "$ac_c_werror_flag" ||
21305          test ! -s conftest.err
21306        } && test -s conftest.$ac_objext; then
21307   :
21308 else
21309   $as_echo "$as_me: failed program was:" >&5
21310 sed 's/^/| /' conftest.$ac_ext >&5
21311
21312         ac_cv_type_MINIDUMP_TYPE=yes
21313 fi
21314
21315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21316 else
21317   $as_echo "$as_me: failed program was:" >&5
21318 sed 's/^/| /' conftest.$ac_ext >&5
21319
21320
21321 fi
21322
21323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21324 fi
21325 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_MINIDUMP_TYPE" >&5
21326 $as_echo "$ac_cv_type_MINIDUMP_TYPE" >&6; }
21327 if test "x$ac_cv_type_MINIDUMP_TYPE" = x""yes; then
21328
21329 cat >>confdefs.h <<_ACEOF
21330 #define HAVE_MINIDUMP_TYPE 1
21331 _ACEOF
21332
21333 pgac_minidump_type=yes
21334 else
21335   pgac_minidump_type=no
21336 fi
21337
21338 fi
21339 if test x"$pgac_minidump_type" = x"yes" ; then
21340   have_win32_dbghelp=yes
21341
21342 else
21343   have_win32_dbghelp=no
21344
21345 fi
21346
21347 if test "$with_readline" = yes; then
21348   { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
21349 $as_echo_n "checking for rl_completion_append_character... " >&6; }
21350 if test "${pgac_cv_var_rl_completion_append_character+set}" = set; then
21351   $as_echo_n "(cached) " >&6
21352 else
21353   cat >conftest.$ac_ext <<_ACEOF
21354 /* confdefs.h.  */
21355 _ACEOF
21356 cat confdefs.h >>conftest.$ac_ext
21357 cat >>conftest.$ac_ext <<_ACEOF
21358 /* end confdefs.h.  */
21359 #include <stdio.h>
21360 #ifdef HAVE_READLINE_READLINE_H
21361 # include <readline/readline.h>
21362 #elif defined(HAVE_READLINE_H)
21363 # include <readline.h>
21364 #endif
21365
21366 int
21367 main ()
21368 {
21369 rl_completion_append_character = 'x';
21370   ;
21371   return 0;
21372 }
21373 _ACEOF
21374 rm -f conftest.$ac_objext conftest$ac_exeext
21375 if { (ac_try="$ac_link"
21376 case "(($ac_try" in
21377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21378   *) ac_try_echo=$ac_try;;
21379 esac
21380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21381 $as_echo "$ac_try_echo") >&5
21382   (eval "$ac_link") 2>conftest.er1
21383   ac_status=$?
21384   grep -v '^ *+' conftest.er1 >conftest.err
21385   rm -f conftest.er1
21386   cat conftest.err >&5
21387   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388   (exit $ac_status); } && {
21389          test -z "$ac_c_werror_flag" ||
21390          test ! -s conftest.err
21391        } && test -s conftest$ac_exeext && {
21392          test "$cross_compiling" = yes ||
21393          $as_test_x conftest$ac_exeext
21394        }; then
21395   pgac_cv_var_rl_completion_append_character=yes
21396 else
21397   $as_echo "$as_me: failed program was:" >&5
21398 sed 's/^/| /' conftest.$ac_ext >&5
21399
21400         pgac_cv_var_rl_completion_append_character=no
21401 fi
21402
21403 rm -rf conftest.dSYM
21404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21405       conftest$ac_exeext conftest.$ac_ext
21406 fi
21407 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_rl_completion_append_character" >&5
21408 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
21409 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
21410
21411 cat >>confdefs.h <<\_ACEOF
21412 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
21413 _ACEOF
21414
21415 fi
21416
21417
21418 for ac_func in rl_completion_matches rl_filename_completion_function
21419 do
21420 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21421 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21422 $as_echo_n "checking for $ac_func... " >&6; }
21423 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21424   $as_echo_n "(cached) " >&6
21425 else
21426   cat >conftest.$ac_ext <<_ACEOF
21427 /* confdefs.h.  */
21428 _ACEOF
21429 cat confdefs.h >>conftest.$ac_ext
21430 cat >>conftest.$ac_ext <<_ACEOF
21431 /* end confdefs.h.  */
21432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21433    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21434 #define $ac_func innocuous_$ac_func
21435
21436 /* System header to define __stub macros and hopefully few prototypes,
21437     which can conflict with char $ac_func (); below.
21438     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21439     <limits.h> exists even on freestanding compilers.  */
21440
21441 #ifdef __STDC__
21442 # include <limits.h>
21443 #else
21444 # include <assert.h>
21445 #endif
21446
21447 #undef $ac_func
21448
21449 /* Override any GCC internal prototype to avoid an error.
21450    Use char because int might match the return type of a GCC
21451    builtin and then its argument prototype would still apply.  */
21452 #ifdef __cplusplus
21453 extern "C"
21454 #endif
21455 char $ac_func ();
21456 /* The GNU C library defines this for functions which it implements
21457     to always fail with ENOSYS.  Some functions are actually named
21458     something starting with __ and the normal name is an alias.  */
21459 #if defined __stub_$ac_func || defined __stub___$ac_func
21460 choke me
21461 #endif
21462
21463 int
21464 main ()
21465 {
21466 return $ac_func ();
21467   ;
21468   return 0;
21469 }
21470 _ACEOF
21471 rm -f conftest.$ac_objext conftest$ac_exeext
21472 if { (ac_try="$ac_link"
21473 case "(($ac_try" in
21474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21475   *) ac_try_echo=$ac_try;;
21476 esac
21477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21478 $as_echo "$ac_try_echo") >&5
21479   (eval "$ac_link") 2>conftest.er1
21480   ac_status=$?
21481   grep -v '^ *+' conftest.er1 >conftest.err
21482   rm -f conftest.er1
21483   cat conftest.err >&5
21484   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485   (exit $ac_status); } && {
21486          test -z "$ac_c_werror_flag" ||
21487          test ! -s conftest.err
21488        } && test -s conftest$ac_exeext && {
21489          test "$cross_compiling" = yes ||
21490          $as_test_x conftest$ac_exeext
21491        }; then
21492   eval "$as_ac_var=yes"
21493 else
21494   $as_echo "$as_me: failed program was:" >&5
21495 sed 's/^/| /' conftest.$ac_ext >&5
21496
21497         eval "$as_ac_var=no"
21498 fi
21499
21500 rm -rf conftest.dSYM
21501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21502       conftest$ac_exeext conftest.$ac_ext
21503 fi
21504 ac_res=`eval 'as_val=${'$as_ac_var'}
21505                  $as_echo "$as_val"'`
21506                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21507 $as_echo "$ac_res" >&6; }
21508 as_val=`eval 'as_val=${'$as_ac_var'}
21509                  $as_echo "$as_val"'`
21510    if test "x$as_val" = x""yes; then
21511   cat >>confdefs.h <<_ACEOF
21512 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21513 _ACEOF
21514
21515 fi
21516 done
21517
21518
21519
21520 for ac_func in append_history history_truncate_file
21521 do
21522 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21523 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21524 $as_echo_n "checking for $ac_func... " >&6; }
21525 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21526   $as_echo_n "(cached) " >&6
21527 else
21528   cat >conftest.$ac_ext <<_ACEOF
21529 /* confdefs.h.  */
21530 _ACEOF
21531 cat confdefs.h >>conftest.$ac_ext
21532 cat >>conftest.$ac_ext <<_ACEOF
21533 /* end confdefs.h.  */
21534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21535    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21536 #define $ac_func innocuous_$ac_func
21537
21538 /* System header to define __stub macros and hopefully few prototypes,
21539     which can conflict with char $ac_func (); below.
21540     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21541     <limits.h> exists even on freestanding compilers.  */
21542
21543 #ifdef __STDC__
21544 # include <limits.h>
21545 #else
21546 # include <assert.h>
21547 #endif
21548
21549 #undef $ac_func
21550
21551 /* Override any GCC internal prototype to avoid an error.
21552    Use char because int might match the return type of a GCC
21553    builtin and then its argument prototype would still apply.  */
21554 #ifdef __cplusplus
21555 extern "C"
21556 #endif
21557 char $ac_func ();
21558 /* The GNU C library defines this for functions which it implements
21559     to always fail with ENOSYS.  Some functions are actually named
21560     something starting with __ and the normal name is an alias.  */
21561 #if defined __stub_$ac_func || defined __stub___$ac_func
21562 choke me
21563 #endif
21564
21565 int
21566 main ()
21567 {
21568 return $ac_func ();
21569   ;
21570   return 0;
21571 }
21572 _ACEOF
21573 rm -f conftest.$ac_objext conftest$ac_exeext
21574 if { (ac_try="$ac_link"
21575 case "(($ac_try" in
21576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21577   *) ac_try_echo=$ac_try;;
21578 esac
21579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21580 $as_echo "$ac_try_echo") >&5
21581   (eval "$ac_link") 2>conftest.er1
21582   ac_status=$?
21583   grep -v '^ *+' conftest.er1 >conftest.err
21584   rm -f conftest.er1
21585   cat conftest.err >&5
21586   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587   (exit $ac_status); } && {
21588          test -z "$ac_c_werror_flag" ||
21589          test ! -s conftest.err
21590        } && test -s conftest$ac_exeext && {
21591          test "$cross_compiling" = yes ||
21592          $as_test_x conftest$ac_exeext
21593        }; then
21594   eval "$as_ac_var=yes"
21595 else
21596   $as_echo "$as_me: failed program was:" >&5
21597 sed 's/^/| /' conftest.$ac_ext >&5
21598
21599         eval "$as_ac_var=no"
21600 fi
21601
21602 rm -rf conftest.dSYM
21603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21604       conftest$ac_exeext conftest.$ac_ext
21605 fi
21606 ac_res=`eval 'as_val=${'$as_ac_var'}
21607                  $as_echo "$as_val"'`
21608                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21609 $as_echo "$ac_res" >&6; }
21610 as_val=`eval 'as_val=${'$as_ac_var'}
21611                  $as_echo "$as_val"'`
21612    if test "x$as_val" = x""yes; then
21613   cat >>confdefs.h <<_ACEOF
21614 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21615 _ACEOF
21616
21617 fi
21618 done
21619
21620 fi
21621
21622
21623 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
21624 $as_echo_n "checking for sigsetjmp... " >&6; }
21625 if test "${pgac_cv_func_sigsetjmp+set}" = set; then
21626   $as_echo_n "(cached) " >&6
21627 else
21628   cat >conftest.$ac_ext <<_ACEOF
21629 /* confdefs.h.  */
21630 _ACEOF
21631 cat confdefs.h >>conftest.$ac_ext
21632 cat >>conftest.$ac_ext <<_ACEOF
21633 /* end confdefs.h.  */
21634 #include <setjmp.h>
21635 int
21636 main ()
21637 {
21638 sigjmp_buf x; sigsetjmp(x, 1);
21639   ;
21640   return 0;
21641 }
21642 _ACEOF
21643 rm -f conftest.$ac_objext conftest$ac_exeext
21644 if { (ac_try="$ac_link"
21645 case "(($ac_try" in
21646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21647   *) ac_try_echo=$ac_try;;
21648 esac
21649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21650 $as_echo "$ac_try_echo") >&5
21651   (eval "$ac_link") 2>conftest.er1
21652   ac_status=$?
21653   grep -v '^ *+' conftest.er1 >conftest.err
21654   rm -f conftest.er1
21655   cat conftest.err >&5
21656   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657   (exit $ac_status); } && {
21658          test -z "$ac_c_werror_flag" ||
21659          test ! -s conftest.err
21660        } && test -s conftest$ac_exeext && {
21661          test "$cross_compiling" = yes ||
21662          $as_test_x conftest$ac_exeext
21663        }; then
21664   pgac_cv_func_sigsetjmp=yes
21665 else
21666   $as_echo "$as_me: failed program was:" >&5
21667 sed 's/^/| /' conftest.$ac_ext >&5
21668
21669         pgac_cv_func_sigsetjmp=no
21670 fi
21671
21672 rm -rf conftest.dSYM
21673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21674       conftest$ac_exeext conftest.$ac_ext
21675 fi
21676 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_sigsetjmp" >&5
21677 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
21678 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
21679
21680 cat >>confdefs.h <<\_ACEOF
21681 #define HAVE_SIGSETJMP 1
21682 _ACEOF
21683
21684 fi
21685
21686 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
21687 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
21688 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
21689   $as_echo_n "(cached) " >&6
21690 else
21691   cat >conftest.$ac_ext <<_ACEOF
21692 /* confdefs.h.  */
21693 _ACEOF
21694 cat confdefs.h >>conftest.$ac_ext
21695 cat >>conftest.$ac_ext <<_ACEOF
21696 /* end confdefs.h.  */
21697 #include <signal.h>
21698 /* NetBSD declares sys_siglist in unistd.h.  */
21699 #ifdef HAVE_UNISTD_H
21700 # include <unistd.h>
21701 #endif
21702
21703
21704 int
21705 main ()
21706 {
21707 #ifndef sys_siglist
21708   (void) sys_siglist;
21709 #endif
21710
21711   ;
21712   return 0;
21713 }
21714 _ACEOF
21715 rm -f conftest.$ac_objext
21716 if { (ac_try="$ac_compile"
21717 case "(($ac_try" in
21718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21719   *) ac_try_echo=$ac_try;;
21720 esac
21721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21722 $as_echo "$ac_try_echo") >&5
21723   (eval "$ac_compile") 2>conftest.er1
21724   ac_status=$?
21725   grep -v '^ *+' conftest.er1 >conftest.err
21726   rm -f conftest.er1
21727   cat conftest.err >&5
21728   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729   (exit $ac_status); } && {
21730          test -z "$ac_c_werror_flag" ||
21731          test ! -s conftest.err
21732        } && test -s conftest.$ac_objext; then
21733   ac_cv_have_decl_sys_siglist=yes
21734 else
21735   $as_echo "$as_me: failed program was:" >&5
21736 sed 's/^/| /' conftest.$ac_ext >&5
21737
21738         ac_cv_have_decl_sys_siglist=no
21739 fi
21740
21741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21742 fi
21743 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
21744 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
21745 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
21746
21747 cat >>confdefs.h <<_ACEOF
21748 #define HAVE_DECL_SYS_SIGLIST 1
21749 _ACEOF
21750
21751
21752 else
21753   cat >>confdefs.h <<_ACEOF
21754 #define HAVE_DECL_SYS_SIGLIST 0
21755 _ACEOF
21756
21757
21758 fi
21759
21760
21761
21762
21763 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
21764 $as_echo_n "checking for syslog... " >&6; }
21765 if test "${ac_cv_func_syslog+set}" = set; then
21766   $as_echo_n "(cached) " >&6
21767 else
21768   cat >conftest.$ac_ext <<_ACEOF
21769 /* confdefs.h.  */
21770 _ACEOF
21771 cat confdefs.h >>conftest.$ac_ext
21772 cat >>conftest.$ac_ext <<_ACEOF
21773 /* end confdefs.h.  */
21774 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
21775    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21776 #define syslog innocuous_syslog
21777
21778 /* System header to define __stub macros and hopefully few prototypes,
21779     which can conflict with char syslog (); below.
21780     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21781     <limits.h> exists even on freestanding compilers.  */
21782
21783 #ifdef __STDC__
21784 # include <limits.h>
21785 #else
21786 # include <assert.h>
21787 #endif
21788
21789 #undef syslog
21790
21791 /* Override any GCC internal prototype to avoid an error.
21792    Use char because int might match the return type of a GCC
21793    builtin and then its argument prototype would still apply.  */
21794 #ifdef __cplusplus
21795 extern "C"
21796 #endif
21797 char syslog ();
21798 /* The GNU C library defines this for functions which it implements
21799     to always fail with ENOSYS.  Some functions are actually named
21800     something starting with __ and the normal name is an alias.  */
21801 #if defined __stub_syslog || defined __stub___syslog
21802 choke me
21803 #endif
21804
21805 int
21806 main ()
21807 {
21808 return syslog ();
21809   ;
21810   return 0;
21811 }
21812 _ACEOF
21813 rm -f conftest.$ac_objext conftest$ac_exeext
21814 if { (ac_try="$ac_link"
21815 case "(($ac_try" in
21816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21817   *) ac_try_echo=$ac_try;;
21818 esac
21819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21820 $as_echo "$ac_try_echo") >&5
21821   (eval "$ac_link") 2>conftest.er1
21822   ac_status=$?
21823   grep -v '^ *+' conftest.er1 >conftest.err
21824   rm -f conftest.er1
21825   cat conftest.err >&5
21826   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827   (exit $ac_status); } && {
21828          test -z "$ac_c_werror_flag" ||
21829          test ! -s conftest.err
21830        } && test -s conftest$ac_exeext && {
21831          test "$cross_compiling" = yes ||
21832          $as_test_x conftest$ac_exeext
21833        }; then
21834   ac_cv_func_syslog=yes
21835 else
21836   $as_echo "$as_me: failed program was:" >&5
21837 sed 's/^/| /' conftest.$ac_ext >&5
21838
21839         ac_cv_func_syslog=no
21840 fi
21841
21842 rm -rf conftest.dSYM
21843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21844       conftest$ac_exeext conftest.$ac_ext
21845 fi
21846 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
21847 $as_echo "$ac_cv_func_syslog" >&6; }
21848 if test "x$ac_cv_func_syslog" = x""yes; then
21849   if test "${ac_cv_header_syslog_h+set}" = set; then
21850   { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21851 $as_echo_n "checking for syslog.h... " >&6; }
21852 if test "${ac_cv_header_syslog_h+set}" = set; then
21853   $as_echo_n "(cached) " >&6
21854 fi
21855 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21856 $as_echo "$ac_cv_header_syslog_h" >&6; }
21857 else
21858   # Is the header compilable?
21859 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
21860 $as_echo_n "checking syslog.h usability... " >&6; }
21861 cat >conftest.$ac_ext <<_ACEOF
21862 /* confdefs.h.  */
21863 _ACEOF
21864 cat confdefs.h >>conftest.$ac_ext
21865 cat >>conftest.$ac_ext <<_ACEOF
21866 /* end confdefs.h.  */
21867 $ac_includes_default
21868 #include <syslog.h>
21869 _ACEOF
21870 rm -f conftest.$ac_objext
21871 if { (ac_try="$ac_compile"
21872 case "(($ac_try" in
21873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21874   *) ac_try_echo=$ac_try;;
21875 esac
21876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21877 $as_echo "$ac_try_echo") >&5
21878   (eval "$ac_compile") 2>conftest.er1
21879   ac_status=$?
21880   grep -v '^ *+' conftest.er1 >conftest.err
21881   rm -f conftest.er1
21882   cat conftest.err >&5
21883   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884   (exit $ac_status); } && {
21885          test -z "$ac_c_werror_flag" ||
21886          test ! -s conftest.err
21887        } && test -s conftest.$ac_objext; then
21888   ac_header_compiler=yes
21889 else
21890   $as_echo "$as_me: failed program was:" >&5
21891 sed 's/^/| /' conftest.$ac_ext >&5
21892
21893         ac_header_compiler=no
21894 fi
21895
21896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21897 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21898 $as_echo "$ac_header_compiler" >&6; }
21899
21900 # Is the header present?
21901 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
21902 $as_echo_n "checking syslog.h presence... " >&6; }
21903 cat >conftest.$ac_ext <<_ACEOF
21904 /* confdefs.h.  */
21905 _ACEOF
21906 cat confdefs.h >>conftest.$ac_ext
21907 cat >>conftest.$ac_ext <<_ACEOF
21908 /* end confdefs.h.  */
21909 #include <syslog.h>
21910 _ACEOF
21911 if { (ac_try="$ac_cpp conftest.$ac_ext"
21912 case "(($ac_try" in
21913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21914   *) ac_try_echo=$ac_try;;
21915 esac
21916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21917 $as_echo "$ac_try_echo") >&5
21918   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21919   ac_status=$?
21920   grep -v '^ *+' conftest.er1 >conftest.err
21921   rm -f conftest.er1
21922   cat conftest.err >&5
21923   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924   (exit $ac_status); } >/dev/null && {
21925          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21926          test ! -s conftest.err
21927        }; then
21928   ac_header_preproc=yes
21929 else
21930   $as_echo "$as_me: failed program was:" >&5
21931 sed 's/^/| /' conftest.$ac_ext >&5
21932
21933   ac_header_preproc=no
21934 fi
21935
21936 rm -f conftest.err conftest.$ac_ext
21937 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21938 $as_echo "$ac_header_preproc" >&6; }
21939
21940 # So?  What about this header?
21941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21942   yes:no: )
21943     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
21944 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21945     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
21946 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
21947     ac_header_preproc=yes
21948     ;;
21949   no:yes:* )
21950     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
21951 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
21952     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     check for missing prerequisite headers?" >&5
21953 $as_echo "$as_me: WARNING: syslog.h:     check for missing prerequisite headers?" >&2;}
21954     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
21955 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
21956     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&5
21957 $as_echo "$as_me: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21958     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
21959 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
21960     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
21961 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
21962     ( cat <<\_ASBOX
21963 ## ---------------------------------------- ##
21964 ## Report this to pgsql-bugs@postgresql.org ##
21965 ## ---------------------------------------- ##
21966 _ASBOX
21967      ) | sed "s/^/$as_me: WARNING:     /" >&2
21968     ;;
21969 esac
21970 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21971 $as_echo_n "checking for syslog.h... " >&6; }
21972 if test "${ac_cv_header_syslog_h+set}" = set; then
21973   $as_echo_n "(cached) " >&6
21974 else
21975   ac_cv_header_syslog_h=$ac_header_preproc
21976 fi
21977 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21978 $as_echo "$ac_cv_header_syslog_h" >&6; }
21979
21980 fi
21981 if test "x$ac_cv_header_syslog_h" = x""yes; then
21982
21983 cat >>confdefs.h <<\_ACEOF
21984 #define HAVE_SYSLOG 1
21985 _ACEOF
21986
21987 fi
21988
21989
21990 fi
21991
21992
21993 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
21994 $as_echo_n "checking for opterr... " >&6; }
21995 if test "${pgac_cv_var_int_opterr+set}" = set; then
21996   $as_echo_n "(cached) " >&6
21997 else
21998   cat >conftest.$ac_ext <<_ACEOF
21999 /* confdefs.h.  */
22000 _ACEOF
22001 cat confdefs.h >>conftest.$ac_ext
22002 cat >>conftest.$ac_ext <<_ACEOF
22003 /* end confdefs.h.  */
22004 #include <unistd.h>
22005 int
22006 main ()
22007 {
22008 extern int opterr; opterr = 1;
22009   ;
22010   return 0;
22011 }
22012 _ACEOF
22013 rm -f conftest.$ac_objext conftest$ac_exeext
22014 if { (ac_try="$ac_link"
22015 case "(($ac_try" in
22016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22017   *) ac_try_echo=$ac_try;;
22018 esac
22019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22020 $as_echo "$ac_try_echo") >&5
22021   (eval "$ac_link") 2>conftest.er1
22022   ac_status=$?
22023   grep -v '^ *+' conftest.er1 >conftest.err
22024   rm -f conftest.er1
22025   cat conftest.err >&5
22026   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027   (exit $ac_status); } && {
22028          test -z "$ac_c_werror_flag" ||
22029          test ! -s conftest.err
22030        } && test -s conftest$ac_exeext && {
22031          test "$cross_compiling" = yes ||
22032          $as_test_x conftest$ac_exeext
22033        }; then
22034   pgac_cv_var_int_opterr=yes
22035 else
22036   $as_echo "$as_me: failed program was:" >&5
22037 sed 's/^/| /' conftest.$ac_ext >&5
22038
22039         pgac_cv_var_int_opterr=no
22040 fi
22041
22042 rm -rf conftest.dSYM
22043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22044       conftest$ac_exeext conftest.$ac_ext
22045 fi
22046 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
22047 $as_echo "$pgac_cv_var_int_opterr" >&6; }
22048 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
22049
22050 cat >>confdefs.h <<\_ACEOF
22051 #define HAVE_INT_OPTERR 1
22052 _ACEOF
22053
22054 fi
22055
22056 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
22057 $as_echo_n "checking for optreset... " >&6; }
22058 if test "${pgac_cv_var_int_optreset+set}" = set; then
22059   $as_echo_n "(cached) " >&6
22060 else
22061   cat >conftest.$ac_ext <<_ACEOF
22062 /* confdefs.h.  */
22063 _ACEOF
22064 cat confdefs.h >>conftest.$ac_ext
22065 cat >>conftest.$ac_ext <<_ACEOF
22066 /* end confdefs.h.  */
22067 #include <unistd.h>
22068 int
22069 main ()
22070 {
22071 extern int optreset; optreset = 1;
22072   ;
22073   return 0;
22074 }
22075 _ACEOF
22076 rm -f conftest.$ac_objext conftest$ac_exeext
22077 if { (ac_try="$ac_link"
22078 case "(($ac_try" in
22079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22080   *) ac_try_echo=$ac_try;;
22081 esac
22082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22083 $as_echo "$ac_try_echo") >&5
22084   (eval "$ac_link") 2>conftest.er1
22085   ac_status=$?
22086   grep -v '^ *+' conftest.er1 >conftest.err
22087   rm -f conftest.er1
22088   cat conftest.err >&5
22089   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090   (exit $ac_status); } && {
22091          test -z "$ac_c_werror_flag" ||
22092          test ! -s conftest.err
22093        } && test -s conftest$ac_exeext && {
22094          test "$cross_compiling" = yes ||
22095          $as_test_x conftest$ac_exeext
22096        }; then
22097   pgac_cv_var_int_optreset=yes
22098 else
22099   $as_echo "$as_me: failed program was:" >&5
22100 sed 's/^/| /' conftest.$ac_ext >&5
22101
22102         pgac_cv_var_int_optreset=no
22103 fi
22104
22105 rm -rf conftest.dSYM
22106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22107       conftest$ac_exeext conftest.$ac_ext
22108 fi
22109 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
22110 $as_echo "$pgac_cv_var_int_optreset" >&6; }
22111 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
22112
22113 cat >>confdefs.h <<\_ACEOF
22114 #define HAVE_INT_OPTRESET 1
22115 _ACEOF
22116
22117 fi
22118
22119
22120
22121 for ac_func in strtoll strtoq
22122 do
22123 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22124 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22125 $as_echo_n "checking for $ac_func... " >&6; }
22126 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22127   $as_echo_n "(cached) " >&6
22128 else
22129   cat >conftest.$ac_ext <<_ACEOF
22130 /* confdefs.h.  */
22131 _ACEOF
22132 cat confdefs.h >>conftest.$ac_ext
22133 cat >>conftest.$ac_ext <<_ACEOF
22134 /* end confdefs.h.  */
22135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22136    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22137 #define $ac_func innocuous_$ac_func
22138
22139 /* System header to define __stub macros and hopefully few prototypes,
22140     which can conflict with char $ac_func (); below.
22141     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22142     <limits.h> exists even on freestanding compilers.  */
22143
22144 #ifdef __STDC__
22145 # include <limits.h>
22146 #else
22147 # include <assert.h>
22148 #endif
22149
22150 #undef $ac_func
22151
22152 /* Override any GCC internal prototype to avoid an error.
22153    Use char because int might match the return type of a GCC
22154    builtin and then its argument prototype would still apply.  */
22155 #ifdef __cplusplus
22156 extern "C"
22157 #endif
22158 char $ac_func ();
22159 /* The GNU C library defines this for functions which it implements
22160     to always fail with ENOSYS.  Some functions are actually named
22161     something starting with __ and the normal name is an alias.  */
22162 #if defined __stub_$ac_func || defined __stub___$ac_func
22163 choke me
22164 #endif
22165
22166 int
22167 main ()
22168 {
22169 return $ac_func ();
22170   ;
22171   return 0;
22172 }
22173 _ACEOF
22174 rm -f conftest.$ac_objext conftest$ac_exeext
22175 if { (ac_try="$ac_link"
22176 case "(($ac_try" in
22177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22178   *) ac_try_echo=$ac_try;;
22179 esac
22180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22181 $as_echo "$ac_try_echo") >&5
22182   (eval "$ac_link") 2>conftest.er1
22183   ac_status=$?
22184   grep -v '^ *+' conftest.er1 >conftest.err
22185   rm -f conftest.er1
22186   cat conftest.err >&5
22187   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22188   (exit $ac_status); } && {
22189          test -z "$ac_c_werror_flag" ||
22190          test ! -s conftest.err
22191        } && test -s conftest$ac_exeext && {
22192          test "$cross_compiling" = yes ||
22193          $as_test_x conftest$ac_exeext
22194        }; then
22195   eval "$as_ac_var=yes"
22196 else
22197   $as_echo "$as_me: failed program was:" >&5
22198 sed 's/^/| /' conftest.$ac_ext >&5
22199
22200         eval "$as_ac_var=no"
22201 fi
22202
22203 rm -rf conftest.dSYM
22204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22205       conftest$ac_exeext conftest.$ac_ext
22206 fi
22207 ac_res=`eval 'as_val=${'$as_ac_var'}
22208                  $as_echo "$as_val"'`
22209                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22210 $as_echo "$ac_res" >&6; }
22211 as_val=`eval 'as_val=${'$as_ac_var'}
22212                  $as_echo "$as_val"'`
22213    if test "x$as_val" = x""yes; then
22214   cat >>confdefs.h <<_ACEOF
22215 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22216 _ACEOF
22217  break
22218 fi
22219 done
22220
22221
22222
22223 for ac_func in strtoull strtouq
22224 do
22225 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22226 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22227 $as_echo_n "checking for $ac_func... " >&6; }
22228 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22229   $as_echo_n "(cached) " >&6
22230 else
22231   cat >conftest.$ac_ext <<_ACEOF
22232 /* confdefs.h.  */
22233 _ACEOF
22234 cat confdefs.h >>conftest.$ac_ext
22235 cat >>conftest.$ac_ext <<_ACEOF
22236 /* end confdefs.h.  */
22237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22238    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22239 #define $ac_func innocuous_$ac_func
22240
22241 /* System header to define __stub macros and hopefully few prototypes,
22242     which can conflict with char $ac_func (); below.
22243     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22244     <limits.h> exists even on freestanding compilers.  */
22245
22246 #ifdef __STDC__
22247 # include <limits.h>
22248 #else
22249 # include <assert.h>
22250 #endif
22251
22252 #undef $ac_func
22253
22254 /* Override any GCC internal prototype to avoid an error.
22255    Use char because int might match the return type of a GCC
22256    builtin and then its argument prototype would still apply.  */
22257 #ifdef __cplusplus
22258 extern "C"
22259 #endif
22260 char $ac_func ();
22261 /* The GNU C library defines this for functions which it implements
22262     to always fail with ENOSYS.  Some functions are actually named
22263     something starting with __ and the normal name is an alias.  */
22264 #if defined __stub_$ac_func || defined __stub___$ac_func
22265 choke me
22266 #endif
22267
22268 int
22269 main ()
22270 {
22271 return $ac_func ();
22272   ;
22273   return 0;
22274 }
22275 _ACEOF
22276 rm -f conftest.$ac_objext conftest$ac_exeext
22277 if { (ac_try="$ac_link"
22278 case "(($ac_try" in
22279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22280   *) ac_try_echo=$ac_try;;
22281 esac
22282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22283 $as_echo "$ac_try_echo") >&5
22284   (eval "$ac_link") 2>conftest.er1
22285   ac_status=$?
22286   grep -v '^ *+' conftest.er1 >conftest.err
22287   rm -f conftest.er1
22288   cat conftest.err >&5
22289   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290   (exit $ac_status); } && {
22291          test -z "$ac_c_werror_flag" ||
22292          test ! -s conftest.err
22293        } && test -s conftest$ac_exeext && {
22294          test "$cross_compiling" = yes ||
22295          $as_test_x conftest$ac_exeext
22296        }; then
22297   eval "$as_ac_var=yes"
22298 else
22299   $as_echo "$as_me: failed program was:" >&5
22300 sed 's/^/| /' conftest.$ac_ext >&5
22301
22302         eval "$as_ac_var=no"
22303 fi
22304
22305 rm -rf conftest.dSYM
22306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22307       conftest$ac_exeext conftest.$ac_ext
22308 fi
22309 ac_res=`eval 'as_val=${'$as_ac_var'}
22310                  $as_echo "$as_val"'`
22311                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22312 $as_echo "$ac_res" >&6; }
22313 as_val=`eval 'as_val=${'$as_ac_var'}
22314                  $as_echo "$as_val"'`
22315    if test "x$as_val" = x""yes; then
22316   cat >>confdefs.h <<_ACEOF
22317 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22318 _ACEOF
22319  break
22320 fi
22321 done
22322
22323
22324 # Check for one of atexit() or on_exit()
22325
22326 for ac_func in atexit
22327 do
22328 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22329 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22330 $as_echo_n "checking for $ac_func... " >&6; }
22331 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22332   $as_echo_n "(cached) " >&6
22333 else
22334   cat >conftest.$ac_ext <<_ACEOF
22335 /* confdefs.h.  */
22336 _ACEOF
22337 cat confdefs.h >>conftest.$ac_ext
22338 cat >>conftest.$ac_ext <<_ACEOF
22339 /* end confdefs.h.  */
22340 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22341    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22342 #define $ac_func innocuous_$ac_func
22343
22344 /* System header to define __stub macros and hopefully few prototypes,
22345     which can conflict with char $ac_func (); below.
22346     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22347     <limits.h> exists even on freestanding compilers.  */
22348
22349 #ifdef __STDC__
22350 # include <limits.h>
22351 #else
22352 # include <assert.h>
22353 #endif
22354
22355 #undef $ac_func
22356
22357 /* Override any GCC internal prototype to avoid an error.
22358    Use char because int might match the return type of a GCC
22359    builtin and then its argument prototype would still apply.  */
22360 #ifdef __cplusplus
22361 extern "C"
22362 #endif
22363 char $ac_func ();
22364 /* The GNU C library defines this for functions which it implements
22365     to always fail with ENOSYS.  Some functions are actually named
22366     something starting with __ and the normal name is an alias.  */
22367 #if defined __stub_$ac_func || defined __stub___$ac_func
22368 choke me
22369 #endif
22370
22371 int
22372 main ()
22373 {
22374 return $ac_func ();
22375   ;
22376   return 0;
22377 }
22378 _ACEOF
22379 rm -f conftest.$ac_objext conftest$ac_exeext
22380 if { (ac_try="$ac_link"
22381 case "(($ac_try" in
22382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22383   *) ac_try_echo=$ac_try;;
22384 esac
22385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22386 $as_echo "$ac_try_echo") >&5
22387   (eval "$ac_link") 2>conftest.er1
22388   ac_status=$?
22389   grep -v '^ *+' conftest.er1 >conftest.err
22390   rm -f conftest.er1
22391   cat conftest.err >&5
22392   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393   (exit $ac_status); } && {
22394          test -z "$ac_c_werror_flag" ||
22395          test ! -s conftest.err
22396        } && test -s conftest$ac_exeext && {
22397          test "$cross_compiling" = yes ||
22398          $as_test_x conftest$ac_exeext
22399        }; then
22400   eval "$as_ac_var=yes"
22401 else
22402   $as_echo "$as_me: failed program was:" >&5
22403 sed 's/^/| /' conftest.$ac_ext >&5
22404
22405         eval "$as_ac_var=no"
22406 fi
22407
22408 rm -rf conftest.dSYM
22409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22410       conftest$ac_exeext conftest.$ac_ext
22411 fi
22412 ac_res=`eval 'as_val=${'$as_ac_var'}
22413                  $as_echo "$as_val"'`
22414                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22415 $as_echo "$ac_res" >&6; }
22416 as_val=`eval 'as_val=${'$as_ac_var'}
22417                  $as_echo "$as_val"'`
22418    if test "x$as_val" = x""yes; then
22419   cat >>confdefs.h <<_ACEOF
22420 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22421 _ACEOF
22422
22423 else
22424
22425 for ac_func in on_exit
22426 do
22427 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22428 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22429 $as_echo_n "checking for $ac_func... " >&6; }
22430 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22431   $as_echo_n "(cached) " >&6
22432 else
22433   cat >conftest.$ac_ext <<_ACEOF
22434 /* confdefs.h.  */
22435 _ACEOF
22436 cat confdefs.h >>conftest.$ac_ext
22437 cat >>conftest.$ac_ext <<_ACEOF
22438 /* end confdefs.h.  */
22439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22440    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22441 #define $ac_func innocuous_$ac_func
22442
22443 /* System header to define __stub macros and hopefully few prototypes,
22444     which can conflict with char $ac_func (); below.
22445     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22446     <limits.h> exists even on freestanding compilers.  */
22447
22448 #ifdef __STDC__
22449 # include <limits.h>
22450 #else
22451 # include <assert.h>
22452 #endif
22453
22454 #undef $ac_func
22455
22456 /* Override any GCC internal prototype to avoid an error.
22457    Use char because int might match the return type of a GCC
22458    builtin and then its argument prototype would still apply.  */
22459 #ifdef __cplusplus
22460 extern "C"
22461 #endif
22462 char $ac_func ();
22463 /* The GNU C library defines this for functions which it implements
22464     to always fail with ENOSYS.  Some functions are actually named
22465     something starting with __ and the normal name is an alias.  */
22466 #if defined __stub_$ac_func || defined __stub___$ac_func
22467 choke me
22468 #endif
22469
22470 int
22471 main ()
22472 {
22473 return $ac_func ();
22474   ;
22475   return 0;
22476 }
22477 _ACEOF
22478 rm -f conftest.$ac_objext conftest$ac_exeext
22479 if { (ac_try="$ac_link"
22480 case "(($ac_try" in
22481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22482   *) ac_try_echo=$ac_try;;
22483 esac
22484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22485 $as_echo "$ac_try_echo") >&5
22486   (eval "$ac_link") 2>conftest.er1
22487   ac_status=$?
22488   grep -v '^ *+' conftest.er1 >conftest.err
22489   rm -f conftest.er1
22490   cat conftest.err >&5
22491   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492   (exit $ac_status); } && {
22493          test -z "$ac_c_werror_flag" ||
22494          test ! -s conftest.err
22495        } && test -s conftest$ac_exeext && {
22496          test "$cross_compiling" = yes ||
22497          $as_test_x conftest$ac_exeext
22498        }; then
22499   eval "$as_ac_var=yes"
22500 else
22501   $as_echo "$as_me: failed program was:" >&5
22502 sed 's/^/| /' conftest.$ac_ext >&5
22503
22504         eval "$as_ac_var=no"
22505 fi
22506
22507 rm -rf conftest.dSYM
22508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22509       conftest$ac_exeext conftest.$ac_ext
22510 fi
22511 ac_res=`eval 'as_val=${'$as_ac_var'}
22512                  $as_echo "$as_val"'`
22513                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22514 $as_echo "$ac_res" >&6; }
22515 as_val=`eval 'as_val=${'$as_ac_var'}
22516                  $as_echo "$as_val"'`
22517    if test "x$as_val" = x""yes; then
22518   cat >>confdefs.h <<_ACEOF
22519 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22520 _ACEOF
22521
22522 else
22523   { { $as_echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
22524 $as_echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
22525    { (exit 1); exit 1; }; }
22526 fi
22527 done
22528
22529 fi
22530 done
22531
22532
22533
22534 #
22535 # Pthreads
22536 #
22537 # For each platform, we need to know about any special compile and link
22538 # libraries, and whether the normal C function names are thread-safe.
22539 # See the comment at the top of src/port/thread.c for more information.
22540 # WIN32 doesn't need the pthread tests;  it always uses threads
22541 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
22542
22543
22544
22545 ac_ext=c
22546 ac_cpp='$CPP $CPPFLAGS'
22547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22550
22551 acx_pthread_ok=no
22552
22553 # We used to check for pthread.h first, but this fails if pthread.h
22554 # requires special compiler flags (e.g. on True64 or Sequent).
22555 # It gets checked for in the link test anyway.
22556
22557 # First of all, check if the user has set any of the PTHREAD_LIBS,
22558 # etcetera environment variables, and if threads linking works using
22559 # them:
22560 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22561         save_CFLAGS="$CFLAGS"
22562         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22563         save_LIBS="$LIBS"
22564         LIBS="$PTHREAD_LIBS $LIBS"
22565         { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22566 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
22567         cat >conftest.$ac_ext <<_ACEOF
22568 /* confdefs.h.  */
22569 _ACEOF
22570 cat confdefs.h >>conftest.$ac_ext
22571 cat >>conftest.$ac_ext <<_ACEOF
22572 /* end confdefs.h.  */
22573
22574 /* Override any GCC internal prototype to avoid an error.
22575    Use char because int might match the return type of a GCC
22576    builtin and then its argument prototype would still apply.  */
22577 #ifdef __cplusplus
22578 extern "C"
22579 #endif
22580 char pthread_join ();
22581 int
22582 main ()
22583 {
22584 return pthread_join ();
22585   ;
22586   return 0;
22587 }
22588 _ACEOF
22589 rm -f conftest.$ac_objext conftest$ac_exeext
22590 if { (ac_try="$ac_link"
22591 case "(($ac_try" in
22592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22593   *) ac_try_echo=$ac_try;;
22594 esac
22595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22596 $as_echo "$ac_try_echo") >&5
22597   (eval "$ac_link") 2>conftest.er1
22598   ac_status=$?
22599   grep -v '^ *+' conftest.er1 >conftest.err
22600   rm -f conftest.er1
22601   cat conftest.err >&5
22602   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22603   (exit $ac_status); } && {
22604          test -z "$ac_c_werror_flag" ||
22605          test ! -s conftest.err
22606        } && test -s conftest$ac_exeext && {
22607          test "$cross_compiling" = yes ||
22608          $as_test_x conftest$ac_exeext
22609        }; then
22610   acx_pthread_ok=yes
22611 else
22612   $as_echo "$as_me: failed program was:" >&5
22613 sed 's/^/| /' conftest.$ac_ext >&5
22614
22615
22616 fi
22617
22618 rm -rf conftest.dSYM
22619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22620       conftest$ac_exeext conftest.$ac_ext
22621         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22622 $as_echo "$acx_pthread_ok" >&6; }
22623         if test x"$acx_pthread_ok" = xno; then
22624                 PTHREAD_LIBS=""
22625                 PTHREAD_CFLAGS=""
22626         fi
22627         LIBS="$save_LIBS"
22628         CFLAGS="$save_CFLAGS"
22629 fi
22630
22631 # We must check for the threads library under a number of different
22632 # names; the ordering is very important because some systems
22633 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22634 # libraries is broken (non-POSIX).
22635
22636 # Create a list of thread flags to try.  Items starting with a "-" are
22637 # C compiler flags, and other items are library names, except for "none"
22638 # which indicates that we try without any flags at all, and "pthread-config"
22639 # which is a program returning the flags for the Pth emulation library.
22640
22641 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
22642
22643 # The ordering *is* (sometimes) important.  Some notes on the
22644 # individual items follow:
22645
22646 # pthreads: AIX (must check this before -lpthread)
22647 # none: in case threads are in libc; should be tried before -Kthread and
22648 #       other compiler flags to prevent continual compiler warnings
22649 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22650 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22651 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22652 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22653 # -pthreads: Solaris/gcc
22654 # -mthreads: Mingw32/gcc, Lynx/gcc
22655 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22656 #      doesn't hurt to check since this sometimes defines pthreads too;
22657 #      also defines -D_REENTRANT)
22658 # pthread: Linux, etcetera
22659 # --thread-safe: KAI C++
22660 # pthread-config: use pthread-config program (for GNU Pth library)
22661
22662 case "${host_cpu}-${host_os}" in
22663         *solaris*)
22664
22665         # On Solaris (at least, for some versions), libc contains stubbed
22666         # (non-functional) versions of the pthreads routines, so link-based
22667         # tests will erroneously succeed.  (We need to link with -pthread or
22668         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
22669         # a function called by this macro, so we could check for that, but
22670         # who knows whether they'll stub that too in a future libc.)  So,
22671         # we'll just look for -pthreads and -lpthread first:
22672
22673         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22674         ;;
22675 esac
22676
22677 if test x"$acx_pthread_ok" = xno; then
22678 for flag in $acx_pthread_flags; do
22679
22680         tryPTHREAD_CFLAGS=""
22681         tryPTHREAD_LIBS=""
22682         case $flag in
22683                 none)
22684                 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22685 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
22686                 ;;
22687
22688                 -*)
22689                 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22690 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
22691                 tryPTHREAD_CFLAGS="$flag"
22692                 ;;
22693
22694                 pthread-config)
22695                 # skip this if we already have flags defined, for PostgreSQL
22696                 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
22697                 # Extract the first word of "pthread-config", so it can be a program name with args.
22698 set dummy pthread-config; ac_word=$2
22699 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22700 $as_echo_n "checking for $ac_word... " >&6; }
22701 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22702   $as_echo_n "(cached) " >&6
22703 else
22704   if test -n "$acx_pthread_config"; then
22705   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22706 else
22707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22708 for as_dir in $PATH
22709 do
22710   IFS=$as_save_IFS
22711   test -z "$as_dir" && as_dir=.
22712   for ac_exec_ext in '' $ac_executable_extensions; do
22713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22714     ac_cv_prog_acx_pthread_config="yes"
22715     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22716     break 2
22717   fi
22718 done
22719 done
22720 IFS=$as_save_IFS
22721
22722   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22723 fi
22724 fi
22725 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22726 if test -n "$acx_pthread_config"; then
22727   { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22728 $as_echo "$acx_pthread_config" >&6; }
22729 else
22730   { $as_echo "$as_me:$LINENO: result: no" >&5
22731 $as_echo "no" >&6; }
22732 fi
22733
22734
22735                 if test x"$acx_pthread_config" = xno; then continue; fi
22736                 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
22737                 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22738                 ;;
22739
22740                 *)
22741                 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22742 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
22743                 tryPTHREAD_LIBS="-l$flag"
22744                 ;;
22745         esac
22746
22747         save_LIBS="$LIBS"
22748         save_CFLAGS="$CFLAGS"
22749         LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
22750         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22751
22752         # Check for various functions.  We must include pthread.h,
22753         # since some functions may be macros.  (On the Sequent, we
22754         # need a special flag -Kthread to make this header compile.)
22755         # We check for pthread_join because it is in -lpthread on IRIX
22756         # while pthread_create is in libc.  We check for pthread_attr_init
22757         # due to DEC craziness with -lpthreads.  We check for
22758         # pthread_cleanup_push because it is one of the few pthread
22759         # functions on Solaris that doesn't have a non-functional libc stub.
22760         # We try pthread_create on general principles.
22761         cat >conftest.$ac_ext <<_ACEOF
22762 /* confdefs.h.  */
22763 _ACEOF
22764 cat confdefs.h >>conftest.$ac_ext
22765 cat >>conftest.$ac_ext <<_ACEOF
22766 /* end confdefs.h.  */
22767 #include <pthread.h>
22768 int
22769 main ()
22770 {
22771 pthread_t th; pthread_join(th, 0);
22772                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
22773                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22774   ;
22775   return 0;
22776 }
22777 _ACEOF
22778 rm -f conftest.$ac_objext conftest$ac_exeext
22779 if { (ac_try="$ac_link"
22780 case "(($ac_try" in
22781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22782   *) ac_try_echo=$ac_try;;
22783 esac
22784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22785 $as_echo "$ac_try_echo") >&5
22786   (eval "$ac_link") 2>conftest.er1
22787   ac_status=$?
22788   grep -v '^ *+' conftest.er1 >conftest.err
22789   rm -f conftest.er1
22790   cat conftest.err >&5
22791   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792   (exit $ac_status); } && {
22793          test -z "$ac_c_werror_flag" ||
22794          test ! -s conftest.err
22795        } && test -s conftest$ac_exeext && {
22796          test "$cross_compiling" = yes ||
22797          $as_test_x conftest$ac_exeext
22798        }; then
22799   acx_pthread_ok=yes
22800 else
22801   $as_echo "$as_me: failed program was:" >&5
22802 sed 's/^/| /' conftest.$ac_ext >&5
22803
22804         acx_pthread_ok=no
22805 fi
22806
22807 rm -rf conftest.dSYM
22808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22809       conftest$ac_exeext conftest.$ac_ext
22810
22811         if test "x$acx_pthread_ok" = xyes; then
22812             # Don't use options that are ignored by the compiler.
22813             # We find them by checking stderror.
22814             cat >conftest.$ac_ext <<_ACEOF
22815 int
22816 main (int argc, char **argv)
22817 {
22818   (void) argc;
22819   (void) argv;
22820   return 0;
22821 }
22822 _ACEOF
22823             rm -f conftest.$ac_objext conftest$ac_exeext
22824             # Check both linking and compiling, because they might tolerate different options.
22825             if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
22826                 # we continue with more flags because Linux needs -lpthread
22827                 # for libpq builds on PostgreSQL.  The test above only
22828                 # tests for building binaries, not shared libraries.
22829                 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
22830                 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22831             else   acx_pthread_ok=no
22832             fi
22833         fi
22834
22835         LIBS="$save_LIBS"
22836         CFLAGS="$save_CFLAGS"
22837
22838         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22839 $as_echo "$acx_pthread_ok" >&6; }
22840 done
22841 fi
22842
22843 # Various other checks:
22844 if test "x$acx_pthread_ok" = xyes; then
22845         save_LIBS="$LIBS"
22846         LIBS="$PTHREAD_LIBS $LIBS"
22847         save_CFLAGS="$CFLAGS"
22848         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22849
22850         # Detect AIX lossage: threads are created detached by default
22851         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
22852         { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22853 $as_echo_n "checking for joinable pthread attribute... " >&6; }
22854         cat >conftest.$ac_ext <<_ACEOF
22855 /* confdefs.h.  */
22856 _ACEOF
22857 cat confdefs.h >>conftest.$ac_ext
22858 cat >>conftest.$ac_ext <<_ACEOF
22859 /* end confdefs.h.  */
22860 #include <pthread.h>
22861 int
22862 main ()
22863 {
22864 int attr=PTHREAD_CREATE_JOINABLE;
22865   ;
22866   return 0;
22867 }
22868 _ACEOF
22869 rm -f conftest.$ac_objext conftest$ac_exeext
22870 if { (ac_try="$ac_link"
22871 case "(($ac_try" in
22872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22873   *) ac_try_echo=$ac_try;;
22874 esac
22875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22876 $as_echo "$ac_try_echo") >&5
22877   (eval "$ac_link") 2>conftest.er1
22878   ac_status=$?
22879   grep -v '^ *+' conftest.er1 >conftest.err
22880   rm -f conftest.er1
22881   cat conftest.err >&5
22882   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883   (exit $ac_status); } && {
22884          test -z "$ac_c_werror_flag" ||
22885          test ! -s conftest.err
22886        } && test -s conftest$ac_exeext && {
22887          test "$cross_compiling" = yes ||
22888          $as_test_x conftest$ac_exeext
22889        }; then
22890   ok=PTHREAD_CREATE_JOINABLE
22891 else
22892   $as_echo "$as_me: failed program was:" >&5
22893 sed 's/^/| /' conftest.$ac_ext >&5
22894
22895         ok=unknown
22896 fi
22897
22898 rm -rf conftest.dSYM
22899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22900       conftest$ac_exeext conftest.$ac_ext
22901         if test x"$ok" = xunknown; then
22902                 cat >conftest.$ac_ext <<_ACEOF
22903 /* confdefs.h.  */
22904 _ACEOF
22905 cat confdefs.h >>conftest.$ac_ext
22906 cat >>conftest.$ac_ext <<_ACEOF
22907 /* end confdefs.h.  */
22908 #include <pthread.h>
22909 int
22910 main ()
22911 {
22912 int attr=PTHREAD_CREATE_UNDETACHED;
22913   ;
22914   return 0;
22915 }
22916 _ACEOF
22917 rm -f conftest.$ac_objext conftest$ac_exeext
22918 if { (ac_try="$ac_link"
22919 case "(($ac_try" in
22920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22921   *) ac_try_echo=$ac_try;;
22922 esac
22923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22924 $as_echo "$ac_try_echo") >&5
22925   (eval "$ac_link") 2>conftest.er1
22926   ac_status=$?
22927   grep -v '^ *+' conftest.er1 >conftest.err
22928   rm -f conftest.er1
22929   cat conftest.err >&5
22930   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931   (exit $ac_status); } && {
22932          test -z "$ac_c_werror_flag" ||
22933          test ! -s conftest.err
22934        } && test -s conftest$ac_exeext && {
22935          test "$cross_compiling" = yes ||
22936          $as_test_x conftest$ac_exeext
22937        }; then
22938   ok=PTHREAD_CREATE_UNDETACHED
22939 else
22940   $as_echo "$as_me: failed program was:" >&5
22941 sed 's/^/| /' conftest.$ac_ext >&5
22942
22943         ok=unknown
22944 fi
22945
22946 rm -rf conftest.dSYM
22947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22948       conftest$ac_exeext conftest.$ac_ext
22949         fi
22950         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
22951
22952 cat >>confdefs.h <<\_ACEOF
22953 #define PTHREAD_CREATE_JOINABLE $ok
22954 _ACEOF
22955
22956         fi
22957         { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
22958 $as_echo "${ok}" >&6; }
22959         if test x"$ok" = xunknown; then
22960                 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
22961 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
22962         fi
22963
22964         { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22965 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
22966         flag=no
22967 # We always add these in PostgreSQL
22968 #       case "${host_cpu}-${host_os}" in
22969 #               *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
22970 #               *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
22971 #       esac
22972         { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
22973 $as_echo "${flag}" >&6; }
22974         if test "x$flag" != xno; then
22975                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22976         fi
22977
22978         LIBS="$save_LIBS"
22979         CFLAGS="$save_CFLAGS"
22980
22981 # Supporting cc_r would require a special CC in all places that
22982 # use libpq, and that is ugly, so we don't do it.  Users can still
22983 # define their compiler as cc_r to do thread builds of everything.
22984         # More AIX lossage: must compile with cc_r
22985         # Extract the first word of "cc_r", so it can be a program name with args.
22986 set dummy cc_r; ac_word=$2
22987 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22988 $as_echo_n "checking for $ac_word... " >&6; }
22989 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22990   $as_echo_n "(cached) " >&6
22991 else
22992   if test -n "$PTHREAD_CC"; then
22993   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22994 else
22995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22996 for as_dir in $PATH
22997 do
22998   IFS=$as_save_IFS
22999   test -z "$as_dir" && as_dir=.
23000   for ac_exec_ext in '' $ac_executable_extensions; do
23001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23002     ac_cv_prog_PTHREAD_CC="cc_r"
23003     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23004     break 2
23005   fi
23006 done
23007 done
23008 IFS=$as_save_IFS
23009
23010   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
23011 fi
23012 fi
23013 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23014 if test -n "$PTHREAD_CC"; then
23015   { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23016 $as_echo "$PTHREAD_CC" >&6; }
23017 else
23018   { $as_echo "$as_me:$LINENO: result: no" >&5
23019 $as_echo "no" >&6; }
23020 fi
23021
23022
23023 else
23024         PTHREAD_CC="$CC"
23025 fi
23026
23027
23028
23029
23030
23031 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23032 if test x"$acx_pthread_ok" = xyes; then
23033
23034 cat >>confdefs.h <<\_ACEOF
23035 #define HAVE_PTHREAD 1
23036 _ACEOF
23037
23038         :
23039 else
23040         acx_pthread_ok=no
23041
23042 fi
23043 ac_ext=c
23044 ac_cpp='$CPP $CPPFLAGS'
23045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23048
23049         # set thread flags
23050
23051 # Some platforms use these, so just define them.  They can't hurt if they
23052 # are not supported.  For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
23053 # enables 5-arg getpwuid_r, among other things.
23054 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
23055
23056
23057 # At this point, we don't want to muck with the compiler name for threading.
23058 # Let's see who fails, perhaps AIX.  2004-04-23
23059 if test "$PTHREAD_CC" != "$CC"; then
23060 { { $as_echo "$as_me:$LINENO: error:
23061 PostgreSQL does not support platforms that require a special compiler
23062 for thread safety;  use --disable-thread-safety to disable thread safety." >&5
23063 $as_echo "$as_me: error:
23064 PostgreSQL does not support platforms that require a special compiler
23065 for thread safety;  use --disable-thread-safety to disable thread safety." >&2;}
23066    { (exit 1); exit 1; }; }
23067 fi
23068
23069 # Check for *_r functions
23070 _CFLAGS="$CFLAGS"
23071 _LIBS="$LIBS"
23072 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23073 LIBS="$LIBS $PTHREAD_LIBS"
23074
23075 if test "$PORTNAME" != "win32"; then
23076 if test "${ac_cv_header_pthread_h+set}" = set; then
23077   { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23078 $as_echo_n "checking for pthread.h... " >&6; }
23079 if test "${ac_cv_header_pthread_h+set}" = set; then
23080   $as_echo_n "(cached) " >&6
23081 fi
23082 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23083 $as_echo "$ac_cv_header_pthread_h" >&6; }
23084 else
23085   # Is the header compilable?
23086 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
23087 $as_echo_n "checking pthread.h usability... " >&6; }
23088 cat >conftest.$ac_ext <<_ACEOF
23089 /* confdefs.h.  */
23090 _ACEOF
23091 cat confdefs.h >>conftest.$ac_ext
23092 cat >>conftest.$ac_ext <<_ACEOF
23093 /* end confdefs.h.  */
23094 $ac_includes_default
23095 #include <pthread.h>
23096 _ACEOF
23097 rm -f conftest.$ac_objext
23098 if { (ac_try="$ac_compile"
23099 case "(($ac_try" in
23100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23101   *) ac_try_echo=$ac_try;;
23102 esac
23103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23104 $as_echo "$ac_try_echo") >&5
23105   (eval "$ac_compile") 2>conftest.er1
23106   ac_status=$?
23107   grep -v '^ *+' conftest.er1 >conftest.err
23108   rm -f conftest.er1
23109   cat conftest.err >&5
23110   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23111   (exit $ac_status); } && {
23112          test -z "$ac_c_werror_flag" ||
23113          test ! -s conftest.err
23114        } && test -s conftest.$ac_objext; then
23115   ac_header_compiler=yes
23116 else
23117   $as_echo "$as_me: failed program was:" >&5
23118 sed 's/^/| /' conftest.$ac_ext >&5
23119
23120         ac_header_compiler=no
23121 fi
23122
23123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23124 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23125 $as_echo "$ac_header_compiler" >&6; }
23126
23127 # Is the header present?
23128 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
23129 $as_echo_n "checking pthread.h presence... " >&6; }
23130 cat >conftest.$ac_ext <<_ACEOF
23131 /* confdefs.h.  */
23132 _ACEOF
23133 cat confdefs.h >>conftest.$ac_ext
23134 cat >>conftest.$ac_ext <<_ACEOF
23135 /* end confdefs.h.  */
23136 #include <pthread.h>
23137 _ACEOF
23138 if { (ac_try="$ac_cpp conftest.$ac_ext"
23139 case "(($ac_try" in
23140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23141   *) ac_try_echo=$ac_try;;
23142 esac
23143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23144 $as_echo "$ac_try_echo") >&5
23145   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23146   ac_status=$?
23147   grep -v '^ *+' conftest.er1 >conftest.err
23148   rm -f conftest.er1
23149   cat conftest.err >&5
23150   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151   (exit $ac_status); } >/dev/null && {
23152          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23153          test ! -s conftest.err
23154        }; then
23155   ac_header_preproc=yes
23156 else
23157   $as_echo "$as_me: failed program was:" >&5
23158 sed 's/^/| /' conftest.$ac_ext >&5
23159
23160   ac_header_preproc=no
23161 fi
23162
23163 rm -f conftest.err conftest.$ac_ext
23164 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23165 $as_echo "$ac_header_preproc" >&6; }
23166
23167 # So?  What about this header?
23168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23169   yes:no: )
23170     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
23171 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23172     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
23173 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
23174     ac_header_preproc=yes
23175     ;;
23176   no:yes:* )
23177     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
23178 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
23179     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
23180 $as_echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
23181     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
23182 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
23183     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
23184 $as_echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23185     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
23186 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
23187     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
23188 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
23189     ( cat <<\_ASBOX
23190 ## ---------------------------------------- ##
23191 ## Report this to pgsql-bugs@postgresql.org ##
23192 ## ---------------------------------------- ##
23193 _ASBOX
23194      ) | sed "s/^/$as_me: WARNING:     /" >&2
23195     ;;
23196 esac
23197 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23198 $as_echo_n "checking for pthread.h... " >&6; }
23199 if test "${ac_cv_header_pthread_h+set}" = set; then
23200   $as_echo_n "(cached) " >&6
23201 else
23202   ac_cv_header_pthread_h=$ac_header_preproc
23203 fi
23204 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23205 $as_echo "$ac_cv_header_pthread_h" >&6; }
23206
23207 fi
23208 if test "x$ac_cv_header_pthread_h" = x""yes; then
23209   :
23210 else
23211   { { $as_echo "$as_me:$LINENO: error:
23212 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&5
23213 $as_echo "$as_me: error:
23214 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&2;}
23215    { (exit 1); exit 1; }; }
23216 fi
23217
23218
23219 fi
23220
23221
23222
23223
23224 for ac_func in strerror_r getpwuid_r gethostbyname_r
23225 do
23226 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23227 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23228 $as_echo_n "checking for $ac_func... " >&6; }
23229 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23230   $as_echo_n "(cached) " >&6
23231 else
23232   cat >conftest.$ac_ext <<_ACEOF
23233 /* confdefs.h.  */
23234 _ACEOF
23235 cat confdefs.h >>conftest.$ac_ext
23236 cat >>conftest.$ac_ext <<_ACEOF
23237 /* end confdefs.h.  */
23238 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23239    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23240 #define $ac_func innocuous_$ac_func
23241
23242 /* System header to define __stub macros and hopefully few prototypes,
23243     which can conflict with char $ac_func (); below.
23244     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23245     <limits.h> exists even on freestanding compilers.  */
23246
23247 #ifdef __STDC__
23248 # include <limits.h>
23249 #else
23250 # include <assert.h>
23251 #endif
23252
23253 #undef $ac_func
23254
23255 /* Override any GCC internal prototype to avoid an error.
23256    Use char because int might match the return type of a GCC
23257    builtin and then its argument prototype would still apply.  */
23258 #ifdef __cplusplus
23259 extern "C"
23260 #endif
23261 char $ac_func ();
23262 /* The GNU C library defines this for functions which it implements
23263     to always fail with ENOSYS.  Some functions are actually named
23264     something starting with __ and the normal name is an alias.  */
23265 #if defined __stub_$ac_func || defined __stub___$ac_func
23266 choke me
23267 #endif
23268
23269 int
23270 main ()
23271 {
23272 return $ac_func ();
23273   ;
23274   return 0;
23275 }
23276 _ACEOF
23277 rm -f conftest.$ac_objext conftest$ac_exeext
23278 if { (ac_try="$ac_link"
23279 case "(($ac_try" in
23280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23281   *) ac_try_echo=$ac_try;;
23282 esac
23283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23284 $as_echo "$ac_try_echo") >&5
23285   (eval "$ac_link") 2>conftest.er1
23286   ac_status=$?
23287   grep -v '^ *+' conftest.er1 >conftest.err
23288   rm -f conftest.er1
23289   cat conftest.err >&5
23290   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23291   (exit $ac_status); } && {
23292          test -z "$ac_c_werror_flag" ||
23293          test ! -s conftest.err
23294        } && test -s conftest$ac_exeext && {
23295          test "$cross_compiling" = yes ||
23296          $as_test_x conftest$ac_exeext
23297        }; then
23298   eval "$as_ac_var=yes"
23299 else
23300   $as_echo "$as_me: failed program was:" >&5
23301 sed 's/^/| /' conftest.$ac_ext >&5
23302
23303         eval "$as_ac_var=no"
23304 fi
23305
23306 rm -rf conftest.dSYM
23307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23308       conftest$ac_exeext conftest.$ac_ext
23309 fi
23310 ac_res=`eval 'as_val=${'$as_ac_var'}
23311                  $as_echo "$as_val"'`
23312                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23313 $as_echo "$ac_res" >&6; }
23314 as_val=`eval 'as_val=${'$as_ac_var'}
23315                  $as_echo "$as_val"'`
23316    if test "x$as_val" = x""yes; then
23317   cat >>confdefs.h <<_ACEOF
23318 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23319 _ACEOF
23320
23321 fi
23322 done
23323
23324
23325 # Do test here with the proper thread flags
23326 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
23327 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
23328 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
23329   $as_echo_n "(cached) " >&6
23330 else
23331   cat >conftest.$ac_ext <<_ACEOF
23332 /* confdefs.h.  */
23333 _ACEOF
23334 cat confdefs.h >>conftest.$ac_ext
23335 cat >>conftest.$ac_ext <<_ACEOF
23336 /* end confdefs.h.  */
23337 #include <sys/types.h>
23338 #include <pwd.h>
23339 int
23340 main ()
23341 {
23342 uid_t uid;
23343 struct passwd *space;
23344 char *buf;
23345 size_t bufsize;
23346 struct passwd **result;
23347 getpwuid_r(uid, space, buf, bufsize, result);
23348   ;
23349   return 0;
23350 }
23351 _ACEOF
23352 rm -f conftest.$ac_objext
23353 if { (ac_try="$ac_compile"
23354 case "(($ac_try" in
23355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23356   *) ac_try_echo=$ac_try;;
23357 esac
23358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23359 $as_echo "$ac_try_echo") >&5
23360   (eval "$ac_compile") 2>conftest.er1
23361   ac_status=$?
23362   grep -v '^ *+' conftest.er1 >conftest.err
23363   rm -f conftest.er1
23364   cat conftest.err >&5
23365   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23366   (exit $ac_status); } && {
23367          test -z "$ac_c_werror_flag" ||
23368          test ! -s conftest.err
23369        } && test -s conftest.$ac_objext; then
23370   pgac_cv_func_getpwuid_r_5arg=yes
23371 else
23372   $as_echo "$as_me: failed program was:" >&5
23373 sed 's/^/| /' conftest.$ac_ext >&5
23374
23375         pgac_cv_func_getpwuid_r_5arg=no
23376 fi
23377
23378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23379 fi
23380 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
23381 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
23382 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
23383
23384 cat >>confdefs.h <<\_ACEOF
23385 #define GETPWUID_R_5ARG /**/
23386 _ACEOF
23387
23388 fi
23389
23390 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
23391 $as_echo_n "checking whether strerror_r returns int... " >&6; }
23392 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
23393   $as_echo_n "(cached) " >&6
23394 else
23395   cat >conftest.$ac_ext <<_ACEOF
23396 /* confdefs.h.  */
23397 _ACEOF
23398 cat confdefs.h >>conftest.$ac_ext
23399 cat >>conftest.$ac_ext <<_ACEOF
23400 /* end confdefs.h.  */
23401 #include <string.h>
23402 int
23403 main ()
23404 {
23405 #ifndef _AIX
23406 int strerror_r(int, char *, size_t);
23407 #else
23408 /* Older AIX has 'int' for the third argument so we don't test the args. */
23409 int strerror_r();
23410 #endif
23411   ;
23412   return 0;
23413 }
23414 _ACEOF
23415 rm -f conftest.$ac_objext
23416 if { (ac_try="$ac_compile"
23417 case "(($ac_try" in
23418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23419   *) ac_try_echo=$ac_try;;
23420 esac
23421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23422 $as_echo "$ac_try_echo") >&5
23423   (eval "$ac_compile") 2>conftest.er1
23424   ac_status=$?
23425   grep -v '^ *+' conftest.er1 >conftest.err
23426   rm -f conftest.er1
23427   cat conftest.err >&5
23428   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23429   (exit $ac_status); } && {
23430          test -z "$ac_c_werror_flag" ||
23431          test ! -s conftest.err
23432        } && test -s conftest.$ac_objext; then
23433   pgac_cv_func_strerror_r_int=yes
23434 else
23435   $as_echo "$as_me: failed program was:" >&5
23436 sed 's/^/| /' conftest.$ac_ext >&5
23437
23438         pgac_cv_func_strerror_r_int=no
23439 fi
23440
23441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23442 fi
23443 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
23444 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
23445 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
23446
23447 cat >>confdefs.h <<\_ACEOF
23448 #define STRERROR_R_INT /**/
23449 _ACEOF
23450
23451 fi
23452
23453
23454 CFLAGS="$_CFLAGS"
23455 LIBS="$_LIBS"
23456
23457 else
23458 # do not use values from template file
23459 PTHREAD_CFLAGS=
23460 PTHREAD_LIBS=
23461 fi
23462
23463
23464
23465
23466
23467 # We can test for libldap_r only after we know PTHREAD_LIBS
23468 if test "$with_ldap" = yes ; then
23469   _LIBS="$LIBS"
23470   if test "$PORTNAME" != "win32"; then
23471
23472 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
23473 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
23474 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
23475   $as_echo_n "(cached) " >&6
23476 else
23477   ac_check_lib_save_LIBS=$LIBS
23478 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
23479 cat >conftest.$ac_ext <<_ACEOF
23480 /* confdefs.h.  */
23481 _ACEOF
23482 cat confdefs.h >>conftest.$ac_ext
23483 cat >>conftest.$ac_ext <<_ACEOF
23484 /* end confdefs.h.  */
23485
23486 /* Override any GCC internal prototype to avoid an error.
23487    Use char because int might match the return type of a GCC
23488    builtin and then its argument prototype would still apply.  */
23489 #ifdef __cplusplus
23490 extern "C"
23491 #endif
23492 char ldap_bind ();
23493 int
23494 main ()
23495 {
23496 return ldap_bind ();
23497   ;
23498   return 0;
23499 }
23500 _ACEOF
23501 rm -f conftest.$ac_objext conftest$ac_exeext
23502 if { (ac_try="$ac_link"
23503 case "(($ac_try" in
23504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23505   *) ac_try_echo=$ac_try;;
23506 esac
23507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23508 $as_echo "$ac_try_echo") >&5
23509   (eval "$ac_link") 2>conftest.er1
23510   ac_status=$?
23511   grep -v '^ *+' conftest.er1 >conftest.err
23512   rm -f conftest.er1
23513   cat conftest.err >&5
23514   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515   (exit $ac_status); } && {
23516          test -z "$ac_c_werror_flag" ||
23517          test ! -s conftest.err
23518        } && test -s conftest$ac_exeext && {
23519          test "$cross_compiling" = yes ||
23520          $as_test_x conftest$ac_exeext
23521        }; then
23522   ac_cv_lib_ldap_ldap_bind=yes
23523 else
23524   $as_echo "$as_me: failed program was:" >&5
23525 sed 's/^/| /' conftest.$ac_ext >&5
23526
23527         ac_cv_lib_ldap_ldap_bind=no
23528 fi
23529
23530 rm -rf conftest.dSYM
23531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23532       conftest$ac_exeext conftest.$ac_ext
23533 LIBS=$ac_check_lib_save_LIBS
23534 fi
23535 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
23536 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
23537 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
23538   cat >>confdefs.h <<_ACEOF
23539 #define HAVE_LIBLDAP 1
23540 _ACEOF
23541
23542   LIBS="-lldap $LIBS"
23543
23544 else
23545   { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
23546 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
23547    { (exit 1); exit 1; }; }
23548 fi
23549
23550     LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
23551     if test "$enable_thread_safety" = yes; then
23552       # on some platforms ldap_r fails to link without PTHREAD_LIBS
23553
23554 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
23555 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
23556 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
23557   $as_echo_n "(cached) " >&6
23558 else
23559   ac_check_lib_save_LIBS=$LIBS
23560 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
23561 cat >conftest.$ac_ext <<_ACEOF
23562 /* confdefs.h.  */
23563 _ACEOF
23564 cat confdefs.h >>conftest.$ac_ext
23565 cat >>conftest.$ac_ext <<_ACEOF
23566 /* end confdefs.h.  */
23567
23568 /* Override any GCC internal prototype to avoid an error.
23569    Use char because int might match the return type of a GCC
23570    builtin and then its argument prototype would still apply.  */
23571 #ifdef __cplusplus
23572 extern "C"
23573 #endif
23574 char ldap_simple_bind ();
23575 int
23576 main ()
23577 {
23578 return ldap_simple_bind ();
23579   ;
23580   return 0;
23581 }
23582 _ACEOF
23583 rm -f conftest.$ac_objext conftest$ac_exeext
23584 if { (ac_try="$ac_link"
23585 case "(($ac_try" in
23586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23587   *) ac_try_echo=$ac_try;;
23588 esac
23589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23590 $as_echo "$ac_try_echo") >&5
23591   (eval "$ac_link") 2>conftest.er1
23592   ac_status=$?
23593   grep -v '^ *+' conftest.er1 >conftest.err
23594   rm -f conftest.er1
23595   cat conftest.err >&5
23596   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597   (exit $ac_status); } && {
23598          test -z "$ac_c_werror_flag" ||
23599          test ! -s conftest.err
23600        } && test -s conftest$ac_exeext && {
23601          test "$cross_compiling" = yes ||
23602          $as_test_x conftest$ac_exeext
23603        }; then
23604   ac_cv_lib_ldap_r_ldap_simple_bind=yes
23605 else
23606   $as_echo "$as_me: failed program was:" >&5
23607 sed 's/^/| /' conftest.$ac_ext >&5
23608
23609         ac_cv_lib_ldap_r_ldap_simple_bind=no
23610 fi
23611
23612 rm -rf conftest.dSYM
23613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23614       conftest$ac_exeext conftest.$ac_ext
23615 LIBS=$ac_check_lib_save_LIBS
23616 fi
23617 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
23618 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
23619 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
23620   cat >>confdefs.h <<_ACEOF
23621 #define HAVE_LIBLDAP_R 1
23622 _ACEOF
23623
23624   LIBS="-lldap_r $LIBS"
23625
23626 else
23627   { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
23628 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
23629    { (exit 1); exit 1; }; }
23630 fi
23631
23632       LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
23633     else
23634       LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
23635     fi
23636   else
23637
23638 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
23639 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
23640 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
23641   $as_echo_n "(cached) " >&6
23642 else
23643   ac_check_lib_save_LIBS=$LIBS
23644 LIBS="-lwldap32  $LIBS"
23645 cat >conftest.$ac_ext <<_ACEOF
23646 /* confdefs.h.  */
23647 _ACEOF
23648 cat confdefs.h >>conftest.$ac_ext
23649 cat >>conftest.$ac_ext <<_ACEOF
23650 /* end confdefs.h.  */
23651
23652 /* Override any GCC internal prototype to avoid an error.
23653    Use char because int might match the return type of a GCC
23654    builtin and then its argument prototype would still apply.  */
23655 #ifdef __cplusplus
23656 extern "C"
23657 #endif
23658 char ldap_bind ();
23659 int
23660 main ()
23661 {
23662 return ldap_bind ();
23663   ;
23664   return 0;
23665 }
23666 _ACEOF
23667 rm -f conftest.$ac_objext conftest$ac_exeext
23668 if { (ac_try="$ac_link"
23669 case "(($ac_try" in
23670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23671   *) ac_try_echo=$ac_try;;
23672 esac
23673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23674 $as_echo "$ac_try_echo") >&5
23675   (eval "$ac_link") 2>conftest.er1
23676   ac_status=$?
23677   grep -v '^ *+' conftest.er1 >conftest.err
23678   rm -f conftest.er1
23679   cat conftest.err >&5
23680   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23681   (exit $ac_status); } && {
23682          test -z "$ac_c_werror_flag" ||
23683          test ! -s conftest.err
23684        } && test -s conftest$ac_exeext && {
23685          test "$cross_compiling" = yes ||
23686          $as_test_x conftest$ac_exeext
23687        }; then
23688   ac_cv_lib_wldap32_ldap_bind=yes
23689 else
23690   $as_echo "$as_me: failed program was:" >&5
23691 sed 's/^/| /' conftest.$ac_ext >&5
23692
23693         ac_cv_lib_wldap32_ldap_bind=no
23694 fi
23695
23696 rm -rf conftest.dSYM
23697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23698       conftest$ac_exeext conftest.$ac_ext
23699 LIBS=$ac_check_lib_save_LIBS
23700 fi
23701 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
23702 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
23703 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
23704   cat >>confdefs.h <<_ACEOF
23705 #define HAVE_LIBWLDAP32 1
23706 _ACEOF
23707
23708   LIBS="-lwldap32 $LIBS"
23709
23710 else
23711   { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
23712 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
23713    { (exit 1); exit 1; }; }
23714 fi
23715
23716     LDAP_LIBS_FE="-lwldap32"
23717     LDAP_LIBS_BE="-lwldap32"
23718   fi
23719   LIBS="$_LIBS"
23720 fi
23721
23722
23723
23724
23725 # Older versions of libxml2 lack the xmlStructuredErrorContext variable
23726 # (which could be a macro referring to a function, if threading is enabled)
23727 if test "$with_libxml" = yes ; then
23728   { $as_echo "$as_me:$LINENO: checking for xmlStructuredErrorContext" >&5
23729 $as_echo_n "checking for xmlStructuredErrorContext... " >&6; }
23730 if test "${pgac_cv_libxml_structerrctx+set}" = set; then
23731   $as_echo_n "(cached) " >&6
23732 else
23733   cat >conftest.$ac_ext <<_ACEOF
23734 /* confdefs.h.  */
23735 _ACEOF
23736 cat confdefs.h >>conftest.$ac_ext
23737 cat >>conftest.$ac_ext <<_ACEOF
23738 /* end confdefs.h.  */
23739 #include <libxml/globals.h>
23740                 void *globptr;
23741 int
23742 main ()
23743 {
23744 globptr = xmlStructuredErrorContext
23745   ;
23746   return 0;
23747 }
23748 _ACEOF
23749 rm -f conftest.$ac_objext conftest$ac_exeext
23750 if { (ac_try="$ac_link"
23751 case "(($ac_try" in
23752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23753   *) ac_try_echo=$ac_try;;
23754 esac
23755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23756 $as_echo "$ac_try_echo") >&5
23757   (eval "$ac_link") 2>conftest.er1
23758   ac_status=$?
23759   grep -v '^ *+' conftest.er1 >conftest.err
23760   rm -f conftest.er1
23761   cat conftest.err >&5
23762   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23763   (exit $ac_status); } && {
23764          test -z "$ac_c_werror_flag" ||
23765          test ! -s conftest.err
23766        } && test -s conftest$ac_exeext && {
23767          test "$cross_compiling" = yes ||
23768          $as_test_x conftest$ac_exeext
23769        }; then
23770   pgac_cv_libxml_structerrctx=yes
23771 else
23772   $as_echo "$as_me: failed program was:" >&5
23773 sed 's/^/| /' conftest.$ac_ext >&5
23774
23775         pgac_cv_libxml_structerrctx=no
23776 fi
23777
23778 rm -rf conftest.dSYM
23779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23780       conftest$ac_exeext conftest.$ac_ext
23781 fi
23782 { $as_echo "$as_me:$LINENO: result: $pgac_cv_libxml_structerrctx" >&5
23783 $as_echo "$pgac_cv_libxml_structerrctx" >&6; }
23784   if test x"$pgac_cv_libxml_structerrctx" = x"yes"; then
23785
23786 cat >>confdefs.h <<\_ACEOF
23787 #define HAVE_XMLSTRUCTUREDERRORCONTEXT 1
23788 _ACEOF
23789
23790   fi
23791 fi
23792
23793
23794 # This test makes sure that run tests work at all.  Sometimes a shared
23795 # library is found by the linker, but the runtime linker can't find it.
23796 # This check should come after all modifications of compiler or linker
23797 # variables, and before any other run tests.
23798 { $as_echo "$as_me:$LINENO: checking test program" >&5
23799 $as_echo_n "checking test program... " >&6; }
23800 if test "$cross_compiling" = yes; then
23801   { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
23802 $as_echo "cross-compiling" >&6; }
23803 else
23804   cat >conftest.$ac_ext <<_ACEOF
23805 /* confdefs.h.  */
23806 _ACEOF
23807 cat confdefs.h >>conftest.$ac_ext
23808 cat >>conftest.$ac_ext <<_ACEOF
23809 /* end confdefs.h.  */
23810 int main() { return 0; }
23811 _ACEOF
23812 rm -f conftest$ac_exeext
23813 if { (ac_try="$ac_link"
23814 case "(($ac_try" in
23815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23816   *) ac_try_echo=$ac_try;;
23817 esac
23818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23819 $as_echo "$ac_try_echo") >&5
23820   (eval "$ac_link") 2>&5
23821   ac_status=$?
23822   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23823   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23824   { (case "(($ac_try" in
23825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23826   *) ac_try_echo=$ac_try;;
23827 esac
23828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23829 $as_echo "$ac_try_echo") >&5
23830   (eval "$ac_try") 2>&5
23831   ac_status=$?
23832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23833   (exit $ac_status); }; }; then
23834   { $as_echo "$as_me:$LINENO: result: ok" >&5
23835 $as_echo "ok" >&6; }
23836 else
23837   $as_echo "$as_me: program exited with status $ac_status" >&5
23838 $as_echo "$as_me: failed program was:" >&5
23839 sed 's/^/| /' conftest.$ac_ext >&5
23840
23841 ( exit $ac_status )
23842 { $as_echo "$as_me:$LINENO: result: failed" >&5
23843 $as_echo "failed" >&6; }
23844 { { $as_echo "$as_me:$LINENO: error:
23845 Could not execute a simple test program.  This may be a problem
23846 related to locating shared libraries.  Check the file 'config.log'
23847 for the exact reason." >&5
23848 $as_echo "$as_me: error:
23849 Could not execute a simple test program.  This may be a problem
23850 related to locating shared libraries.  Check the file 'config.log'
23851 for the exact reason." >&2;}
23852    { (exit 1); exit 1; }; }
23853 fi
23854 rm -rf conftest.dSYM
23855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23856 fi
23857
23858
23859
23860 # --------------------
23861 # Run tests below here
23862 # --------------------
23863
23864 # Force use of our snprintf if system's doesn't do arg control
23865 # See comment above at snprintf test for details.
23866 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
23867   { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
23868 $as_echo_n "checking whether printf supports argument control... " >&6; }
23869 if test "${pgac_cv_printf_arg_control+set}" = set; then
23870   $as_echo_n "(cached) " >&6
23871 else
23872   if test "$cross_compiling" = yes; then
23873   pgac_cv_printf_arg_control=cross
23874 else
23875   cat >conftest.$ac_ext <<_ACEOF
23876 /* confdefs.h.  */
23877 _ACEOF
23878 cat confdefs.h >>conftest.$ac_ext
23879 cat >>conftest.$ac_ext <<_ACEOF
23880 /* end confdefs.h.  */
23881 #include <stdio.h>
23882 #include <string.h>
23883
23884 int main()
23885 {
23886   char buf[100];
23887
23888   /* can it swap arguments? */
23889   snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
23890   if (strcmp(buf, "4 3") != 0)
23891     return 1;
23892   return 0;
23893 }
23894 _ACEOF
23895 rm -f conftest$ac_exeext
23896 if { (ac_try="$ac_link"
23897 case "(($ac_try" in
23898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23899   *) ac_try_echo=$ac_try;;
23900 esac
23901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23902 $as_echo "$ac_try_echo") >&5
23903   (eval "$ac_link") 2>&5
23904   ac_status=$?
23905   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23906   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23907   { (case "(($ac_try" in
23908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23909   *) ac_try_echo=$ac_try;;
23910 esac
23911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23912 $as_echo "$ac_try_echo") >&5
23913   (eval "$ac_try") 2>&5
23914   ac_status=$?
23915   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23916   (exit $ac_status); }; }; then
23917   pgac_cv_printf_arg_control=yes
23918 else
23919   $as_echo "$as_me: program exited with status $ac_status" >&5
23920 $as_echo "$as_me: failed program was:" >&5
23921 sed 's/^/| /' conftest.$ac_ext >&5
23922
23923 ( exit $ac_status )
23924 pgac_cv_printf_arg_control=no
23925 fi
23926 rm -rf conftest.dSYM
23927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23928 fi
23929
23930
23931
23932 fi
23933 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
23934 $as_echo "$pgac_cv_printf_arg_control" >&6; }
23935
23936   if test $pgac_cv_printf_arg_control != yes ; then
23937     pgac_need_repl_snprintf=yes
23938   fi
23939 fi
23940
23941
23942
23943
23944 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
23945 $as_echo_n "checking whether long int is 64 bits... " >&6; }
23946 if test "${pgac_cv_type_long_int_64+set}" = set; then
23947   $as_echo_n "(cached) " >&6
23948 else
23949   if test "$cross_compiling" = yes; then
23950   # If cross-compiling, check the size reported by the compiler and
23951 # trust that the arithmetic works.
23952 cat >conftest.$ac_ext <<_ACEOF
23953 /* confdefs.h.  */
23954 _ACEOF
23955 cat confdefs.h >>conftest.$ac_ext
23956 cat >>conftest.$ac_ext <<_ACEOF
23957 /* end confdefs.h.  */
23958
23959 int
23960 main ()
23961 {
23962 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
23963 test_array [0] = 0
23964
23965   ;
23966   return 0;
23967 }
23968 _ACEOF
23969 rm -f conftest.$ac_objext
23970 if { (ac_try="$ac_compile"
23971 case "(($ac_try" in
23972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23973   *) ac_try_echo=$ac_try;;
23974 esac
23975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23976 $as_echo "$ac_try_echo") >&5
23977   (eval "$ac_compile") 2>conftest.er1
23978   ac_status=$?
23979   grep -v '^ *+' conftest.er1 >conftest.err
23980   rm -f conftest.er1
23981   cat conftest.err >&5
23982   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23983   (exit $ac_status); } && {
23984          test -z "$ac_c_werror_flag" ||
23985          test ! -s conftest.err
23986        } && test -s conftest.$ac_objext; then
23987   pgac_cv_type_long_int_64=yes
23988 else
23989   $as_echo "$as_me: failed program was:" >&5
23990 sed 's/^/| /' conftest.$ac_ext >&5
23991
23992         pgac_cv_type_long_int_64=no
23993 fi
23994
23995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23996 else
23997   cat >conftest.$ac_ext <<_ACEOF
23998 /* confdefs.h.  */
23999 _ACEOF
24000 cat confdefs.h >>conftest.$ac_ext
24001 cat >>conftest.$ac_ext <<_ACEOF
24002 /* end confdefs.h.  */
24003 typedef long int ac_int64;
24004
24005 /*
24006  * These are globals to discourage the compiler from folding all the
24007  * arithmetic tests down to compile-time constants.
24008  */
24009 ac_int64 a = 20000001;
24010 ac_int64 b = 40000005;
24011
24012 int does_int64_work()
24013 {
24014   ac_int64 c,d;
24015
24016   if (sizeof(ac_int64) != 8)
24017     return 0;                   /* definitely not the right size */
24018
24019   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24020   c = a * b;
24021   d = (c + b) / b;
24022   if (d != a+1)
24023     return 0;
24024   return 1;
24025 }
24026 main() {
24027   exit(! does_int64_work());
24028 }
24029 _ACEOF
24030 rm -f conftest$ac_exeext
24031 if { (ac_try="$ac_link"
24032 case "(($ac_try" in
24033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24034   *) ac_try_echo=$ac_try;;
24035 esac
24036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24037 $as_echo "$ac_try_echo") >&5
24038   (eval "$ac_link") 2>&5
24039   ac_status=$?
24040   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24042   { (case "(($ac_try" in
24043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24044   *) ac_try_echo=$ac_try;;
24045 esac
24046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24047 $as_echo "$ac_try_echo") >&5
24048   (eval "$ac_try") 2>&5
24049   ac_status=$?
24050   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24051   (exit $ac_status); }; }; then
24052   pgac_cv_type_long_int_64=yes
24053 else
24054   $as_echo "$as_me: program exited with status $ac_status" >&5
24055 $as_echo "$as_me: failed program was:" >&5
24056 sed 's/^/| /' conftest.$ac_ext >&5
24057
24058 ( exit $ac_status )
24059 pgac_cv_type_long_int_64=no
24060 fi
24061 rm -rf conftest.dSYM
24062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24063 fi
24064
24065
24066 fi
24067 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
24068 $as_echo "$pgac_cv_type_long_int_64" >&6; }
24069
24070 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
24071 if test x"$pgac_cv_type_long_int_64" = xyes ; then
24072
24073 cat >>confdefs.h <<\_ACEOF
24074 #define HAVE_LONG_INT_64 1
24075 _ACEOF
24076
24077 fi
24078
24079
24080 if test x"$HAVE_LONG_INT_64" = x"no" ; then
24081   { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
24082 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
24083 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
24084   $as_echo_n "(cached) " >&6
24085 else
24086   if test "$cross_compiling" = yes; then
24087   # If cross-compiling, check the size reported by the compiler and
24088 # trust that the arithmetic works.
24089 cat >conftest.$ac_ext <<_ACEOF
24090 /* confdefs.h.  */
24091 _ACEOF
24092 cat confdefs.h >>conftest.$ac_ext
24093 cat >>conftest.$ac_ext <<_ACEOF
24094 /* end confdefs.h.  */
24095
24096 int
24097 main ()
24098 {
24099 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
24100 test_array [0] = 0
24101
24102   ;
24103   return 0;
24104 }
24105 _ACEOF
24106 rm -f conftest.$ac_objext
24107 if { (ac_try="$ac_compile"
24108 case "(($ac_try" in
24109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24110   *) ac_try_echo=$ac_try;;
24111 esac
24112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24113 $as_echo "$ac_try_echo") >&5
24114   (eval "$ac_compile") 2>conftest.er1
24115   ac_status=$?
24116   grep -v '^ *+' conftest.er1 >conftest.err
24117   rm -f conftest.er1
24118   cat conftest.err >&5
24119   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24120   (exit $ac_status); } && {
24121          test -z "$ac_c_werror_flag" ||
24122          test ! -s conftest.err
24123        } && test -s conftest.$ac_objext; then
24124   pgac_cv_type_long_long_int_64=yes
24125 else
24126   $as_echo "$as_me: failed program was:" >&5
24127 sed 's/^/| /' conftest.$ac_ext >&5
24128
24129         pgac_cv_type_long_long_int_64=no
24130 fi
24131
24132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24133 else
24134   cat >conftest.$ac_ext <<_ACEOF
24135 /* confdefs.h.  */
24136 _ACEOF
24137 cat confdefs.h >>conftest.$ac_ext
24138 cat >>conftest.$ac_ext <<_ACEOF
24139 /* end confdefs.h.  */
24140 typedef long long int ac_int64;
24141
24142 /*
24143  * These are globals to discourage the compiler from folding all the
24144  * arithmetic tests down to compile-time constants.
24145  */
24146 ac_int64 a = 20000001;
24147 ac_int64 b = 40000005;
24148
24149 int does_int64_work()
24150 {
24151   ac_int64 c,d;
24152
24153   if (sizeof(ac_int64) != 8)
24154     return 0;                   /* definitely not the right size */
24155
24156   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24157   c = a * b;
24158   d = (c + b) / b;
24159   if (d != a+1)
24160     return 0;
24161   return 1;
24162 }
24163 main() {
24164   exit(! does_int64_work());
24165 }
24166 _ACEOF
24167 rm -f conftest$ac_exeext
24168 if { (ac_try="$ac_link"
24169 case "(($ac_try" in
24170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24171   *) ac_try_echo=$ac_try;;
24172 esac
24173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24174 $as_echo "$ac_try_echo") >&5
24175   (eval "$ac_link") 2>&5
24176   ac_status=$?
24177   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24178   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24179   { (case "(($ac_try" in
24180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24181   *) ac_try_echo=$ac_try;;
24182 esac
24183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24184 $as_echo "$ac_try_echo") >&5
24185   (eval "$ac_try") 2>&5
24186   ac_status=$?
24187   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24188   (exit $ac_status); }; }; then
24189   pgac_cv_type_long_long_int_64=yes
24190 else
24191   $as_echo "$as_me: program exited with status $ac_status" >&5
24192 $as_echo "$as_me: failed program was:" >&5
24193 sed 's/^/| /' conftest.$ac_ext >&5
24194
24195 ( exit $ac_status )
24196 pgac_cv_type_long_long_int_64=no
24197 fi
24198 rm -rf conftest.dSYM
24199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24200 fi
24201
24202
24203 fi
24204 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
24205 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
24206
24207 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
24208 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
24209
24210 cat >>confdefs.h <<\_ACEOF
24211 #define HAVE_LONG_LONG_INT_64 1
24212 _ACEOF
24213
24214 fi
24215
24216   if test x"$HAVE_LONG_LONG_INT_64" = x"no" ; then
24217     { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
24218 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
24219    { (exit 1); exit 1; }; }
24220   fi
24221 fi
24222
24223
24224
24225 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
24226   cat >conftest.$ac_ext <<_ACEOF
24227 /* confdefs.h.  */
24228 _ACEOF
24229 cat confdefs.h >>conftest.$ac_ext
24230 cat >>conftest.$ac_ext <<_ACEOF
24231 /* end confdefs.h.  */
24232
24233 #define INT64CONST(x)  x##LL
24234 long long int foo = INT64CONST(0x1234567890123456);
24235
24236 int
24237 main ()
24238 {
24239
24240   ;
24241   return 0;
24242 }
24243 _ACEOF
24244 rm -f conftest.$ac_objext
24245 if { (ac_try="$ac_compile"
24246 case "(($ac_try" in
24247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24248   *) ac_try_echo=$ac_try;;
24249 esac
24250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24251 $as_echo "$ac_try_echo") >&5
24252   (eval "$ac_compile") 2>conftest.er1
24253   ac_status=$?
24254   grep -v '^ *+' conftest.er1 >conftest.err
24255   rm -f conftest.er1
24256   cat conftest.err >&5
24257   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24258   (exit $ac_status); } && {
24259          test -z "$ac_c_werror_flag" ||
24260          test ! -s conftest.err
24261        } && test -s conftest.$ac_objext; then
24262
24263 cat >>confdefs.h <<\_ACEOF
24264 #define HAVE_LL_CONSTANTS 1
24265 _ACEOF
24266
24267 else
24268   $as_echo "$as_me: failed program was:" >&5
24269 sed 's/^/| /' conftest.$ac_ext >&5
24270
24271
24272 fi
24273
24274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24275 fi
24276
24277
24278 # If we found "long int" is 64 bits, assume snprintf handles it.  If
24279 # we found we need to use "long long int", better check.  We cope with
24280 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
24281 # work, fall back to our own snprintf emulation (which we know uses %lld).
24282
24283 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
24284   if test $pgac_need_repl_snprintf = no; then
24285     { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
24286 $as_echo_n "checking snprintf format for long long int... " >&6; }
24287 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
24288   $as_echo_n "(cached) " >&6
24289 else
24290   for pgac_format in '%lld' '%qd' '%I64d'; do
24291 if test "$cross_compiling" = yes; then
24292   pgac_cv_snprintf_long_long_int_format=cross; break
24293 else
24294   cat >conftest.$ac_ext <<_ACEOF
24295 /* confdefs.h.  */
24296 _ACEOF
24297 cat confdefs.h >>conftest.$ac_ext
24298 cat >>conftest.$ac_ext <<_ACEOF
24299 /* end confdefs.h.  */
24300 #include <stdio.h>
24301 typedef long long int ac_int64;
24302 #define INT64_FORMAT "$pgac_format"
24303
24304 ac_int64 a = 20000001;
24305 ac_int64 b = 40000005;
24306
24307 int does_int64_snprintf_work()
24308 {
24309   ac_int64 c;
24310   char buf[100];
24311
24312   if (sizeof(ac_int64) != 8)
24313     return 0;                   /* doesn't look like the right size */
24314
24315   c = a * b;
24316   snprintf(buf, 100, INT64_FORMAT, c);
24317   if (strcmp(buf, "800000140000005") != 0)
24318     return 0;                   /* either multiply or snprintf is busted */
24319   return 1;
24320 }
24321 main() {
24322   exit(! does_int64_snprintf_work());
24323 }
24324 _ACEOF
24325 rm -f conftest$ac_exeext
24326 if { (ac_try="$ac_link"
24327 case "(($ac_try" in
24328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24329   *) ac_try_echo=$ac_try;;
24330 esac
24331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24332 $as_echo "$ac_try_echo") >&5
24333   (eval "$ac_link") 2>&5
24334   ac_status=$?
24335   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24336   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24337   { (case "(($ac_try" in
24338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24339   *) ac_try_echo=$ac_try;;
24340 esac
24341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24342 $as_echo "$ac_try_echo") >&5
24343   (eval "$ac_try") 2>&5
24344   ac_status=$?
24345   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24346   (exit $ac_status); }; }; then
24347   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
24348 else
24349   $as_echo "$as_me: program exited with status $ac_status" >&5
24350 $as_echo "$as_me: failed program was:" >&5
24351 sed 's/^/| /' conftest.$ac_ext >&5
24352
24353 fi
24354 rm -rf conftest.dSYM
24355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24356 fi
24357
24358
24359 done
24360 fi
24361
24362 LONG_LONG_INT_FORMAT=''
24363
24364 case $pgac_cv_snprintf_long_long_int_format in
24365   cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
24366 $as_echo "cannot test (not on host machine)" >&6; };;
24367   ?*)    { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
24368 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
24369          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
24370   *)     { $as_echo "$as_me:$LINENO: result: none" >&5
24371 $as_echo "none" >&6; };;
24372 esac
24373     if test "$LONG_LONG_INT_FORMAT" = ""; then
24374       # Force usage of our own snprintf, since system snprintf is broken
24375       pgac_need_repl_snprintf=yes
24376       LONG_LONG_INT_FORMAT='%lld'
24377     fi
24378   else
24379     # Here if we previously decided we needed to use our own snprintf
24380     LONG_LONG_INT_FORMAT='%lld'
24381   fi
24382   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
24383   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
24384   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
24385 else
24386   # Here if we are not using 'long long int' at all
24387   INT64_FORMAT='"%ld"'
24388   UINT64_FORMAT='"%lu"'
24389 fi
24390
24391
24392 cat >>confdefs.h <<_ACEOF
24393 #define INT64_FORMAT $INT64_FORMAT
24394 _ACEOF
24395
24396
24397
24398 cat >>confdefs.h <<_ACEOF
24399 #define UINT64_FORMAT $UINT64_FORMAT
24400 _ACEOF
24401
24402
24403 # Now we have checked all the reasons to replace snprintf
24404 if test $pgac_need_repl_snprintf = yes; then
24405
24406 cat >>confdefs.h <<\_ACEOF
24407 #define USE_REPL_SNPRINTF 1
24408 _ACEOF
24409
24410   case " $LIBOBJS " in
24411   *" snprintf.$ac_objext "* ) ;;
24412   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
24413  ;;
24414 esac
24415
24416 fi
24417
24418 # Check size of void *, size_t (enables tweaks for > 32bit address space)
24419 # The cast to long int works around a bug in the HP C Compiler
24420 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24421 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24422 # This bug is HP SR number 8606223364.
24423 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
24424 $as_echo_n "checking size of void *... " >&6; }
24425 if test "${ac_cv_sizeof_void_p+set}" = set; then
24426   $as_echo_n "(cached) " >&6
24427 else
24428   if test "$cross_compiling" = yes; then
24429   # Depending upon the size, compute the lo and hi bounds.
24430 cat >conftest.$ac_ext <<_ACEOF
24431 /* confdefs.h.  */
24432 _ACEOF
24433 cat confdefs.h >>conftest.$ac_ext
24434 cat >>conftest.$ac_ext <<_ACEOF
24435 /* end confdefs.h.  */
24436 $ac_includes_default
24437 int
24438 main ()
24439 {
24440 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
24441 test_array [0] = 0
24442
24443   ;
24444   return 0;
24445 }
24446 _ACEOF
24447 rm -f conftest.$ac_objext
24448 if { (ac_try="$ac_compile"
24449 case "(($ac_try" in
24450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24451   *) ac_try_echo=$ac_try;;
24452 esac
24453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24454 $as_echo "$ac_try_echo") >&5
24455   (eval "$ac_compile") 2>conftest.er1
24456   ac_status=$?
24457   grep -v '^ *+' conftest.er1 >conftest.err
24458   rm -f conftest.er1
24459   cat conftest.err >&5
24460   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461   (exit $ac_status); } && {
24462          test -z "$ac_c_werror_flag" ||
24463          test ! -s conftest.err
24464        } && test -s conftest.$ac_objext; then
24465   ac_lo=0 ac_mid=0
24466   while :; do
24467     cat >conftest.$ac_ext <<_ACEOF
24468 /* confdefs.h.  */
24469 _ACEOF
24470 cat confdefs.h >>conftest.$ac_ext
24471 cat >>conftest.$ac_ext <<_ACEOF
24472 /* end confdefs.h.  */
24473 $ac_includes_default
24474 int
24475 main ()
24476 {
24477 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24478 test_array [0] = 0
24479
24480   ;
24481   return 0;
24482 }
24483 _ACEOF
24484 rm -f conftest.$ac_objext
24485 if { (ac_try="$ac_compile"
24486 case "(($ac_try" in
24487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24488   *) ac_try_echo=$ac_try;;
24489 esac
24490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24491 $as_echo "$ac_try_echo") >&5
24492   (eval "$ac_compile") 2>conftest.er1
24493   ac_status=$?
24494   grep -v '^ *+' conftest.er1 >conftest.err
24495   rm -f conftest.er1
24496   cat conftest.err >&5
24497   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24498   (exit $ac_status); } && {
24499          test -z "$ac_c_werror_flag" ||
24500          test ! -s conftest.err
24501        } && test -s conftest.$ac_objext; then
24502   ac_hi=$ac_mid; break
24503 else
24504   $as_echo "$as_me: failed program was:" >&5
24505 sed 's/^/| /' conftest.$ac_ext >&5
24506
24507         ac_lo=`expr $ac_mid + 1`
24508                         if test $ac_lo -le $ac_mid; then
24509                           ac_lo= ac_hi=
24510                           break
24511                         fi
24512                         ac_mid=`expr 2 '*' $ac_mid + 1`
24513 fi
24514
24515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24516   done
24517 else
24518   $as_echo "$as_me: failed program was:" >&5
24519 sed 's/^/| /' conftest.$ac_ext >&5
24520
24521         cat >conftest.$ac_ext <<_ACEOF
24522 /* confdefs.h.  */
24523 _ACEOF
24524 cat confdefs.h >>conftest.$ac_ext
24525 cat >>conftest.$ac_ext <<_ACEOF
24526 /* end confdefs.h.  */
24527 $ac_includes_default
24528 int
24529 main ()
24530 {
24531 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
24532 test_array [0] = 0
24533
24534   ;
24535   return 0;
24536 }
24537 _ACEOF
24538 rm -f conftest.$ac_objext
24539 if { (ac_try="$ac_compile"
24540 case "(($ac_try" in
24541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24542   *) ac_try_echo=$ac_try;;
24543 esac
24544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24545 $as_echo "$ac_try_echo") >&5
24546   (eval "$ac_compile") 2>conftest.er1
24547   ac_status=$?
24548   grep -v '^ *+' conftest.er1 >conftest.err
24549   rm -f conftest.er1
24550   cat conftest.err >&5
24551   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24552   (exit $ac_status); } && {
24553          test -z "$ac_c_werror_flag" ||
24554          test ! -s conftest.err
24555        } && test -s conftest.$ac_objext; then
24556   ac_hi=-1 ac_mid=-1
24557   while :; do
24558     cat >conftest.$ac_ext <<_ACEOF
24559 /* confdefs.h.  */
24560 _ACEOF
24561 cat confdefs.h >>conftest.$ac_ext
24562 cat >>conftest.$ac_ext <<_ACEOF
24563 /* end confdefs.h.  */
24564 $ac_includes_default
24565 int
24566 main ()
24567 {
24568 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
24569 test_array [0] = 0
24570
24571   ;
24572   return 0;
24573 }
24574 _ACEOF
24575 rm -f conftest.$ac_objext
24576 if { (ac_try="$ac_compile"
24577 case "(($ac_try" in
24578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24579   *) ac_try_echo=$ac_try;;
24580 esac
24581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24582 $as_echo "$ac_try_echo") >&5
24583   (eval "$ac_compile") 2>conftest.er1
24584   ac_status=$?
24585   grep -v '^ *+' conftest.er1 >conftest.err
24586   rm -f conftest.er1
24587   cat conftest.err >&5
24588   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24589   (exit $ac_status); } && {
24590          test -z "$ac_c_werror_flag" ||
24591          test ! -s conftest.err
24592        } && test -s conftest.$ac_objext; then
24593   ac_lo=$ac_mid; break
24594 else
24595   $as_echo "$as_me: failed program was:" >&5
24596 sed 's/^/| /' conftest.$ac_ext >&5
24597
24598         ac_hi=`expr '(' $ac_mid ')' - 1`
24599                         if test $ac_mid -le $ac_hi; then
24600                           ac_lo= ac_hi=
24601                           break
24602                         fi
24603                         ac_mid=`expr 2 '*' $ac_mid`
24604 fi
24605
24606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24607   done
24608 else
24609   $as_echo "$as_me: failed program was:" >&5
24610 sed 's/^/| /' conftest.$ac_ext >&5
24611
24612         ac_lo= ac_hi=
24613 fi
24614
24615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24616 fi
24617
24618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24619 # Binary search between lo and hi bounds.
24620 while test "x$ac_lo" != "x$ac_hi"; do
24621   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24622   cat >conftest.$ac_ext <<_ACEOF
24623 /* confdefs.h.  */
24624 _ACEOF
24625 cat confdefs.h >>conftest.$ac_ext
24626 cat >>conftest.$ac_ext <<_ACEOF
24627 /* end confdefs.h.  */
24628 $ac_includes_default
24629 int
24630 main ()
24631 {
24632 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24633 test_array [0] = 0
24634
24635   ;
24636   return 0;
24637 }
24638 _ACEOF
24639 rm -f conftest.$ac_objext
24640 if { (ac_try="$ac_compile"
24641 case "(($ac_try" in
24642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24643   *) ac_try_echo=$ac_try;;
24644 esac
24645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24646 $as_echo "$ac_try_echo") >&5
24647   (eval "$ac_compile") 2>conftest.er1
24648   ac_status=$?
24649   grep -v '^ *+' conftest.er1 >conftest.err
24650   rm -f conftest.er1
24651   cat conftest.err >&5
24652   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24653   (exit $ac_status); } && {
24654          test -z "$ac_c_werror_flag" ||
24655          test ! -s conftest.err
24656        } && test -s conftest.$ac_objext; then
24657   ac_hi=$ac_mid
24658 else
24659   $as_echo "$as_me: failed program was:" >&5
24660 sed 's/^/| /' conftest.$ac_ext >&5
24661
24662         ac_lo=`expr '(' $ac_mid ')' + 1`
24663 fi
24664
24665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24666 done
24667 case $ac_lo in
24668 ?*) ac_cv_sizeof_void_p=$ac_lo;;
24669 '') if test "$ac_cv_type_void_p" = yes; then
24670      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24672 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24673 See \`config.log' for more details." >&5
24674 $as_echo "$as_me: error: cannot compute sizeof (void *)
24675 See \`config.log' for more details." >&2;}
24676    { (exit 77); exit 77; }; }; }
24677    else
24678      ac_cv_sizeof_void_p=0
24679    fi ;;
24680 esac
24681 else
24682   cat >conftest.$ac_ext <<_ACEOF
24683 /* confdefs.h.  */
24684 _ACEOF
24685 cat confdefs.h >>conftest.$ac_ext
24686 cat >>conftest.$ac_ext <<_ACEOF
24687 /* end confdefs.h.  */
24688 $ac_includes_default
24689 static long int longval () { return (long int) (sizeof (void *)); }
24690 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
24691 #include <stdio.h>
24692 #include <stdlib.h>
24693 int
24694 main ()
24695 {
24696
24697   FILE *f = fopen ("conftest.val", "w");
24698   if (! f)
24699     return 1;
24700   if (((long int) (sizeof (void *))) < 0)
24701     {
24702       long int i = longval ();
24703       if (i != ((long int) (sizeof (void *))))
24704         return 1;
24705       fprintf (f, "%ld", i);
24706     }
24707   else
24708     {
24709       unsigned long int i = ulongval ();
24710       if (i != ((long int) (sizeof (void *))))
24711         return 1;
24712       fprintf (f, "%lu", i);
24713     }
24714   /* Do not output a trailing newline, as this causes \r\n confusion
24715      on some platforms.  */
24716   return ferror (f) || fclose (f) != 0;
24717
24718   ;
24719   return 0;
24720 }
24721 _ACEOF
24722 rm -f conftest$ac_exeext
24723 if { (ac_try="$ac_link"
24724 case "(($ac_try" in
24725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24726   *) ac_try_echo=$ac_try;;
24727 esac
24728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24729 $as_echo "$ac_try_echo") >&5
24730   (eval "$ac_link") 2>&5
24731   ac_status=$?
24732   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24733   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24734   { (case "(($ac_try" in
24735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24736   *) ac_try_echo=$ac_try;;
24737 esac
24738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24739 $as_echo "$ac_try_echo") >&5
24740   (eval "$ac_try") 2>&5
24741   ac_status=$?
24742   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743   (exit $ac_status); }; }; then
24744   ac_cv_sizeof_void_p=`cat conftest.val`
24745 else
24746   $as_echo "$as_me: program exited with status $ac_status" >&5
24747 $as_echo "$as_me: failed program was:" >&5
24748 sed 's/^/| /' conftest.$ac_ext >&5
24749
24750 ( exit $ac_status )
24751 if test "$ac_cv_type_void_p" = yes; then
24752      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24754 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24755 See \`config.log' for more details." >&5
24756 $as_echo "$as_me: error: cannot compute sizeof (void *)
24757 See \`config.log' for more details." >&2;}
24758    { (exit 77); exit 77; }; }; }
24759    else
24760      ac_cv_sizeof_void_p=0
24761    fi
24762 fi
24763 rm -rf conftest.dSYM
24764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24765 fi
24766 rm -f conftest.val
24767 fi
24768 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24769 $as_echo "$ac_cv_sizeof_void_p" >&6; }
24770
24771
24772
24773 cat >>confdefs.h <<_ACEOF
24774 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24775 _ACEOF
24776
24777
24778 # The cast to long int works around a bug in the HP C Compiler
24779 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24780 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24781 # This bug is HP SR number 8606223364.
24782 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
24783 $as_echo_n "checking size of size_t... " >&6; }
24784 if test "${ac_cv_sizeof_size_t+set}" = set; then
24785   $as_echo_n "(cached) " >&6
24786 else
24787   if test "$cross_compiling" = yes; then
24788   # Depending upon the size, compute the lo and hi bounds.
24789 cat >conftest.$ac_ext <<_ACEOF
24790 /* confdefs.h.  */
24791 _ACEOF
24792 cat confdefs.h >>conftest.$ac_ext
24793 cat >>conftest.$ac_ext <<_ACEOF
24794 /* end confdefs.h.  */
24795 $ac_includes_default
24796 int
24797 main ()
24798 {
24799 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
24800 test_array [0] = 0
24801
24802   ;
24803   return 0;
24804 }
24805 _ACEOF
24806 rm -f conftest.$ac_objext
24807 if { (ac_try="$ac_compile"
24808 case "(($ac_try" in
24809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24810   *) ac_try_echo=$ac_try;;
24811 esac
24812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24813 $as_echo "$ac_try_echo") >&5
24814   (eval "$ac_compile") 2>conftest.er1
24815   ac_status=$?
24816   grep -v '^ *+' conftest.er1 >conftest.err
24817   rm -f conftest.er1
24818   cat conftest.err >&5
24819   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24820   (exit $ac_status); } && {
24821          test -z "$ac_c_werror_flag" ||
24822          test ! -s conftest.err
24823        } && test -s conftest.$ac_objext; then
24824   ac_lo=0 ac_mid=0
24825   while :; do
24826     cat >conftest.$ac_ext <<_ACEOF
24827 /* confdefs.h.  */
24828 _ACEOF
24829 cat confdefs.h >>conftest.$ac_ext
24830 cat >>conftest.$ac_ext <<_ACEOF
24831 /* end confdefs.h.  */
24832 $ac_includes_default
24833 int
24834 main ()
24835 {
24836 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24837 test_array [0] = 0
24838
24839   ;
24840   return 0;
24841 }
24842 _ACEOF
24843 rm -f conftest.$ac_objext
24844 if { (ac_try="$ac_compile"
24845 case "(($ac_try" in
24846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24847   *) ac_try_echo=$ac_try;;
24848 esac
24849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24850 $as_echo "$ac_try_echo") >&5
24851   (eval "$ac_compile") 2>conftest.er1
24852   ac_status=$?
24853   grep -v '^ *+' conftest.er1 >conftest.err
24854   rm -f conftest.er1
24855   cat conftest.err >&5
24856   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24857   (exit $ac_status); } && {
24858          test -z "$ac_c_werror_flag" ||
24859          test ! -s conftest.err
24860        } && test -s conftest.$ac_objext; then
24861   ac_hi=$ac_mid; break
24862 else
24863   $as_echo "$as_me: failed program was:" >&5
24864 sed 's/^/| /' conftest.$ac_ext >&5
24865
24866         ac_lo=`expr $ac_mid + 1`
24867                         if test $ac_lo -le $ac_mid; then
24868                           ac_lo= ac_hi=
24869                           break
24870                         fi
24871                         ac_mid=`expr 2 '*' $ac_mid + 1`
24872 fi
24873
24874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24875   done
24876 else
24877   $as_echo "$as_me: failed program was:" >&5
24878 sed 's/^/| /' conftest.$ac_ext >&5
24879
24880         cat >conftest.$ac_ext <<_ACEOF
24881 /* confdefs.h.  */
24882 _ACEOF
24883 cat confdefs.h >>conftest.$ac_ext
24884 cat >>conftest.$ac_ext <<_ACEOF
24885 /* end confdefs.h.  */
24886 $ac_includes_default
24887 int
24888 main ()
24889 {
24890 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
24891 test_array [0] = 0
24892
24893   ;
24894   return 0;
24895 }
24896 _ACEOF
24897 rm -f conftest.$ac_objext
24898 if { (ac_try="$ac_compile"
24899 case "(($ac_try" in
24900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24901   *) ac_try_echo=$ac_try;;
24902 esac
24903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24904 $as_echo "$ac_try_echo") >&5
24905   (eval "$ac_compile") 2>conftest.er1
24906   ac_status=$?
24907   grep -v '^ *+' conftest.er1 >conftest.err
24908   rm -f conftest.er1
24909   cat conftest.err >&5
24910   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24911   (exit $ac_status); } && {
24912          test -z "$ac_c_werror_flag" ||
24913          test ! -s conftest.err
24914        } && test -s conftest.$ac_objext; then
24915   ac_hi=-1 ac_mid=-1
24916   while :; do
24917     cat >conftest.$ac_ext <<_ACEOF
24918 /* confdefs.h.  */
24919 _ACEOF
24920 cat confdefs.h >>conftest.$ac_ext
24921 cat >>conftest.$ac_ext <<_ACEOF
24922 /* end confdefs.h.  */
24923 $ac_includes_default
24924 int
24925 main ()
24926 {
24927 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
24928 test_array [0] = 0
24929
24930   ;
24931   return 0;
24932 }
24933 _ACEOF
24934 rm -f conftest.$ac_objext
24935 if { (ac_try="$ac_compile"
24936 case "(($ac_try" in
24937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24938   *) ac_try_echo=$ac_try;;
24939 esac
24940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24941 $as_echo "$ac_try_echo") >&5
24942   (eval "$ac_compile") 2>conftest.er1
24943   ac_status=$?
24944   grep -v '^ *+' conftest.er1 >conftest.err
24945   rm -f conftest.er1
24946   cat conftest.err >&5
24947   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24948   (exit $ac_status); } && {
24949          test -z "$ac_c_werror_flag" ||
24950          test ! -s conftest.err
24951        } && test -s conftest.$ac_objext; then
24952   ac_lo=$ac_mid; break
24953 else
24954   $as_echo "$as_me: failed program was:" >&5
24955 sed 's/^/| /' conftest.$ac_ext >&5
24956
24957         ac_hi=`expr '(' $ac_mid ')' - 1`
24958                         if test $ac_mid -le $ac_hi; then
24959                           ac_lo= ac_hi=
24960                           break
24961                         fi
24962                         ac_mid=`expr 2 '*' $ac_mid`
24963 fi
24964
24965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24966   done
24967 else
24968   $as_echo "$as_me: failed program was:" >&5
24969 sed 's/^/| /' conftest.$ac_ext >&5
24970
24971         ac_lo= ac_hi=
24972 fi
24973
24974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24975 fi
24976
24977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24978 # Binary search between lo and hi bounds.
24979 while test "x$ac_lo" != "x$ac_hi"; do
24980   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24981   cat >conftest.$ac_ext <<_ACEOF
24982 /* confdefs.h.  */
24983 _ACEOF
24984 cat confdefs.h >>conftest.$ac_ext
24985 cat >>conftest.$ac_ext <<_ACEOF
24986 /* end confdefs.h.  */
24987 $ac_includes_default
24988 int
24989 main ()
24990 {
24991 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24992 test_array [0] = 0
24993
24994   ;
24995   return 0;
24996 }
24997 _ACEOF
24998 rm -f conftest.$ac_objext
24999 if { (ac_try="$ac_compile"
25000 case "(($ac_try" in
25001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25002   *) ac_try_echo=$ac_try;;
25003 esac
25004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25005 $as_echo "$ac_try_echo") >&5
25006   (eval "$ac_compile") 2>conftest.er1
25007   ac_status=$?
25008   grep -v '^ *+' conftest.er1 >conftest.err
25009   rm -f conftest.er1
25010   cat conftest.err >&5
25011   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25012   (exit $ac_status); } && {
25013          test -z "$ac_c_werror_flag" ||
25014          test ! -s conftest.err
25015        } && test -s conftest.$ac_objext; then
25016   ac_hi=$ac_mid
25017 else
25018   $as_echo "$as_me: failed program was:" >&5
25019 sed 's/^/| /' conftest.$ac_ext >&5
25020
25021         ac_lo=`expr '(' $ac_mid ')' + 1`
25022 fi
25023
25024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25025 done
25026 case $ac_lo in
25027 ?*) ac_cv_sizeof_size_t=$ac_lo;;
25028 '') if test "$ac_cv_type_size_t" = yes; then
25029      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25031 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25032 See \`config.log' for more details." >&5
25033 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25034 See \`config.log' for more details." >&2;}
25035    { (exit 77); exit 77; }; }; }
25036    else
25037      ac_cv_sizeof_size_t=0
25038    fi ;;
25039 esac
25040 else
25041   cat >conftest.$ac_ext <<_ACEOF
25042 /* confdefs.h.  */
25043 _ACEOF
25044 cat confdefs.h >>conftest.$ac_ext
25045 cat >>conftest.$ac_ext <<_ACEOF
25046 /* end confdefs.h.  */
25047 $ac_includes_default
25048 static long int longval () { return (long int) (sizeof (size_t)); }
25049 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
25050 #include <stdio.h>
25051 #include <stdlib.h>
25052 int
25053 main ()
25054 {
25055
25056   FILE *f = fopen ("conftest.val", "w");
25057   if (! f)
25058     return 1;
25059   if (((long int) (sizeof (size_t))) < 0)
25060     {
25061       long int i = longval ();
25062       if (i != ((long int) (sizeof (size_t))))
25063         return 1;
25064       fprintf (f, "%ld", i);
25065     }
25066   else
25067     {
25068       unsigned long int i = ulongval ();
25069       if (i != ((long int) (sizeof (size_t))))
25070         return 1;
25071       fprintf (f, "%lu", i);
25072     }
25073   /* Do not output a trailing newline, as this causes \r\n confusion
25074      on some platforms.  */
25075   return ferror (f) || fclose (f) != 0;
25076
25077   ;
25078   return 0;
25079 }
25080 _ACEOF
25081 rm -f conftest$ac_exeext
25082 if { (ac_try="$ac_link"
25083 case "(($ac_try" in
25084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25085   *) ac_try_echo=$ac_try;;
25086 esac
25087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25088 $as_echo "$ac_try_echo") >&5
25089   (eval "$ac_link") 2>&5
25090   ac_status=$?
25091   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25092   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25093   { (case "(($ac_try" in
25094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25095   *) ac_try_echo=$ac_try;;
25096 esac
25097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25098 $as_echo "$ac_try_echo") >&5
25099   (eval "$ac_try") 2>&5
25100   ac_status=$?
25101   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25102   (exit $ac_status); }; }; then
25103   ac_cv_sizeof_size_t=`cat conftest.val`
25104 else
25105   $as_echo "$as_me: program exited with status $ac_status" >&5
25106 $as_echo "$as_me: failed program was:" >&5
25107 sed 's/^/| /' conftest.$ac_ext >&5
25108
25109 ( exit $ac_status )
25110 if test "$ac_cv_type_size_t" = yes; then
25111      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25112 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25113 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25114 See \`config.log' for more details." >&5
25115 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25116 See \`config.log' for more details." >&2;}
25117    { (exit 77); exit 77; }; }; }
25118    else
25119      ac_cv_sizeof_size_t=0
25120    fi
25121 fi
25122 rm -rf conftest.dSYM
25123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25124 fi
25125 rm -f conftest.val
25126 fi
25127 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
25128 $as_echo "$ac_cv_sizeof_size_t" >&6; }
25129
25130
25131
25132 cat >>confdefs.h <<_ACEOF
25133 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
25134 _ACEOF
25135
25136
25137 # The cast to long int works around a bug in the HP C Compiler
25138 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25139 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25140 # This bug is HP SR number 8606223364.
25141 { $as_echo "$as_me:$LINENO: checking size of long" >&5
25142 $as_echo_n "checking size of long... " >&6; }
25143 if test "${ac_cv_sizeof_long+set}" = set; then
25144   $as_echo_n "(cached) " >&6
25145 else
25146   if test "$cross_compiling" = yes; then
25147   # Depending upon the size, compute the lo and hi bounds.
25148 cat >conftest.$ac_ext <<_ACEOF
25149 /* confdefs.h.  */
25150 _ACEOF
25151 cat confdefs.h >>conftest.$ac_ext
25152 cat >>conftest.$ac_ext <<_ACEOF
25153 /* end confdefs.h.  */
25154 $ac_includes_default
25155 int
25156 main ()
25157 {
25158 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
25159 test_array [0] = 0
25160
25161   ;
25162   return 0;
25163 }
25164 _ACEOF
25165 rm -f conftest.$ac_objext
25166 if { (ac_try="$ac_compile"
25167 case "(($ac_try" in
25168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25169   *) ac_try_echo=$ac_try;;
25170 esac
25171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25172 $as_echo "$ac_try_echo") >&5
25173   (eval "$ac_compile") 2>conftest.er1
25174   ac_status=$?
25175   grep -v '^ *+' conftest.er1 >conftest.err
25176   rm -f conftest.er1
25177   cat conftest.err >&5
25178   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25179   (exit $ac_status); } && {
25180          test -z "$ac_c_werror_flag" ||
25181          test ! -s conftest.err
25182        } && test -s conftest.$ac_objext; then
25183   ac_lo=0 ac_mid=0
25184   while :; do
25185     cat >conftest.$ac_ext <<_ACEOF
25186 /* confdefs.h.  */
25187 _ACEOF
25188 cat confdefs.h >>conftest.$ac_ext
25189 cat >>conftest.$ac_ext <<_ACEOF
25190 /* end confdefs.h.  */
25191 $ac_includes_default
25192 int
25193 main ()
25194 {
25195 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25196 test_array [0] = 0
25197
25198   ;
25199   return 0;
25200 }
25201 _ACEOF
25202 rm -f conftest.$ac_objext
25203 if { (ac_try="$ac_compile"
25204 case "(($ac_try" in
25205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25206   *) ac_try_echo=$ac_try;;
25207 esac
25208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25209 $as_echo "$ac_try_echo") >&5
25210   (eval "$ac_compile") 2>conftest.er1
25211   ac_status=$?
25212   grep -v '^ *+' conftest.er1 >conftest.err
25213   rm -f conftest.er1
25214   cat conftest.err >&5
25215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25216   (exit $ac_status); } && {
25217          test -z "$ac_c_werror_flag" ||
25218          test ! -s conftest.err
25219        } && test -s conftest.$ac_objext; then
25220   ac_hi=$ac_mid; break
25221 else
25222   $as_echo "$as_me: failed program was:" >&5
25223 sed 's/^/| /' conftest.$ac_ext >&5
25224
25225         ac_lo=`expr $ac_mid + 1`
25226                         if test $ac_lo -le $ac_mid; then
25227                           ac_lo= ac_hi=
25228                           break
25229                         fi
25230                         ac_mid=`expr 2 '*' $ac_mid + 1`
25231 fi
25232
25233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25234   done
25235 else
25236   $as_echo "$as_me: failed program was:" >&5
25237 sed 's/^/| /' conftest.$ac_ext >&5
25238
25239         cat >conftest.$ac_ext <<_ACEOF
25240 /* confdefs.h.  */
25241 _ACEOF
25242 cat confdefs.h >>conftest.$ac_ext
25243 cat >>conftest.$ac_ext <<_ACEOF
25244 /* end confdefs.h.  */
25245 $ac_includes_default
25246 int
25247 main ()
25248 {
25249 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
25250 test_array [0] = 0
25251
25252   ;
25253   return 0;
25254 }
25255 _ACEOF
25256 rm -f conftest.$ac_objext
25257 if { (ac_try="$ac_compile"
25258 case "(($ac_try" in
25259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25260   *) ac_try_echo=$ac_try;;
25261 esac
25262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25263 $as_echo "$ac_try_echo") >&5
25264   (eval "$ac_compile") 2>conftest.er1
25265   ac_status=$?
25266   grep -v '^ *+' conftest.er1 >conftest.err
25267   rm -f conftest.er1
25268   cat conftest.err >&5
25269   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25270   (exit $ac_status); } && {
25271          test -z "$ac_c_werror_flag" ||
25272          test ! -s conftest.err
25273        } && test -s conftest.$ac_objext; then
25274   ac_hi=-1 ac_mid=-1
25275   while :; do
25276     cat >conftest.$ac_ext <<_ACEOF
25277 /* confdefs.h.  */
25278 _ACEOF
25279 cat confdefs.h >>conftest.$ac_ext
25280 cat >>conftest.$ac_ext <<_ACEOF
25281 /* end confdefs.h.  */
25282 $ac_includes_default
25283 int
25284 main ()
25285 {
25286 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
25287 test_array [0] = 0
25288
25289   ;
25290   return 0;
25291 }
25292 _ACEOF
25293 rm -f conftest.$ac_objext
25294 if { (ac_try="$ac_compile"
25295 case "(($ac_try" in
25296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25297   *) ac_try_echo=$ac_try;;
25298 esac
25299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25300 $as_echo "$ac_try_echo") >&5
25301   (eval "$ac_compile") 2>conftest.er1
25302   ac_status=$?
25303   grep -v '^ *+' conftest.er1 >conftest.err
25304   rm -f conftest.er1
25305   cat conftest.err >&5
25306   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25307   (exit $ac_status); } && {
25308          test -z "$ac_c_werror_flag" ||
25309          test ! -s conftest.err
25310        } && test -s conftest.$ac_objext; then
25311   ac_lo=$ac_mid; break
25312 else
25313   $as_echo "$as_me: failed program was:" >&5
25314 sed 's/^/| /' conftest.$ac_ext >&5
25315
25316         ac_hi=`expr '(' $ac_mid ')' - 1`
25317                         if test $ac_mid -le $ac_hi; then
25318                           ac_lo= ac_hi=
25319                           break
25320                         fi
25321                         ac_mid=`expr 2 '*' $ac_mid`
25322 fi
25323
25324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25325   done
25326 else
25327   $as_echo "$as_me: failed program was:" >&5
25328 sed 's/^/| /' conftest.$ac_ext >&5
25329
25330         ac_lo= ac_hi=
25331 fi
25332
25333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25334 fi
25335
25336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25337 # Binary search between lo and hi bounds.
25338 while test "x$ac_lo" != "x$ac_hi"; do
25339   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25340   cat >conftest.$ac_ext <<_ACEOF
25341 /* confdefs.h.  */
25342 _ACEOF
25343 cat confdefs.h >>conftest.$ac_ext
25344 cat >>conftest.$ac_ext <<_ACEOF
25345 /* end confdefs.h.  */
25346 $ac_includes_default
25347 int
25348 main ()
25349 {
25350 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25351 test_array [0] = 0
25352
25353   ;
25354   return 0;
25355 }
25356 _ACEOF
25357 rm -f conftest.$ac_objext
25358 if { (ac_try="$ac_compile"
25359 case "(($ac_try" in
25360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25361   *) ac_try_echo=$ac_try;;
25362 esac
25363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25364 $as_echo "$ac_try_echo") >&5
25365   (eval "$ac_compile") 2>conftest.er1
25366   ac_status=$?
25367   grep -v '^ *+' conftest.er1 >conftest.err
25368   rm -f conftest.er1
25369   cat conftest.err >&5
25370   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25371   (exit $ac_status); } && {
25372          test -z "$ac_c_werror_flag" ||
25373          test ! -s conftest.err
25374        } && test -s conftest.$ac_objext; then
25375   ac_hi=$ac_mid
25376 else
25377   $as_echo "$as_me: failed program was:" >&5
25378 sed 's/^/| /' conftest.$ac_ext >&5
25379
25380         ac_lo=`expr '(' $ac_mid ')' + 1`
25381 fi
25382
25383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25384 done
25385 case $ac_lo in
25386 ?*) ac_cv_sizeof_long=$ac_lo;;
25387 '') if test "$ac_cv_type_long" = yes; then
25388      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25390 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25391 See \`config.log' for more details." >&5
25392 $as_echo "$as_me: error: cannot compute sizeof (long)
25393 See \`config.log' for more details." >&2;}
25394    { (exit 77); exit 77; }; }; }
25395    else
25396      ac_cv_sizeof_long=0
25397    fi ;;
25398 esac
25399 else
25400   cat >conftest.$ac_ext <<_ACEOF
25401 /* confdefs.h.  */
25402 _ACEOF
25403 cat confdefs.h >>conftest.$ac_ext
25404 cat >>conftest.$ac_ext <<_ACEOF
25405 /* end confdefs.h.  */
25406 $ac_includes_default
25407 static long int longval () { return (long int) (sizeof (long)); }
25408 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
25409 #include <stdio.h>
25410 #include <stdlib.h>
25411 int
25412 main ()
25413 {
25414
25415   FILE *f = fopen ("conftest.val", "w");
25416   if (! f)
25417     return 1;
25418   if (((long int) (sizeof (long))) < 0)
25419     {
25420       long int i = longval ();
25421       if (i != ((long int) (sizeof (long))))
25422         return 1;
25423       fprintf (f, "%ld", i);
25424     }
25425   else
25426     {
25427       unsigned long int i = ulongval ();
25428       if (i != ((long int) (sizeof (long))))
25429         return 1;
25430       fprintf (f, "%lu", i);
25431     }
25432   /* Do not output a trailing newline, as this causes \r\n confusion
25433      on some platforms.  */
25434   return ferror (f) || fclose (f) != 0;
25435
25436   ;
25437   return 0;
25438 }
25439 _ACEOF
25440 rm -f conftest$ac_exeext
25441 if { (ac_try="$ac_link"
25442 case "(($ac_try" in
25443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25444   *) ac_try_echo=$ac_try;;
25445 esac
25446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25447 $as_echo "$ac_try_echo") >&5
25448   (eval "$ac_link") 2>&5
25449   ac_status=$?
25450   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25452   { (case "(($ac_try" in
25453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25454   *) ac_try_echo=$ac_try;;
25455 esac
25456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25457 $as_echo "$ac_try_echo") >&5
25458   (eval "$ac_try") 2>&5
25459   ac_status=$?
25460   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25461   (exit $ac_status); }; }; then
25462   ac_cv_sizeof_long=`cat conftest.val`
25463 else
25464   $as_echo "$as_me: program exited with status $ac_status" >&5
25465 $as_echo "$as_me: failed program was:" >&5
25466 sed 's/^/| /' conftest.$ac_ext >&5
25467
25468 ( exit $ac_status )
25469 if test "$ac_cv_type_long" = yes; then
25470      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25472 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25473 See \`config.log' for more details." >&5
25474 $as_echo "$as_me: error: cannot compute sizeof (long)
25475 See \`config.log' for more details." >&2;}
25476    { (exit 77); exit 77; }; }; }
25477    else
25478      ac_cv_sizeof_long=0
25479    fi
25480 fi
25481 rm -rf conftest.dSYM
25482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25483 fi
25484 rm -f conftest.val
25485 fi
25486 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
25487 $as_echo "$ac_cv_sizeof_long" >&6; }
25488
25489
25490
25491 cat >>confdefs.h <<_ACEOF
25492 #define SIZEOF_LONG $ac_cv_sizeof_long
25493 _ACEOF
25494
25495
25496
25497 # Decide whether float4 is passed by value: user-selectable, enabled by default
25498 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
25499 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
25500
25501
25502 # Check whether --enable-float4-byval was given.
25503 if test "${enable_float4_byval+set}" = set; then
25504   enableval=$enable_float4_byval;
25505   case $enableval in
25506     yes)
25507
25508 cat >>confdefs.h <<\_ACEOF
25509 #define USE_FLOAT4_BYVAL 1
25510 _ACEOF
25511
25512                float4passbyval=true
25513       ;;
25514     no)
25515       float4passbyval=false
25516       ;;
25517     *)
25518       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
25519 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
25520    { (exit 1); exit 1; }; }
25521       ;;
25522   esac
25523
25524 else
25525   enable_float4_byval=yes
25526
25527 cat >>confdefs.h <<\_ACEOF
25528 #define USE_FLOAT4_BYVAL 1
25529 _ACEOF
25530
25531                float4passbyval=true
25532 fi
25533
25534
25535 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
25536 $as_echo "$enable_float4_byval" >&6; }
25537
25538 cat >>confdefs.h <<_ACEOF
25539 #define FLOAT4PASSBYVAL $float4passbyval
25540 _ACEOF
25541
25542
25543 # Decide whether float8 is passed by value.
25544 # Note: this setting also controls int8 and related types such as timestamp.
25545 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
25546 # If not, trying to select it is an error.
25547 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
25548 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
25549 if test $ac_cv_sizeof_void_p -ge 8 ; then
25550
25551
25552 # Check whether --enable-float8-byval was given.
25553 if test "${enable_float8_byval+set}" = set; then
25554   enableval=$enable_float8_byval;
25555   case $enableval in
25556     yes)
25557       :
25558       ;;
25559     no)
25560       :
25561       ;;
25562     *)
25563       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25564 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25565    { (exit 1); exit 1; }; }
25566       ;;
25567   esac
25568
25569 else
25570   enable_float8_byval=yes
25571
25572 fi
25573
25574
25575 else
25576
25577
25578 # Check whether --enable-float8-byval was given.
25579 if test "${enable_float8_byval+set}" = set; then
25580   enableval=$enable_float8_byval;
25581   case $enableval in
25582     yes)
25583       :
25584       ;;
25585     no)
25586       :
25587       ;;
25588     *)
25589       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25590 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25591    { (exit 1); exit 1; }; }
25592       ;;
25593   esac
25594
25595 else
25596   enable_float8_byval=no
25597
25598 fi
25599
25600
25601   if test "$enable_float8_byval" = yes ; then
25602     { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
25603 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
25604    { (exit 1); exit 1; }; }
25605   fi
25606 fi
25607 if test "$enable_float8_byval" = yes ; then
25608
25609 cat >>confdefs.h <<\_ACEOF
25610 #define USE_FLOAT8_BYVAL 1
25611 _ACEOF
25612
25613   float8passbyval=true
25614 else
25615   float8passbyval=false
25616 fi
25617 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
25618 $as_echo "$enable_float8_byval" >&6; }
25619
25620 cat >>confdefs.h <<_ACEOF
25621 #define FLOAT8PASSBYVAL $float8passbyval
25622 _ACEOF
25623
25624
25625 # Determine memory alignment requirements for the basic C data types.
25626
25627 # The cast to long int works around a bug in the HP C Compiler,
25628 # see AC_CHECK_SIZEOF for more information.
25629 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
25630 $as_echo_n "checking alignment of short... " >&6; }
25631 if test "${ac_cv_alignof_short+set}" = set; then
25632   $as_echo_n "(cached) " >&6
25633 else
25634   if test "$cross_compiling" = yes; then
25635   # Depending upon the size, compute the lo and hi bounds.
25636 cat >conftest.$ac_ext <<_ACEOF
25637 /* confdefs.h.  */
25638 _ACEOF
25639 cat confdefs.h >>conftest.$ac_ext
25640 cat >>conftest.$ac_ext <<_ACEOF
25641 /* end confdefs.h.  */
25642 $ac_includes_default
25643 #ifndef offsetof
25644 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25645 #endif
25646 typedef struct { char x; short y; } ac__type_alignof_;
25647 int
25648 main ()
25649 {
25650 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25651 test_array [0] = 0
25652
25653   ;
25654   return 0;
25655 }
25656 _ACEOF
25657 rm -f conftest.$ac_objext
25658 if { (ac_try="$ac_compile"
25659 case "(($ac_try" in
25660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25661   *) ac_try_echo=$ac_try;;
25662 esac
25663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25664 $as_echo "$ac_try_echo") >&5
25665   (eval "$ac_compile") 2>conftest.er1
25666   ac_status=$?
25667   grep -v '^ *+' conftest.er1 >conftest.err
25668   rm -f conftest.er1
25669   cat conftest.err >&5
25670   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25671   (exit $ac_status); } && {
25672          test -z "$ac_c_werror_flag" ||
25673          test ! -s conftest.err
25674        } && test -s conftest.$ac_objext; then
25675   ac_lo=0 ac_mid=0
25676   while :; do
25677     cat >conftest.$ac_ext <<_ACEOF
25678 /* confdefs.h.  */
25679 _ACEOF
25680 cat confdefs.h >>conftest.$ac_ext
25681 cat >>conftest.$ac_ext <<_ACEOF
25682 /* end confdefs.h.  */
25683 $ac_includes_default
25684 #ifndef offsetof
25685 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25686 #endif
25687 typedef struct { char x; short y; } ac__type_alignof_;
25688 int
25689 main ()
25690 {
25691 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25692 test_array [0] = 0
25693
25694   ;
25695   return 0;
25696 }
25697 _ACEOF
25698 rm -f conftest.$ac_objext
25699 if { (ac_try="$ac_compile"
25700 case "(($ac_try" in
25701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25702   *) ac_try_echo=$ac_try;;
25703 esac
25704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25705 $as_echo "$ac_try_echo") >&5
25706   (eval "$ac_compile") 2>conftest.er1
25707   ac_status=$?
25708   grep -v '^ *+' conftest.er1 >conftest.err
25709   rm -f conftest.er1
25710   cat conftest.err >&5
25711   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25712   (exit $ac_status); } && {
25713          test -z "$ac_c_werror_flag" ||
25714          test ! -s conftest.err
25715        } && test -s conftest.$ac_objext; then
25716   ac_hi=$ac_mid; break
25717 else
25718   $as_echo "$as_me: failed program was:" >&5
25719 sed 's/^/| /' conftest.$ac_ext >&5
25720
25721         ac_lo=`expr $ac_mid + 1`
25722                         if test $ac_lo -le $ac_mid; then
25723                           ac_lo= ac_hi=
25724                           break
25725                         fi
25726                         ac_mid=`expr 2 '*' $ac_mid + 1`
25727 fi
25728
25729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25730   done
25731 else
25732   $as_echo "$as_me: failed program was:" >&5
25733 sed 's/^/| /' conftest.$ac_ext >&5
25734
25735         cat >conftest.$ac_ext <<_ACEOF
25736 /* confdefs.h.  */
25737 _ACEOF
25738 cat confdefs.h >>conftest.$ac_ext
25739 cat >>conftest.$ac_ext <<_ACEOF
25740 /* end confdefs.h.  */
25741 $ac_includes_default
25742 #ifndef offsetof
25743 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25744 #endif
25745 typedef struct { char x; short y; } ac__type_alignof_;
25746 int
25747 main ()
25748 {
25749 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25750 test_array [0] = 0
25751
25752   ;
25753   return 0;
25754 }
25755 _ACEOF
25756 rm -f conftest.$ac_objext
25757 if { (ac_try="$ac_compile"
25758 case "(($ac_try" in
25759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25760   *) ac_try_echo=$ac_try;;
25761 esac
25762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25763 $as_echo "$ac_try_echo") >&5
25764   (eval "$ac_compile") 2>conftest.er1
25765   ac_status=$?
25766   grep -v '^ *+' conftest.er1 >conftest.err
25767   rm -f conftest.er1
25768   cat conftest.err >&5
25769   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25770   (exit $ac_status); } && {
25771          test -z "$ac_c_werror_flag" ||
25772          test ! -s conftest.err
25773        } && test -s conftest.$ac_objext; then
25774   ac_hi=-1 ac_mid=-1
25775   while :; do
25776     cat >conftest.$ac_ext <<_ACEOF
25777 /* confdefs.h.  */
25778 _ACEOF
25779 cat confdefs.h >>conftest.$ac_ext
25780 cat >>conftest.$ac_ext <<_ACEOF
25781 /* end confdefs.h.  */
25782 $ac_includes_default
25783 #ifndef offsetof
25784 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25785 #endif
25786 typedef struct { char x; short y; } ac__type_alignof_;
25787 int
25788 main ()
25789 {
25790 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25791 test_array [0] = 0
25792
25793   ;
25794   return 0;
25795 }
25796 _ACEOF
25797 rm -f conftest.$ac_objext
25798 if { (ac_try="$ac_compile"
25799 case "(($ac_try" in
25800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25801   *) ac_try_echo=$ac_try;;
25802 esac
25803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25804 $as_echo "$ac_try_echo") >&5
25805   (eval "$ac_compile") 2>conftest.er1
25806   ac_status=$?
25807   grep -v '^ *+' conftest.er1 >conftest.err
25808   rm -f conftest.er1
25809   cat conftest.err >&5
25810   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811   (exit $ac_status); } && {
25812          test -z "$ac_c_werror_flag" ||
25813          test ! -s conftest.err
25814        } && test -s conftest.$ac_objext; then
25815   ac_lo=$ac_mid; break
25816 else
25817   $as_echo "$as_me: failed program was:" >&5
25818 sed 's/^/| /' conftest.$ac_ext >&5
25819
25820         ac_hi=`expr '(' $ac_mid ')' - 1`
25821                         if test $ac_mid -le $ac_hi; then
25822                           ac_lo= ac_hi=
25823                           break
25824                         fi
25825                         ac_mid=`expr 2 '*' $ac_mid`
25826 fi
25827
25828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25829   done
25830 else
25831   $as_echo "$as_me: failed program was:" >&5
25832 sed 's/^/| /' conftest.$ac_ext >&5
25833
25834         ac_lo= ac_hi=
25835 fi
25836
25837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25838 fi
25839
25840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25841 # Binary search between lo and hi bounds.
25842 while test "x$ac_lo" != "x$ac_hi"; do
25843   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25844   cat >conftest.$ac_ext <<_ACEOF
25845 /* confdefs.h.  */
25846 _ACEOF
25847 cat confdefs.h >>conftest.$ac_ext
25848 cat >>conftest.$ac_ext <<_ACEOF
25849 /* end confdefs.h.  */
25850 $ac_includes_default
25851 #ifndef offsetof
25852 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25853 #endif
25854 typedef struct { char x; short y; } ac__type_alignof_;
25855 int
25856 main ()
25857 {
25858 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25859 test_array [0] = 0
25860
25861   ;
25862   return 0;
25863 }
25864 _ACEOF
25865 rm -f conftest.$ac_objext
25866 if { (ac_try="$ac_compile"
25867 case "(($ac_try" in
25868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25869   *) ac_try_echo=$ac_try;;
25870 esac
25871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25872 $as_echo "$ac_try_echo") >&5
25873   (eval "$ac_compile") 2>conftest.er1
25874   ac_status=$?
25875   grep -v '^ *+' conftest.er1 >conftest.err
25876   rm -f conftest.er1
25877   cat conftest.err >&5
25878   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25879   (exit $ac_status); } && {
25880          test -z "$ac_c_werror_flag" ||
25881          test ! -s conftest.err
25882        } && test -s conftest.$ac_objext; then
25883   ac_hi=$ac_mid
25884 else
25885   $as_echo "$as_me: failed program was:" >&5
25886 sed 's/^/| /' conftest.$ac_ext >&5
25887
25888         ac_lo=`expr '(' $ac_mid ')' + 1`
25889 fi
25890
25891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25892 done
25893 case $ac_lo in
25894 ?*) ac_cv_alignof_short=$ac_lo;;
25895 '') if test "$ac_cv_type_short" = yes; then
25896      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25898 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25899 See \`config.log' for more details." >&5
25900 $as_echo "$as_me: error: cannot compute alignment of short
25901 See \`config.log' for more details." >&2;}
25902    { (exit 77); exit 77; }; }; }
25903    else
25904      ac_cv_alignof_short=0
25905    fi ;;
25906 esac
25907 else
25908   cat >conftest.$ac_ext <<_ACEOF
25909 /* confdefs.h.  */
25910 _ACEOF
25911 cat confdefs.h >>conftest.$ac_ext
25912 cat >>conftest.$ac_ext <<_ACEOF
25913 /* end confdefs.h.  */
25914 $ac_includes_default
25915 #ifndef offsetof
25916 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25917 #endif
25918 typedef struct { char x; short y; } ac__type_alignof_;
25919 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25920 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25921 #include <stdio.h>
25922 #include <stdlib.h>
25923 int
25924 main ()
25925 {
25926
25927   FILE *f = fopen ("conftest.val", "w");
25928   if (! f)
25929     return 1;
25930   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25931     {
25932       long int i = longval ();
25933       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25934         return 1;
25935       fprintf (f, "%ld", i);
25936     }
25937   else
25938     {
25939       unsigned long int i = ulongval ();
25940       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25941         return 1;
25942       fprintf (f, "%lu", i);
25943     }
25944   /* Do not output a trailing newline, as this causes \r\n confusion
25945      on some platforms.  */
25946   return ferror (f) || fclose (f) != 0;
25947
25948   ;
25949   return 0;
25950 }
25951 _ACEOF
25952 rm -f conftest$ac_exeext
25953 if { (ac_try="$ac_link"
25954 case "(($ac_try" in
25955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25956   *) ac_try_echo=$ac_try;;
25957 esac
25958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25959 $as_echo "$ac_try_echo") >&5
25960   (eval "$ac_link") 2>&5
25961   ac_status=$?
25962   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25963   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25964   { (case "(($ac_try" in
25965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25966   *) ac_try_echo=$ac_try;;
25967 esac
25968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25969 $as_echo "$ac_try_echo") >&5
25970   (eval "$ac_try") 2>&5
25971   ac_status=$?
25972   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25973   (exit $ac_status); }; }; then
25974   ac_cv_alignof_short=`cat conftest.val`
25975 else
25976   $as_echo "$as_me: program exited with status $ac_status" >&5
25977 $as_echo "$as_me: failed program was:" >&5
25978 sed 's/^/| /' conftest.$ac_ext >&5
25979
25980 ( exit $ac_status )
25981 if test "$ac_cv_type_short" = yes; then
25982      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25984 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25985 See \`config.log' for more details." >&5
25986 $as_echo "$as_me: error: cannot compute alignment of short
25987 See \`config.log' for more details." >&2;}
25988    { (exit 77); exit 77; }; }; }
25989    else
25990      ac_cv_alignof_short=0
25991    fi
25992 fi
25993 rm -rf conftest.dSYM
25994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25995 fi
25996 rm -f conftest.val
25997 fi
25998 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
25999 $as_echo "$ac_cv_alignof_short" >&6; }
26000
26001
26002
26003 cat >>confdefs.h <<_ACEOF
26004 #define ALIGNOF_SHORT $ac_cv_alignof_short
26005 _ACEOF
26006
26007
26008 # The cast to long int works around a bug in the HP C Compiler,
26009 # see AC_CHECK_SIZEOF for more information.
26010 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
26011 $as_echo_n "checking alignment of int... " >&6; }
26012 if test "${ac_cv_alignof_int+set}" = set; then
26013   $as_echo_n "(cached) " >&6
26014 else
26015   if test "$cross_compiling" = yes; then
26016   # Depending upon the size, compute the lo and hi bounds.
26017 cat >conftest.$ac_ext <<_ACEOF
26018 /* confdefs.h.  */
26019 _ACEOF
26020 cat confdefs.h >>conftest.$ac_ext
26021 cat >>conftest.$ac_ext <<_ACEOF
26022 /* end confdefs.h.  */
26023 $ac_includes_default
26024 #ifndef offsetof
26025 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26026 #endif
26027 typedef struct { char x; int y; } ac__type_alignof_;
26028 int
26029 main ()
26030 {
26031 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26032 test_array [0] = 0
26033
26034   ;
26035   return 0;
26036 }
26037 _ACEOF
26038 rm -f conftest.$ac_objext
26039 if { (ac_try="$ac_compile"
26040 case "(($ac_try" in
26041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26042   *) ac_try_echo=$ac_try;;
26043 esac
26044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26045 $as_echo "$ac_try_echo") >&5
26046   (eval "$ac_compile") 2>conftest.er1
26047   ac_status=$?
26048   grep -v '^ *+' conftest.er1 >conftest.err
26049   rm -f conftest.er1
26050   cat conftest.err >&5
26051   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26052   (exit $ac_status); } && {
26053          test -z "$ac_c_werror_flag" ||
26054          test ! -s conftest.err
26055        } && test -s conftest.$ac_objext; then
26056   ac_lo=0 ac_mid=0
26057   while :; do
26058     cat >conftest.$ac_ext <<_ACEOF
26059 /* confdefs.h.  */
26060 _ACEOF
26061 cat confdefs.h >>conftest.$ac_ext
26062 cat >>conftest.$ac_ext <<_ACEOF
26063 /* end confdefs.h.  */
26064 $ac_includes_default
26065 #ifndef offsetof
26066 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26067 #endif
26068 typedef struct { char x; int y; } ac__type_alignof_;
26069 int
26070 main ()
26071 {
26072 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26073 test_array [0] = 0
26074
26075   ;
26076   return 0;
26077 }
26078 _ACEOF
26079 rm -f conftest.$ac_objext
26080 if { (ac_try="$ac_compile"
26081 case "(($ac_try" in
26082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26083   *) ac_try_echo=$ac_try;;
26084 esac
26085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26086 $as_echo "$ac_try_echo") >&5
26087   (eval "$ac_compile") 2>conftest.er1
26088   ac_status=$?
26089   grep -v '^ *+' conftest.er1 >conftest.err
26090   rm -f conftest.er1
26091   cat conftest.err >&5
26092   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26093   (exit $ac_status); } && {
26094          test -z "$ac_c_werror_flag" ||
26095          test ! -s conftest.err
26096        } && test -s conftest.$ac_objext; then
26097   ac_hi=$ac_mid; break
26098 else
26099   $as_echo "$as_me: failed program was:" >&5
26100 sed 's/^/| /' conftest.$ac_ext >&5
26101
26102         ac_lo=`expr $ac_mid + 1`
26103                         if test $ac_lo -le $ac_mid; then
26104                           ac_lo= ac_hi=
26105                           break
26106                         fi
26107                         ac_mid=`expr 2 '*' $ac_mid + 1`
26108 fi
26109
26110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26111   done
26112 else
26113   $as_echo "$as_me: failed program was:" >&5
26114 sed 's/^/| /' conftest.$ac_ext >&5
26115
26116         cat >conftest.$ac_ext <<_ACEOF
26117 /* confdefs.h.  */
26118 _ACEOF
26119 cat confdefs.h >>conftest.$ac_ext
26120 cat >>conftest.$ac_ext <<_ACEOF
26121 /* end confdefs.h.  */
26122 $ac_includes_default
26123 #ifndef offsetof
26124 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26125 #endif
26126 typedef struct { char x; int y; } ac__type_alignof_;
26127 int
26128 main ()
26129 {
26130 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26131 test_array [0] = 0
26132
26133   ;
26134   return 0;
26135 }
26136 _ACEOF
26137 rm -f conftest.$ac_objext
26138 if { (ac_try="$ac_compile"
26139 case "(($ac_try" in
26140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26141   *) ac_try_echo=$ac_try;;
26142 esac
26143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26144 $as_echo "$ac_try_echo") >&5
26145   (eval "$ac_compile") 2>conftest.er1
26146   ac_status=$?
26147   grep -v '^ *+' conftest.er1 >conftest.err
26148   rm -f conftest.er1
26149   cat conftest.err >&5
26150   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26151   (exit $ac_status); } && {
26152          test -z "$ac_c_werror_flag" ||
26153          test ! -s conftest.err
26154        } && test -s conftest.$ac_objext; then
26155   ac_hi=-1 ac_mid=-1
26156   while :; do
26157     cat >conftest.$ac_ext <<_ACEOF
26158 /* confdefs.h.  */
26159 _ACEOF
26160 cat confdefs.h >>conftest.$ac_ext
26161 cat >>conftest.$ac_ext <<_ACEOF
26162 /* end confdefs.h.  */
26163 $ac_includes_default
26164 #ifndef offsetof
26165 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26166 #endif
26167 typedef struct { char x; int y; } ac__type_alignof_;
26168 int
26169 main ()
26170 {
26171 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26172 test_array [0] = 0
26173
26174   ;
26175   return 0;
26176 }
26177 _ACEOF
26178 rm -f conftest.$ac_objext
26179 if { (ac_try="$ac_compile"
26180 case "(($ac_try" in
26181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26182   *) ac_try_echo=$ac_try;;
26183 esac
26184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26185 $as_echo "$ac_try_echo") >&5
26186   (eval "$ac_compile") 2>conftest.er1
26187   ac_status=$?
26188   grep -v '^ *+' conftest.er1 >conftest.err
26189   rm -f conftest.er1
26190   cat conftest.err >&5
26191   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26192   (exit $ac_status); } && {
26193          test -z "$ac_c_werror_flag" ||
26194          test ! -s conftest.err
26195        } && test -s conftest.$ac_objext; then
26196   ac_lo=$ac_mid; break
26197 else
26198   $as_echo "$as_me: failed program was:" >&5
26199 sed 's/^/| /' conftest.$ac_ext >&5
26200
26201         ac_hi=`expr '(' $ac_mid ')' - 1`
26202                         if test $ac_mid -le $ac_hi; then
26203                           ac_lo= ac_hi=
26204                           break
26205                         fi
26206                         ac_mid=`expr 2 '*' $ac_mid`
26207 fi
26208
26209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26210   done
26211 else
26212   $as_echo "$as_me: failed program was:" >&5
26213 sed 's/^/| /' conftest.$ac_ext >&5
26214
26215         ac_lo= ac_hi=
26216 fi
26217
26218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26219 fi
26220
26221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26222 # Binary search between lo and hi bounds.
26223 while test "x$ac_lo" != "x$ac_hi"; do
26224   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26225   cat >conftest.$ac_ext <<_ACEOF
26226 /* confdefs.h.  */
26227 _ACEOF
26228 cat confdefs.h >>conftest.$ac_ext
26229 cat >>conftest.$ac_ext <<_ACEOF
26230 /* end confdefs.h.  */
26231 $ac_includes_default
26232 #ifndef offsetof
26233 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26234 #endif
26235 typedef struct { char x; int y; } ac__type_alignof_;
26236 int
26237 main ()
26238 {
26239 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26240 test_array [0] = 0
26241
26242   ;
26243   return 0;
26244 }
26245 _ACEOF
26246 rm -f conftest.$ac_objext
26247 if { (ac_try="$ac_compile"
26248 case "(($ac_try" in
26249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26250   *) ac_try_echo=$ac_try;;
26251 esac
26252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26253 $as_echo "$ac_try_echo") >&5
26254   (eval "$ac_compile") 2>conftest.er1
26255   ac_status=$?
26256   grep -v '^ *+' conftest.er1 >conftest.err
26257   rm -f conftest.er1
26258   cat conftest.err >&5
26259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26260   (exit $ac_status); } && {
26261          test -z "$ac_c_werror_flag" ||
26262          test ! -s conftest.err
26263        } && test -s conftest.$ac_objext; then
26264   ac_hi=$ac_mid
26265 else
26266   $as_echo "$as_me: failed program was:" >&5
26267 sed 's/^/| /' conftest.$ac_ext >&5
26268
26269         ac_lo=`expr '(' $ac_mid ')' + 1`
26270 fi
26271
26272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26273 done
26274 case $ac_lo in
26275 ?*) ac_cv_alignof_int=$ac_lo;;
26276 '') if test "$ac_cv_type_int" = yes; then
26277      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26279 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26280 See \`config.log' for more details." >&5
26281 $as_echo "$as_me: error: cannot compute alignment of int
26282 See \`config.log' for more details." >&2;}
26283    { (exit 77); exit 77; }; }; }
26284    else
26285      ac_cv_alignof_int=0
26286    fi ;;
26287 esac
26288 else
26289   cat >conftest.$ac_ext <<_ACEOF
26290 /* confdefs.h.  */
26291 _ACEOF
26292 cat confdefs.h >>conftest.$ac_ext
26293 cat >>conftest.$ac_ext <<_ACEOF
26294 /* end confdefs.h.  */
26295 $ac_includes_default
26296 #ifndef offsetof
26297 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26298 #endif
26299 typedef struct { char x; int y; } ac__type_alignof_;
26300 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26301 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26302 #include <stdio.h>
26303 #include <stdlib.h>
26304 int
26305 main ()
26306 {
26307
26308   FILE *f = fopen ("conftest.val", "w");
26309   if (! f)
26310     return 1;
26311   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26312     {
26313       long int i = longval ();
26314       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26315         return 1;
26316       fprintf (f, "%ld", i);
26317     }
26318   else
26319     {
26320       unsigned long int i = ulongval ();
26321       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26322         return 1;
26323       fprintf (f, "%lu", i);
26324     }
26325   /* Do not output a trailing newline, as this causes \r\n confusion
26326      on some platforms.  */
26327   return ferror (f) || fclose (f) != 0;
26328
26329   ;
26330   return 0;
26331 }
26332 _ACEOF
26333 rm -f conftest$ac_exeext
26334 if { (ac_try="$ac_link"
26335 case "(($ac_try" in
26336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26337   *) ac_try_echo=$ac_try;;
26338 esac
26339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26340 $as_echo "$ac_try_echo") >&5
26341   (eval "$ac_link") 2>&5
26342   ac_status=$?
26343   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26345   { (case "(($ac_try" in
26346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26347   *) ac_try_echo=$ac_try;;
26348 esac
26349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26350 $as_echo "$ac_try_echo") >&5
26351   (eval "$ac_try") 2>&5
26352   ac_status=$?
26353   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26354   (exit $ac_status); }; }; then
26355   ac_cv_alignof_int=`cat conftest.val`
26356 else
26357   $as_echo "$as_me: program exited with status $ac_status" >&5
26358 $as_echo "$as_me: failed program was:" >&5
26359 sed 's/^/| /' conftest.$ac_ext >&5
26360
26361 ( exit $ac_status )
26362 if test "$ac_cv_type_int" = yes; then
26363      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26365 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26366 See \`config.log' for more details." >&5
26367 $as_echo "$as_me: error: cannot compute alignment of int
26368 See \`config.log' for more details." >&2;}
26369    { (exit 77); exit 77; }; }; }
26370    else
26371      ac_cv_alignof_int=0
26372    fi
26373 fi
26374 rm -rf conftest.dSYM
26375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26376 fi
26377 rm -f conftest.val
26378 fi
26379 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
26380 $as_echo "$ac_cv_alignof_int" >&6; }
26381
26382
26383
26384 cat >>confdefs.h <<_ACEOF
26385 #define ALIGNOF_INT $ac_cv_alignof_int
26386 _ACEOF
26387
26388
26389 # The cast to long int works around a bug in the HP C Compiler,
26390 # see AC_CHECK_SIZEOF for more information.
26391 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
26392 $as_echo_n "checking alignment of long... " >&6; }
26393 if test "${ac_cv_alignof_long+set}" = set; then
26394   $as_echo_n "(cached) " >&6
26395 else
26396   if test "$cross_compiling" = yes; then
26397   # Depending upon the size, compute the lo and hi bounds.
26398 cat >conftest.$ac_ext <<_ACEOF
26399 /* confdefs.h.  */
26400 _ACEOF
26401 cat confdefs.h >>conftest.$ac_ext
26402 cat >>conftest.$ac_ext <<_ACEOF
26403 /* end confdefs.h.  */
26404 $ac_includes_default
26405 #ifndef offsetof
26406 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26407 #endif
26408 typedef struct { char x; long y; } ac__type_alignof_;
26409 int
26410 main ()
26411 {
26412 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26413 test_array [0] = 0
26414
26415   ;
26416   return 0;
26417 }
26418 _ACEOF
26419 rm -f conftest.$ac_objext
26420 if { (ac_try="$ac_compile"
26421 case "(($ac_try" in
26422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26423   *) ac_try_echo=$ac_try;;
26424 esac
26425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26426 $as_echo "$ac_try_echo") >&5
26427   (eval "$ac_compile") 2>conftest.er1
26428   ac_status=$?
26429   grep -v '^ *+' conftest.er1 >conftest.err
26430   rm -f conftest.er1
26431   cat conftest.err >&5
26432   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26433   (exit $ac_status); } && {
26434          test -z "$ac_c_werror_flag" ||
26435          test ! -s conftest.err
26436        } && test -s conftest.$ac_objext; then
26437   ac_lo=0 ac_mid=0
26438   while :; do
26439     cat >conftest.$ac_ext <<_ACEOF
26440 /* confdefs.h.  */
26441 _ACEOF
26442 cat confdefs.h >>conftest.$ac_ext
26443 cat >>conftest.$ac_ext <<_ACEOF
26444 /* end confdefs.h.  */
26445 $ac_includes_default
26446 #ifndef offsetof
26447 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26448 #endif
26449 typedef struct { char x; long y; } ac__type_alignof_;
26450 int
26451 main ()
26452 {
26453 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26454 test_array [0] = 0
26455
26456   ;
26457   return 0;
26458 }
26459 _ACEOF
26460 rm -f conftest.$ac_objext
26461 if { (ac_try="$ac_compile"
26462 case "(($ac_try" in
26463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26464   *) ac_try_echo=$ac_try;;
26465 esac
26466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26467 $as_echo "$ac_try_echo") >&5
26468   (eval "$ac_compile") 2>conftest.er1
26469   ac_status=$?
26470   grep -v '^ *+' conftest.er1 >conftest.err
26471   rm -f conftest.er1
26472   cat conftest.err >&5
26473   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26474   (exit $ac_status); } && {
26475          test -z "$ac_c_werror_flag" ||
26476          test ! -s conftest.err
26477        } && test -s conftest.$ac_objext; then
26478   ac_hi=$ac_mid; break
26479 else
26480   $as_echo "$as_me: failed program was:" >&5
26481 sed 's/^/| /' conftest.$ac_ext >&5
26482
26483         ac_lo=`expr $ac_mid + 1`
26484                         if test $ac_lo -le $ac_mid; then
26485                           ac_lo= ac_hi=
26486                           break
26487                         fi
26488                         ac_mid=`expr 2 '*' $ac_mid + 1`
26489 fi
26490
26491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26492   done
26493 else
26494   $as_echo "$as_me: failed program was:" >&5
26495 sed 's/^/| /' conftest.$ac_ext >&5
26496
26497         cat >conftest.$ac_ext <<_ACEOF
26498 /* confdefs.h.  */
26499 _ACEOF
26500 cat confdefs.h >>conftest.$ac_ext
26501 cat >>conftest.$ac_ext <<_ACEOF
26502 /* end confdefs.h.  */
26503 $ac_includes_default
26504 #ifndef offsetof
26505 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26506 #endif
26507 typedef struct { char x; long y; } ac__type_alignof_;
26508 int
26509 main ()
26510 {
26511 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26512 test_array [0] = 0
26513
26514   ;
26515   return 0;
26516 }
26517 _ACEOF
26518 rm -f conftest.$ac_objext
26519 if { (ac_try="$ac_compile"
26520 case "(($ac_try" in
26521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26522   *) ac_try_echo=$ac_try;;
26523 esac
26524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26525 $as_echo "$ac_try_echo") >&5
26526   (eval "$ac_compile") 2>conftest.er1
26527   ac_status=$?
26528   grep -v '^ *+' conftest.er1 >conftest.err
26529   rm -f conftest.er1
26530   cat conftest.err >&5
26531   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26532   (exit $ac_status); } && {
26533          test -z "$ac_c_werror_flag" ||
26534          test ! -s conftest.err
26535        } && test -s conftest.$ac_objext; then
26536   ac_hi=-1 ac_mid=-1
26537   while :; do
26538     cat >conftest.$ac_ext <<_ACEOF
26539 /* confdefs.h.  */
26540 _ACEOF
26541 cat confdefs.h >>conftest.$ac_ext
26542 cat >>conftest.$ac_ext <<_ACEOF
26543 /* end confdefs.h.  */
26544 $ac_includes_default
26545 #ifndef offsetof
26546 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26547 #endif
26548 typedef struct { char x; long y; } ac__type_alignof_;
26549 int
26550 main ()
26551 {
26552 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26553 test_array [0] = 0
26554
26555   ;
26556   return 0;
26557 }
26558 _ACEOF
26559 rm -f conftest.$ac_objext
26560 if { (ac_try="$ac_compile"
26561 case "(($ac_try" in
26562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26563   *) ac_try_echo=$ac_try;;
26564 esac
26565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26566 $as_echo "$ac_try_echo") >&5
26567   (eval "$ac_compile") 2>conftest.er1
26568   ac_status=$?
26569   grep -v '^ *+' conftest.er1 >conftest.err
26570   rm -f conftest.er1
26571   cat conftest.err >&5
26572   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26573   (exit $ac_status); } && {
26574          test -z "$ac_c_werror_flag" ||
26575          test ! -s conftest.err
26576        } && test -s conftest.$ac_objext; then
26577   ac_lo=$ac_mid; break
26578 else
26579   $as_echo "$as_me: failed program was:" >&5
26580 sed 's/^/| /' conftest.$ac_ext >&5
26581
26582         ac_hi=`expr '(' $ac_mid ')' - 1`
26583                         if test $ac_mid -le $ac_hi; then
26584                           ac_lo= ac_hi=
26585                           break
26586                         fi
26587                         ac_mid=`expr 2 '*' $ac_mid`
26588 fi
26589
26590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26591   done
26592 else
26593   $as_echo "$as_me: failed program was:" >&5
26594 sed 's/^/| /' conftest.$ac_ext >&5
26595
26596         ac_lo= ac_hi=
26597 fi
26598
26599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26600 fi
26601
26602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26603 # Binary search between lo and hi bounds.
26604 while test "x$ac_lo" != "x$ac_hi"; do
26605   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26606   cat >conftest.$ac_ext <<_ACEOF
26607 /* confdefs.h.  */
26608 _ACEOF
26609 cat confdefs.h >>conftest.$ac_ext
26610 cat >>conftest.$ac_ext <<_ACEOF
26611 /* end confdefs.h.  */
26612 $ac_includes_default
26613 #ifndef offsetof
26614 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26615 #endif
26616 typedef struct { char x; long y; } ac__type_alignof_;
26617 int
26618 main ()
26619 {
26620 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26621 test_array [0] = 0
26622
26623   ;
26624   return 0;
26625 }
26626 _ACEOF
26627 rm -f conftest.$ac_objext
26628 if { (ac_try="$ac_compile"
26629 case "(($ac_try" in
26630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26631   *) ac_try_echo=$ac_try;;
26632 esac
26633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26634 $as_echo "$ac_try_echo") >&5
26635   (eval "$ac_compile") 2>conftest.er1
26636   ac_status=$?
26637   grep -v '^ *+' conftest.er1 >conftest.err
26638   rm -f conftest.er1
26639   cat conftest.err >&5
26640   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26641   (exit $ac_status); } && {
26642          test -z "$ac_c_werror_flag" ||
26643          test ! -s conftest.err
26644        } && test -s conftest.$ac_objext; then
26645   ac_hi=$ac_mid
26646 else
26647   $as_echo "$as_me: failed program was:" >&5
26648 sed 's/^/| /' conftest.$ac_ext >&5
26649
26650         ac_lo=`expr '(' $ac_mid ')' + 1`
26651 fi
26652
26653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26654 done
26655 case $ac_lo in
26656 ?*) ac_cv_alignof_long=$ac_lo;;
26657 '') if test "$ac_cv_type_long" = yes; then
26658      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26660 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26661 See \`config.log' for more details." >&5
26662 $as_echo "$as_me: error: cannot compute alignment of long
26663 See \`config.log' for more details." >&2;}
26664    { (exit 77); exit 77; }; }; }
26665    else
26666      ac_cv_alignof_long=0
26667    fi ;;
26668 esac
26669 else
26670   cat >conftest.$ac_ext <<_ACEOF
26671 /* confdefs.h.  */
26672 _ACEOF
26673 cat confdefs.h >>conftest.$ac_ext
26674 cat >>conftest.$ac_ext <<_ACEOF
26675 /* end confdefs.h.  */
26676 $ac_includes_default
26677 #ifndef offsetof
26678 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26679 #endif
26680 typedef struct { char x; long y; } ac__type_alignof_;
26681 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26682 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26683 #include <stdio.h>
26684 #include <stdlib.h>
26685 int
26686 main ()
26687 {
26688
26689   FILE *f = fopen ("conftest.val", "w");
26690   if (! f)
26691     return 1;
26692   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26693     {
26694       long int i = longval ();
26695       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26696         return 1;
26697       fprintf (f, "%ld", i);
26698     }
26699   else
26700     {
26701       unsigned long int i = ulongval ();
26702       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26703         return 1;
26704       fprintf (f, "%lu", i);
26705     }
26706   /* Do not output a trailing newline, as this causes \r\n confusion
26707      on some platforms.  */
26708   return ferror (f) || fclose (f) != 0;
26709
26710   ;
26711   return 0;
26712 }
26713 _ACEOF
26714 rm -f conftest$ac_exeext
26715 if { (ac_try="$ac_link"
26716 case "(($ac_try" in
26717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26718   *) ac_try_echo=$ac_try;;
26719 esac
26720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26721 $as_echo "$ac_try_echo") >&5
26722   (eval "$ac_link") 2>&5
26723   ac_status=$?
26724   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26725   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26726   { (case "(($ac_try" in
26727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26728   *) ac_try_echo=$ac_try;;
26729 esac
26730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26731 $as_echo "$ac_try_echo") >&5
26732   (eval "$ac_try") 2>&5
26733   ac_status=$?
26734   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26735   (exit $ac_status); }; }; then
26736   ac_cv_alignof_long=`cat conftest.val`
26737 else
26738   $as_echo "$as_me: program exited with status $ac_status" >&5
26739 $as_echo "$as_me: failed program was:" >&5
26740 sed 's/^/| /' conftest.$ac_ext >&5
26741
26742 ( exit $ac_status )
26743 if test "$ac_cv_type_long" = yes; then
26744      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26746 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26747 See \`config.log' for more details." >&5
26748 $as_echo "$as_me: error: cannot compute alignment of long
26749 See \`config.log' for more details." >&2;}
26750    { (exit 77); exit 77; }; }; }
26751    else
26752      ac_cv_alignof_long=0
26753    fi
26754 fi
26755 rm -rf conftest.dSYM
26756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26757 fi
26758 rm -f conftest.val
26759 fi
26760 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
26761 $as_echo "$ac_cv_alignof_long" >&6; }
26762
26763
26764
26765 cat >>confdefs.h <<_ACEOF
26766 #define ALIGNOF_LONG $ac_cv_alignof_long
26767 _ACEOF
26768
26769
26770 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
26771   # The cast to long int works around a bug in the HP C Compiler,
26772 # see AC_CHECK_SIZEOF for more information.
26773 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
26774 $as_echo_n "checking alignment of long long int... " >&6; }
26775 if test "${ac_cv_alignof_long_long_int+set}" = set; then
26776   $as_echo_n "(cached) " >&6
26777 else
26778   if test "$cross_compiling" = yes; then
26779   # Depending upon the size, compute the lo and hi bounds.
26780 cat >conftest.$ac_ext <<_ACEOF
26781 /* confdefs.h.  */
26782 _ACEOF
26783 cat confdefs.h >>conftest.$ac_ext
26784 cat >>conftest.$ac_ext <<_ACEOF
26785 /* end confdefs.h.  */
26786 $ac_includes_default
26787 #ifndef offsetof
26788 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26789 #endif
26790 typedef struct { char x; long long int y; } ac__type_alignof_;
26791 int
26792 main ()
26793 {
26794 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26795 test_array [0] = 0
26796
26797   ;
26798   return 0;
26799 }
26800 _ACEOF
26801 rm -f conftest.$ac_objext
26802 if { (ac_try="$ac_compile"
26803 case "(($ac_try" in
26804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26805   *) ac_try_echo=$ac_try;;
26806 esac
26807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26808 $as_echo "$ac_try_echo") >&5
26809   (eval "$ac_compile") 2>conftest.er1
26810   ac_status=$?
26811   grep -v '^ *+' conftest.er1 >conftest.err
26812   rm -f conftest.er1
26813   cat conftest.err >&5
26814   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26815   (exit $ac_status); } && {
26816          test -z "$ac_c_werror_flag" ||
26817          test ! -s conftest.err
26818        } && test -s conftest.$ac_objext; then
26819   ac_lo=0 ac_mid=0
26820   while :; do
26821     cat >conftest.$ac_ext <<_ACEOF
26822 /* confdefs.h.  */
26823 _ACEOF
26824 cat confdefs.h >>conftest.$ac_ext
26825 cat >>conftest.$ac_ext <<_ACEOF
26826 /* end confdefs.h.  */
26827 $ac_includes_default
26828 #ifndef offsetof
26829 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26830 #endif
26831 typedef struct { char x; long long int y; } ac__type_alignof_;
26832 int
26833 main ()
26834 {
26835 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26836 test_array [0] = 0
26837
26838   ;
26839   return 0;
26840 }
26841 _ACEOF
26842 rm -f conftest.$ac_objext
26843 if { (ac_try="$ac_compile"
26844 case "(($ac_try" in
26845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26846   *) ac_try_echo=$ac_try;;
26847 esac
26848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26849 $as_echo "$ac_try_echo") >&5
26850   (eval "$ac_compile") 2>conftest.er1
26851   ac_status=$?
26852   grep -v '^ *+' conftest.er1 >conftest.err
26853   rm -f conftest.er1
26854   cat conftest.err >&5
26855   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856   (exit $ac_status); } && {
26857          test -z "$ac_c_werror_flag" ||
26858          test ! -s conftest.err
26859        } && test -s conftest.$ac_objext; then
26860   ac_hi=$ac_mid; break
26861 else
26862   $as_echo "$as_me: failed program was:" >&5
26863 sed 's/^/| /' conftest.$ac_ext >&5
26864
26865         ac_lo=`expr $ac_mid + 1`
26866                         if test $ac_lo -le $ac_mid; then
26867                           ac_lo= ac_hi=
26868                           break
26869                         fi
26870                         ac_mid=`expr 2 '*' $ac_mid + 1`
26871 fi
26872
26873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26874   done
26875 else
26876   $as_echo "$as_me: failed program was:" >&5
26877 sed 's/^/| /' conftest.$ac_ext >&5
26878
26879         cat >conftest.$ac_ext <<_ACEOF
26880 /* confdefs.h.  */
26881 _ACEOF
26882 cat confdefs.h >>conftest.$ac_ext
26883 cat >>conftest.$ac_ext <<_ACEOF
26884 /* end confdefs.h.  */
26885 $ac_includes_default
26886 #ifndef offsetof
26887 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26888 #endif
26889 typedef struct { char x; long long int y; } ac__type_alignof_;
26890 int
26891 main ()
26892 {
26893 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26894 test_array [0] = 0
26895
26896   ;
26897   return 0;
26898 }
26899 _ACEOF
26900 rm -f conftest.$ac_objext
26901 if { (ac_try="$ac_compile"
26902 case "(($ac_try" in
26903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26904   *) ac_try_echo=$ac_try;;
26905 esac
26906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26907 $as_echo "$ac_try_echo") >&5
26908   (eval "$ac_compile") 2>conftest.er1
26909   ac_status=$?
26910   grep -v '^ *+' conftest.er1 >conftest.err
26911   rm -f conftest.er1
26912   cat conftest.err >&5
26913   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26914   (exit $ac_status); } && {
26915          test -z "$ac_c_werror_flag" ||
26916          test ! -s conftest.err
26917        } && test -s conftest.$ac_objext; then
26918   ac_hi=-1 ac_mid=-1
26919   while :; do
26920     cat >conftest.$ac_ext <<_ACEOF
26921 /* confdefs.h.  */
26922 _ACEOF
26923 cat confdefs.h >>conftest.$ac_ext
26924 cat >>conftest.$ac_ext <<_ACEOF
26925 /* end confdefs.h.  */
26926 $ac_includes_default
26927 #ifndef offsetof
26928 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26929 #endif
26930 typedef struct { char x; long long int y; } ac__type_alignof_;
26931 int
26932 main ()
26933 {
26934 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26935 test_array [0] = 0
26936
26937   ;
26938   return 0;
26939 }
26940 _ACEOF
26941 rm -f conftest.$ac_objext
26942 if { (ac_try="$ac_compile"
26943 case "(($ac_try" in
26944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26945   *) ac_try_echo=$ac_try;;
26946 esac
26947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26948 $as_echo "$ac_try_echo") >&5
26949   (eval "$ac_compile") 2>conftest.er1
26950   ac_status=$?
26951   grep -v '^ *+' conftest.er1 >conftest.err
26952   rm -f conftest.er1
26953   cat conftest.err >&5
26954   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26955   (exit $ac_status); } && {
26956          test -z "$ac_c_werror_flag" ||
26957          test ! -s conftest.err
26958        } && test -s conftest.$ac_objext; then
26959   ac_lo=$ac_mid; break
26960 else
26961   $as_echo "$as_me: failed program was:" >&5
26962 sed 's/^/| /' conftest.$ac_ext >&5
26963
26964         ac_hi=`expr '(' $ac_mid ')' - 1`
26965                         if test $ac_mid -le $ac_hi; then
26966                           ac_lo= ac_hi=
26967                           break
26968                         fi
26969                         ac_mid=`expr 2 '*' $ac_mid`
26970 fi
26971
26972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26973   done
26974 else
26975   $as_echo "$as_me: failed program was:" >&5
26976 sed 's/^/| /' conftest.$ac_ext >&5
26977
26978         ac_lo= ac_hi=
26979 fi
26980
26981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26982 fi
26983
26984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26985 # Binary search between lo and hi bounds.
26986 while test "x$ac_lo" != "x$ac_hi"; do
26987   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26988   cat >conftest.$ac_ext <<_ACEOF
26989 /* confdefs.h.  */
26990 _ACEOF
26991 cat confdefs.h >>conftest.$ac_ext
26992 cat >>conftest.$ac_ext <<_ACEOF
26993 /* end confdefs.h.  */
26994 $ac_includes_default
26995 #ifndef offsetof
26996 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26997 #endif
26998 typedef struct { char x; long long int y; } ac__type_alignof_;
26999 int
27000 main ()
27001 {
27002 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27003 test_array [0] = 0
27004
27005   ;
27006   return 0;
27007 }
27008 _ACEOF
27009 rm -f conftest.$ac_objext
27010 if { (ac_try="$ac_compile"
27011 case "(($ac_try" in
27012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27013   *) ac_try_echo=$ac_try;;
27014 esac
27015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27016 $as_echo "$ac_try_echo") >&5
27017   (eval "$ac_compile") 2>conftest.er1
27018   ac_status=$?
27019   grep -v '^ *+' conftest.er1 >conftest.err
27020   rm -f conftest.er1
27021   cat conftest.err >&5
27022   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27023   (exit $ac_status); } && {
27024          test -z "$ac_c_werror_flag" ||
27025          test ! -s conftest.err
27026        } && test -s conftest.$ac_objext; then
27027   ac_hi=$ac_mid
27028 else
27029   $as_echo "$as_me: failed program was:" >&5
27030 sed 's/^/| /' conftest.$ac_ext >&5
27031
27032         ac_lo=`expr '(' $ac_mid ')' + 1`
27033 fi
27034
27035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27036 done
27037 case $ac_lo in
27038 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
27039 '') if test "$ac_cv_type_long_long_int" = yes; then
27040      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27042 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27043 See \`config.log' for more details." >&5
27044 $as_echo "$as_me: error: cannot compute alignment of long long int
27045 See \`config.log' for more details." >&2;}
27046    { (exit 77); exit 77; }; }; }
27047    else
27048      ac_cv_alignof_long_long_int=0
27049    fi ;;
27050 esac
27051 else
27052   cat >conftest.$ac_ext <<_ACEOF
27053 /* confdefs.h.  */
27054 _ACEOF
27055 cat confdefs.h >>conftest.$ac_ext
27056 cat >>conftest.$ac_ext <<_ACEOF
27057 /* end confdefs.h.  */
27058 $ac_includes_default
27059 #ifndef offsetof
27060 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27061 #endif
27062 typedef struct { char x; long long int y; } ac__type_alignof_;
27063 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27064 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27065 #include <stdio.h>
27066 #include <stdlib.h>
27067 int
27068 main ()
27069 {
27070
27071   FILE *f = fopen ("conftest.val", "w");
27072   if (! f)
27073     return 1;
27074   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27075     {
27076       long int i = longval ();
27077       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27078         return 1;
27079       fprintf (f, "%ld", i);
27080     }
27081   else
27082     {
27083       unsigned long int i = ulongval ();
27084       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27085         return 1;
27086       fprintf (f, "%lu", i);
27087     }
27088   /* Do not output a trailing newline, as this causes \r\n confusion
27089      on some platforms.  */
27090   return ferror (f) || fclose (f) != 0;
27091
27092   ;
27093   return 0;
27094 }
27095 _ACEOF
27096 rm -f conftest$ac_exeext
27097 if { (ac_try="$ac_link"
27098 case "(($ac_try" in
27099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27100   *) ac_try_echo=$ac_try;;
27101 esac
27102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27103 $as_echo "$ac_try_echo") >&5
27104   (eval "$ac_link") 2>&5
27105   ac_status=$?
27106   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27107   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27108   { (case "(($ac_try" in
27109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27110   *) ac_try_echo=$ac_try;;
27111 esac
27112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27113 $as_echo "$ac_try_echo") >&5
27114   (eval "$ac_try") 2>&5
27115   ac_status=$?
27116   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27117   (exit $ac_status); }; }; then
27118   ac_cv_alignof_long_long_int=`cat conftest.val`
27119 else
27120   $as_echo "$as_me: program exited with status $ac_status" >&5
27121 $as_echo "$as_me: failed program was:" >&5
27122 sed 's/^/| /' conftest.$ac_ext >&5
27123
27124 ( exit $ac_status )
27125 if test "$ac_cv_type_long_long_int" = yes; then
27126      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27128 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27129 See \`config.log' for more details." >&5
27130 $as_echo "$as_me: error: cannot compute alignment of long long int
27131 See \`config.log' for more details." >&2;}
27132    { (exit 77); exit 77; }; }; }
27133    else
27134      ac_cv_alignof_long_long_int=0
27135    fi
27136 fi
27137 rm -rf conftest.dSYM
27138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27139 fi
27140 rm -f conftest.val
27141 fi
27142 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
27143 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
27144
27145
27146
27147 cat >>confdefs.h <<_ACEOF
27148 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
27149 _ACEOF
27150
27151
27152 fi
27153 # The cast to long int works around a bug in the HP C Compiler,
27154 # see AC_CHECK_SIZEOF for more information.
27155 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
27156 $as_echo_n "checking alignment of double... " >&6; }
27157 if test "${ac_cv_alignof_double+set}" = set; then
27158   $as_echo_n "(cached) " >&6
27159 else
27160   if test "$cross_compiling" = yes; then
27161   # Depending upon the size, compute the lo and hi bounds.
27162 cat >conftest.$ac_ext <<_ACEOF
27163 /* confdefs.h.  */
27164 _ACEOF
27165 cat confdefs.h >>conftest.$ac_ext
27166 cat >>conftest.$ac_ext <<_ACEOF
27167 /* end confdefs.h.  */
27168 $ac_includes_default
27169 #ifndef offsetof
27170 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27171 #endif
27172 typedef struct { char x; double y; } ac__type_alignof_;
27173 int
27174 main ()
27175 {
27176 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27177 test_array [0] = 0
27178
27179   ;
27180   return 0;
27181 }
27182 _ACEOF
27183 rm -f conftest.$ac_objext
27184 if { (ac_try="$ac_compile"
27185 case "(($ac_try" in
27186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27187   *) ac_try_echo=$ac_try;;
27188 esac
27189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27190 $as_echo "$ac_try_echo") >&5
27191   (eval "$ac_compile") 2>conftest.er1
27192   ac_status=$?
27193   grep -v '^ *+' conftest.er1 >conftest.err
27194   rm -f conftest.er1
27195   cat conftest.err >&5
27196   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27197   (exit $ac_status); } && {
27198          test -z "$ac_c_werror_flag" ||
27199          test ! -s conftest.err
27200        } && test -s conftest.$ac_objext; then
27201   ac_lo=0 ac_mid=0
27202   while :; do
27203     cat >conftest.$ac_ext <<_ACEOF
27204 /* confdefs.h.  */
27205 _ACEOF
27206 cat confdefs.h >>conftest.$ac_ext
27207 cat >>conftest.$ac_ext <<_ACEOF
27208 /* end confdefs.h.  */
27209 $ac_includes_default
27210 #ifndef offsetof
27211 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27212 #endif
27213 typedef struct { char x; double y; } ac__type_alignof_;
27214 int
27215 main ()
27216 {
27217 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27218 test_array [0] = 0
27219
27220   ;
27221   return 0;
27222 }
27223 _ACEOF
27224 rm -f conftest.$ac_objext
27225 if { (ac_try="$ac_compile"
27226 case "(($ac_try" in
27227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27228   *) ac_try_echo=$ac_try;;
27229 esac
27230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27231 $as_echo "$ac_try_echo") >&5
27232   (eval "$ac_compile") 2>conftest.er1
27233   ac_status=$?
27234   grep -v '^ *+' conftest.er1 >conftest.err
27235   rm -f conftest.er1
27236   cat conftest.err >&5
27237   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27238   (exit $ac_status); } && {
27239          test -z "$ac_c_werror_flag" ||
27240          test ! -s conftest.err
27241        } && test -s conftest.$ac_objext; then
27242   ac_hi=$ac_mid; break
27243 else
27244   $as_echo "$as_me: failed program was:" >&5
27245 sed 's/^/| /' conftest.$ac_ext >&5
27246
27247         ac_lo=`expr $ac_mid + 1`
27248                         if test $ac_lo -le $ac_mid; then
27249                           ac_lo= ac_hi=
27250                           break
27251                         fi
27252                         ac_mid=`expr 2 '*' $ac_mid + 1`
27253 fi
27254
27255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27256   done
27257 else
27258   $as_echo "$as_me: failed program was:" >&5
27259 sed 's/^/| /' conftest.$ac_ext >&5
27260
27261         cat >conftest.$ac_ext <<_ACEOF
27262 /* confdefs.h.  */
27263 _ACEOF
27264 cat confdefs.h >>conftest.$ac_ext
27265 cat >>conftest.$ac_ext <<_ACEOF
27266 /* end confdefs.h.  */
27267 $ac_includes_default
27268 #ifndef offsetof
27269 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27270 #endif
27271 typedef struct { char x; double y; } ac__type_alignof_;
27272 int
27273 main ()
27274 {
27275 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27276 test_array [0] = 0
27277
27278   ;
27279   return 0;
27280 }
27281 _ACEOF
27282 rm -f conftest.$ac_objext
27283 if { (ac_try="$ac_compile"
27284 case "(($ac_try" in
27285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27286   *) ac_try_echo=$ac_try;;
27287 esac
27288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27289 $as_echo "$ac_try_echo") >&5
27290   (eval "$ac_compile") 2>conftest.er1
27291   ac_status=$?
27292   grep -v '^ *+' conftest.er1 >conftest.err
27293   rm -f conftest.er1
27294   cat conftest.err >&5
27295   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27296   (exit $ac_status); } && {
27297          test -z "$ac_c_werror_flag" ||
27298          test ! -s conftest.err
27299        } && test -s conftest.$ac_objext; then
27300   ac_hi=-1 ac_mid=-1
27301   while :; do
27302     cat >conftest.$ac_ext <<_ACEOF
27303 /* confdefs.h.  */
27304 _ACEOF
27305 cat confdefs.h >>conftest.$ac_ext
27306 cat >>conftest.$ac_ext <<_ACEOF
27307 /* end confdefs.h.  */
27308 $ac_includes_default
27309 #ifndef offsetof
27310 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27311 #endif
27312 typedef struct { char x; double y; } ac__type_alignof_;
27313 int
27314 main ()
27315 {
27316 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27317 test_array [0] = 0
27318
27319   ;
27320   return 0;
27321 }
27322 _ACEOF
27323 rm -f conftest.$ac_objext
27324 if { (ac_try="$ac_compile"
27325 case "(($ac_try" in
27326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27327   *) ac_try_echo=$ac_try;;
27328 esac
27329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27330 $as_echo "$ac_try_echo") >&5
27331   (eval "$ac_compile") 2>conftest.er1
27332   ac_status=$?
27333   grep -v '^ *+' conftest.er1 >conftest.err
27334   rm -f conftest.er1
27335   cat conftest.err >&5
27336   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27337   (exit $ac_status); } && {
27338          test -z "$ac_c_werror_flag" ||
27339          test ! -s conftest.err
27340        } && test -s conftest.$ac_objext; then
27341   ac_lo=$ac_mid; break
27342 else
27343   $as_echo "$as_me: failed program was:" >&5
27344 sed 's/^/| /' conftest.$ac_ext >&5
27345
27346         ac_hi=`expr '(' $ac_mid ')' - 1`
27347                         if test $ac_mid -le $ac_hi; then
27348                           ac_lo= ac_hi=
27349                           break
27350                         fi
27351                         ac_mid=`expr 2 '*' $ac_mid`
27352 fi
27353
27354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27355   done
27356 else
27357   $as_echo "$as_me: failed program was:" >&5
27358 sed 's/^/| /' conftest.$ac_ext >&5
27359
27360         ac_lo= ac_hi=
27361 fi
27362
27363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27364 fi
27365
27366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27367 # Binary search between lo and hi bounds.
27368 while test "x$ac_lo" != "x$ac_hi"; do
27369   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27370   cat >conftest.$ac_ext <<_ACEOF
27371 /* confdefs.h.  */
27372 _ACEOF
27373 cat confdefs.h >>conftest.$ac_ext
27374 cat >>conftest.$ac_ext <<_ACEOF
27375 /* end confdefs.h.  */
27376 $ac_includes_default
27377 #ifndef offsetof
27378 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27379 #endif
27380 typedef struct { char x; double y; } ac__type_alignof_;
27381 int
27382 main ()
27383 {
27384 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27385 test_array [0] = 0
27386
27387   ;
27388   return 0;
27389 }
27390 _ACEOF
27391 rm -f conftest.$ac_objext
27392 if { (ac_try="$ac_compile"
27393 case "(($ac_try" in
27394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27395   *) ac_try_echo=$ac_try;;
27396 esac
27397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27398 $as_echo "$ac_try_echo") >&5
27399   (eval "$ac_compile") 2>conftest.er1
27400   ac_status=$?
27401   grep -v '^ *+' conftest.er1 >conftest.err
27402   rm -f conftest.er1
27403   cat conftest.err >&5
27404   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27405   (exit $ac_status); } && {
27406          test -z "$ac_c_werror_flag" ||
27407          test ! -s conftest.err
27408        } && test -s conftest.$ac_objext; then
27409   ac_hi=$ac_mid
27410 else
27411   $as_echo "$as_me: failed program was:" >&5
27412 sed 's/^/| /' conftest.$ac_ext >&5
27413
27414         ac_lo=`expr '(' $ac_mid ')' + 1`
27415 fi
27416
27417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27418 done
27419 case $ac_lo in
27420 ?*) ac_cv_alignof_double=$ac_lo;;
27421 '') if test "$ac_cv_type_double" = yes; then
27422      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27424 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27425 See \`config.log' for more details." >&5
27426 $as_echo "$as_me: error: cannot compute alignment of double
27427 See \`config.log' for more details." >&2;}
27428    { (exit 77); exit 77; }; }; }
27429    else
27430      ac_cv_alignof_double=0
27431    fi ;;
27432 esac
27433 else
27434   cat >conftest.$ac_ext <<_ACEOF
27435 /* confdefs.h.  */
27436 _ACEOF
27437 cat confdefs.h >>conftest.$ac_ext
27438 cat >>conftest.$ac_ext <<_ACEOF
27439 /* end confdefs.h.  */
27440 $ac_includes_default
27441 #ifndef offsetof
27442 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27443 #endif
27444 typedef struct { char x; double y; } ac__type_alignof_;
27445 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27446 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27447 #include <stdio.h>
27448 #include <stdlib.h>
27449 int
27450 main ()
27451 {
27452
27453   FILE *f = fopen ("conftest.val", "w");
27454   if (! f)
27455     return 1;
27456   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27457     {
27458       long int i = longval ();
27459       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27460         return 1;
27461       fprintf (f, "%ld", i);
27462     }
27463   else
27464     {
27465       unsigned long int i = ulongval ();
27466       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27467         return 1;
27468       fprintf (f, "%lu", i);
27469     }
27470   /* Do not output a trailing newline, as this causes \r\n confusion
27471      on some platforms.  */
27472   return ferror (f) || fclose (f) != 0;
27473
27474   ;
27475   return 0;
27476 }
27477 _ACEOF
27478 rm -f conftest$ac_exeext
27479 if { (ac_try="$ac_link"
27480 case "(($ac_try" in
27481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27482   *) ac_try_echo=$ac_try;;
27483 esac
27484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27485 $as_echo "$ac_try_echo") >&5
27486   (eval "$ac_link") 2>&5
27487   ac_status=$?
27488   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27489   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27490   { (case "(($ac_try" in
27491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27492   *) ac_try_echo=$ac_try;;
27493 esac
27494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27495 $as_echo "$ac_try_echo") >&5
27496   (eval "$ac_try") 2>&5
27497   ac_status=$?
27498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27499   (exit $ac_status); }; }; then
27500   ac_cv_alignof_double=`cat conftest.val`
27501 else
27502   $as_echo "$as_me: program exited with status $ac_status" >&5
27503 $as_echo "$as_me: failed program was:" >&5
27504 sed 's/^/| /' conftest.$ac_ext >&5
27505
27506 ( exit $ac_status )
27507 if test "$ac_cv_type_double" = yes; then
27508      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27510 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27511 See \`config.log' for more details." >&5
27512 $as_echo "$as_me: error: cannot compute alignment of double
27513 See \`config.log' for more details." >&2;}
27514    { (exit 77); exit 77; }; }; }
27515    else
27516      ac_cv_alignof_double=0
27517    fi
27518 fi
27519 rm -rf conftest.dSYM
27520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27521 fi
27522 rm -f conftest.val
27523 fi
27524 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
27525 $as_echo "$ac_cv_alignof_double" >&6; }
27526
27527
27528
27529 cat >>confdefs.h <<_ACEOF
27530 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
27531 _ACEOF
27532
27533
27534
27535 # Compute maximum alignment of any basic type.
27536 # We assume long's alignment is at least as strong as char, short, or int;
27537 # but we must check long long (if it exists) and double.
27538
27539 MAX_ALIGNOF=$ac_cv_alignof_long
27540 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
27541   MAX_ALIGNOF=$ac_cv_alignof_double
27542 fi
27543 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
27544   MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
27545 fi
27546
27547 cat >>confdefs.h <<_ACEOF
27548 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
27549 _ACEOF
27550
27551
27552
27553 # Some platforms predefine the types int8, int16, etc.  Only check
27554 # a (hopefully) representative subset.
27555 { $as_echo "$as_me:$LINENO: checking for int8" >&5
27556 $as_echo_n "checking for int8... " >&6; }
27557 if test "${ac_cv_type_int8+set}" = set; then
27558   $as_echo_n "(cached) " >&6
27559 else
27560   ac_cv_type_int8=no
27561 cat >conftest.$ac_ext <<_ACEOF
27562 /* confdefs.h.  */
27563 _ACEOF
27564 cat confdefs.h >>conftest.$ac_ext
27565 cat >>conftest.$ac_ext <<_ACEOF
27566 /* end confdefs.h.  */
27567 #include <stdio.h>
27568 #ifdef HAVE_SUPPORTDEFS_H
27569 #include <SupportDefs.h>
27570 #endif
27571
27572 int
27573 main ()
27574 {
27575 if (sizeof (int8))
27576        return 0;
27577   ;
27578   return 0;
27579 }
27580 _ACEOF
27581 rm -f conftest.$ac_objext
27582 if { (ac_try="$ac_compile"
27583 case "(($ac_try" in
27584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27585   *) ac_try_echo=$ac_try;;
27586 esac
27587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27588 $as_echo "$ac_try_echo") >&5
27589   (eval "$ac_compile") 2>conftest.er1
27590   ac_status=$?
27591   grep -v '^ *+' conftest.er1 >conftest.err
27592   rm -f conftest.er1
27593   cat conftest.err >&5
27594   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595   (exit $ac_status); } && {
27596          test -z "$ac_c_werror_flag" ||
27597          test ! -s conftest.err
27598        } && test -s conftest.$ac_objext; then
27599   cat >conftest.$ac_ext <<_ACEOF
27600 /* confdefs.h.  */
27601 _ACEOF
27602 cat confdefs.h >>conftest.$ac_ext
27603 cat >>conftest.$ac_ext <<_ACEOF
27604 /* end confdefs.h.  */
27605 #include <stdio.h>
27606 #ifdef HAVE_SUPPORTDEFS_H
27607 #include <SupportDefs.h>
27608 #endif
27609
27610 int
27611 main ()
27612 {
27613 if (sizeof ((int8)))
27614           return 0;
27615   ;
27616   return 0;
27617 }
27618 _ACEOF
27619 rm -f conftest.$ac_objext
27620 if { (ac_try="$ac_compile"
27621 case "(($ac_try" in
27622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27623   *) ac_try_echo=$ac_try;;
27624 esac
27625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27626 $as_echo "$ac_try_echo") >&5
27627   (eval "$ac_compile") 2>conftest.er1
27628   ac_status=$?
27629   grep -v '^ *+' conftest.er1 >conftest.err
27630   rm -f conftest.er1
27631   cat conftest.err >&5
27632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27633   (exit $ac_status); } && {
27634          test -z "$ac_c_werror_flag" ||
27635          test ! -s conftest.err
27636        } && test -s conftest.$ac_objext; then
27637   :
27638 else
27639   $as_echo "$as_me: failed program was:" >&5
27640 sed 's/^/| /' conftest.$ac_ext >&5
27641
27642         ac_cv_type_int8=yes
27643 fi
27644
27645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27646 else
27647   $as_echo "$as_me: failed program was:" >&5
27648 sed 's/^/| /' conftest.$ac_ext >&5
27649
27650
27651 fi
27652
27653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27654 fi
27655 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
27656 $as_echo "$ac_cv_type_int8" >&6; }
27657 if test "x$ac_cv_type_int8" = x""yes; then
27658
27659 cat >>confdefs.h <<_ACEOF
27660 #define HAVE_INT8 1
27661 _ACEOF
27662
27663
27664 fi
27665 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
27666 $as_echo_n "checking for uint8... " >&6; }
27667 if test "${ac_cv_type_uint8+set}" = set; then
27668   $as_echo_n "(cached) " >&6
27669 else
27670   ac_cv_type_uint8=no
27671 cat >conftest.$ac_ext <<_ACEOF
27672 /* confdefs.h.  */
27673 _ACEOF
27674 cat confdefs.h >>conftest.$ac_ext
27675 cat >>conftest.$ac_ext <<_ACEOF
27676 /* end confdefs.h.  */
27677 #include <stdio.h>
27678 #ifdef HAVE_SUPPORTDEFS_H
27679 #include <SupportDefs.h>
27680 #endif
27681
27682 int
27683 main ()
27684 {
27685 if (sizeof (uint8))
27686        return 0;
27687   ;
27688   return 0;
27689 }
27690 _ACEOF
27691 rm -f conftest.$ac_objext
27692 if { (ac_try="$ac_compile"
27693 case "(($ac_try" in
27694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27695   *) ac_try_echo=$ac_try;;
27696 esac
27697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27698 $as_echo "$ac_try_echo") >&5
27699   (eval "$ac_compile") 2>conftest.er1
27700   ac_status=$?
27701   grep -v '^ *+' conftest.er1 >conftest.err
27702   rm -f conftest.er1
27703   cat conftest.err >&5
27704   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27705   (exit $ac_status); } && {
27706          test -z "$ac_c_werror_flag" ||
27707          test ! -s conftest.err
27708        } && test -s conftest.$ac_objext; then
27709   cat >conftest.$ac_ext <<_ACEOF
27710 /* confdefs.h.  */
27711 _ACEOF
27712 cat confdefs.h >>conftest.$ac_ext
27713 cat >>conftest.$ac_ext <<_ACEOF
27714 /* end confdefs.h.  */
27715 #include <stdio.h>
27716 #ifdef HAVE_SUPPORTDEFS_H
27717 #include <SupportDefs.h>
27718 #endif
27719
27720 int
27721 main ()
27722 {
27723 if (sizeof ((uint8)))
27724           return 0;
27725   ;
27726   return 0;
27727 }
27728 _ACEOF
27729 rm -f conftest.$ac_objext
27730 if { (ac_try="$ac_compile"
27731 case "(($ac_try" in
27732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27733   *) ac_try_echo=$ac_try;;
27734 esac
27735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27736 $as_echo "$ac_try_echo") >&5
27737   (eval "$ac_compile") 2>conftest.er1
27738   ac_status=$?
27739   grep -v '^ *+' conftest.er1 >conftest.err
27740   rm -f conftest.er1
27741   cat conftest.err >&5
27742   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27743   (exit $ac_status); } && {
27744          test -z "$ac_c_werror_flag" ||
27745          test ! -s conftest.err
27746        } && test -s conftest.$ac_objext; then
27747   :
27748 else
27749   $as_echo "$as_me: failed program was:" >&5
27750 sed 's/^/| /' conftest.$ac_ext >&5
27751
27752         ac_cv_type_uint8=yes
27753 fi
27754
27755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27756 else
27757   $as_echo "$as_me: failed program was:" >&5
27758 sed 's/^/| /' conftest.$ac_ext >&5
27759
27760
27761 fi
27762
27763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27764 fi
27765 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
27766 $as_echo "$ac_cv_type_uint8" >&6; }
27767 if test "x$ac_cv_type_uint8" = x""yes; then
27768
27769 cat >>confdefs.h <<_ACEOF
27770 #define HAVE_UINT8 1
27771 _ACEOF
27772
27773
27774 fi
27775 { $as_echo "$as_me:$LINENO: checking for int64" >&5
27776 $as_echo_n "checking for int64... " >&6; }
27777 if test "${ac_cv_type_int64+set}" = set; then
27778   $as_echo_n "(cached) " >&6
27779 else
27780   ac_cv_type_int64=no
27781 cat >conftest.$ac_ext <<_ACEOF
27782 /* confdefs.h.  */
27783 _ACEOF
27784 cat confdefs.h >>conftest.$ac_ext
27785 cat >>conftest.$ac_ext <<_ACEOF
27786 /* end confdefs.h.  */
27787 #include <stdio.h>
27788 #ifdef HAVE_SUPPORTDEFS_H
27789 #include <SupportDefs.h>
27790 #endif
27791
27792 int
27793 main ()
27794 {
27795 if (sizeof (int64))
27796        return 0;
27797   ;
27798   return 0;
27799 }
27800 _ACEOF
27801 rm -f conftest.$ac_objext
27802 if { (ac_try="$ac_compile"
27803 case "(($ac_try" in
27804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27805   *) ac_try_echo=$ac_try;;
27806 esac
27807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27808 $as_echo "$ac_try_echo") >&5
27809   (eval "$ac_compile") 2>conftest.er1
27810   ac_status=$?
27811   grep -v '^ *+' conftest.er1 >conftest.err
27812   rm -f conftest.er1
27813   cat conftest.err >&5
27814   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27815   (exit $ac_status); } && {
27816          test -z "$ac_c_werror_flag" ||
27817          test ! -s conftest.err
27818        } && test -s conftest.$ac_objext; then
27819   cat >conftest.$ac_ext <<_ACEOF
27820 /* confdefs.h.  */
27821 _ACEOF
27822 cat confdefs.h >>conftest.$ac_ext
27823 cat >>conftest.$ac_ext <<_ACEOF
27824 /* end confdefs.h.  */
27825 #include <stdio.h>
27826 #ifdef HAVE_SUPPORTDEFS_H
27827 #include <SupportDefs.h>
27828 #endif
27829
27830 int
27831 main ()
27832 {
27833 if (sizeof ((int64)))
27834           return 0;
27835   ;
27836   return 0;
27837 }
27838 _ACEOF
27839 rm -f conftest.$ac_objext
27840 if { (ac_try="$ac_compile"
27841 case "(($ac_try" in
27842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27843   *) ac_try_echo=$ac_try;;
27844 esac
27845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27846 $as_echo "$ac_try_echo") >&5
27847   (eval "$ac_compile") 2>conftest.er1
27848   ac_status=$?
27849   grep -v '^ *+' conftest.er1 >conftest.err
27850   rm -f conftest.er1
27851   cat conftest.err >&5
27852   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27853   (exit $ac_status); } && {
27854          test -z "$ac_c_werror_flag" ||
27855          test ! -s conftest.err
27856        } && test -s conftest.$ac_objext; then
27857   :
27858 else
27859   $as_echo "$as_me: failed program was:" >&5
27860 sed 's/^/| /' conftest.$ac_ext >&5
27861
27862         ac_cv_type_int64=yes
27863 fi
27864
27865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27866 else
27867   $as_echo "$as_me: failed program was:" >&5
27868 sed 's/^/| /' conftest.$ac_ext >&5
27869
27870
27871 fi
27872
27873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27874 fi
27875 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
27876 $as_echo "$ac_cv_type_int64" >&6; }
27877 if test "x$ac_cv_type_int64" = x""yes; then
27878
27879 cat >>confdefs.h <<_ACEOF
27880 #define HAVE_INT64 1
27881 _ACEOF
27882
27883
27884 fi
27885 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
27886 $as_echo_n "checking for uint64... " >&6; }
27887 if test "${ac_cv_type_uint64+set}" = set; then
27888   $as_echo_n "(cached) " >&6
27889 else
27890   ac_cv_type_uint64=no
27891 cat >conftest.$ac_ext <<_ACEOF
27892 /* confdefs.h.  */
27893 _ACEOF
27894 cat confdefs.h >>conftest.$ac_ext
27895 cat >>conftest.$ac_ext <<_ACEOF
27896 /* end confdefs.h.  */
27897 #include <stdio.h>
27898 #ifdef HAVE_SUPPORTDEFS_H
27899 #include <SupportDefs.h>
27900 #endif
27901
27902 int
27903 main ()
27904 {
27905 if (sizeof (uint64))
27906        return 0;
27907   ;
27908   return 0;
27909 }
27910 _ACEOF
27911 rm -f conftest.$ac_objext
27912 if { (ac_try="$ac_compile"
27913 case "(($ac_try" in
27914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27915   *) ac_try_echo=$ac_try;;
27916 esac
27917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27918 $as_echo "$ac_try_echo") >&5
27919   (eval "$ac_compile") 2>conftest.er1
27920   ac_status=$?
27921   grep -v '^ *+' conftest.er1 >conftest.err
27922   rm -f conftest.er1
27923   cat conftest.err >&5
27924   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27925   (exit $ac_status); } && {
27926          test -z "$ac_c_werror_flag" ||
27927          test ! -s conftest.err
27928        } && test -s conftest.$ac_objext; then
27929   cat >conftest.$ac_ext <<_ACEOF
27930 /* confdefs.h.  */
27931 _ACEOF
27932 cat confdefs.h >>conftest.$ac_ext
27933 cat >>conftest.$ac_ext <<_ACEOF
27934 /* end confdefs.h.  */
27935 #include <stdio.h>
27936 #ifdef HAVE_SUPPORTDEFS_H
27937 #include <SupportDefs.h>
27938 #endif
27939
27940 int
27941 main ()
27942 {
27943 if (sizeof ((uint64)))
27944           return 0;
27945   ;
27946   return 0;
27947 }
27948 _ACEOF
27949 rm -f conftest.$ac_objext
27950 if { (ac_try="$ac_compile"
27951 case "(($ac_try" in
27952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27953   *) ac_try_echo=$ac_try;;
27954 esac
27955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27956 $as_echo "$ac_try_echo") >&5
27957   (eval "$ac_compile") 2>conftest.er1
27958   ac_status=$?
27959   grep -v '^ *+' conftest.er1 >conftest.err
27960   rm -f conftest.er1
27961   cat conftest.err >&5
27962   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963   (exit $ac_status); } && {
27964          test -z "$ac_c_werror_flag" ||
27965          test ! -s conftest.err
27966        } && test -s conftest.$ac_objext; then
27967   :
27968 else
27969   $as_echo "$as_me: failed program was:" >&5
27970 sed 's/^/| /' conftest.$ac_ext >&5
27971
27972         ac_cv_type_uint64=yes
27973 fi
27974
27975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27976 else
27977   $as_echo "$as_me: failed program was:" >&5
27978 sed 's/^/| /' conftest.$ac_ext >&5
27979
27980
27981 fi
27982
27983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27984 fi
27985 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
27986 $as_echo "$ac_cv_type_uint64" >&6; }
27987 if test "x$ac_cv_type_uint64" = x""yes; then
27988
27989 cat >>confdefs.h <<_ACEOF
27990 #define HAVE_UINT64 1
27991 _ACEOF
27992
27993
27994 fi
27995
27996
27997 # We also check for sig_atomic_t, which *should* be defined per ANSI
27998 # C, but is missing on some old platforms.
27999 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
28000 $as_echo_n "checking for sig_atomic_t... " >&6; }
28001 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
28002   $as_echo_n "(cached) " >&6
28003 else
28004   ac_cv_type_sig_atomic_t=no
28005 cat >conftest.$ac_ext <<_ACEOF
28006 /* confdefs.h.  */
28007 _ACEOF
28008 cat confdefs.h >>conftest.$ac_ext
28009 cat >>conftest.$ac_ext <<_ACEOF
28010 /* end confdefs.h.  */
28011 #include <signal.h>
28012
28013 int
28014 main ()
28015 {
28016 if (sizeof (sig_atomic_t))
28017        return 0;
28018   ;
28019   return 0;
28020 }
28021 _ACEOF
28022 rm -f conftest.$ac_objext
28023 if { (ac_try="$ac_compile"
28024 case "(($ac_try" in
28025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28026   *) ac_try_echo=$ac_try;;
28027 esac
28028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28029 $as_echo "$ac_try_echo") >&5
28030   (eval "$ac_compile") 2>conftest.er1
28031   ac_status=$?
28032   grep -v '^ *+' conftest.er1 >conftest.err
28033   rm -f conftest.er1
28034   cat conftest.err >&5
28035   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036   (exit $ac_status); } && {
28037          test -z "$ac_c_werror_flag" ||
28038          test ! -s conftest.err
28039        } && test -s conftest.$ac_objext; then
28040   cat >conftest.$ac_ext <<_ACEOF
28041 /* confdefs.h.  */
28042 _ACEOF
28043 cat confdefs.h >>conftest.$ac_ext
28044 cat >>conftest.$ac_ext <<_ACEOF
28045 /* end confdefs.h.  */
28046 #include <signal.h>
28047
28048 int
28049 main ()
28050 {
28051 if (sizeof ((sig_atomic_t)))
28052           return 0;
28053   ;
28054   return 0;
28055 }
28056 _ACEOF
28057 rm -f conftest.$ac_objext
28058 if { (ac_try="$ac_compile"
28059 case "(($ac_try" in
28060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28061   *) ac_try_echo=$ac_try;;
28062 esac
28063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28064 $as_echo "$ac_try_echo") >&5
28065   (eval "$ac_compile") 2>conftest.er1
28066   ac_status=$?
28067   grep -v '^ *+' conftest.er1 >conftest.err
28068   rm -f conftest.er1
28069   cat conftest.err >&5
28070   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28071   (exit $ac_status); } && {
28072          test -z "$ac_c_werror_flag" ||
28073          test ! -s conftest.err
28074        } && test -s conftest.$ac_objext; then
28075   :
28076 else
28077   $as_echo "$as_me: failed program was:" >&5
28078 sed 's/^/| /' conftest.$ac_ext >&5
28079
28080         ac_cv_type_sig_atomic_t=yes
28081 fi
28082
28083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28084 else
28085   $as_echo "$as_me: failed program was:" >&5
28086 sed 's/^/| /' conftest.$ac_ext >&5
28087
28088
28089 fi
28090
28091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28092 fi
28093 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
28094 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
28095 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
28096
28097 cat >>confdefs.h <<_ACEOF
28098 #define HAVE_SIG_ATOMIC_T 1
28099 _ACEOF
28100
28101
28102 fi
28103
28104
28105
28106 if test "$PORTNAME" != "win32"
28107 then
28108 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
28109 $as_echo_n "checking for POSIX signal interface... " >&6; }
28110 if test "${pgac_cv_func_posix_signals+set}" = set; then
28111   $as_echo_n "(cached) " >&6
28112 else
28113   cat >conftest.$ac_ext <<_ACEOF
28114 /* confdefs.h.  */
28115 _ACEOF
28116 cat confdefs.h >>conftest.$ac_ext
28117 cat >>conftest.$ac_ext <<_ACEOF
28118 /* end confdefs.h.  */
28119 #include <signal.h>
28120
28121 int
28122 main ()
28123 {
28124 struct sigaction act, oact;
28125 sigemptyset(&act.sa_mask);
28126 act.sa_flags = SA_RESTART;
28127 sigaction(0, &act, &oact);
28128   ;
28129   return 0;
28130 }
28131 _ACEOF
28132 rm -f conftest.$ac_objext conftest$ac_exeext
28133 if { (ac_try="$ac_link"
28134 case "(($ac_try" in
28135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28136   *) ac_try_echo=$ac_try;;
28137 esac
28138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28139 $as_echo "$ac_try_echo") >&5
28140   (eval "$ac_link") 2>conftest.er1
28141   ac_status=$?
28142   grep -v '^ *+' conftest.er1 >conftest.err
28143   rm -f conftest.er1
28144   cat conftest.err >&5
28145   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28146   (exit $ac_status); } && {
28147          test -z "$ac_c_werror_flag" ||
28148          test ! -s conftest.err
28149        } && test -s conftest$ac_exeext && {
28150          test "$cross_compiling" = yes ||
28151          $as_test_x conftest$ac_exeext
28152        }; then
28153   pgac_cv_func_posix_signals=yes
28154 else
28155   $as_echo "$as_me: failed program was:" >&5
28156 sed 's/^/| /' conftest.$ac_ext >&5
28157
28158         pgac_cv_func_posix_signals=no
28159 fi
28160
28161 rm -rf conftest.dSYM
28162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28163       conftest$ac_exeext conftest.$ac_ext
28164 fi
28165 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
28166 $as_echo "$pgac_cv_func_posix_signals" >&6; }
28167 if test x"$pgac_cv_func_posix_signals" = xyes ; then
28168
28169 cat >>confdefs.h <<\_ACEOF
28170 #define HAVE_POSIX_SIGNALS /**/
28171 _ACEOF
28172
28173 fi
28174 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
28175
28176 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
28177   { { $as_echo "$as_me:$LINENO: error:
28178 Thread-safety requires POSIX signals, which are not supported by this
28179 operating system;  use --disable-thread-safety to disable thread safety." >&5
28180 $as_echo "$as_me: error:
28181 Thread-safety requires POSIX signals, which are not supported by this
28182 operating system;  use --disable-thread-safety to disable thread safety." >&2;}
28183    { (exit 1); exit 1; }; }
28184 fi
28185 fi
28186
28187 # SunOS doesn't handle negative byte comparisons properly with +/- return
28188 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
28189 $as_echo_n "checking for working memcmp... " >&6; }
28190 if test "${ac_cv_func_memcmp_working+set}" = set; then
28191   $as_echo_n "(cached) " >&6
28192 else
28193   if test "$cross_compiling" = yes; then
28194   ac_cv_func_memcmp_working=no
28195 else
28196   cat >conftest.$ac_ext <<_ACEOF
28197 /* confdefs.h.  */
28198 _ACEOF
28199 cat confdefs.h >>conftest.$ac_ext
28200 cat >>conftest.$ac_ext <<_ACEOF
28201 /* end confdefs.h.  */
28202 $ac_includes_default
28203 int
28204 main ()
28205 {
28206
28207   /* Some versions of memcmp are not 8-bit clean.  */
28208   char c0 = '\100', c1 = '\200', c2 = '\201';
28209   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
28210     return 1;
28211
28212   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
28213      or more and with at least one buffer not starting on a 4-byte boundary.
28214      William Lewis provided this test program.   */
28215   {
28216     char foo[21];
28217     char bar[21];
28218     int i;
28219     for (i = 0; i < 4; i++)
28220       {
28221         char *a = foo + i;
28222         char *b = bar + i;
28223         strcpy (a, "--------01111111");
28224         strcpy (b, "--------10000000");
28225         if (memcmp (a, b, 16) >= 0)
28226           return 1;
28227       }
28228     return 0;
28229   }
28230
28231   ;
28232   return 0;
28233 }
28234 _ACEOF
28235 rm -f conftest$ac_exeext
28236 if { (ac_try="$ac_link"
28237 case "(($ac_try" in
28238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28239   *) ac_try_echo=$ac_try;;
28240 esac
28241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28242 $as_echo "$ac_try_echo") >&5
28243   (eval "$ac_link") 2>&5
28244   ac_status=$?
28245   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28246   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28247   { (case "(($ac_try" in
28248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28249   *) ac_try_echo=$ac_try;;
28250 esac
28251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28252 $as_echo "$ac_try_echo") >&5
28253   (eval "$ac_try") 2>&5
28254   ac_status=$?
28255   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28256   (exit $ac_status); }; }; then
28257   ac_cv_func_memcmp_working=yes
28258 else
28259   $as_echo "$as_me: program exited with status $ac_status" >&5
28260 $as_echo "$as_me: failed program was:" >&5
28261 sed 's/^/| /' conftest.$ac_ext >&5
28262
28263 ( exit $ac_status )
28264 ac_cv_func_memcmp_working=no
28265 fi
28266 rm -rf conftest.dSYM
28267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28268 fi
28269
28270
28271 fi
28272 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
28273 $as_echo "$ac_cv_func_memcmp_working" >&6; }
28274 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
28275   *" memcmp.$ac_objext "* ) ;;
28276   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
28277  ;;
28278 esac
28279
28280
28281
28282
28283 # Select semaphore implementation type.
28284 if test "$PORTNAME" != "win32"; then
28285   if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
28286
28287 cat >>confdefs.h <<\_ACEOF
28288 #define USE_NAMED_POSIX_SEMAPHORES 1
28289 _ACEOF
28290
28291     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28292   else
28293     if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
28294
28295 cat >>confdefs.h <<\_ACEOF
28296 #define USE_UNNAMED_POSIX_SEMAPHORES 1
28297 _ACEOF
28298
28299       SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28300     else
28301
28302 cat >>confdefs.h <<\_ACEOF
28303 #define USE_SYSV_SEMAPHORES 1
28304 _ACEOF
28305
28306       SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
28307     fi
28308   fi
28309 else
28310
28311 cat >>confdefs.h <<\_ACEOF
28312 #define USE_WIN32_SEMAPHORES 1
28313 _ACEOF
28314
28315   SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
28316 fi
28317
28318
28319 # Select shared-memory implementation type.
28320 if test "$PORTNAME" != "win32"; then
28321
28322 cat >>confdefs.h <<\_ACEOF
28323 #define USE_SYSV_SHARED_MEMORY 1
28324 _ACEOF
28325
28326   SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
28327 else
28328
28329 cat >>confdefs.h <<\_ACEOF
28330 #define USE_WIN32_SHARED_MEMORY 1
28331 _ACEOF
28332
28333   SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
28334 fi
28335
28336 # Select latch implementation type.
28337 if test "$PORTNAME" != "win32"; then
28338   LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
28339 else
28340   LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
28341 fi
28342
28343 # If not set in template file, set bytes to use libc memset()
28344 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
28345   MEMSET_LOOP_LIMIT=1024
28346 fi
28347
28348 cat >>confdefs.h <<_ACEOF
28349 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
28350 _ACEOF
28351
28352
28353
28354 if test "$enable_nls" = yes ; then
28355
28356   { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
28357 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
28358 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28359   $as_echo_n "(cached) " >&6
28360 else
28361   ac_func_search_save_LIBS=$LIBS
28362 cat >conftest.$ac_ext <<_ACEOF
28363 /* confdefs.h.  */
28364 _ACEOF
28365 cat confdefs.h >>conftest.$ac_ext
28366 cat >>conftest.$ac_ext <<_ACEOF
28367 /* end confdefs.h.  */
28368
28369 /* Override any GCC internal prototype to avoid an error.
28370    Use char because int might match the return type of a GCC
28371    builtin and then its argument prototype would still apply.  */
28372 #ifdef __cplusplus
28373 extern "C"
28374 #endif
28375 char bind_textdomain_codeset ();
28376 int
28377 main ()
28378 {
28379 return bind_textdomain_codeset ();
28380   ;
28381   return 0;
28382 }
28383 _ACEOF
28384 for ac_lib in '' intl; do
28385   if test -z "$ac_lib"; then
28386     ac_res="none required"
28387   else
28388     ac_res=-l$ac_lib
28389     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28390   fi
28391   rm -f conftest.$ac_objext conftest$ac_exeext
28392 if { (ac_try="$ac_link"
28393 case "(($ac_try" in
28394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28395   *) ac_try_echo=$ac_try;;
28396 esac
28397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28398 $as_echo "$ac_try_echo") >&5
28399   (eval "$ac_link") 2>conftest.er1
28400   ac_status=$?
28401   grep -v '^ *+' conftest.er1 >conftest.err
28402   rm -f conftest.er1
28403   cat conftest.err >&5
28404   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28405   (exit $ac_status); } && {
28406          test -z "$ac_c_werror_flag" ||
28407          test ! -s conftest.err
28408        } && test -s conftest$ac_exeext && {
28409          test "$cross_compiling" = yes ||
28410          $as_test_x conftest$ac_exeext
28411        }; then
28412   ac_cv_search_bind_textdomain_codeset=$ac_res
28413 else
28414   $as_echo "$as_me: failed program was:" >&5
28415 sed 's/^/| /' conftest.$ac_ext >&5
28416
28417
28418 fi
28419
28420 rm -rf conftest.dSYM
28421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28422       conftest$ac_exeext
28423   if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28424   break
28425 fi
28426 done
28427 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28428   :
28429 else
28430   ac_cv_search_bind_textdomain_codeset=no
28431 fi
28432 rm conftest.$ac_ext
28433 LIBS=$ac_func_search_save_LIBS
28434 fi
28435 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
28436 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
28437 ac_res=$ac_cv_search_bind_textdomain_codeset
28438 if test "$ac_res" != no; then
28439   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28440
28441 else
28442   { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
28443 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
28444    { (exit 1); exit 1; }; }
28445 fi
28446
28447   if test "${ac_cv_header_libintl_h+set}" = set; then
28448   { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28449 $as_echo_n "checking for libintl.h... " >&6; }
28450 if test "${ac_cv_header_libintl_h+set}" = set; then
28451   $as_echo_n "(cached) " >&6
28452 fi
28453 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28454 $as_echo "$ac_cv_header_libintl_h" >&6; }
28455 else
28456   # Is the header compilable?
28457 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
28458 $as_echo_n "checking libintl.h usability... " >&6; }
28459 cat >conftest.$ac_ext <<_ACEOF
28460 /* confdefs.h.  */
28461 _ACEOF
28462 cat confdefs.h >>conftest.$ac_ext
28463 cat >>conftest.$ac_ext <<_ACEOF
28464 /* end confdefs.h.  */
28465 $ac_includes_default
28466 #include <libintl.h>
28467 _ACEOF
28468 rm -f conftest.$ac_objext
28469 if { (ac_try="$ac_compile"
28470 case "(($ac_try" in
28471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28472   *) ac_try_echo=$ac_try;;
28473 esac
28474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28475 $as_echo "$ac_try_echo") >&5
28476   (eval "$ac_compile") 2>conftest.er1
28477   ac_status=$?
28478   grep -v '^ *+' conftest.er1 >conftest.err
28479   rm -f conftest.er1
28480   cat conftest.err >&5
28481   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28482   (exit $ac_status); } && {
28483          test -z "$ac_c_werror_flag" ||
28484          test ! -s conftest.err
28485        } && test -s conftest.$ac_objext; then
28486   ac_header_compiler=yes
28487 else
28488   $as_echo "$as_me: failed program was:" >&5
28489 sed 's/^/| /' conftest.$ac_ext >&5
28490
28491         ac_header_compiler=no
28492 fi
28493
28494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28495 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28496 $as_echo "$ac_header_compiler" >&6; }
28497
28498 # Is the header present?
28499 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
28500 $as_echo_n "checking libintl.h presence... " >&6; }
28501 cat >conftest.$ac_ext <<_ACEOF
28502 /* confdefs.h.  */
28503 _ACEOF
28504 cat confdefs.h >>conftest.$ac_ext
28505 cat >>conftest.$ac_ext <<_ACEOF
28506 /* end confdefs.h.  */
28507 #include <libintl.h>
28508 _ACEOF
28509 if { (ac_try="$ac_cpp conftest.$ac_ext"
28510 case "(($ac_try" in
28511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28512   *) ac_try_echo=$ac_try;;
28513 esac
28514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28515 $as_echo "$ac_try_echo") >&5
28516   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28517   ac_status=$?
28518   grep -v '^ *+' conftest.er1 >conftest.err
28519   rm -f conftest.er1
28520   cat conftest.err >&5
28521   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28522   (exit $ac_status); } >/dev/null && {
28523          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28524          test ! -s conftest.err
28525        }; then
28526   ac_header_preproc=yes
28527 else
28528   $as_echo "$as_me: failed program was:" >&5
28529 sed 's/^/| /' conftest.$ac_ext >&5
28530
28531   ac_header_preproc=no
28532 fi
28533
28534 rm -f conftest.err conftest.$ac_ext
28535 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28536 $as_echo "$ac_header_preproc" >&6; }
28537
28538 # So?  What about this header?
28539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28540   yes:no: )
28541     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28542 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28543     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
28544 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
28545     ac_header_preproc=yes
28546     ;;
28547   no:yes:* )
28548     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
28549 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
28550     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
28551 $as_echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
28552     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
28553 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
28554     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
28555 $as_echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28556     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
28557 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
28558     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
28559 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
28560     ( cat <<\_ASBOX
28561 ## ---------------------------------------- ##
28562 ## Report this to pgsql-bugs@postgresql.org ##
28563 ## ---------------------------------------- ##
28564 _ASBOX
28565      ) | sed "s/^/$as_me: WARNING:     /" >&2
28566     ;;
28567 esac
28568 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28569 $as_echo_n "checking for libintl.h... " >&6; }
28570 if test "${ac_cv_header_libintl_h+set}" = set; then
28571   $as_echo_n "(cached) " >&6
28572 else
28573   ac_cv_header_libintl_h=$ac_header_preproc
28574 fi
28575 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28576 $as_echo "$ac_cv_header_libintl_h" >&6; }
28577
28578 fi
28579 if test "x$ac_cv_header_libintl_h" = x""yes; then
28580   :
28581 else
28582   { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
28583 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
28584    { (exit 1); exit 1; }; }
28585 fi
28586
28587
28588   for ac_prog in msgfmt
28589 do
28590   # Extract the first word of "$ac_prog", so it can be a program name with args.
28591 set dummy $ac_prog; ac_word=$2
28592 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28593 $as_echo_n "checking for $ac_word... " >&6; }
28594 if test "${ac_cv_prog_MSGFMT+set}" = set; then
28595   $as_echo_n "(cached) " >&6
28596 else
28597   if test -n "$MSGFMT"; then
28598   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
28599 else
28600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28601 for as_dir in $PATH
28602 do
28603   IFS=$as_save_IFS
28604   test -z "$as_dir" && as_dir=.
28605   for ac_exec_ext in '' $ac_executable_extensions; do
28606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28607     ac_cv_prog_MSGFMT="$ac_prog"
28608     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28609     break 2
28610   fi
28611 done
28612 done
28613 IFS=$as_save_IFS
28614
28615 fi
28616 fi
28617 MSGFMT=$ac_cv_prog_MSGFMT
28618 if test -n "$MSGFMT"; then
28619   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
28620 $as_echo "$MSGFMT" >&6; }
28621 else
28622   { $as_echo "$as_me:$LINENO: result: no" >&5
28623 $as_echo "no" >&6; }
28624 fi
28625
28626
28627   test -n "$MSGFMT" && break
28628 done
28629
28630   if test -z "$MSGFMT"; then
28631     { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
28632 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
28633    { (exit 1); exit 1; }; }
28634   fi
28635   for ac_prog in msgmerge
28636 do
28637   # Extract the first word of "$ac_prog", so it can be a program name with args.
28638 set dummy $ac_prog; ac_word=$2
28639 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28640 $as_echo_n "checking for $ac_word... " >&6; }
28641 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
28642   $as_echo_n "(cached) " >&6
28643 else
28644   if test -n "$MSGMERGE"; then
28645   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
28646 else
28647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28648 for as_dir in $PATH
28649 do
28650   IFS=$as_save_IFS
28651   test -z "$as_dir" && as_dir=.
28652   for ac_exec_ext in '' $ac_executable_extensions; do
28653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28654     ac_cv_prog_MSGMERGE="$ac_prog"
28655     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28656     break 2
28657   fi
28658 done
28659 done
28660 IFS=$as_save_IFS
28661
28662 fi
28663 fi
28664 MSGMERGE=$ac_cv_prog_MSGMERGE
28665 if test -n "$MSGMERGE"; then
28666   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
28667 $as_echo "$MSGMERGE" >&6; }
28668 else
28669   { $as_echo "$as_me:$LINENO: result: no" >&5
28670 $as_echo "no" >&6; }
28671 fi
28672
28673
28674   test -n "$MSGMERGE" && break
28675 done
28676
28677   for ac_prog in xgettext
28678 do
28679   # Extract the first word of "$ac_prog", so it can be a program name with args.
28680 set dummy $ac_prog; ac_word=$2
28681 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28682 $as_echo_n "checking for $ac_word... " >&6; }
28683 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
28684   $as_echo_n "(cached) " >&6
28685 else
28686   if test -n "$XGETTEXT"; then
28687   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
28688 else
28689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28690 for as_dir in $PATH
28691 do
28692   IFS=$as_save_IFS
28693   test -z "$as_dir" && as_dir=.
28694   for ac_exec_ext in '' $ac_executable_extensions; do
28695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28696     ac_cv_prog_XGETTEXT="$ac_prog"
28697     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28698     break 2
28699   fi
28700 done
28701 done
28702 IFS=$as_save_IFS
28703
28704 fi
28705 fi
28706 XGETTEXT=$ac_cv_prog_XGETTEXT
28707 if test -n "$XGETTEXT"; then
28708   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
28709 $as_echo "$XGETTEXT" >&6; }
28710 else
28711   { $as_echo "$as_me:$LINENO: result: no" >&5
28712 $as_echo "no" >&6; }
28713 fi
28714
28715
28716   test -n "$XGETTEXT" && break
28717 done
28718
28719
28720 fi
28721
28722 # Check for Tcl configuration script tclConfig.sh
28723 if test "$with_tcl" = yes; then
28724     for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
28725 do
28726   # Extract the first word of "$ac_prog", so it can be a program name with args.
28727 set dummy $ac_prog; ac_word=$2
28728 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28729 $as_echo_n "checking for $ac_word... " >&6; }
28730 if test "${ac_cv_path_TCLSH+set}" = set; then
28731   $as_echo_n "(cached) " >&6
28732 else
28733   case $TCLSH in
28734   [\\/]* | ?:[\\/]*)
28735   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
28736   ;;
28737   *)
28738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28739 for as_dir in $PATH
28740 do
28741   IFS=$as_save_IFS
28742   test -z "$as_dir" && as_dir=.
28743   for ac_exec_ext in '' $ac_executable_extensions; do
28744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28745     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
28746     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28747     break 2
28748   fi
28749 done
28750 done
28751 IFS=$as_save_IFS
28752
28753   ;;
28754 esac
28755 fi
28756 TCLSH=$ac_cv_path_TCLSH
28757 if test -n "$TCLSH"; then
28758   { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
28759 $as_echo "$TCLSH" >&6; }
28760 else
28761   { $as_echo "$as_me:$LINENO: result: no" >&5
28762 $as_echo "no" >&6; }
28763 fi
28764
28765
28766   test -n "$TCLSH" && break
28767 done
28768
28769 if test x"$TCLSH" = x""; then
28770   { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
28771 $as_echo "$as_me: error: Tcl shell not found" >&2;}
28772    { (exit 1); exit 1; }; }
28773 fi
28774
28775 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
28776 $as_echo_n "checking for tclConfig.sh... " >&6; }
28777 # Let user override test
28778 if test -z "$TCL_CONFIG_SH"; then
28779     pgac_test_dirs="$with_tclconfig"
28780
28781     set X $pgac_test_dirs; shift
28782     if test $# -eq 0; then
28783         test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
28784 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
28785    { (exit 1); exit 1; }; }
28786         set X `echo 'puts $auto_path' | $TCLSH`; shift
28787     fi
28788
28789     for pgac_dir do
28790         if test -r "$pgac_dir/tclConfig.sh"; then
28791             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
28792             break
28793         fi
28794     done
28795 fi
28796
28797 if test -z "$TCL_CONFIG_SH"; then
28798     { $as_echo "$as_me:$LINENO: result: no" >&5
28799 $as_echo "no" >&6; }
28800     { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
28801 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
28802    { (exit 1); exit 1; }; }
28803 else
28804     { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
28805 $as_echo "$TCL_CONFIG_SH" >&6; }
28806 fi
28807
28808
28809
28810     . "$TCL_CONFIG_SH"
28811 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
28812 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
28813 eval TCL_LIBS=\"$TCL_LIBS\"
28814 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
28815 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
28816
28817         # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
28818     ac_save_CPPFLAGS=$CPPFLAGS
28819     CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
28820     if test "${ac_cv_header_tcl_h+set}" = set; then
28821   { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28822 $as_echo_n "checking for tcl.h... " >&6; }
28823 if test "${ac_cv_header_tcl_h+set}" = set; then
28824   $as_echo_n "(cached) " >&6
28825 fi
28826 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28827 $as_echo "$ac_cv_header_tcl_h" >&6; }
28828 else
28829   # Is the header compilable?
28830 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
28831 $as_echo_n "checking tcl.h usability... " >&6; }
28832 cat >conftest.$ac_ext <<_ACEOF
28833 /* confdefs.h.  */
28834 _ACEOF
28835 cat confdefs.h >>conftest.$ac_ext
28836 cat >>conftest.$ac_ext <<_ACEOF
28837 /* end confdefs.h.  */
28838 $ac_includes_default
28839 #include <tcl.h>
28840 _ACEOF
28841 rm -f conftest.$ac_objext
28842 if { (ac_try="$ac_compile"
28843 case "(($ac_try" in
28844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28845   *) ac_try_echo=$ac_try;;
28846 esac
28847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28848 $as_echo "$ac_try_echo") >&5
28849   (eval "$ac_compile") 2>conftest.er1
28850   ac_status=$?
28851   grep -v '^ *+' conftest.er1 >conftest.err
28852   rm -f conftest.er1
28853   cat conftest.err >&5
28854   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28855   (exit $ac_status); } && {
28856          test -z "$ac_c_werror_flag" ||
28857          test ! -s conftest.err
28858        } && test -s conftest.$ac_objext; then
28859   ac_header_compiler=yes
28860 else
28861   $as_echo "$as_me: failed program was:" >&5
28862 sed 's/^/| /' conftest.$ac_ext >&5
28863
28864         ac_header_compiler=no
28865 fi
28866
28867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28868 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28869 $as_echo "$ac_header_compiler" >&6; }
28870
28871 # Is the header present?
28872 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
28873 $as_echo_n "checking tcl.h presence... " >&6; }
28874 cat >conftest.$ac_ext <<_ACEOF
28875 /* confdefs.h.  */
28876 _ACEOF
28877 cat confdefs.h >>conftest.$ac_ext
28878 cat >>conftest.$ac_ext <<_ACEOF
28879 /* end confdefs.h.  */
28880 #include <tcl.h>
28881 _ACEOF
28882 if { (ac_try="$ac_cpp conftest.$ac_ext"
28883 case "(($ac_try" in
28884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28885   *) ac_try_echo=$ac_try;;
28886 esac
28887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28888 $as_echo "$ac_try_echo") >&5
28889   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28890   ac_status=$?
28891   grep -v '^ *+' conftest.er1 >conftest.err
28892   rm -f conftest.er1
28893   cat conftest.err >&5
28894   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28895   (exit $ac_status); } >/dev/null && {
28896          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28897          test ! -s conftest.err
28898        }; then
28899   ac_header_preproc=yes
28900 else
28901   $as_echo "$as_me: failed program was:" >&5
28902 sed 's/^/| /' conftest.$ac_ext >&5
28903
28904   ac_header_preproc=no
28905 fi
28906
28907 rm -f conftest.err conftest.$ac_ext
28908 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28909 $as_echo "$ac_header_preproc" >&6; }
28910
28911 # So?  What about this header?
28912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28913   yes:no: )
28914     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28915 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28916     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
28917 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
28918     ac_header_preproc=yes
28919     ;;
28920   no:yes:* )
28921     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
28922 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
28923     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     check for missing prerequisite headers?" >&5
28924 $as_echo "$as_me: WARNING: tcl.h:     check for missing prerequisite headers?" >&2;}
28925     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
28926 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
28927     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
28928 $as_echo "$as_me: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28929     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
28930 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
28931     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
28932 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
28933     ( cat <<\_ASBOX
28934 ## ---------------------------------------- ##
28935 ## Report this to pgsql-bugs@postgresql.org ##
28936 ## ---------------------------------------- ##
28937 _ASBOX
28938      ) | sed "s/^/$as_me: WARNING:     /" >&2
28939     ;;
28940 esac
28941 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28942 $as_echo_n "checking for tcl.h... " >&6; }
28943 if test "${ac_cv_header_tcl_h+set}" = set; then
28944   $as_echo_n "(cached) " >&6
28945 else
28946   ac_cv_header_tcl_h=$ac_header_preproc
28947 fi
28948 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28949 $as_echo "$ac_cv_header_tcl_h" >&6; }
28950
28951 fi
28952 if test "x$ac_cv_header_tcl_h" = x""yes; then
28953   :
28954 else
28955   { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
28956 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
28957    { (exit 1); exit 1; }; }
28958 fi
28959
28960
28961     CPPFLAGS=$ac_save_CPPFLAGS
28962 fi
28963
28964 # check for <Python.h>
28965 if test "$with_python" = yes; then
28966   ac_save_CPPFLAGS=$CPPFLAGS
28967   CPPFLAGS="$python_includespec $CPPFLAGS"
28968   if test "${ac_cv_header_Python_h+set}" = set; then
28969   { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
28970 $as_echo_n "checking for Python.h... " >&6; }
28971 if test "${ac_cv_header_Python_h+set}" = set; then
28972   $as_echo_n "(cached) " >&6
28973 fi
28974 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
28975 $as_echo "$ac_cv_header_Python_h" >&6; }
28976 else
28977   # Is the header compilable?
28978 { $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
28979 $as_echo_n "checking Python.h usability... " >&6; }
28980 cat >conftest.$ac_ext <<_ACEOF
28981 /* confdefs.h.  */
28982 _ACEOF
28983 cat confdefs.h >>conftest.$ac_ext
28984 cat >>conftest.$ac_ext <<_ACEOF
28985 /* end confdefs.h.  */
28986 $ac_includes_default
28987 #include <Python.h>
28988 _ACEOF
28989 rm -f conftest.$ac_objext
28990 if { (ac_try="$ac_compile"
28991 case "(($ac_try" in
28992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28993   *) ac_try_echo=$ac_try;;
28994 esac
28995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28996 $as_echo "$ac_try_echo") >&5
28997   (eval "$ac_compile") 2>conftest.er1
28998   ac_status=$?
28999   grep -v '^ *+' conftest.er1 >conftest.err
29000   rm -f conftest.er1
29001   cat conftest.err >&5
29002   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29003   (exit $ac_status); } && {
29004          test -z "$ac_c_werror_flag" ||
29005          test ! -s conftest.err
29006        } && test -s conftest.$ac_objext; then
29007   ac_header_compiler=yes
29008 else
29009   $as_echo "$as_me: failed program was:" >&5
29010 sed 's/^/| /' conftest.$ac_ext >&5
29011
29012         ac_header_compiler=no
29013 fi
29014
29015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29016 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29017 $as_echo "$ac_header_compiler" >&6; }
29018
29019 # Is the header present?
29020 { $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
29021 $as_echo_n "checking Python.h presence... " >&6; }
29022 cat >conftest.$ac_ext <<_ACEOF
29023 /* confdefs.h.  */
29024 _ACEOF
29025 cat confdefs.h >>conftest.$ac_ext
29026 cat >>conftest.$ac_ext <<_ACEOF
29027 /* end confdefs.h.  */
29028 #include <Python.h>
29029 _ACEOF
29030 if { (ac_try="$ac_cpp conftest.$ac_ext"
29031 case "(($ac_try" in
29032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29033   *) ac_try_echo=$ac_try;;
29034 esac
29035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29036 $as_echo "$ac_try_echo") >&5
29037   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29038   ac_status=$?
29039   grep -v '^ *+' conftest.er1 >conftest.err
29040   rm -f conftest.er1
29041   cat conftest.err >&5
29042   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29043   (exit $ac_status); } >/dev/null && {
29044          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29045          test ! -s conftest.err
29046        }; then
29047   ac_header_preproc=yes
29048 else
29049   $as_echo "$as_me: failed program was:" >&5
29050 sed 's/^/| /' conftest.$ac_ext >&5
29051
29052   ac_header_preproc=no
29053 fi
29054
29055 rm -f conftest.err conftest.$ac_ext
29056 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29057 $as_echo "$ac_header_preproc" >&6; }
29058
29059 # So?  What about this header?
29060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29061   yes:no: )
29062     { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
29063 $as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29064     { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
29065 $as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
29066     ac_header_preproc=yes
29067     ;;
29068   no:yes:* )
29069     { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
29070 $as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
29071     { $as_echo "$as_me:$LINENO: WARNING: Python.h:     check for missing prerequisite headers?" >&5
29072 $as_echo "$as_me: WARNING: Python.h:     check for missing prerequisite headers?" >&2;}
29073     { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
29074 $as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
29075     { $as_echo "$as_me:$LINENO: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&5
29076 $as_echo "$as_me: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29077     { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
29078 $as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
29079     { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
29080 $as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
29081     ( cat <<\_ASBOX
29082 ## ---------------------------------------- ##
29083 ## Report this to pgsql-bugs@postgresql.org ##
29084 ## ---------------------------------------- ##
29085 _ASBOX
29086      ) | sed "s/^/$as_me: WARNING:     /" >&2
29087     ;;
29088 esac
29089 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29090 $as_echo_n "checking for Python.h... " >&6; }
29091 if test "${ac_cv_header_Python_h+set}" = set; then
29092   $as_echo_n "(cached) " >&6
29093 else
29094   ac_cv_header_Python_h=$ac_header_preproc
29095 fi
29096 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29097 $as_echo "$ac_cv_header_Python_h" >&6; }
29098
29099 fi
29100 if test "x$ac_cv_header_Python_h" = x""yes; then
29101   :
29102 else
29103   { { $as_echo "$as_me:$LINENO: error: header file <Python.h> is required for Python" >&5
29104 $as_echo "$as_me: error: header file <Python.h> is required for Python" >&2;}
29105    { (exit 1); exit 1; }; }
29106 fi
29107
29108
29109   CPPFLAGS=$ac_save_CPPFLAGS
29110 fi
29111
29112 #
29113 # Check for DocBook and tools
29114 #
29115 for ac_prog in onsgmls nsgmls
29116 do
29117   # Extract the first word of "$ac_prog", so it can be a program name with args.
29118 set dummy $ac_prog; ac_word=$2
29119 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29120 $as_echo_n "checking for $ac_word... " >&6; }
29121 if test "${ac_cv_prog_NSGMLS+set}" = set; then
29122   $as_echo_n "(cached) " >&6
29123 else
29124   if test -n "$NSGMLS"; then
29125   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
29126 else
29127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29128 for as_dir in $PATH
29129 do
29130   IFS=$as_save_IFS
29131   test -z "$as_dir" && as_dir=.
29132   for ac_exec_ext in '' $ac_executable_extensions; do
29133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29134     ac_cv_prog_NSGMLS="$ac_prog"
29135     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29136     break 2
29137   fi
29138 done
29139 done
29140 IFS=$as_save_IFS
29141
29142 fi
29143 fi
29144 NSGMLS=$ac_cv_prog_NSGMLS
29145 if test -n "$NSGMLS"; then
29146   { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
29147 $as_echo "$NSGMLS" >&6; }
29148 else
29149   { $as_echo "$as_me:$LINENO: result: no" >&5
29150 $as_echo "no" >&6; }
29151 fi
29152
29153
29154   test -n "$NSGMLS" && break
29155 done
29156
29157 for ac_prog in openjade jade
29158 do
29159   # Extract the first word of "$ac_prog", so it can be a program name with args.
29160 set dummy $ac_prog; ac_word=$2
29161 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29162 $as_echo_n "checking for $ac_word... " >&6; }
29163 if test "${ac_cv_prog_JADE+set}" = set; then
29164   $as_echo_n "(cached) " >&6
29165 else
29166   if test -n "$JADE"; then
29167   ac_cv_prog_JADE="$JADE" # Let the user override the test.
29168 else
29169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29170 for as_dir in $PATH
29171 do
29172   IFS=$as_save_IFS
29173   test -z "$as_dir" && as_dir=.
29174   for ac_exec_ext in '' $ac_executable_extensions; do
29175   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29176     ac_cv_prog_JADE="$ac_prog"
29177     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29178     break 2
29179   fi
29180 done
29181 done
29182 IFS=$as_save_IFS
29183
29184 fi
29185 fi
29186 JADE=$ac_cv_prog_JADE
29187 if test -n "$JADE"; then
29188   { $as_echo "$as_me:$LINENO: result: $JADE" >&5
29189 $as_echo "$JADE" >&6; }
29190 else
29191   { $as_echo "$as_me:$LINENO: result: no" >&5
29192 $as_echo "no" >&6; }
29193 fi
29194
29195
29196   test -n "$JADE" && break
29197 done
29198
29199
29200 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
29201 $as_echo_n "checking for DocBook V4.2... " >&6; }
29202 if test "${pgac_cv_check_docbook+set}" = set; then
29203   $as_echo_n "(cached) " >&6
29204 else
29205   cat >conftest.sgml <<EOF
29206 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
29207 <book>
29208  <title>test</title>
29209  <chapter>
29210   <title>random</title>
29211    <sect1>
29212     <title>testsect</title>
29213     <para>text</para>
29214   </sect1>
29215  </chapter>
29216 </book>
29217 EOF
29218
29219 pgac_cv_check_docbook=no
29220
29221 if test -n "$NSGMLS"; then
29222   $NSGMLS -s conftest.sgml 1>&5 2>&1
29223   if test $? -eq 0; then
29224     pgac_cv_check_docbook=yes
29225   fi
29226 fi
29227 rm -f conftest.sgml
29228 fi
29229 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
29230 $as_echo "$pgac_cv_check_docbook" >&6; }
29231
29232 have_docbook=$pgac_cv_check_docbook
29233
29234
29235 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
29236 $as_echo_n "checking for DocBook stylesheets... " >&6; }
29237 if test "${pgac_cv_path_stylesheets+set}" = set; then
29238   $as_echo_n "(cached) " >&6
29239 else
29240   if test -n "$DOCBOOKSTYLE"; then
29241   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
29242 else
29243   for pgac_prefix in /usr /usr/local /opt /sw; do
29244     for pgac_infix in share lib; do
29245       for pgac_postfix in \
29246         sgml/stylesheets/nwalsh-modular \
29247         sgml/stylesheets/docbook \
29248         sgml/stylesheets/dsssl/docbook \
29249         sgml/docbook-dsssl \
29250         sgml/docbook/dsssl/modular \
29251         sgml/docbook/stylesheet/dsssl/modular \
29252         sgml/docbook/dsssl-stylesheets \
29253         sgml/dsssl/docbook-dsssl-nwalsh
29254       do
29255         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
29256         if test -r "$pgac_candidate/html/docbook.dsl" \
29257            && test -r "$pgac_candidate/print/docbook.dsl"
29258         then
29259           pgac_cv_path_stylesheets=$pgac_candidate
29260           break 3
29261         fi
29262       done
29263     done
29264   done
29265 fi
29266 fi
29267
29268 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
29269
29270 if test -n "$DOCBOOKSTYLE"; then
29271   { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
29272 $as_echo "$DOCBOOKSTYLE" >&6; }
29273 else
29274   { $as_echo "$as_me:$LINENO: result: no" >&5
29275 $as_echo "no" >&6; }
29276 fi
29277 if test -n "$DOCBOOKSTYLE"; then
29278   for ac_prog in collateindex.pl
29279 do
29280   # Extract the first word of "$ac_prog", so it can be a program name with args.
29281 set dummy $ac_prog; ac_word=$2
29282 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29283 $as_echo_n "checking for $ac_word... " >&6; }
29284 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29285   $as_echo_n "(cached) " >&6
29286 else
29287   case $COLLATEINDEX in
29288   [\\/]* | ?:[\\/]*)
29289   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29290   ;;
29291   *)
29292   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29293 for as_dir in $DOCBOOKSTYLE/bin $PATH
29294 do
29295   IFS=$as_save_IFS
29296   test -z "$as_dir" && as_dir=.
29297   for ac_exec_ext in '' $ac_executable_extensions; do
29298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29299     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29300     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29301     break 2
29302   fi
29303 done
29304 done
29305 IFS=$as_save_IFS
29306
29307   ;;
29308 esac
29309 fi
29310 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29311 if test -n "$COLLATEINDEX"; then
29312   { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29313 $as_echo "$COLLATEINDEX" >&6; }
29314 else
29315   { $as_echo "$as_me:$LINENO: result: no" >&5
29316 $as_echo "no" >&6; }
29317 fi
29318
29319
29320   test -n "$COLLATEINDEX" && break
29321 done
29322
29323 else
29324   for ac_prog in collateindex.pl
29325 do
29326   # Extract the first word of "$ac_prog", so it can be a program name with args.
29327 set dummy $ac_prog; ac_word=$2
29328 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29329 $as_echo_n "checking for $ac_word... " >&6; }
29330 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29331   $as_echo_n "(cached) " >&6
29332 else
29333   case $COLLATEINDEX in
29334   [\\/]* | ?:[\\/]*)
29335   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29336   ;;
29337   *)
29338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29339 for as_dir in $PATH
29340 do
29341   IFS=$as_save_IFS
29342   test -z "$as_dir" && as_dir=.
29343   for ac_exec_ext in '' $ac_executable_extensions; do
29344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29345     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29346     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29347     break 2
29348   fi
29349 done
29350 done
29351 IFS=$as_save_IFS
29352
29353   ;;
29354 esac
29355 fi
29356 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29357 if test -n "$COLLATEINDEX"; then
29358   { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29359 $as_echo "$COLLATEINDEX" >&6; }
29360 else
29361   { $as_echo "$as_me:$LINENO: result: no" >&5
29362 $as_echo "no" >&6; }
29363 fi
29364
29365
29366   test -n "$COLLATEINDEX" && break
29367 done
29368
29369 fi
29370 for ac_prog in xsltproc
29371 do
29372   # Extract the first word of "$ac_prog", so it can be a program name with args.
29373 set dummy $ac_prog; ac_word=$2
29374 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29375 $as_echo_n "checking for $ac_word... " >&6; }
29376 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
29377   $as_echo_n "(cached) " >&6
29378 else
29379   if test -n "$XSLTPROC"; then
29380   ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
29381 else
29382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29383 for as_dir in $PATH
29384 do
29385   IFS=$as_save_IFS
29386   test -z "$as_dir" && as_dir=.
29387   for ac_exec_ext in '' $ac_executable_extensions; do
29388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29389     ac_cv_prog_XSLTPROC="$ac_prog"
29390     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29391     break 2
29392   fi
29393 done
29394 done
29395 IFS=$as_save_IFS
29396
29397 fi
29398 fi
29399 XSLTPROC=$ac_cv_prog_XSLTPROC
29400 if test -n "$XSLTPROC"; then
29401   { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
29402 $as_echo "$XSLTPROC" >&6; }
29403 else
29404   { $as_echo "$as_me:$LINENO: result: no" >&5
29405 $as_echo "no" >&6; }
29406 fi
29407
29408
29409   test -n "$XSLTPROC" && break
29410 done
29411
29412 for ac_prog in osx sgml2xml sx
29413 do
29414   # Extract the first word of "$ac_prog", so it can be a program name with args.
29415 set dummy $ac_prog; ac_word=$2
29416 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29417 $as_echo_n "checking for $ac_word... " >&6; }
29418 if test "${ac_cv_prog_OSX+set}" = set; then
29419   $as_echo_n "(cached) " >&6
29420 else
29421   if test -n "$OSX"; then
29422   ac_cv_prog_OSX="$OSX" # Let the user override the test.
29423 else
29424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29425 for as_dir in $PATH
29426 do
29427   IFS=$as_save_IFS
29428   test -z "$as_dir" && as_dir=.
29429   for ac_exec_ext in '' $ac_executable_extensions; do
29430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29431     ac_cv_prog_OSX="$ac_prog"
29432     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29433     break 2
29434   fi
29435 done
29436 done
29437 IFS=$as_save_IFS
29438
29439 fi
29440 fi
29441 OSX=$ac_cv_prog_OSX
29442 if test -n "$OSX"; then
29443   { $as_echo "$as_me:$LINENO: result: $OSX" >&5
29444 $as_echo "$OSX" >&6; }
29445 else
29446   { $as_echo "$as_me:$LINENO: result: no" >&5
29447 $as_echo "no" >&6; }
29448 fi
29449
29450
29451   test -n "$OSX" && break
29452 done
29453
29454
29455 # Thread testing
29456
29457 # We have to run the thread test near the end so we have all our symbols
29458 # defined.  Cross compiling throws a warning.
29459 #
29460 if test "$enable_thread_safety" = yes; then
29461 if test "$PORTNAME" != "win32"
29462 then
29463 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
29464 $as_echo_n "checking thread safety of required library functions... " >&6; }
29465
29466 _CFLAGS="$CFLAGS"
29467 _LIBS="$LIBS"
29468 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
29469 LIBS="$LIBS $PTHREAD_LIBS"
29470 if test "$cross_compiling" = yes; then
29471   { $as_echo "$as_me:$LINENO: result: maybe" >&5
29472 $as_echo "maybe" >&6; }
29473   { $as_echo "$as_me:$LINENO: WARNING:
29474 *** Skipping thread test program because of cross-compile build.
29475 *** Run the program in src/test/thread on the target machine.
29476 " >&5
29477 $as_echo "$as_me: WARNING:
29478 *** Skipping thread test program because of cross-compile build.
29479 *** Run the program in src/test/thread on the target machine.
29480 " >&2;}
29481 else
29482   cat >conftest.$ac_ext <<_ACEOF
29483 /* confdefs.h.  */
29484 _ACEOF
29485 cat confdefs.h >>conftest.$ac_ext
29486 cat >>conftest.$ac_ext <<_ACEOF
29487 /* end confdefs.h.  */
29488 #include "$srcdir/src/test/thread/thread_test.c"
29489 _ACEOF
29490 rm -f conftest$ac_exeext
29491 if { (ac_try="$ac_link"
29492 case "(($ac_try" in
29493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29494   *) ac_try_echo=$ac_try;;
29495 esac
29496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29497 $as_echo "$ac_try_echo") >&5
29498   (eval "$ac_link") 2>&5
29499   ac_status=$?
29500   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29501   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29502   { (case "(($ac_try" in
29503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29504   *) ac_try_echo=$ac_try;;
29505 esac
29506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29507 $as_echo "$ac_try_echo") >&5
29508   (eval "$ac_try") 2>&5
29509   ac_status=$?
29510   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29511   (exit $ac_status); }; }; then
29512   { $as_echo "$as_me:$LINENO: result: yes" >&5
29513 $as_echo "yes" >&6; }
29514 else
29515   $as_echo "$as_me: program exited with status $ac_status" >&5
29516 $as_echo "$as_me: failed program was:" >&5
29517 sed 's/^/| /' conftest.$ac_ext >&5
29518
29519 ( exit $ac_status )
29520 { $as_echo "$as_me:$LINENO: result: no" >&5
29521 $as_echo "no" >&6; }
29522   { { $as_echo "$as_me:$LINENO: error: thread test program failed
29523 This platform is not thread-safe.  Check the file 'config.log' or compile
29524 and run src/test/thread/thread_test for the exact reason.
29525 Use --disable-thread-safety to disable thread safety." >&5
29526 $as_echo "$as_me: error: thread test program failed
29527 This platform is not thread-safe.  Check the file 'config.log' or compile
29528 and run src/test/thread/thread_test for the exact reason.
29529 Use --disable-thread-safety to disable thread safety." >&2;}
29530    { (exit 1); exit 1; }; }
29531 fi
29532 rm -rf conftest.dSYM
29533 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29534 fi
29535
29536
29537 CFLAGS="$_CFLAGS"
29538 LIBS="$_LIBS"
29539 else
29540 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
29541 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
29542 fi
29543 fi
29544
29545 # If compiler will take -Wl,--as-needed (or various platform-specific
29546 # spellings thereof) then add that to LDFLAGS.  This is much easier than
29547 # trying to filter LIBS to the minimum for each executable.
29548 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
29549 # libreadline; therefore we postpone testing it until we know what library
29550 # dependencies readline has.  The test code will try to link with $LIBS.
29551 if test "$with_readline" = yes; then
29552   link_test_func=readline
29553 else
29554   link_test_func=exit
29555 fi
29556
29557 if test "$PORTNAME" = "darwin"; then
29558   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
29559 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
29560 if test "${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+set}" = set; then
29561   $as_echo_n "(cached) " >&6
29562 else
29563   pgac_save_LDFLAGS=$LDFLAGS
29564 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
29565 if test "$cross_compiling" = yes; then
29566   pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
29567 else
29568   cat >conftest.$ac_ext <<_ACEOF
29569 /* confdefs.h.  */
29570 _ACEOF
29571 cat confdefs.h >>conftest.$ac_ext
29572 cat >>conftest.$ac_ext <<_ACEOF
29573 /* end confdefs.h.  */
29574 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29575 int
29576 main ()
29577 {
29578
29579   ;
29580   return 0;
29581 }
29582 _ACEOF
29583 rm -f conftest$ac_exeext
29584 if { (ac_try="$ac_link"
29585 case "(($ac_try" in
29586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29587   *) ac_try_echo=$ac_try;;
29588 esac
29589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29590 $as_echo "$ac_try_echo") >&5
29591   (eval "$ac_link") 2>&5
29592   ac_status=$?
29593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29594   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29595   { (case "(($ac_try" in
29596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29597   *) ac_try_echo=$ac_try;;
29598 esac
29599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29600 $as_echo "$ac_try_echo") >&5
29601   (eval "$ac_try") 2>&5
29602   ac_status=$?
29603   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29604   (exit $ac_status); }; }; then
29605   pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
29606 else
29607   $as_echo "$as_me: program exited with status $ac_status" >&5
29608 $as_echo "$as_me: failed program was:" >&5
29609 sed 's/^/| /' conftest.$ac_ext >&5
29610
29611 ( exit $ac_status )
29612 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
29613 fi
29614 rm -rf conftest.dSYM
29615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29616 fi
29617
29618
29619 LDFLAGS="$pgac_save_LDFLAGS"
29620 fi
29621 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
29622 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
29623 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
29624   LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
29625 fi
29626
29627 elif test "$PORTNAME" = "openbsd"; then
29628   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-Bdynamic" >&5
29629 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
29630 if test "${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+set}" = set; then
29631   $as_echo_n "(cached) " >&6
29632 else
29633   pgac_save_LDFLAGS=$LDFLAGS
29634 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
29635 if test "$cross_compiling" = yes; then
29636   pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
29637 else
29638   cat >conftest.$ac_ext <<_ACEOF
29639 /* confdefs.h.  */
29640 _ACEOF
29641 cat confdefs.h >>conftest.$ac_ext
29642 cat >>conftest.$ac_ext <<_ACEOF
29643 /* end confdefs.h.  */
29644 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29645 int
29646 main ()
29647 {
29648
29649   ;
29650   return 0;
29651 }
29652 _ACEOF
29653 rm -f conftest$ac_exeext
29654 if { (ac_try="$ac_link"
29655 case "(($ac_try" in
29656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29657   *) ac_try_echo=$ac_try;;
29658 esac
29659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29660 $as_echo "$ac_try_echo") >&5
29661   (eval "$ac_link") 2>&5
29662   ac_status=$?
29663   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29664   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29665   { (case "(($ac_try" in
29666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29667   *) ac_try_echo=$ac_try;;
29668 esac
29669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29670 $as_echo "$ac_try_echo") >&5
29671   (eval "$ac_try") 2>&5
29672   ac_status=$?
29673   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29674   (exit $ac_status); }; }; then
29675   pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
29676 else
29677   $as_echo "$as_me: program exited with status $ac_status" >&5
29678 $as_echo "$as_me: failed program was:" >&5
29679 sed 's/^/| /' conftest.$ac_ext >&5
29680
29681 ( exit $ac_status )
29682 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
29683 fi
29684 rm -rf conftest.dSYM
29685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29686 fi
29687
29688
29689 LDFLAGS="$pgac_save_LDFLAGS"
29690 fi
29691 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
29692 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
29693 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
29694   LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
29695 fi
29696
29697 else
29698   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,--as-needed" >&5
29699 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
29700 if test "${pgac_cv_prog_cc_ldflags__Wl___as_needed+set}" = set; then
29701   $as_echo_n "(cached) " >&6
29702 else
29703   pgac_save_LDFLAGS=$LDFLAGS
29704 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
29705 if test "$cross_compiling" = yes; then
29706   pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
29707 else
29708   cat >conftest.$ac_ext <<_ACEOF
29709 /* confdefs.h.  */
29710 _ACEOF
29711 cat confdefs.h >>conftest.$ac_ext
29712 cat >>conftest.$ac_ext <<_ACEOF
29713 /* end confdefs.h.  */
29714 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29715 int
29716 main ()
29717 {
29718
29719   ;
29720   return 0;
29721 }
29722 _ACEOF
29723 rm -f conftest$ac_exeext
29724 if { (ac_try="$ac_link"
29725 case "(($ac_try" in
29726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29727   *) ac_try_echo=$ac_try;;
29728 esac
29729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29730 $as_echo "$ac_try_echo") >&5
29731   (eval "$ac_link") 2>&5
29732   ac_status=$?
29733   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29734   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29735   { (case "(($ac_try" in
29736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29737   *) ac_try_echo=$ac_try;;
29738 esac
29739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29740 $as_echo "$ac_try_echo") >&5
29741   (eval "$ac_try") 2>&5
29742   ac_status=$?
29743   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29744   (exit $ac_status); }; }; then
29745   pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
29746 else
29747   $as_echo "$as_me: program exited with status $ac_status" >&5
29748 $as_echo "$as_me: failed program was:" >&5
29749 sed 's/^/| /' conftest.$ac_ext >&5
29750
29751 ( exit $ac_status )
29752 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
29753 fi
29754 rm -rf conftest.dSYM
29755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29756 fi
29757
29758
29759 LDFLAGS="$pgac_save_LDFLAGS"
29760 fi
29761 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
29762 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
29763 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
29764   LDFLAGS="$LDFLAGS -Wl,--as-needed"
29765 fi
29766
29767 fi
29768
29769 # Create compiler version string
29770 if test x"$GCC" = x"yes" ; then
29771   cc_string=`${CC} --version | sed q`
29772   case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
29773 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
29774   cc_string=`${CC} -V 2>&1 | sed q`
29775 else
29776   cc_string=$CC
29777 fi
29778
29779
29780 cat >>confdefs.h <<_ACEOF
29781 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
29782 _ACEOF
29783
29784
29785 # Supply a numeric version string for use by 3rd party add-ons
29786 # awk -F is a regex on some platforms, and not on others, so make "." a tab
29787 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
29788 tr '.' '        ' |
29789 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
29790
29791 cat >>confdefs.h <<_ACEOF
29792 #define PG_VERSION_NUM $PG_VERSION_NUM
29793 _ACEOF
29794
29795
29796
29797 # Begin output steps
29798
29799 { $as_echo "$as_me:$LINENO: using compiler=$cc_string" >&5
29800 $as_echo "$as_me: using compiler=$cc_string" >&6;}
29801 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
29802 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
29803 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
29804 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
29805 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
29806 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
29807
29808 # prepare build tree if outside source tree
29809 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
29810 # Note 2: /bin/pwd might be better than shell's built-in at getting
29811 #         a symlink-free name.
29812 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
29813   vpath_build=no
29814 else
29815   vpath_build=yes
29816   if test "$no_create" != yes; then
29817     $as_echo_n "preparing build tree... " >&6
29818     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
29819     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
29820       || { { $as_echo "$as_me:$LINENO: error: failed" >&5
29821 $as_echo "$as_me: error: failed" >&2;}
29822    { (exit 1); exit 1; }; }
29823     { $as_echo "$as_me:$LINENO: result: done" >&5
29824 $as_echo "done" >&6; }
29825   fi
29826 fi
29827
29828
29829
29830 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
29831
29832
29833 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}"
29834
29835
29836 if test "$PORTNAME" = "win32"; then
29837 ac_config_commands="$ac_config_commands check_win32_symlinks"
29838
29839 fi
29840
29841 ac_config_headers="$ac_config_headers src/include/pg_config.h"
29842
29843
29844 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
29845
29846
29847 cat >confcache <<\_ACEOF
29848 # This file is a shell script that caches the results of configure
29849 # tests run on this system so they can be shared between configure
29850 # scripts and configure runs, see configure's option --config-cache.
29851 # It is not useful on other systems.  If it contains results you don't
29852 # want to keep, you may remove or edit it.
29853 #
29854 # config.status only pays attention to the cache file if you give it
29855 # the --recheck option to rerun configure.
29856 #
29857 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29858 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29859 # following values.
29860
29861 _ACEOF
29862
29863 # The following way of writing the cache mishandles newlines in values,
29864 # but we know of no workaround that is simple, portable, and efficient.
29865 # So, we kill variables containing newlines.
29866 # Ultrix sh set writes to stderr and can't be redirected directly,
29867 # and sets the high bit in the cache file unless we assign to the vars.
29868 (
29869   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29870     eval ac_val=\$$ac_var
29871     case $ac_val in #(
29872     *${as_nl}*)
29873       case $ac_var in #(
29874       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
29875 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29876       esac
29877       case $ac_var in #(
29878       _ | IFS | as_nl) ;; #(
29879       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29880       *) $as_unset $ac_var ;;
29881       esac ;;
29882     esac
29883   done
29884
29885   (set) 2>&1 |
29886     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29887     *${as_nl}ac_space=\ *)
29888       # `set' does not quote correctly, so add quotes (double-quote
29889       # substitution turns \\\\ into \\, and sed turns \\ into \).
29890       sed -n \
29891         "s/'/'\\\\''/g;
29892           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29893       ;; #(
29894     *)
29895       # `set' quotes correctly as required by POSIX, so do not add quotes.
29896       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29897       ;;
29898     esac |
29899     sort
29900 ) |
29901   sed '
29902      /^ac_cv_env_/b end
29903      t clear
29904      :clear
29905      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29906      t end
29907      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29908      :end' >>confcache
29909 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29910   if test -w "$cache_file"; then
29911     test "x$cache_file" != "x/dev/null" &&
29912       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
29913 $as_echo "$as_me: updating cache $cache_file" >&6;}
29914     cat confcache >$cache_file
29915   else
29916     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29917 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29918   fi
29919 fi
29920 rm -f confcache
29921
29922 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29923 # Let make expand exec_prefix.
29924 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29925
29926 DEFS=-DHAVE_CONFIG_H
29927
29928 ac_libobjs=
29929 ac_ltlibobjs=
29930 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29931   # 1. Remove the extension, and $U if already installed.
29932   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29933   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29934   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29935   #    will be set to the directory where LIBOBJS objects are built.
29936   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29937   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29938 done
29939 LIBOBJS=$ac_libobjs
29940
29941 LTLIBOBJS=$ac_ltlibobjs
29942
29943
29944
29945
29946 : ${CONFIG_STATUS=./config.status}
29947 ac_write_fail=0
29948 ac_clean_files_save=$ac_clean_files
29949 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29950 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29951 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29952 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29953 #! $SHELL
29954 # Generated by $as_me.
29955 # Run this file to recreate the current configuration.
29956 # Compiler output produced by configure, useful for debugging
29957 # configure, is in config.log if it exists.
29958
29959 debug=false
29960 ac_cs_recheck=false
29961 ac_cs_silent=false
29962 SHELL=\${CONFIG_SHELL-$SHELL}
29963 _ACEOF
29964
29965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29966 ## --------------------- ##
29967 ## M4sh Initialization.  ##
29968 ## --------------------- ##
29969
29970 # Be more Bourne compatible
29971 DUALCASE=1; export DUALCASE # for MKS sh
29972 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29973   emulate sh
29974   NULLCMD=:
29975   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29976   # is contrary to our usage.  Disable this feature.
29977   alias -g '${1+"$@"}'='"$@"'
29978   setopt NO_GLOB_SUBST
29979 else
29980   case `(set -o) 2>/dev/null` in
29981   *posix*) set -o posix ;;
29982 esac
29983
29984 fi
29985
29986
29987
29988
29989 # PATH needs CR
29990 # Avoid depending upon Character Ranges.
29991 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29992 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29993 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29994 as_cr_digits='0123456789'
29995 as_cr_alnum=$as_cr_Letters$as_cr_digits
29996
29997 as_nl='
29998 '
29999 export as_nl
30000 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30001 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30002 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30003 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30004 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30005   as_echo='printf %s\n'
30006   as_echo_n='printf %s'
30007 else
30008   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30009     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30010     as_echo_n='/usr/ucb/echo -n'
30011   else
30012     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30013     as_echo_n_body='eval
30014       arg=$1;
30015       case $arg in
30016       *"$as_nl"*)
30017         expr "X$arg" : "X\\(.*\\)$as_nl";
30018         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30019       esac;
30020       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30021     '
30022     export as_echo_n_body
30023     as_echo_n='sh -c $as_echo_n_body as_echo'
30024   fi
30025   export as_echo_body
30026   as_echo='sh -c $as_echo_body as_echo'
30027 fi
30028
30029 # The user is always right.
30030 if test "${PATH_SEPARATOR+set}" != set; then
30031   PATH_SEPARATOR=:
30032   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30033     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30034       PATH_SEPARATOR=';'
30035   }
30036 fi
30037
30038 # Support unset when possible.
30039 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30040   as_unset=unset
30041 else
30042   as_unset=false
30043 fi
30044
30045
30046 # IFS
30047 # We need space, tab and new line, in precisely that order.  Quoting is
30048 # there to prevent editors from complaining about space-tab.
30049 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30050 # splitting by setting IFS to empty value.)
30051 IFS=" ""        $as_nl"
30052
30053 # Find who we are.  Look in the path if we contain no directory separator.
30054 case $0 in
30055   *[\\/]* ) as_myself=$0 ;;
30056   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30057 for as_dir in $PATH
30058 do
30059   IFS=$as_save_IFS
30060   test -z "$as_dir" && as_dir=.
30061   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30062 done
30063 IFS=$as_save_IFS
30064
30065      ;;
30066 esac
30067 # We did not find ourselves, most probably we were run as `sh COMMAND'
30068 # in which case we are not to be found in the path.
30069 if test "x$as_myself" = x; then
30070   as_myself=$0
30071 fi
30072 if test ! -f "$as_myself"; then
30073   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30074   { (exit 1); exit 1; }
30075 fi
30076
30077 # Work around bugs in pre-3.0 UWIN ksh.
30078 for as_var in ENV MAIL MAILPATH
30079 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30080 done
30081 PS1='$ '
30082 PS2='> '
30083 PS4='+ '
30084
30085 # NLS nuisances.
30086 LC_ALL=C
30087 export LC_ALL
30088 LANGUAGE=C
30089 export LANGUAGE
30090
30091 # Required to use basename.
30092 if expr a : '\(a\)' >/dev/null 2>&1 &&
30093    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30094   as_expr=expr
30095 else
30096   as_expr=false
30097 fi
30098
30099 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30100   as_basename=basename
30101 else
30102   as_basename=false
30103 fi
30104
30105
30106 # Name of the executable.
30107 as_me=`$as_basename -- "$0" ||
30108 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30109          X"$0" : 'X\(//\)$' \| \
30110          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30111 $as_echo X/"$0" |
30112     sed '/^.*\/\([^/][^/]*\)\/*$/{
30113             s//\1/
30114             q
30115           }
30116           /^X\/\(\/\/\)$/{
30117             s//\1/
30118             q
30119           }
30120           /^X\/\(\/\).*/{
30121             s//\1/
30122             q
30123           }
30124           s/.*/./; q'`
30125
30126 # CDPATH.
30127 $as_unset CDPATH
30128
30129
30130
30131   as_lineno_1=$LINENO
30132   as_lineno_2=$LINENO
30133   test "x$as_lineno_1" != "x$as_lineno_2" &&
30134   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30135
30136   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30137   # uniformly replaced by the line number.  The first 'sed' inserts a
30138   # line-number line after each line using $LINENO; the second 'sed'
30139   # does the real work.  The second script uses 'N' to pair each
30140   # line-number line with the line containing $LINENO, and appends
30141   # trailing '-' during substitution so that $LINENO is not a special
30142   # case at line end.
30143   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30144   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30145   # E. McMahon (1931-1989) for sed's syntax.  :-)
30146   sed -n '
30147     p
30148     /[$]LINENO/=
30149   ' <$as_myself |
30150     sed '
30151       s/[$]LINENO.*/&-/
30152       t lineno
30153       b
30154       :lineno
30155       N
30156       :loop
30157       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30158       t loop
30159       s/-\n.*//
30160     ' >$as_me.lineno &&
30161   chmod +x "$as_me.lineno" ||
30162     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30163    { (exit 1); exit 1; }; }
30164
30165   # Don't try to exec as it changes $[0], causing all sort of problems
30166   # (the dirname of $[0] is not the place where we might find the
30167   # original and so on.  Autoconf is especially sensitive to this).
30168   . "./$as_me.lineno"
30169   # Exit status is that of the last command.
30170   exit
30171 }
30172
30173
30174 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30175   as_dirname=dirname
30176 else
30177   as_dirname=false
30178 fi
30179
30180 ECHO_C= ECHO_N= ECHO_T=
30181 case `echo -n x` in
30182 -n*)
30183   case `echo 'x\c'` in
30184   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30185   *)   ECHO_C='\c';;
30186   esac;;
30187 *)
30188   ECHO_N='-n';;
30189 esac
30190 if expr a : '\(a\)' >/dev/null 2>&1 &&
30191    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30192   as_expr=expr
30193 else
30194   as_expr=false
30195 fi
30196
30197 rm -f conf$$ conf$$.exe conf$$.file
30198 if test -d conf$$.dir; then
30199   rm -f conf$$.dir/conf$$.file
30200 else
30201   rm -f conf$$.dir
30202   mkdir conf$$.dir 2>/dev/null
30203 fi
30204 if (echo >conf$$.file) 2>/dev/null; then
30205   if ln -s conf$$.file conf$$ 2>/dev/null; then
30206     as_ln_s='ln -s'
30207     # ... but there are two gotchas:
30208     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30209     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30210     # In both cases, we have to default to `cp -p'.
30211     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30212       as_ln_s='cp -p'
30213   elif ln conf$$.file conf$$ 2>/dev/null; then
30214     as_ln_s=ln
30215   else
30216     as_ln_s='cp -p'
30217   fi
30218 else
30219   as_ln_s='cp -p'
30220 fi
30221 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30222 rmdir conf$$.dir 2>/dev/null
30223
30224 if mkdir -p . 2>/dev/null; then
30225   as_mkdir_p=:
30226 else
30227   test -d ./-p && rmdir ./-p
30228   as_mkdir_p=false
30229 fi
30230
30231 if test -x / >/dev/null 2>&1; then
30232   as_test_x='test -x'
30233 else
30234   if ls -dL / >/dev/null 2>&1; then
30235     as_ls_L_option=L
30236   else
30237     as_ls_L_option=
30238   fi
30239   as_test_x='
30240     eval sh -c '\''
30241       if test -d "$1"; then
30242         test -d "$1/.";
30243       else
30244         case $1 in
30245         -*)set "./$1";;
30246         esac;
30247         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30248         ???[sx]*):;;*)false;;esac;fi
30249     '\'' sh
30250   '
30251 fi
30252 as_executable_p=$as_test_x
30253
30254 # Sed expression to map a string onto a valid CPP name.
30255 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30256
30257 # Sed expression to map a string onto a valid variable name.
30258 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30259
30260
30261 exec 6>&1
30262
30263 # Save the log message, to keep $[0] and so on meaningful, and to
30264 # report actual input values of CONFIG_FILES etc. instead of their
30265 # values after options handling.
30266 ac_log="
30267 This file was extended by PostgreSQL $as_me 9.2devel, which was
30268 generated by GNU Autoconf 2.63.  Invocation command line was
30269
30270   CONFIG_FILES    = $CONFIG_FILES
30271   CONFIG_HEADERS  = $CONFIG_HEADERS
30272   CONFIG_LINKS    = $CONFIG_LINKS
30273   CONFIG_COMMANDS = $CONFIG_COMMANDS
30274   $ $0 $@
30275
30276 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30277 "
30278
30279 _ACEOF
30280
30281 case $ac_config_files in *"
30282 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30283 esac
30284
30285 case $ac_config_headers in *"
30286 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30287 esac
30288
30289
30290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30291 # Files that config.status was made for.
30292 config_files="$ac_config_files"
30293 config_headers="$ac_config_headers"
30294 config_links="$ac_config_links"
30295 config_commands="$ac_config_commands"
30296
30297 _ACEOF
30298
30299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30300 ac_cs_usage="\
30301 \`$as_me' instantiates files from templates according to the
30302 current configuration.
30303
30304 Usage: $0 [OPTION]... [FILE]...
30305
30306   -h, --help       print this help, then exit
30307   -V, --version    print version number and configuration settings, then exit
30308   -q, --quiet, --silent
30309                    do not print progress messages
30310   -d, --debug      don't remove temporary files
30311       --recheck    update $as_me by reconfiguring in the same conditions
30312       --file=FILE[:TEMPLATE]
30313                    instantiate the configuration file FILE
30314       --header=FILE[:TEMPLATE]
30315                    instantiate the configuration header FILE
30316
30317 Configuration files:
30318 $config_files
30319
30320 Configuration headers:
30321 $config_headers
30322
30323 Configuration links:
30324 $config_links
30325
30326 Configuration commands:
30327 $config_commands
30328
30329 Report bugs to <bug-autoconf@gnu.org>."
30330
30331 _ACEOF
30332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30333 ac_cs_version="\\
30334 PostgreSQL config.status 9.2devel
30335 configured by $0, generated by GNU Autoconf 2.63,
30336   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30337
30338 Copyright (C) 2008 Free Software Foundation, Inc.
30339 This config.status script is free software; the Free Software Foundation
30340 gives unlimited permission to copy, distribute and modify it."
30341
30342 ac_pwd='$ac_pwd'
30343 srcdir='$srcdir'
30344 MKDIR_P='$MKDIR_P'
30345 AWK='$AWK'
30346 test -n "\$AWK" || AWK=awk
30347 _ACEOF
30348
30349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30350 # The default lists apply if the user does not specify any file.
30351 ac_need_defaults=:
30352 while test $# != 0
30353 do
30354   case $1 in
30355   --*=*)
30356     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30357     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30358     ac_shift=:
30359     ;;
30360   *)
30361     ac_option=$1
30362     ac_optarg=$2
30363     ac_shift=shift
30364     ;;
30365   esac
30366
30367   case $ac_option in
30368   # Handling of the options.
30369   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30370     ac_cs_recheck=: ;;
30371   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30372     $as_echo "$ac_cs_version"; exit ;;
30373   --debug | --debu | --deb | --de | --d | -d )
30374     debug=: ;;
30375   --file | --fil | --fi | --f )
30376     $ac_shift
30377     case $ac_optarg in
30378     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30379     esac
30380     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
30381     ac_need_defaults=false;;
30382   --header | --heade | --head | --hea )
30383     $ac_shift
30384     case $ac_optarg in
30385     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30386     esac
30387     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
30388     ac_need_defaults=false;;
30389   --he | --h)
30390     # Conflict between --help and --header
30391     { $as_echo "$as_me: error: ambiguous option: $1
30392 Try \`$0 --help' for more information." >&2
30393    { (exit 1); exit 1; }; };;
30394   --help | --hel | -h )
30395     $as_echo "$ac_cs_usage"; exit ;;
30396   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30397   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30398     ac_cs_silent=: ;;
30399
30400   # This is an error.
30401   -*) { $as_echo "$as_me: error: unrecognized option: $1
30402 Try \`$0 --help' for more information." >&2
30403    { (exit 1); exit 1; }; } ;;
30404
30405   *) ac_config_targets="$ac_config_targets $1"
30406      ac_need_defaults=false ;;
30407
30408   esac
30409   shift
30410 done
30411
30412 ac_configure_extra_args=
30413
30414 if $ac_cs_silent; then
30415   exec 6>/dev/null
30416   ac_configure_extra_args="$ac_configure_extra_args --silent"
30417 fi
30418
30419 _ACEOF
30420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30421 if \$ac_cs_recheck; then
30422   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30423   shift
30424   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30425   CONFIG_SHELL='$SHELL'
30426   export CONFIG_SHELL
30427   exec "\$@"
30428 fi
30429
30430 _ACEOF
30431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30432 exec 5>>config.log
30433 {
30434   echo
30435   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30436 ## Running $as_me. ##
30437 _ASBOX
30438   $as_echo "$ac_log"
30439 } >&5
30440
30441 _ACEOF
30442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30443 _ACEOF
30444
30445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30446
30447 # Handling of arguments.
30448 for ac_config_target in $ac_config_targets
30449 do
30450   case $ac_config_target in
30451     "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
30452     "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
30453     "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
30454     "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
30455     "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
30456     "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
30457     "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
30458     "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
30459     "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
30460     "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
30461     "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
30462     "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
30463     "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
30464
30465   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30466 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30467    { (exit 1); exit 1; }; };;
30468   esac
30469 done
30470
30471
30472 # If the user did not use the arguments to specify the items to instantiate,
30473 # then the envvar interface is used.  Set only those that are not.
30474 # We use the long form for the default assignment because of an extremely
30475 # bizarre bug on SunOS 4.1.3.
30476 if $ac_need_defaults; then
30477   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30478   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30479   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30480   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30481 fi
30482
30483 # Have a temporary directory for convenience.  Make it in the build tree
30484 # simply because there is no reason against having it here, and in addition,
30485 # creating and moving files from /tmp can sometimes cause problems.
30486 # Hook for its removal unless debugging.
30487 # Note that there is a small window in which the directory will not be cleaned:
30488 # after its creation but before its name has been assigned to `$tmp'.
30489 $debug ||
30490 {
30491   tmp=
30492   trap 'exit_status=$?
30493   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30494 ' 0
30495   trap '{ (exit 1); exit 1; }' 1 2 13 15
30496 }
30497 # Create a (secure) tmp directory for tmp files.
30498
30499 {
30500   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30501   test -n "$tmp" && test -d "$tmp"
30502 }  ||
30503 {
30504   tmp=./conf$$-$RANDOM
30505   (umask 077 && mkdir "$tmp")
30506 } ||
30507 {
30508    $as_echo "$as_me: cannot create a temporary directory in ." >&2
30509    { (exit 1); exit 1; }
30510 }
30511
30512 # Set up the scripts for CONFIG_FILES section.
30513 # No need to generate them if there are no CONFIG_FILES.
30514 # This happens for instance with `./config.status config.h'.
30515 if test -n "$CONFIG_FILES"; then
30516
30517
30518 ac_cr='\r'
30519 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30520 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30521   ac_cs_awk_cr='\\r'
30522 else
30523   ac_cs_awk_cr=$ac_cr
30524 fi
30525
30526 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30527 _ACEOF
30528
30529
30530 {
30531   echo "cat >conf$$subs.awk <<_ACEOF" &&
30532   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30533   echo "_ACEOF"
30534 } >conf$$subs.sh ||
30535   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30536 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30537    { (exit 1); exit 1; }; }
30538 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30539 ac_delim='%!_!# '
30540 for ac_last_try in false false false false false :; do
30541   . ./conf$$subs.sh ||
30542     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30543 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30544    { (exit 1); exit 1; }; }
30545
30546   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30547   if test $ac_delim_n = $ac_delim_num; then
30548     break
30549   elif $ac_last_try; then
30550     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30551 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30552    { (exit 1); exit 1; }; }
30553   else
30554     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30555   fi
30556 done
30557 rm -f conf$$subs.sh
30558
30559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30560 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30561 _ACEOF
30562 sed -n '
30563 h
30564 s/^/S["/; s/!.*/"]=/
30565 p
30566 g
30567 s/^[^!]*!//
30568 :repl
30569 t repl
30570 s/'"$ac_delim"'$//
30571 t delim
30572 :nl
30573 h
30574 s/\(.\{148\}\).*/\1/
30575 t more1
30576 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30577 p
30578 n
30579 b repl
30580 :more1
30581 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30582 p
30583 g
30584 s/.\{148\}//
30585 t nl
30586 :delim
30587 h
30588 s/\(.\{148\}\).*/\1/
30589 t more2
30590 s/["\\]/\\&/g; s/^/"/; s/$/"/
30591 p
30592 b
30593 :more2
30594 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30595 p
30596 g
30597 s/.\{148\}//
30598 t delim
30599 ' <conf$$subs.awk | sed '
30600 /^[^""]/{
30601   N
30602   s/\n//
30603 }
30604 ' >>$CONFIG_STATUS || ac_write_fail=1
30605 rm -f conf$$subs.awk
30606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30607 _ACAWK
30608 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30609   for (key in S) S_is_set[key] = 1
30610   FS = "\a"
30611
30612 }
30613 {
30614   line = $ 0
30615   nfields = split(line, field, "@")
30616   substed = 0
30617   len = length(field[1])
30618   for (i = 2; i < nfields; i++) {
30619     key = field[i]
30620     keylen = length(key)
30621     if (S_is_set[key]) {
30622       value = S[key]
30623       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30624       len += length(value) + length(field[++i])
30625       substed = 1
30626     } else
30627       len += 1 + keylen
30628   }
30629
30630   print line
30631 }
30632
30633 _ACAWK
30634 _ACEOF
30635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30636 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30637   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30638 else
30639   cat
30640 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30641   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
30642 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
30643    { (exit 1); exit 1; }; }
30644 _ACEOF
30645
30646 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30647 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30648 # trailing colons and then remove the whole line if VPATH becomes empty
30649 # (actually we leave an empty line to preserve line numbers).
30650 if test "x$srcdir" = x.; then
30651   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30652 s/:*\$(srcdir):*/:/
30653 s/:*\${srcdir}:*/:/
30654 s/:*@srcdir@:*/:/
30655 s/^\([^=]*=[     ]*\):*/\1/
30656 s/:*$//
30657 s/^[^=]*=[       ]*$//
30658 }'
30659 fi
30660
30661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30662 fi # test -n "$CONFIG_FILES"
30663
30664 # Set up the scripts for CONFIG_HEADERS section.
30665 # No need to generate them if there are no CONFIG_HEADERS.
30666 # This happens for instance with `./config.status Makefile'.
30667 if test -n "$CONFIG_HEADERS"; then
30668 cat >"$tmp/defines.awk" <<\_ACAWK ||
30669 BEGIN {
30670 _ACEOF
30671
30672 # Transform confdefs.h into an awk script `defines.awk', embedded as
30673 # here-document in config.status, that substitutes the proper values into
30674 # config.h.in to produce config.h.
30675
30676 # Create a delimiter string that does not exist in confdefs.h, to ease
30677 # handling of long lines.
30678 ac_delim='%!_!# '
30679 for ac_last_try in false false :; do
30680   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30681   if test -z "$ac_t"; then
30682     break
30683   elif $ac_last_try; then
30684     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
30685 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
30686    { (exit 1); exit 1; }; }
30687   else
30688     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30689   fi
30690 done
30691
30692 # For the awk script, D is an array of macro values keyed by name,
30693 # likewise P contains macro parameters if any.  Preserve backslash
30694 # newline sequences.
30695
30696 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30697 sed -n '
30698 s/.\{148\}/&'"$ac_delim"'/g
30699 t rset
30700 :rset
30701 s/^[     ]*#[    ]*define[       ][      ]*/ /
30702 t def
30703 d
30704 :def
30705 s/\\$//
30706 t bsnl
30707 s/["\\]/\\&/g
30708 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30709 D["\1"]=" \3"/p
30710 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
30711 d
30712 :bsnl
30713 s/["\\]/\\&/g
30714 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30715 D["\1"]=" \3\\\\\\n"\\/p
30716 t cont
30717 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30718 t cont
30719 d
30720 :cont
30721 n
30722 s/.\{148\}/&'"$ac_delim"'/g
30723 t clear
30724 :clear
30725 s/\\$//
30726 t bsnlc
30727 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30728 d
30729 :bsnlc
30730 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30731 b cont
30732 ' <confdefs.h | sed '
30733 s/'"$ac_delim"'/"\\\
30734 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30735
30736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30737   for (key in D) D_is_set[key] = 1
30738   FS = "\a"
30739 }
30740 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30741   line = \$ 0
30742   split(line, arg, " ")
30743   if (arg[1] == "#") {
30744     defundef = arg[2]
30745     mac1 = arg[3]
30746   } else {
30747     defundef = substr(arg[1], 2)
30748     mac1 = arg[2]
30749   }
30750   split(mac1, mac2, "(") #)
30751   macro = mac2[1]
30752   prefix = substr(line, 1, index(line, defundef) - 1)
30753   if (D_is_set[macro]) {
30754     # Preserve the white space surrounding the "#".
30755     print prefix "define", macro P[macro] D[macro]
30756     next
30757   } else {
30758     # Replace #undef with comments.  This is necessary, for example,
30759     # in the case of _POSIX_SOURCE, which is predefined and required
30760     # on some systems where configure will not decide to define it.
30761     if (defundef == "undef") {
30762       print "/*", prefix defundef, macro, "*/"
30763       next
30764     }
30765   }
30766 }
30767 { print }
30768 _ACAWK
30769 _ACEOF
30770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30771   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
30772 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
30773    { (exit 1); exit 1; }; }
30774 fi # test -n "$CONFIG_HEADERS"
30775
30776
30777 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
30778 shift
30779 for ac_tag
30780 do
30781   case $ac_tag in
30782   :[FHLC]) ac_mode=$ac_tag; continue;;
30783   esac
30784   case $ac_mode$ac_tag in
30785   :[FHL]*:*);;
30786   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
30787 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
30788    { (exit 1); exit 1; }; };;
30789   :[FH]-) ac_tag=-:-;;
30790   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30791   esac
30792   ac_save_IFS=$IFS
30793   IFS=:
30794   set x $ac_tag
30795   IFS=$ac_save_IFS
30796   shift
30797   ac_file=$1
30798   shift
30799
30800   case $ac_mode in
30801   :L) ac_source=$1;;
30802   :[FH])
30803     ac_file_inputs=
30804     for ac_f
30805     do
30806       case $ac_f in
30807       -) ac_f="$tmp/stdin";;
30808       *) # Look for the file first in the build tree, then in the source tree
30809          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30810          # because $ac_f cannot contain `:'.
30811          test -f "$ac_f" ||
30812            case $ac_f in
30813            [\\/$]*) false;;
30814            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30815            esac ||
30816            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30817 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30818    { (exit 1); exit 1; }; };;
30819       esac
30820       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30821       ac_file_inputs="$ac_file_inputs '$ac_f'"
30822     done
30823
30824     # Let's still pretend it is `configure' which instantiates (i.e., don't
30825     # use $as_me), people would be surprised to read:
30826     #    /* config.h.  Generated by config.status.  */
30827     configure_input='Generated from '`
30828           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30829         `' by configure.'
30830     if test x"$ac_file" != x-; then
30831       configure_input="$ac_file.  $configure_input"
30832       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
30833 $as_echo "$as_me: creating $ac_file" >&6;}
30834     fi
30835     # Neutralize special characters interpreted by sed in replacement strings.
30836     case $configure_input in #(
30837     *\&* | *\|* | *\\* )
30838        ac_sed_conf_input=`$as_echo "$configure_input" |
30839        sed 's/[\\\\&|]/\\\\&/g'`;; #(
30840     *) ac_sed_conf_input=$configure_input;;
30841     esac
30842
30843     case $ac_tag in
30844     *:-:* | *:-) cat >"$tmp/stdin" \
30845       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30846 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30847    { (exit 1); exit 1; }; } ;;
30848     esac
30849     ;;
30850   esac
30851
30852   ac_dir=`$as_dirname -- "$ac_file" ||
30853 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30854          X"$ac_file" : 'X\(//\)[^/]' \| \
30855          X"$ac_file" : 'X\(//\)$' \| \
30856          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30857 $as_echo X"$ac_file" |
30858     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30859             s//\1/
30860             q
30861           }
30862           /^X\(\/\/\)[^/].*/{
30863             s//\1/
30864             q
30865           }
30866           /^X\(\/\/\)$/{
30867             s//\1/
30868             q
30869           }
30870           /^X\(\/\).*/{
30871             s//\1/
30872             q
30873           }
30874           s/.*/./; q'`
30875   { as_dir="$ac_dir"
30876   case $as_dir in #(
30877   -*) as_dir=./$as_dir;;
30878   esac
30879   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30880     as_dirs=
30881     while :; do
30882       case $as_dir in #(
30883       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30884       *) as_qdir=$as_dir;;
30885       esac
30886       as_dirs="'$as_qdir' $as_dirs"
30887       as_dir=`$as_dirname -- "$as_dir" ||
30888 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30889          X"$as_dir" : 'X\(//\)[^/]' \| \
30890          X"$as_dir" : 'X\(//\)$' \| \
30891          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30892 $as_echo X"$as_dir" |
30893     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30894             s//\1/
30895             q
30896           }
30897           /^X\(\/\/\)[^/].*/{
30898             s//\1/
30899             q
30900           }
30901           /^X\(\/\/\)$/{
30902             s//\1/
30903             q
30904           }
30905           /^X\(\/\).*/{
30906             s//\1/
30907             q
30908           }
30909           s/.*/./; q'`
30910       test -d "$as_dir" && break
30911     done
30912     test -z "$as_dirs" || eval "mkdir $as_dirs"
30913   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30914 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
30915    { (exit 1); exit 1; }; }; }
30916   ac_builddir=.
30917
30918 case "$ac_dir" in
30919 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30920 *)
30921   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30922   # A ".." for each directory in $ac_dir_suffix.
30923   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30924   case $ac_top_builddir_sub in
30925   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30926   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30927   esac ;;
30928 esac
30929 ac_abs_top_builddir=$ac_pwd
30930 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30931 # for backward compatibility:
30932 ac_top_builddir=$ac_top_build_prefix
30933
30934 case $srcdir in
30935   .)  # We are building in place.
30936     ac_srcdir=.
30937     ac_top_srcdir=$ac_top_builddir_sub
30938     ac_abs_top_srcdir=$ac_pwd ;;
30939   [\\/]* | ?:[\\/]* )  # Absolute name.
30940     ac_srcdir=$srcdir$ac_dir_suffix;
30941     ac_top_srcdir=$srcdir
30942     ac_abs_top_srcdir=$srcdir ;;
30943   *) # Relative name.
30944     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30945     ac_top_srcdir=$ac_top_build_prefix$srcdir
30946     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30947 esac
30948 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30949
30950
30951   case $ac_mode in
30952   :F)
30953   #
30954   # CONFIG_FILE
30955   #
30956
30957   ac_MKDIR_P=$MKDIR_P
30958   case $MKDIR_P in
30959   [\\/$]* | ?:[\\/]* ) ;;
30960   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30961   esac
30962 _ACEOF
30963
30964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30965 # If the template does not know about datarootdir, expand it.
30966 # FIXME: This hack should be removed a few years after 2.60.
30967 ac_datarootdir_hack=; ac_datarootdir_seen=
30968
30969 ac_sed_dataroot='
30970 /datarootdir/ {
30971   p
30972   q
30973 }
30974 /@datadir@/p
30975 /@docdir@/p
30976 /@infodir@/p
30977 /@localedir@/p
30978 /@mandir@/p
30979 '
30980 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30981 *datarootdir*) ac_datarootdir_seen=yes;;
30982 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30983   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30984 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30985 _ACEOF
30986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30987   ac_datarootdir_hack='
30988   s&@datadir@&$datadir&g
30989   s&@docdir@&$docdir&g
30990   s&@infodir@&$infodir&g
30991   s&@localedir@&$localedir&g
30992   s&@mandir@&$mandir&g
30993     s&\\\${datarootdir}&$datarootdir&g' ;;
30994 esac
30995 _ACEOF
30996
30997 # Neutralize VPATH when `$srcdir' = `.'.
30998 # Shell code in configure.ac might set extrasub.
30999 # FIXME: do we really want to maintain this feature?
31000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31001 ac_sed_extra="$ac_vpsub
31002 $extrasub
31003 _ACEOF
31004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31005 :t
31006 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31007 s|@configure_input@|$ac_sed_conf_input|;t t
31008 s&@top_builddir@&$ac_top_builddir_sub&;t t
31009 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31010 s&@srcdir@&$ac_srcdir&;t t
31011 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31012 s&@top_srcdir@&$ac_top_srcdir&;t t
31013 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31014 s&@builddir@&$ac_builddir&;t t
31015 s&@abs_builddir@&$ac_abs_builddir&;t t
31016 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31017 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31018 $ac_datarootdir_hack
31019 "
31020 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
31021   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31022 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31023    { (exit 1); exit 1; }; }
31024
31025 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31026   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31027   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31028   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31029 which seems to be undefined.  Please make sure it is defined." >&5
31030 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31031 which seems to be undefined.  Please make sure it is defined." >&2;}
31032
31033   rm -f "$tmp/stdin"
31034   case $ac_file in
31035   -) cat "$tmp/out" && rm -f "$tmp/out";;
31036   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31037   esac \
31038   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31039 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31040    { (exit 1); exit 1; }; }
31041  ;;
31042   :H)
31043   #
31044   # CONFIG_HEADER
31045   #
31046   if test x"$ac_file" != x-; then
31047     {
31048       $as_echo "/* $configure_input  */" \
31049       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31050     } >"$tmp/config.h" \
31051       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31052 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31053    { (exit 1); exit 1; }; }
31054     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31055       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31056 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31057     else
31058       rm -f "$ac_file"
31059       mv "$tmp/config.h" "$ac_file" \
31060         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31061 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31062    { (exit 1); exit 1; }; }
31063     fi
31064   else
31065     $as_echo "/* $configure_input  */" \
31066       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31067       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31068 $as_echo "$as_me: error: could not create -" >&2;}
31069    { (exit 1); exit 1; }; }
31070   fi
31071  ;;
31072   :L)
31073   #
31074   # CONFIG_LINK
31075   #
31076
31077   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31078     :
31079   else
31080     # Prefer the file from the source tree if names are identical.
31081     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31082       ac_source=$srcdir/$ac_source
31083     fi
31084
31085     { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
31086 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31087
31088     if test ! -r "$ac_source"; then
31089       { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
31090 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
31091    { (exit 1); exit 1; }; }
31092     fi
31093     rm -f "$ac_file"
31094
31095     # Try a relative symlink, then a hard link, then a copy.
31096     case $srcdir in
31097     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31098         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31099     esac
31100     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31101       ln "$ac_source" "$ac_file" 2>/dev/null ||
31102       cp -p "$ac_source" "$ac_file" ||
31103       { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
31104 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
31105    { (exit 1); exit 1; }; }
31106   fi
31107  ;;
31108   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31109 $as_echo "$as_me: executing $ac_file commands" >&6;}
31110  ;;
31111   esac
31112
31113
31114   case $ac_file$ac_mode in
31115     "check_win32_symlinks":C)
31116 # Links sometimes fail undetected on Mingw -
31117 # so here we detect it and warn the user
31118 for FILE in $CONFIG_LINKS
31119  do
31120         # test -e works for symlinks in the MinGW console
31121         test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
31122 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
31123  done
31124  ;;
31125     "src/include/pg_config.h":H)
31126 # Update timestamp for pg_config.h (see Makefile.global)
31127 echo >src/include/stamp-h
31128  ;;
31129     "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
31130
31131   esac
31132 done # for ac_tag
31133
31134
31135 { (exit 0); exit 0; }
31136 _ACEOF
31137 chmod +x $CONFIG_STATUS
31138 ac_clean_files=$ac_clean_files_save
31139
31140 test $ac_write_fail = 0 ||
31141   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
31142 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
31143    { (exit 1); exit 1; }; }
31144
31145
31146 # configure is writing to config.log, and then calls config.status.
31147 # config.status does its own redirection, appending to config.log.
31148 # Unfortunately, on DOS this fails, as config.log is still kept open
31149 # by configure, so config.status won't be able to write to it; its
31150 # output is simply discarded.  So we exec the FD to /dev/null,
31151 # effectively closing config.log, so it can be properly (re)opened and
31152 # appended to by config.status.  When coming back to configure, we
31153 # need to make the FD available again.
31154 if test "$no_create" != yes; then
31155   ac_cs_success=:
31156   ac_config_status_args=
31157   test "$silent" = yes &&
31158     ac_config_status_args="$ac_config_status_args --quiet"
31159   exec 5>/dev/null
31160   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31161   exec 5>>config.log
31162   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31163   # would make configure fail if this is the last instruction.
31164   $ac_cs_success || { (exit 1); exit 1; }
31165 fi
31166 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31167   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31168 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31169 fi
31170