OSDN Git Service

Adjust configure to use "+Olibmerrno" with HP-UX C compiler, if possible.
[pg-rex/syncrep.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for PostgreSQL 9.1beta1.
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.1beta1'
602 PACKAGE_STRING='PostgreSQL 9.1beta1'
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.1beta1 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.1beta1:";;
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.1beta1
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.1beta1, 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   # This was included in -Wall/-Wformat in older GCC versions
4127   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wformat-security" >&5
4128 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
4129 if test "${pgac_cv_prog_cc_cflags__Wformat_security+set}" = set; then
4130   $as_echo_n "(cached) " >&6
4131 else
4132   pgac_save_CFLAGS=$CFLAGS
4133 CFLAGS="$pgac_save_CFLAGS -Wformat-security"
4134 ac_save_c_werror_flag=$ac_c_werror_flag
4135 ac_c_werror_flag=yes
4136 cat >conftest.$ac_ext <<_ACEOF
4137 /* confdefs.h.  */
4138 _ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h.  */
4142
4143 int
4144 main ()
4145 {
4146
4147   ;
4148   return 0;
4149 }
4150 _ACEOF
4151 rm -f conftest.$ac_objext
4152 if { (ac_try="$ac_compile"
4153 case "(($ac_try" in
4154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155   *) ac_try_echo=$ac_try;;
4156 esac
4157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4158 $as_echo "$ac_try_echo") >&5
4159   (eval "$ac_compile") 2>conftest.er1
4160   ac_status=$?
4161   grep -v '^ *+' conftest.er1 >conftest.err
4162   rm -f conftest.er1
4163   cat conftest.err >&5
4164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165   (exit $ac_status); } && {
4166          test -z "$ac_c_werror_flag" ||
4167          test ! -s conftest.err
4168        } && test -s conftest.$ac_objext; then
4169   pgac_cv_prog_cc_cflags__Wformat_security=yes
4170 else
4171   $as_echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4173
4174         pgac_cv_prog_cc_cflags__Wformat_security=no
4175 fi
4176
4177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178 ac_c_werror_flag=$ac_save_c_werror_flag
4179 CFLAGS="$pgac_save_CFLAGS"
4180 fi
4181 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
4182 $as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
4183 if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
4184   CFLAGS="$CFLAGS -Wformat-security"
4185 fi
4186
4187   # Disable strict-aliasing rules; needed for gcc 3.3+
4188   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4189 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4190 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4191   $as_echo_n "(cached) " >&6
4192 else
4193   pgac_save_CFLAGS=$CFLAGS
4194 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4195 ac_save_c_werror_flag=$ac_c_werror_flag
4196 ac_c_werror_flag=yes
4197 cat >conftest.$ac_ext <<_ACEOF
4198 /* confdefs.h.  */
4199 _ACEOF
4200 cat confdefs.h >>conftest.$ac_ext
4201 cat >>conftest.$ac_ext <<_ACEOF
4202 /* end confdefs.h.  */
4203
4204 int
4205 main ()
4206 {
4207
4208   ;
4209   return 0;
4210 }
4211 _ACEOF
4212 rm -f conftest.$ac_objext
4213 if { (ac_try="$ac_compile"
4214 case "(($ac_try" in
4215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216   *) ac_try_echo=$ac_try;;
4217 esac
4218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4219 $as_echo "$ac_try_echo") >&5
4220   (eval "$ac_compile") 2>conftest.er1
4221   ac_status=$?
4222   grep -v '^ *+' conftest.er1 >conftest.err
4223   rm -f conftest.er1
4224   cat conftest.err >&5
4225   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226   (exit $ac_status); } && {
4227          test -z "$ac_c_werror_flag" ||
4228          test ! -s conftest.err
4229        } && test -s conftest.$ac_objext; then
4230   pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4231 else
4232   $as_echo "$as_me: failed program was:" >&5
4233 sed 's/^/| /' conftest.$ac_ext >&5
4234
4235         pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4236 fi
4237
4238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4239 ac_c_werror_flag=$ac_save_c_werror_flag
4240 CFLAGS="$pgac_save_CFLAGS"
4241 fi
4242 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4243 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4244 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4245   CFLAGS="$CFLAGS -fno-strict-aliasing"
4246 fi
4247
4248   # Disable optimizations that assume no overflow; needed for gcc 4.3+
4249   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fwrapv" >&5
4250 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4251 if test "${pgac_cv_prog_cc_cflags__fwrapv+set}" = set; then
4252   $as_echo_n "(cached) " >&6
4253 else
4254   pgac_save_CFLAGS=$CFLAGS
4255 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4256 ac_save_c_werror_flag=$ac_c_werror_flag
4257 ac_c_werror_flag=yes
4258 cat >conftest.$ac_ext <<_ACEOF
4259 /* confdefs.h.  */
4260 _ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h.  */
4264
4265 int
4266 main ()
4267 {
4268
4269   ;
4270   return 0;
4271 }
4272 _ACEOF
4273 rm -f conftest.$ac_objext
4274 if { (ac_try="$ac_compile"
4275 case "(($ac_try" in
4276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277   *) ac_try_echo=$ac_try;;
4278 esac
4279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4280 $as_echo "$ac_try_echo") >&5
4281   (eval "$ac_compile") 2>conftest.er1
4282   ac_status=$?
4283   grep -v '^ *+' conftest.er1 >conftest.err
4284   rm -f conftest.er1
4285   cat conftest.err >&5
4286   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287   (exit $ac_status); } && {
4288          test -z "$ac_c_werror_flag" ||
4289          test ! -s conftest.err
4290        } && test -s conftest.$ac_objext; then
4291   pgac_cv_prog_cc_cflags__fwrapv=yes
4292 else
4293   $as_echo "$as_me: failed program was:" >&5
4294 sed 's/^/| /' conftest.$ac_ext >&5
4295
4296         pgac_cv_prog_cc_cflags__fwrapv=no
4297 fi
4298
4299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4300 ac_c_werror_flag=$ac_save_c_werror_flag
4301 CFLAGS="$pgac_save_CFLAGS"
4302 fi
4303 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4304 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4305 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4306   CFLAGS="$CFLAGS -fwrapv"
4307 fi
4308
4309 elif test "$ICC" = yes; then
4310   # Intel's compiler has a bug/misoptimization in checking for
4311   # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4312   { $as_echo "$as_me:$LINENO: checking whether $CC supports -mp1" >&5
4313 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4314 if test "${pgac_cv_prog_cc_cflags__mp1+set}" = set; then
4315   $as_echo_n "(cached) " >&6
4316 else
4317   pgac_save_CFLAGS=$CFLAGS
4318 CFLAGS="$pgac_save_CFLAGS -mp1"
4319 ac_save_c_werror_flag=$ac_c_werror_flag
4320 ac_c_werror_flag=yes
4321 cat >conftest.$ac_ext <<_ACEOF
4322 /* confdefs.h.  */
4323 _ACEOF
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h.  */
4327
4328 int
4329 main ()
4330 {
4331
4332   ;
4333   return 0;
4334 }
4335 _ACEOF
4336 rm -f conftest.$ac_objext
4337 if { (ac_try="$ac_compile"
4338 case "(($ac_try" in
4339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340   *) ac_try_echo=$ac_try;;
4341 esac
4342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4343 $as_echo "$ac_try_echo") >&5
4344   (eval "$ac_compile") 2>conftest.er1
4345   ac_status=$?
4346   grep -v '^ *+' conftest.er1 >conftest.err
4347   rm -f conftest.er1
4348   cat conftest.err >&5
4349   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350   (exit $ac_status); } && {
4351          test -z "$ac_c_werror_flag" ||
4352          test ! -s conftest.err
4353        } && test -s conftest.$ac_objext; then
4354   pgac_cv_prog_cc_cflags__mp1=yes
4355 else
4356   $as_echo "$as_me: failed program was:" >&5
4357 sed 's/^/| /' conftest.$ac_ext >&5
4358
4359         pgac_cv_prog_cc_cflags__mp1=no
4360 fi
4361
4362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4363 ac_c_werror_flag=$ac_save_c_werror_flag
4364 CFLAGS="$pgac_save_CFLAGS"
4365 fi
4366 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4367 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4368 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4369   CFLAGS="$CFLAGS -mp1"
4370 fi
4371
4372   # Make sure strict aliasing is off (though this is said to be the default)
4373   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4374 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4375 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4376   $as_echo_n "(cached) " >&6
4377 else
4378   pgac_save_CFLAGS=$CFLAGS
4379 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4380 ac_save_c_werror_flag=$ac_c_werror_flag
4381 ac_c_werror_flag=yes
4382 cat >conftest.$ac_ext <<_ACEOF
4383 /* confdefs.h.  */
4384 _ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h.  */
4388
4389 int
4390 main ()
4391 {
4392
4393   ;
4394   return 0;
4395 }
4396 _ACEOF
4397 rm -f conftest.$ac_objext
4398 if { (ac_try="$ac_compile"
4399 case "(($ac_try" in
4400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401   *) ac_try_echo=$ac_try;;
4402 esac
4403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4404 $as_echo "$ac_try_echo") >&5
4405   (eval "$ac_compile") 2>conftest.er1
4406   ac_status=$?
4407   grep -v '^ *+' conftest.er1 >conftest.err
4408   rm -f conftest.er1
4409   cat conftest.err >&5
4410   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411   (exit $ac_status); } && {
4412          test -z "$ac_c_werror_flag" ||
4413          test ! -s conftest.err
4414        } && test -s conftest.$ac_objext; then
4415   pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4416 else
4417   $as_echo "$as_me: failed program was:" >&5
4418 sed 's/^/| /' conftest.$ac_ext >&5
4419
4420         pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4421 fi
4422
4423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4424 ac_c_werror_flag=$ac_save_c_werror_flag
4425 CFLAGS="$pgac_save_CFLAGS"
4426 fi
4427 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4428 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4429 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4430   CFLAGS="$CFLAGS -fno-strict-aliasing"
4431 fi
4432
4433 elif test "$PORTNAME" = "aix"; then
4434   # AIX's xlc has to have strict aliasing turned off too
4435   { $as_echo "$as_me:$LINENO: checking whether $CC supports -qnoansialias" >&5
4436 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4437 if test "${pgac_cv_prog_cc_cflags__qnoansialias+set}" = set; then
4438   $as_echo_n "(cached) " >&6
4439 else
4440   pgac_save_CFLAGS=$CFLAGS
4441 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4442 ac_save_c_werror_flag=$ac_c_werror_flag
4443 ac_c_werror_flag=yes
4444 cat >conftest.$ac_ext <<_ACEOF
4445 /* confdefs.h.  */
4446 _ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h.  */
4450
4451 int
4452 main ()
4453 {
4454
4455   ;
4456   return 0;
4457 }
4458 _ACEOF
4459 rm -f conftest.$ac_objext
4460 if { (ac_try="$ac_compile"
4461 case "(($ac_try" in
4462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463   *) ac_try_echo=$ac_try;;
4464 esac
4465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4466 $as_echo "$ac_try_echo") >&5
4467   (eval "$ac_compile") 2>conftest.er1
4468   ac_status=$?
4469   grep -v '^ *+' conftest.er1 >conftest.err
4470   rm -f conftest.er1
4471   cat conftest.err >&5
4472   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473   (exit $ac_status); } && {
4474          test -z "$ac_c_werror_flag" ||
4475          test ! -s conftest.err
4476        } && test -s conftest.$ac_objext; then
4477   pgac_cv_prog_cc_cflags__qnoansialias=yes
4478 else
4479   $as_echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.$ac_ext >&5
4481
4482         pgac_cv_prog_cc_cflags__qnoansialias=no
4483 fi
4484
4485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4486 ac_c_werror_flag=$ac_save_c_werror_flag
4487 CFLAGS="$pgac_save_CFLAGS"
4488 fi
4489 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4490 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4491 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4492   CFLAGS="$CFLAGS -qnoansialias"
4493 fi
4494
4495 elif test "$PORTNAME" = "hpux"; then
4496   # On some versions of HP-UX, libm functions do not set errno by default.
4497   # Fix that by using +Olibmerrno if the compiler recognizes it.
4498   { $as_echo "$as_me:$LINENO: checking whether $CC supports +Olibmerrno" >&5
4499 $as_echo_n "checking whether $CC supports +Olibmerrno... " >&6; }
4500 if test "${pgac_cv_prog_cc_cflags_pOlibmerrno+set}" = set; then
4501   $as_echo_n "(cached) " >&6
4502 else
4503   pgac_save_CFLAGS=$CFLAGS
4504 CFLAGS="$pgac_save_CFLAGS +Olibmerrno"
4505 ac_save_c_werror_flag=$ac_c_werror_flag
4506 ac_c_werror_flag=yes
4507 cat >conftest.$ac_ext <<_ACEOF
4508 /* confdefs.h.  */
4509 _ACEOF
4510 cat confdefs.h >>conftest.$ac_ext
4511 cat >>conftest.$ac_ext <<_ACEOF
4512 /* end confdefs.h.  */
4513
4514 int
4515 main ()
4516 {
4517
4518   ;
4519   return 0;
4520 }
4521 _ACEOF
4522 rm -f conftest.$ac_objext
4523 if { (ac_try="$ac_compile"
4524 case "(($ac_try" in
4525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4526   *) ac_try_echo=$ac_try;;
4527 esac
4528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4529 $as_echo "$ac_try_echo") >&5
4530   (eval "$ac_compile") 2>conftest.er1
4531   ac_status=$?
4532   grep -v '^ *+' conftest.er1 >conftest.err
4533   rm -f conftest.er1
4534   cat conftest.err >&5
4535   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536   (exit $ac_status); } && {
4537          test -z "$ac_c_werror_flag" ||
4538          test ! -s conftest.err
4539        } && test -s conftest.$ac_objext; then
4540   pgac_cv_prog_cc_cflags_pOlibmerrno=yes
4541 else
4542   $as_echo "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.$ac_ext >&5
4544
4545         pgac_cv_prog_cc_cflags_pOlibmerrno=no
4546 fi
4547
4548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4549 ac_c_werror_flag=$ac_save_c_werror_flag
4550 CFLAGS="$pgac_save_CFLAGS"
4551 fi
4552 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags_pOlibmerrno" >&5
4553 $as_echo "$pgac_cv_prog_cc_cflags_pOlibmerrno" >&6; }
4554 if test x"$pgac_cv_prog_cc_cflags_pOlibmerrno" = x"yes"; then
4555   CFLAGS="$CFLAGS +Olibmerrno"
4556 fi
4557
4558 fi
4559
4560 # supply -g if --enable-debug
4561 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4562   CFLAGS="$CFLAGS -g"
4563 fi
4564
4565 # enable code coverage if --enable-coverage
4566 if test "$enable_coverage" = yes; then
4567   if test "$GCC" = yes; then
4568     CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4569   else
4570     { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4571 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4572    { (exit 1); exit 1; }; }
4573   fi
4574 fi
4575
4576 # enable profiling if --enable-profiling
4577 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4578   if test "$GCC" = yes; then
4579
4580 cat >>confdefs.h <<\_ACEOF
4581 #define PROFILE_PID_DIR 1
4582 _ACEOF
4583
4584     CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4585   else
4586     { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4587 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4588    { (exit 1); exit 1; }; }
4589   fi
4590 fi
4591
4592 # We already have this in Makefile.win32, but configure needs it too
4593 if test "$PORTNAME" = "win32"; then
4594   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4595 fi
4596
4597 # Check if the compiler still works with the template settings
4598 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4599 $as_echo_n "checking whether the C compiler still works... " >&6; }
4600 cat >conftest.$ac_ext <<_ACEOF
4601 /* confdefs.h.  */
4602 _ACEOF
4603 cat confdefs.h >>conftest.$ac_ext
4604 cat >>conftest.$ac_ext <<_ACEOF
4605 /* end confdefs.h.  */
4606
4607 int
4608 main ()
4609 {
4610 return 0;
4611   ;
4612   return 0;
4613 }
4614 _ACEOF
4615 rm -f conftest.$ac_objext conftest$ac_exeext
4616 if { (ac_try="$ac_link"
4617 case "(($ac_try" in
4618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619   *) ac_try_echo=$ac_try;;
4620 esac
4621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4622 $as_echo "$ac_try_echo") >&5
4623   (eval "$ac_link") 2>conftest.er1
4624   ac_status=$?
4625   grep -v '^ *+' conftest.er1 >conftest.err
4626   rm -f conftest.er1
4627   cat conftest.err >&5
4628   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629   (exit $ac_status); } && {
4630          test -z "$ac_c_werror_flag" ||
4631          test ! -s conftest.err
4632        } && test -s conftest$ac_exeext && {
4633          test "$cross_compiling" = yes ||
4634          $as_test_x conftest$ac_exeext
4635        }; then
4636   { $as_echo "$as_me:$LINENO: result: yes" >&5
4637 $as_echo "yes" >&6; }
4638 else
4639   $as_echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4641
4642         { $as_echo "$as_me:$LINENO: result: no" >&5
4643 $as_echo "no" >&6; }
4644    { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4645 $as_echo "$as_me: error: cannot proceed" >&2;}
4646    { (exit 1); exit 1; }; }
4647 fi
4648
4649 rm -rf conftest.dSYM
4650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4651       conftest$ac_exeext conftest.$ac_ext
4652
4653 # Defend against gcc -ffast-math
4654 if test "$GCC" = yes; then
4655 cat >conftest.$ac_ext <<_ACEOF
4656 /* confdefs.h.  */
4657 _ACEOF
4658 cat confdefs.h >>conftest.$ac_ext
4659 cat >>conftest.$ac_ext <<_ACEOF
4660 /* end confdefs.h.  */
4661
4662 int
4663 main ()
4664 {
4665 #ifdef __FAST_MATH__
4666 choke me
4667 #endif
4668   ;
4669   return 0;
4670 }
4671 _ACEOF
4672 rm -f conftest.$ac_objext
4673 if { (ac_try="$ac_compile"
4674 case "(($ac_try" in
4675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4676   *) ac_try_echo=$ac_try;;
4677 esac
4678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4679 $as_echo "$ac_try_echo") >&5
4680   (eval "$ac_compile") 2>conftest.er1
4681   ac_status=$?
4682   grep -v '^ *+' conftest.er1 >conftest.err
4683   rm -f conftest.er1
4684   cat conftest.err >&5
4685   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686   (exit $ac_status); } && {
4687          test -z "$ac_c_werror_flag" ||
4688          test ! -s conftest.err
4689        } && test -s conftest.$ac_objext; then
4690   :
4691 else
4692   $as_echo "$as_me: failed program was:" >&5
4693 sed 's/^/| /' conftest.$ac_ext >&5
4694
4695         { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4696 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4697    { (exit 1); exit 1; }; }
4698 fi
4699
4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701 fi
4702
4703 ac_ext=c
4704 ac_cpp='$CPP $CPPFLAGS'
4705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4708 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4709 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4710 # On Suns, sometimes $CPP names a directory.
4711 if test -n "$CPP" && test -d "$CPP"; then
4712   CPP=
4713 fi
4714 if test -z "$CPP"; then
4715   if test "${ac_cv_prog_CPP+set}" = set; then
4716   $as_echo_n "(cached) " >&6
4717 else
4718       # Double quotes because CPP needs to be expanded
4719     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4720     do
4721       ac_preproc_ok=false
4722 for ac_c_preproc_warn_flag in '' yes
4723 do
4724   # Use a header file that comes with gcc, so configuring glibc
4725   # with a fresh cross-compiler works.
4726   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4727   # <limits.h> exists even on freestanding compilers.
4728   # On the NeXT, cc -E runs the code through the compiler's parser,
4729   # not just through cpp. "Syntax error" is here to catch this case.
4730   cat >conftest.$ac_ext <<_ACEOF
4731 /* confdefs.h.  */
4732 _ACEOF
4733 cat confdefs.h >>conftest.$ac_ext
4734 cat >>conftest.$ac_ext <<_ACEOF
4735 /* end confdefs.h.  */
4736 #ifdef __STDC__
4737 # include <limits.h>
4738 #else
4739 # include <assert.h>
4740 #endif
4741                      Syntax error
4742 _ACEOF
4743 if { (ac_try="$ac_cpp conftest.$ac_ext"
4744 case "(($ac_try" in
4745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4746   *) ac_try_echo=$ac_try;;
4747 esac
4748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4749 $as_echo "$ac_try_echo") >&5
4750   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4751   ac_status=$?
4752   grep -v '^ *+' conftest.er1 >conftest.err
4753   rm -f conftest.er1
4754   cat conftest.err >&5
4755   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756   (exit $ac_status); } >/dev/null && {
4757          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4758          test ! -s conftest.err
4759        }; then
4760   :
4761 else
4762   $as_echo "$as_me: failed program was:" >&5
4763 sed 's/^/| /' conftest.$ac_ext >&5
4764
4765   # Broken: fails on valid input.
4766 continue
4767 fi
4768
4769 rm -f conftest.err conftest.$ac_ext
4770
4771   # OK, works on sane cases.  Now check whether nonexistent headers
4772   # can be detected and how.
4773   cat >conftest.$ac_ext <<_ACEOF
4774 /* confdefs.h.  */
4775 _ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h.  */
4779 #include <ac_nonexistent.h>
4780 _ACEOF
4781 if { (ac_try="$ac_cpp conftest.$ac_ext"
4782 case "(($ac_try" in
4783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4784   *) ac_try_echo=$ac_try;;
4785 esac
4786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4787 $as_echo "$ac_try_echo") >&5
4788   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4789   ac_status=$?
4790   grep -v '^ *+' conftest.er1 >conftest.err
4791   rm -f conftest.er1
4792   cat conftest.err >&5
4793   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794   (exit $ac_status); } >/dev/null && {
4795          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4796          test ! -s conftest.err
4797        }; then
4798   # Broken: success on invalid input.
4799 continue
4800 else
4801   $as_echo "$as_me: failed program was:" >&5
4802 sed 's/^/| /' conftest.$ac_ext >&5
4803
4804   # Passes both tests.
4805 ac_preproc_ok=:
4806 break
4807 fi
4808
4809 rm -f conftest.err conftest.$ac_ext
4810
4811 done
4812 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4813 rm -f conftest.err conftest.$ac_ext
4814 if $ac_preproc_ok; then
4815   break
4816 fi
4817
4818     done
4819     ac_cv_prog_CPP=$CPP
4820
4821 fi
4822   CPP=$ac_cv_prog_CPP
4823 else
4824   ac_cv_prog_CPP=$CPP
4825 fi
4826 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4827 $as_echo "$CPP" >&6; }
4828 ac_preproc_ok=false
4829 for ac_c_preproc_warn_flag in '' yes
4830 do
4831   # Use a header file that comes with gcc, so configuring glibc
4832   # with a fresh cross-compiler works.
4833   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4834   # <limits.h> exists even on freestanding compilers.
4835   # On the NeXT, cc -E runs the code through the compiler's parser,
4836   # not just through cpp. "Syntax error" is here to catch this case.
4837   cat >conftest.$ac_ext <<_ACEOF
4838 /* confdefs.h.  */
4839 _ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h.  */
4843 #ifdef __STDC__
4844 # include <limits.h>
4845 #else
4846 # include <assert.h>
4847 #endif
4848                      Syntax error
4849 _ACEOF
4850 if { (ac_try="$ac_cpp conftest.$ac_ext"
4851 case "(($ac_try" in
4852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853   *) ac_try_echo=$ac_try;;
4854 esac
4855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4856 $as_echo "$ac_try_echo") >&5
4857   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4858   ac_status=$?
4859   grep -v '^ *+' conftest.er1 >conftest.err
4860   rm -f conftest.er1
4861   cat conftest.err >&5
4862   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863   (exit $ac_status); } >/dev/null && {
4864          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4865          test ! -s conftest.err
4866        }; then
4867   :
4868 else
4869   $as_echo "$as_me: failed program was:" >&5
4870 sed 's/^/| /' conftest.$ac_ext >&5
4871
4872   # Broken: fails on valid input.
4873 continue
4874 fi
4875
4876 rm -f conftest.err conftest.$ac_ext
4877
4878   # OK, works on sane cases.  Now check whether nonexistent headers
4879   # can be detected and how.
4880   cat >conftest.$ac_ext <<_ACEOF
4881 /* confdefs.h.  */
4882 _ACEOF
4883 cat confdefs.h >>conftest.$ac_ext
4884 cat >>conftest.$ac_ext <<_ACEOF
4885 /* end confdefs.h.  */
4886 #include <ac_nonexistent.h>
4887 _ACEOF
4888 if { (ac_try="$ac_cpp conftest.$ac_ext"
4889 case "(($ac_try" in
4890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4891   *) ac_try_echo=$ac_try;;
4892 esac
4893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4894 $as_echo "$ac_try_echo") >&5
4895   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4896   ac_status=$?
4897   grep -v '^ *+' conftest.er1 >conftest.err
4898   rm -f conftest.er1
4899   cat conftest.err >&5
4900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901   (exit $ac_status); } >/dev/null && {
4902          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4903          test ! -s conftest.err
4904        }; then
4905   # Broken: success on invalid input.
4906 continue
4907 else
4908   $as_echo "$as_me: failed program was:" >&5
4909 sed 's/^/| /' conftest.$ac_ext >&5
4910
4911   # Passes both tests.
4912 ac_preproc_ok=:
4913 break
4914 fi
4915
4916 rm -f conftest.err conftest.$ac_ext
4917
4918 done
4919 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4920 rm -f conftest.err conftest.$ac_ext
4921 if $ac_preproc_ok; then
4922   :
4923 else
4924   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4926 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4927 See \`config.log' for more details." >&5
4928 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4929 See \`config.log' for more details." >&2;}
4930    { (exit 1); exit 1; }; }; }
4931 fi
4932
4933 ac_ext=c
4934 ac_cpp='$CPP $CPPFLAGS'
4935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4938
4939
4940
4941
4942 #
4943 # Set up TAS assembly code if needed; the template file has now had its
4944 # chance to request this.
4945 #
4946 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4947
4948
4949 if test "$need_tas" = yes ; then
4950   TAS=tas.o
4951 else
4952   TAS=""
4953 fi
4954
4955
4956
4957 #
4958 # Automatic dependency tracking
4959 #
4960
4961
4962 # Check whether --enable-depend was given.
4963 if test "${enable_depend+set}" = set; then
4964   enableval=$enable_depend;
4965   case $enableval in
4966     yes)
4967       autodepend=yes
4968       ;;
4969     no)
4970       :
4971       ;;
4972     *)
4973       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4974 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4975    { (exit 1); exit 1; }; }
4976       ;;
4977   esac
4978
4979 else
4980   enable_depend=no
4981
4982 fi
4983
4984
4985
4986
4987
4988 #
4989 # Enable assert checks
4990 #
4991
4992
4993 # Check whether --enable-cassert was given.
4994 if test "${enable_cassert+set}" = set; then
4995   enableval=$enable_cassert;
4996   case $enableval in
4997     yes)
4998
4999 cat >>confdefs.h <<\_ACEOF
5000 #define USE_ASSERT_CHECKING 1
5001 _ACEOF
5002
5003       ;;
5004     no)
5005       :
5006       ;;
5007     *)
5008       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
5009 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
5010    { (exit 1); exit 1; }; }
5011       ;;
5012   esac
5013
5014 else
5015   enable_cassert=no
5016
5017 fi
5018
5019
5020
5021
5022 #
5023 # Include directories
5024 #
5025 ac_save_IFS=$IFS
5026 IFS="${IFS}${PATH_SEPARATOR}"
5027 # SRCH_INC comes from the template file
5028 for dir in $with_includes $SRCH_INC; do
5029   if test -d "$dir"; then
5030     INCLUDES="$INCLUDES -I$dir"
5031   else
5032     { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
5033 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
5034   fi
5035 done
5036 IFS=$ac_save_IFS
5037
5038
5039
5040 #
5041 # Library directories
5042 #
5043 ac_save_IFS=$IFS
5044 IFS="${IFS}${PATH_SEPARATOR}"
5045 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
5046 for dir in $LIBRARY_DIRS $SRCH_LIB; do
5047   if test -d "$dir"; then
5048     LIBDIRS="$LIBDIRS -L$dir"
5049   else
5050     { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
5051 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
5052   fi
5053 done
5054 IFS=$ac_save_IFS
5055
5056 #
5057 # Enable thread-safe client libraries
5058 #
5059 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
5060 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
5061
5062
5063 # Check whether --enable-thread-safety was given.
5064 if test "${enable_thread_safety+set}" = set; then
5065   enableval=$enable_thread_safety;
5066   case $enableval in
5067     yes)
5068       :
5069       ;;
5070     no)
5071       :
5072       ;;
5073     *)
5074       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
5075 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
5076    { (exit 1); exit 1; }; }
5077       ;;
5078   esac
5079
5080 else
5081   enable_thread_safety=yes
5082
5083 fi
5084
5085
5086 if test "$enable_thread_safety" = yes; then
5087
5088 cat >>confdefs.h <<\_ACEOF
5089 #define ENABLE_THREAD_SAFETY 1
5090 _ACEOF
5091
5092 fi
5093 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
5094 $as_echo "$enable_thread_safety" >&6; }
5095
5096
5097 #
5098 # Optionally build Tcl modules (PL/Tcl)
5099 #
5100 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
5101 $as_echo_n "checking whether to build with Tcl... " >&6; }
5102
5103
5104
5105 # Check whether --with-tcl was given.
5106 if test "${with_tcl+set}" = set; then
5107   withval=$with_tcl;
5108   case $withval in
5109     yes)
5110       :
5111       ;;
5112     no)
5113       :
5114       ;;
5115     *)
5116       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
5117 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
5118    { (exit 1); exit 1; }; }
5119       ;;
5120   esac
5121
5122 else
5123   with_tcl=no
5124
5125 fi
5126
5127
5128 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
5129 $as_echo "$with_tcl" >&6; }
5130
5131
5132 # We see if the path to the Tcl/Tk configuration scripts is specified.
5133 # This will override the use of tclsh to find the paths to search.
5134
5135
5136
5137
5138 # Check whether --with-tclconfig was given.
5139 if test "${with_tclconfig+set}" = set; then
5140   withval=$with_tclconfig;
5141   case $withval in
5142     yes)
5143       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5144 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5145    { (exit 1); exit 1; }; }
5146       ;;
5147     no)
5148       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5149 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5150    { (exit 1); exit 1; }; }
5151       ;;
5152     *)
5153
5154       ;;
5155   esac
5156
5157 fi
5158
5159
5160
5161 #
5162 # Optionally build Perl modules (PL/Perl)
5163 #
5164 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
5165 $as_echo_n "checking whether to build Perl modules... " >&6; }
5166
5167
5168
5169 # Check whether --with-perl was given.
5170 if test "${with_perl+set}" = set; then
5171   withval=$with_perl;
5172   case $withval in
5173     yes)
5174       :
5175       ;;
5176     no)
5177       :
5178       ;;
5179     *)
5180       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
5181 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
5182    { (exit 1); exit 1; }; }
5183       ;;
5184   esac
5185
5186 else
5187   with_perl=no
5188
5189 fi
5190
5191
5192 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
5193 $as_echo "$with_perl" >&6; }
5194
5195
5196 #
5197 # Optionally build Python modules (PL/Python)
5198 #
5199 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5200 $as_echo_n "checking whether to build Python modules... " >&6; }
5201
5202
5203
5204 # Check whether --with-python was given.
5205 if test "${with_python+set}" = set; then
5206   withval=$with_python;
5207   case $withval in
5208     yes)
5209       :
5210       ;;
5211     no)
5212       :
5213       ;;
5214     *)
5215       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5216 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5217    { (exit 1); exit 1; }; }
5218       ;;
5219   esac
5220
5221 else
5222   with_python=no
5223
5224 fi
5225
5226
5227 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5228 $as_echo "$with_python" >&6; }
5229
5230
5231 #
5232 # GSSAPI
5233 #
5234 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5235 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5236
5237
5238
5239 # Check whether --with-gssapi was given.
5240 if test "${with_gssapi+set}" = set; then
5241   withval=$with_gssapi;
5242   case $withval in
5243     yes)
5244
5245
5246 cat >>confdefs.h <<\_ACEOF
5247 #define ENABLE_GSS 1
5248 _ACEOF
5249
5250   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5251
5252       ;;
5253     no)
5254       :
5255       ;;
5256     *)
5257       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5258 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5259    { (exit 1); exit 1; }; }
5260       ;;
5261   esac
5262
5263 else
5264   with_gssapi=no
5265
5266 fi
5267
5268
5269 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5270 $as_echo "$with_gssapi" >&6; }
5271
5272
5273 #
5274 # Kerberos 5
5275 #
5276 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5277 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5278
5279
5280
5281 # Check whether --with-krb5 was given.
5282 if test "${with_krb5+set}" = set; then
5283   withval=$with_krb5;
5284   case $withval in
5285     yes)
5286
5287
5288 cat >>confdefs.h <<\_ACEOF
5289 #define KRB5 1
5290 _ACEOF
5291
5292   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5293
5294       ;;
5295     no)
5296       :
5297       ;;
5298     *)
5299       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5300 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5301    { (exit 1); exit 1; }; }
5302       ;;
5303   esac
5304
5305 else
5306   with_krb5=no
5307
5308 fi
5309
5310
5311 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5312 $as_echo "$with_krb5" >&6; }
5313
5314
5315
5316
5317
5318
5319 #
5320 # Kerberos configuration parameters
5321 #
5322
5323
5324
5325 # Check whether --with-krb-srvnam was given.
5326 if test "${with_krb_srvnam+set}" = set; then
5327   withval=$with_krb_srvnam;
5328   case $withval in
5329     yes)
5330       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5331 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5332    { (exit 1); exit 1; }; }
5333       ;;
5334     no)
5335       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5336 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5337    { (exit 1); exit 1; }; }
5338       ;;
5339     *)
5340
5341       ;;
5342   esac
5343
5344 else
5345   with_krb_srvnam="postgres"
5346 fi
5347
5348
5349
5350 cat >>confdefs.h <<_ACEOF
5351 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5352 _ACEOF
5353
5354
5355
5356 #
5357 # PAM
5358 #
5359 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5360 $as_echo_n "checking whether to build with PAM support... " >&6; }
5361
5362
5363
5364 # Check whether --with-pam was given.
5365 if test "${with_pam+set}" = set; then
5366   withval=$with_pam;
5367   case $withval in
5368     yes)
5369
5370 cat >>confdefs.h <<\_ACEOF
5371 #define USE_PAM 1
5372 _ACEOF
5373
5374       ;;
5375     no)
5376       :
5377       ;;
5378     *)
5379       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5380 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5381    { (exit 1); exit 1; }; }
5382       ;;
5383   esac
5384
5385 else
5386   with_pam=no
5387
5388 fi
5389
5390
5391 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5392 $as_echo "$with_pam" >&6; }
5393
5394
5395
5396 #
5397 # LDAP
5398 #
5399 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5400 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5401
5402
5403
5404 # Check whether --with-ldap was given.
5405 if test "${with_ldap+set}" = set; then
5406   withval=$with_ldap;
5407   case $withval in
5408     yes)
5409
5410 cat >>confdefs.h <<\_ACEOF
5411 #define USE_LDAP 1
5412 _ACEOF
5413
5414       ;;
5415     no)
5416       :
5417       ;;
5418     *)
5419       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5420 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5421    { (exit 1); exit 1; }; }
5422       ;;
5423   esac
5424
5425 else
5426   with_ldap=no
5427
5428 fi
5429
5430
5431 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5432 $as_echo "$with_ldap" >&6; }
5433
5434
5435
5436 #
5437 # Bonjour
5438 #
5439 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5440 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5441
5442
5443
5444 # Check whether --with-bonjour was given.
5445 if test "${with_bonjour+set}" = set; then
5446   withval=$with_bonjour;
5447   case $withval in
5448     yes)
5449
5450 cat >>confdefs.h <<\_ACEOF
5451 #define USE_BONJOUR 1
5452 _ACEOF
5453
5454       ;;
5455     no)
5456       :
5457       ;;
5458     *)
5459       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5460 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5461    { (exit 1); exit 1; }; }
5462       ;;
5463   esac
5464
5465 else
5466   with_bonjour=no
5467
5468 fi
5469
5470
5471 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5472 $as_echo "$with_bonjour" >&6; }
5473
5474
5475
5476 #
5477 # OpenSSL
5478 #
5479 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5480 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5481
5482
5483
5484 # Check whether --with-openssl was given.
5485 if test "${with_openssl+set}" = set; then
5486   withval=$with_openssl;
5487   case $withval in
5488     yes)
5489
5490 cat >>confdefs.h <<\_ACEOF
5491 #define USE_SSL 1
5492 _ACEOF
5493
5494       ;;
5495     no)
5496       :
5497       ;;
5498     *)
5499       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5500 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5501    { (exit 1); exit 1; }; }
5502       ;;
5503   esac
5504
5505 else
5506   with_openssl=no
5507
5508 fi
5509
5510
5511 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5512 $as_echo "$with_openssl" >&6; }
5513
5514
5515 #
5516 # SELinux
5517 #
5518 { $as_echo "$as_me:$LINENO: checking whether to build with SELinux support" >&5
5519 $as_echo_n "checking whether to build with SELinux support... " >&6; }
5520
5521
5522
5523 # Check whether --with-selinux was given.
5524 if test "${with_selinux+set}" = set; then
5525   withval=$with_selinux;
5526   case $withval in
5527     yes)
5528       :
5529       ;;
5530     no)
5531       :
5532       ;;
5533     *)
5534       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-selinux option" >&5
5535 $as_echo "$as_me: error: no argument expected for --with-selinux option" >&2;}
5536    { (exit 1); exit 1; }; }
5537       ;;
5538   esac
5539
5540 else
5541   with_selinux=no
5542
5543 fi
5544
5545
5546
5547 { $as_echo "$as_me:$LINENO: result: $with_selinux" >&5
5548 $as_echo "$with_selinux" >&6; }
5549
5550 #
5551 # Readline
5552 #
5553
5554
5555
5556 # Check whether --with-readline was given.
5557 if test "${with_readline+set}" = set; then
5558   withval=$with_readline;
5559   case $withval in
5560     yes)
5561       :
5562       ;;
5563     no)
5564       :
5565       ;;
5566     *)
5567       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5568 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5569    { (exit 1); exit 1; }; }
5570       ;;
5571   esac
5572
5573 else
5574   with_readline=yes
5575
5576 fi
5577
5578
5579 # readline on MinGW has problems with backslashes in psql and other bugs.
5580 # This is particularly a problem with non-US code pages.
5581 # Therefore disable its use until we understand the cause. 2004-07-20
5582 if test "$PORTNAME" = "win32"; then
5583   if test "$with_readline" = yes; then
5584     { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5585 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5586     with_readline=no
5587   fi
5588 fi
5589
5590
5591 #
5592 # Prefer libedit
5593 #
5594
5595
5596
5597 # Check whether --with-libedit-preferred was given.
5598 if test "${with_libedit_preferred+set}" = set; then
5599   withval=$with_libedit_preferred;
5600   case $withval in
5601     yes)
5602       :
5603       ;;
5604     no)
5605       :
5606       ;;
5607     *)
5608       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5609 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5610    { (exit 1); exit 1; }; }
5611       ;;
5612   esac
5613
5614 else
5615   with_libedit_preferred=no
5616
5617 fi
5618
5619
5620
5621
5622 #
5623 # OSSP UUID library
5624 #
5625
5626
5627
5628 # Check whether --with-ossp-uuid was given.
5629 if test "${with_ossp_uuid+set}" = set; then
5630   withval=$with_ossp_uuid;
5631   case $withval in
5632     yes)
5633       :
5634       ;;
5635     no)
5636       :
5637       ;;
5638     *)
5639       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5640 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5641    { (exit 1); exit 1; }; }
5642       ;;
5643   esac
5644
5645 else
5646   with_ossp_uuid=no
5647
5648 fi
5649
5650
5651
5652
5653
5654 #
5655 # XML
5656 #
5657
5658
5659
5660 # Check whether --with-libxml was given.
5661 if test "${with_libxml+set}" = set; then
5662   withval=$with_libxml;
5663   case $withval in
5664     yes)
5665
5666 cat >>confdefs.h <<\_ACEOF
5667 #define USE_LIBXML 1
5668 _ACEOF
5669
5670       ;;
5671     no)
5672       :
5673       ;;
5674     *)
5675       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5676 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5677    { (exit 1); exit 1; }; }
5678       ;;
5679   esac
5680
5681 else
5682   with_libxml=no
5683
5684 fi
5685
5686
5687
5688 if test "$with_libxml" = yes ; then
5689   for ac_prog in xml2-config
5690 do
5691   # Extract the first word of "$ac_prog", so it can be a program name with args.
5692 set dummy $ac_prog; ac_word=$2
5693 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5694 $as_echo_n "checking for $ac_word... " >&6; }
5695 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5696   $as_echo_n "(cached) " >&6
5697 else
5698   if test -n "$XML2_CONFIG"; then
5699   ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5700 else
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 for as_dir in $PATH
5703 do
5704   IFS=$as_save_IFS
5705   test -z "$as_dir" && as_dir=.
5706   for ac_exec_ext in '' $ac_executable_extensions; do
5707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5708     ac_cv_prog_XML2_CONFIG="$ac_prog"
5709     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5710     break 2
5711   fi
5712 done
5713 done
5714 IFS=$as_save_IFS
5715
5716 fi
5717 fi
5718 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5719 if test -n "$XML2_CONFIG"; then
5720   { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5721 $as_echo "$XML2_CONFIG" >&6; }
5722 else
5723   { $as_echo "$as_me:$LINENO: result: no" >&5
5724 $as_echo "no" >&6; }
5725 fi
5726
5727
5728   test -n "$XML2_CONFIG" && break
5729 done
5730
5731   if test -n "$XML2_CONFIG"; then
5732     for pgac_option in `$XML2_CONFIG --cflags`; do
5733       case $pgac_option in
5734         -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5735       esac
5736     done
5737     for pgac_option in `$XML2_CONFIG --libs`; do
5738       case $pgac_option in
5739         -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5740       esac
5741     done
5742   fi
5743 fi
5744
5745
5746
5747 #
5748 # XSLT
5749 #
5750
5751
5752
5753 # Check whether --with-libxslt was given.
5754 if test "${with_libxslt+set}" = set; then
5755   withval=$with_libxslt;
5756   case $withval in
5757     yes)
5758
5759 cat >>confdefs.h <<\_ACEOF
5760 #define USE_LIBXSLT 1
5761 _ACEOF
5762
5763       ;;
5764     no)
5765       :
5766       ;;
5767     *)
5768       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5769 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5770    { (exit 1); exit 1; }; }
5771       ;;
5772   esac
5773
5774 else
5775   with_libxslt=no
5776
5777 fi
5778
5779
5780
5781
5782
5783
5784 #
5785 # tzdata
5786 #
5787
5788
5789
5790 # Check whether --with-system-tzdata was given.
5791 if test "${with_system_tzdata+set}" = set; then
5792   withval=$with_system_tzdata;
5793   case $withval in
5794     yes)
5795       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5796 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5797    { (exit 1); exit 1; }; }
5798       ;;
5799     no)
5800       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5801 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5802    { (exit 1); exit 1; }; }
5803       ;;
5804     *)
5805
5806       ;;
5807   esac
5808
5809 fi
5810
5811
5812
5813
5814 #
5815 # Zlib
5816 #
5817
5818
5819
5820 # Check whether --with-zlib was given.
5821 if test "${with_zlib+set}" = set; then
5822   withval=$with_zlib;
5823   case $withval in
5824     yes)
5825       :
5826       ;;
5827     no)
5828       :
5829       ;;
5830     *)
5831       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5832 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5833    { (exit 1); exit 1; }; }
5834       ;;
5835   esac
5836
5837 else
5838   with_zlib=yes
5839
5840 fi
5841
5842
5843
5844
5845 #
5846 # Elf
5847 #
5848
5849 # Assume system is ELF if it predefines __ELF__ as 1,
5850 # otherwise believe host_os based default.
5851 case $host_os in
5852     freebsd1*|freebsd2*) elf=no;;
5853     freebsd3*|freebsd4*) elf=yes;;
5854 esac
5855
5856
5857 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5858 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5859 if test "${ac_cv_path_GREP+set}" = set; then
5860   $as_echo_n "(cached) " >&6
5861 else
5862   if test -z "$GREP"; then
5863   ac_path_GREP_found=false
5864   # Loop through the user's path and test for each of PROGNAME-LIST
5865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5867 do
5868   IFS=$as_save_IFS
5869   test -z "$as_dir" && as_dir=.
5870   for ac_prog in grep ggrep; do
5871     for ac_exec_ext in '' $ac_executable_extensions; do
5872       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5873       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5874 # Check for GNU ac_path_GREP and select it if it is found.
5875   # Check for GNU $ac_path_GREP
5876 case `"$ac_path_GREP" --version 2>&1` in
5877 *GNU*)
5878   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5879 *)
5880   ac_count=0
5881   $as_echo_n 0123456789 >"conftest.in"
5882   while :
5883   do
5884     cat "conftest.in" "conftest.in" >"conftest.tmp"
5885     mv "conftest.tmp" "conftest.in"
5886     cp "conftest.in" "conftest.nl"
5887     $as_echo 'GREP' >> "conftest.nl"
5888     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5889     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5890     ac_count=`expr $ac_count + 1`
5891     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5892       # Best one so far, save it but keep looking for a better one
5893       ac_cv_path_GREP="$ac_path_GREP"
5894       ac_path_GREP_max=$ac_count
5895     fi
5896     # 10*(2^10) chars as input seems more than enough
5897     test $ac_count -gt 10 && break
5898   done
5899   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5900 esac
5901
5902       $ac_path_GREP_found && break 3
5903     done
5904   done
5905 done
5906 IFS=$as_save_IFS
5907   if test -z "$ac_cv_path_GREP"; then
5908     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5909 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5910    { (exit 1); exit 1; }; }
5911   fi
5912 else
5913   ac_cv_path_GREP=$GREP
5914 fi
5915
5916 fi
5917 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5918 $as_echo "$ac_cv_path_GREP" >&6; }
5919  GREP="$ac_cv_path_GREP"
5920
5921
5922 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5923 $as_echo_n "checking for egrep... " >&6; }
5924 if test "${ac_cv_path_EGREP+set}" = set; then
5925   $as_echo_n "(cached) " >&6
5926 else
5927   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5928    then ac_cv_path_EGREP="$GREP -E"
5929    else
5930      if test -z "$EGREP"; then
5931   ac_path_EGREP_found=false
5932   # Loop through the user's path and test for each of PROGNAME-LIST
5933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5935 do
5936   IFS=$as_save_IFS
5937   test -z "$as_dir" && as_dir=.
5938   for ac_prog in egrep; do
5939     for ac_exec_ext in '' $ac_executable_extensions; do
5940       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5941       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5942 # Check for GNU ac_path_EGREP and select it if it is found.
5943   # Check for GNU $ac_path_EGREP
5944 case `"$ac_path_EGREP" --version 2>&1` in
5945 *GNU*)
5946   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5947 *)
5948   ac_count=0
5949   $as_echo_n 0123456789 >"conftest.in"
5950   while :
5951   do
5952     cat "conftest.in" "conftest.in" >"conftest.tmp"
5953     mv "conftest.tmp" "conftest.in"
5954     cp "conftest.in" "conftest.nl"
5955     $as_echo 'EGREP' >> "conftest.nl"
5956     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5957     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5958     ac_count=`expr $ac_count + 1`
5959     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5960       # Best one so far, save it but keep looking for a better one
5961       ac_cv_path_EGREP="$ac_path_EGREP"
5962       ac_path_EGREP_max=$ac_count
5963     fi
5964     # 10*(2^10) chars as input seems more than enough
5965     test $ac_count -gt 10 && break
5966   done
5967   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5968 esac
5969
5970       $ac_path_EGREP_found && break 3
5971     done
5972   done
5973 done
5974 IFS=$as_save_IFS
5975   if test -z "$ac_cv_path_EGREP"; then
5976     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5977 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5978    { (exit 1); exit 1; }; }
5979   fi
5980 else
5981   ac_cv_path_EGREP=$EGREP
5982 fi
5983
5984    fi
5985 fi
5986 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5987 $as_echo "$ac_cv_path_EGREP" >&6; }
5988  EGREP="$ac_cv_path_EGREP"
5989
5990
5991 cat >conftest.$ac_ext <<_ACEOF
5992 /* confdefs.h.  */
5993 _ACEOF
5994 cat confdefs.h >>conftest.$ac_ext
5995 cat >>conftest.$ac_ext <<_ACEOF
5996 /* end confdefs.h.  */
5997 #if __ELF__
5998   yes
5999 #endif
6000
6001 _ACEOF
6002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6003   $EGREP "yes" >/dev/null 2>&1; then
6004   ELF_SYS=true
6005 else
6006   if test "X$elf" = "Xyes" ; then
6007   ELF_SYS=true
6008 else
6009   ELF_SYS=
6010 fi
6011 fi
6012 rm -f conftest*
6013
6014
6015
6016 #
6017 # Assignments
6018 #
6019
6020 CPPFLAGS="$CPPFLAGS $INCLUDES"
6021 LDFLAGS="$LDFLAGS $LIBDIRS"
6022
6023
6024
6025
6026
6027 # Check whether --with-gnu-ld was given.
6028 if test "${with_gnu_ld+set}" = set; then
6029   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6030 else
6031   with_gnu_ld=no
6032 fi
6033
6034 ac_prog=ld
6035 if test "$GCC" = yes; then
6036   # Check if gcc -print-prog-name=ld gives a path.
6037   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6038 $as_echo_n "checking for ld used by GCC... " >&6; }
6039   case $host in
6040   *-*-mingw*)
6041     # gcc leaves a trailing carriage return which upsets mingw
6042     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6043   *)
6044     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6045   esac
6046   case "$ac_prog" in
6047     # Accept absolute paths.
6048     [\\/]* | [A-Za-z]:[\\/]*)
6049       re_direlt='/[^/][^/]*/\.\./'
6050       # Canonicalize the path of ld
6051       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6052       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6053         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6054       done
6055       test -z "$LD" && LD="$ac_prog"
6056       ;;
6057   "")
6058     # If it fails, then pretend we aren't using GCC.
6059     ac_prog=ld
6060     ;;
6061   *)
6062     # If it is relative, then search for the first ld in PATH.
6063     with_gnu_ld=unknown
6064     ;;
6065   esac
6066 elif test "$with_gnu_ld" = yes; then
6067   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6068 $as_echo_n "checking for GNU ld... " >&6; }
6069 else
6070   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6071 $as_echo_n "checking for non-GNU ld... " >&6; }
6072 fi
6073 if test "${ac_cv_path_LD+set}" = set; then
6074   $as_echo_n "(cached) " >&6
6075 else
6076   if test -z "$LD"; then
6077   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6078   for ac_dir in $PATH; do
6079     test -z "$ac_dir" && ac_dir=.
6080     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6081       ac_cv_path_LD="$ac_dir/$ac_prog"
6082       # Check to see if the program is GNU ld.  I'd rather use --version,
6083       # but apparently some GNU ld's only accept -v.
6084       # Break only if it was the GNU/non-GNU ld that we prefer.
6085       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6086         test "$with_gnu_ld" != no && break
6087       else
6088         test "$with_gnu_ld" != yes && break
6089       fi
6090     fi
6091   done
6092   IFS="$ac_save_ifs"
6093 else
6094   ac_cv_path_LD="$LD" # Let the user override the test with a path.
6095 fi
6096 fi
6097
6098 LD="$ac_cv_path_LD"
6099 if test -n "$LD"; then
6100   { $as_echo "$as_me:$LINENO: result: $LD" >&5
6101 $as_echo "$LD" >&6; }
6102 else
6103   { $as_echo "$as_me:$LINENO: result: no" >&5
6104 $as_echo "no" >&6; }
6105 fi
6106 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6107 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6108    { (exit 1); exit 1; }; }
6109 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6110 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6111 if test "${ac_cv_prog_gnu_ld+set}" = set; then
6112   $as_echo_n "(cached) " >&6
6113 else
6114   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6115 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6116   ac_cv_prog_gnu_ld=yes
6117 else
6118   ac_cv_prog_gnu_ld=no
6119 fi
6120 fi
6121 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
6122 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6123 with_gnu_ld=$ac_cv_prog_gnu_ld
6124
6125
6126
6127
6128 case $host_os in sysv5*)
6129   { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
6130 $as_echo_n "checking whether ld -R works... " >&6; }
6131 if test "${pgac_cv_prog_ld_R+set}" = set; then
6132   $as_echo_n "(cached) " >&6
6133 else
6134
6135     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
6136     cat >conftest.$ac_ext <<_ACEOF
6137 /* confdefs.h.  */
6138 _ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h.  */
6142
6143 int
6144 main ()
6145 {
6146
6147   ;
6148   return 0;
6149 }
6150 _ACEOF
6151 rm -f conftest.$ac_objext conftest$ac_exeext
6152 if { (ac_try="$ac_link"
6153 case "(($ac_try" in
6154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155   *) ac_try_echo=$ac_try;;
6156 esac
6157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6158 $as_echo "$ac_try_echo") >&5
6159   (eval "$ac_link") 2>conftest.er1
6160   ac_status=$?
6161   grep -v '^ *+' conftest.er1 >conftest.err
6162   rm -f conftest.er1
6163   cat conftest.err >&5
6164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165   (exit $ac_status); } && {
6166          test -z "$ac_c_werror_flag" ||
6167          test ! -s conftest.err
6168        } && test -s conftest$ac_exeext && {
6169          test "$cross_compiling" = yes ||
6170          $as_test_x conftest$ac_exeext
6171        }; then
6172   pgac_cv_prog_ld_R=yes
6173 else
6174   $as_echo "$as_me: failed program was:" >&5
6175 sed 's/^/| /' conftest.$ac_ext >&5
6176
6177         pgac_cv_prog_ld_R=no
6178 fi
6179
6180 rm -rf conftest.dSYM
6181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6182       conftest$ac_exeext conftest.$ac_ext
6183     LDFLAGS=$pgac_save_LDFLAGS
6184
6185 fi
6186 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
6187 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6188   ld_R_works=$pgac_cv_prog_ld_R
6189
6190 esac
6191 if test -n "$ac_tool_prefix"; then
6192   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6193 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6194 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6195 $as_echo_n "checking for $ac_word... " >&6; }
6196 if test "${ac_cv_prog_RANLIB+set}" = set; then
6197   $as_echo_n "(cached) " >&6
6198 else
6199   if test -n "$RANLIB"; then
6200   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6201 else
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 for as_dir in $PATH
6204 do
6205   IFS=$as_save_IFS
6206   test -z "$as_dir" && as_dir=.
6207   for ac_exec_ext in '' $ac_executable_extensions; do
6208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6209     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6210     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6211     break 2
6212   fi
6213 done
6214 done
6215 IFS=$as_save_IFS
6216
6217 fi
6218 fi
6219 RANLIB=$ac_cv_prog_RANLIB
6220 if test -n "$RANLIB"; then
6221   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6222 $as_echo "$RANLIB" >&6; }
6223 else
6224   { $as_echo "$as_me:$LINENO: result: no" >&5
6225 $as_echo "no" >&6; }
6226 fi
6227
6228
6229 fi
6230 if test -z "$ac_cv_prog_RANLIB"; then
6231   ac_ct_RANLIB=$RANLIB
6232   # Extract the first word of "ranlib", so it can be a program name with args.
6233 set dummy ranlib; ac_word=$2
6234 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6235 $as_echo_n "checking for $ac_word... " >&6; }
6236 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6237   $as_echo_n "(cached) " >&6
6238 else
6239   if test -n "$ac_ct_RANLIB"; then
6240   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6241 else
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 for as_dir in $PATH
6244 do
6245   IFS=$as_save_IFS
6246   test -z "$as_dir" && as_dir=.
6247   for ac_exec_ext in '' $ac_executable_extensions; do
6248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6249     ac_cv_prog_ac_ct_RANLIB="ranlib"
6250     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6251     break 2
6252   fi
6253 done
6254 done
6255 IFS=$as_save_IFS
6256
6257 fi
6258 fi
6259 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6260 if test -n "$ac_ct_RANLIB"; then
6261   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6262 $as_echo "$ac_ct_RANLIB" >&6; }
6263 else
6264   { $as_echo "$as_me:$LINENO: result: no" >&5
6265 $as_echo "no" >&6; }
6266 fi
6267
6268   if test "x$ac_ct_RANLIB" = x; then
6269     RANLIB=":"
6270   else
6271     case $cross_compiling:$ac_tool_warned in
6272 yes:)
6273 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6275 ac_tool_warned=yes ;;
6276 esac
6277     RANLIB=$ac_ct_RANLIB
6278   fi
6279 else
6280   RANLIB="$ac_cv_prog_RANLIB"
6281 fi
6282
6283
6284   if test -n "$ac_tool_prefix"; then
6285   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6286 set dummy ${ac_tool_prefix}strip; ac_word=$2
6287 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6288 $as_echo_n "checking for $ac_word... " >&6; }
6289 if test "${ac_cv_prog_STRIP+set}" = set; then
6290   $as_echo_n "(cached) " >&6
6291 else
6292   if test -n "$STRIP"; then
6293   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6294 else
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 for as_dir in $PATH
6297 do
6298   IFS=$as_save_IFS
6299   test -z "$as_dir" && as_dir=.
6300   for ac_exec_ext in '' $ac_executable_extensions; do
6301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6302     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6303     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6304     break 2
6305   fi
6306 done
6307 done
6308 IFS=$as_save_IFS
6309
6310 fi
6311 fi
6312 STRIP=$ac_cv_prog_STRIP
6313 if test -n "$STRIP"; then
6314   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6315 $as_echo "$STRIP" >&6; }
6316 else
6317   { $as_echo "$as_me:$LINENO: result: no" >&5
6318 $as_echo "no" >&6; }
6319 fi
6320
6321
6322 fi
6323 if test -z "$ac_cv_prog_STRIP"; then
6324   ac_ct_STRIP=$STRIP
6325   # Extract the first word of "strip", so it can be a program name with args.
6326 set dummy strip; ac_word=$2
6327 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6328 $as_echo_n "checking for $ac_word... " >&6; }
6329 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6330   $as_echo_n "(cached) " >&6
6331 else
6332   if test -n "$ac_ct_STRIP"; then
6333   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6334 else
6335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336 for as_dir in $PATH
6337 do
6338   IFS=$as_save_IFS
6339   test -z "$as_dir" && as_dir=.
6340   for ac_exec_ext in '' $ac_executable_extensions; do
6341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6342     ac_cv_prog_ac_ct_STRIP="strip"
6343     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6344     break 2
6345   fi
6346 done
6347 done
6348 IFS=$as_save_IFS
6349
6350 fi
6351 fi
6352 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6353 if test -n "$ac_ct_STRIP"; then
6354   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6355 $as_echo "$ac_ct_STRIP" >&6; }
6356 else
6357   { $as_echo "$as_me:$LINENO: result: no" >&5
6358 $as_echo "no" >&6; }
6359 fi
6360
6361   if test "x$ac_ct_STRIP" = x; then
6362     STRIP=":"
6363   else
6364     case $cross_compiling:$ac_tool_warned in
6365 yes:)
6366 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6368 ac_tool_warned=yes ;;
6369 esac
6370     STRIP=$ac_ct_STRIP
6371   fi
6372 else
6373   STRIP="$ac_cv_prog_STRIP"
6374 fi
6375
6376
6377   { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6378 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6379   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6380     STRIP_STATIC_LIB="$STRIP -x"
6381     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6382     { $as_echo "$as_me:$LINENO: result: yes" >&5
6383 $as_echo "yes" >&6; }
6384   else
6385     STRIP_STATIC_LIB=:
6386     STRIP_SHARED_LIB=:
6387     { $as_echo "$as_me:$LINENO: result: no" >&5
6388 $as_echo "no" >&6; }
6389   fi
6390
6391
6392
6393 if test -n "$ac_tool_prefix"; then
6394   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6395 set dummy ${ac_tool_prefix}ar; ac_word=$2
6396 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6397 $as_echo_n "checking for $ac_word... " >&6; }
6398 if test "${ac_cv_prog_AR+set}" = set; then
6399   $as_echo_n "(cached) " >&6
6400 else
6401   if test -n "$AR"; then
6402   ac_cv_prog_AR="$AR" # Let the user override the test.
6403 else
6404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405 for as_dir in $PATH
6406 do
6407   IFS=$as_save_IFS
6408   test -z "$as_dir" && as_dir=.
6409   for ac_exec_ext in '' $ac_executable_extensions; do
6410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6411     ac_cv_prog_AR="${ac_tool_prefix}ar"
6412     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6413     break 2
6414   fi
6415 done
6416 done
6417 IFS=$as_save_IFS
6418
6419 fi
6420 fi
6421 AR=$ac_cv_prog_AR
6422 if test -n "$AR"; then
6423   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6424 $as_echo "$AR" >&6; }
6425 else
6426   { $as_echo "$as_me:$LINENO: result: no" >&5
6427 $as_echo "no" >&6; }
6428 fi
6429
6430
6431 fi
6432 if test -z "$ac_cv_prog_AR"; then
6433   ac_ct_AR=$AR
6434   # Extract the first word of "ar", so it can be a program name with args.
6435 set dummy ar; ac_word=$2
6436 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6437 $as_echo_n "checking for $ac_word... " >&6; }
6438 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6439   $as_echo_n "(cached) " >&6
6440 else
6441   if test -n "$ac_ct_AR"; then
6442   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6443 else
6444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445 for as_dir in $PATH
6446 do
6447   IFS=$as_save_IFS
6448   test -z "$as_dir" && as_dir=.
6449   for ac_exec_ext in '' $ac_executable_extensions; do
6450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6451     ac_cv_prog_ac_ct_AR="ar"
6452     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6453     break 2
6454   fi
6455 done
6456 done
6457 IFS=$as_save_IFS
6458
6459 fi
6460 fi
6461 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6462 if test -n "$ac_ct_AR"; then
6463   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6464 $as_echo "$ac_ct_AR" >&6; }
6465 else
6466   { $as_echo "$as_me:$LINENO: result: no" >&5
6467 $as_echo "no" >&6; }
6468 fi
6469
6470   if test "x$ac_ct_AR" = x; then
6471     AR="ar"
6472   else
6473     case $cross_compiling:$ac_tool_warned in
6474 yes:)
6475 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6477 ac_tool_warned=yes ;;
6478 esac
6479     AR=$ac_ct_AR
6480   fi
6481 else
6482   AR="$ac_cv_prog_AR"
6483 fi
6484
6485 if test "$PORTNAME" = "win32"; then
6486   if test -n "$ac_tool_prefix"; then
6487   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6488 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6489 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6490 $as_echo_n "checking for $ac_word... " >&6; }
6491 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6492   $as_echo_n "(cached) " >&6
6493 else
6494   if test -n "$DLLTOOL"; then
6495   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6496 else
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498 for as_dir in $PATH
6499 do
6500   IFS=$as_save_IFS
6501   test -z "$as_dir" && as_dir=.
6502   for ac_exec_ext in '' $ac_executable_extensions; do
6503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6504     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6505     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6506     break 2
6507   fi
6508 done
6509 done
6510 IFS=$as_save_IFS
6511
6512 fi
6513 fi
6514 DLLTOOL=$ac_cv_prog_DLLTOOL
6515 if test -n "$DLLTOOL"; then
6516   { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6517 $as_echo "$DLLTOOL" >&6; }
6518 else
6519   { $as_echo "$as_me:$LINENO: result: no" >&5
6520 $as_echo "no" >&6; }
6521 fi
6522
6523
6524 fi
6525 if test -z "$ac_cv_prog_DLLTOOL"; then
6526   ac_ct_DLLTOOL=$DLLTOOL
6527   # Extract the first word of "dlltool", so it can be a program name with args.
6528 set dummy dlltool; ac_word=$2
6529 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6530 $as_echo_n "checking for $ac_word... " >&6; }
6531 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6532   $as_echo_n "(cached) " >&6
6533 else
6534   if test -n "$ac_ct_DLLTOOL"; then
6535   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6536 else
6537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538 for as_dir in $PATH
6539 do
6540   IFS=$as_save_IFS
6541   test -z "$as_dir" && as_dir=.
6542   for ac_exec_ext in '' $ac_executable_extensions; do
6543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6544     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6545     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6546     break 2
6547   fi
6548 done
6549 done
6550 IFS=$as_save_IFS
6551
6552 fi
6553 fi
6554 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6555 if test -n "$ac_ct_DLLTOOL"; then
6556   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6557 $as_echo "$ac_ct_DLLTOOL" >&6; }
6558 else
6559   { $as_echo "$as_me:$LINENO: result: no" >&5
6560 $as_echo "no" >&6; }
6561 fi
6562
6563   if test "x$ac_ct_DLLTOOL" = x; then
6564     DLLTOOL="dlltool"
6565   else
6566     case $cross_compiling:$ac_tool_warned in
6567 yes:)
6568 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6569 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6570 ac_tool_warned=yes ;;
6571 esac
6572     DLLTOOL=$ac_ct_DLLTOOL
6573   fi
6574 else
6575   DLLTOOL="$ac_cv_prog_DLLTOOL"
6576 fi
6577
6578   if test -n "$ac_tool_prefix"; then
6579   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6580 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6581 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6582 $as_echo_n "checking for $ac_word... " >&6; }
6583 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6584   $as_echo_n "(cached) " >&6
6585 else
6586   if test -n "$DLLWRAP"; then
6587   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6588 else
6589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6590 for as_dir in $PATH
6591 do
6592   IFS=$as_save_IFS
6593   test -z "$as_dir" && as_dir=.
6594   for ac_exec_ext in '' $ac_executable_extensions; do
6595   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6596     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6597     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6598     break 2
6599   fi
6600 done
6601 done
6602 IFS=$as_save_IFS
6603
6604 fi
6605 fi
6606 DLLWRAP=$ac_cv_prog_DLLWRAP
6607 if test -n "$DLLWRAP"; then
6608   { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6609 $as_echo "$DLLWRAP" >&6; }
6610 else
6611   { $as_echo "$as_me:$LINENO: result: no" >&5
6612 $as_echo "no" >&6; }
6613 fi
6614
6615
6616 fi
6617 if test -z "$ac_cv_prog_DLLWRAP"; then
6618   ac_ct_DLLWRAP=$DLLWRAP
6619   # Extract the first word of "dllwrap", so it can be a program name with args.
6620 set dummy dllwrap; ac_word=$2
6621 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6622 $as_echo_n "checking for $ac_word... " >&6; }
6623 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6624   $as_echo_n "(cached) " >&6
6625 else
6626   if test -n "$ac_ct_DLLWRAP"; then
6627   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6628 else
6629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630 for as_dir in $PATH
6631 do
6632   IFS=$as_save_IFS
6633   test -z "$as_dir" && as_dir=.
6634   for ac_exec_ext in '' $ac_executable_extensions; do
6635   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6636     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6637     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6638     break 2
6639   fi
6640 done
6641 done
6642 IFS=$as_save_IFS
6643
6644 fi
6645 fi
6646 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6647 if test -n "$ac_ct_DLLWRAP"; then
6648   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6649 $as_echo "$ac_ct_DLLWRAP" >&6; }
6650 else
6651   { $as_echo "$as_me:$LINENO: result: no" >&5
6652 $as_echo "no" >&6; }
6653 fi
6654
6655   if test "x$ac_ct_DLLWRAP" = x; then
6656     DLLWRAP="dllwrap"
6657   else
6658     case $cross_compiling:$ac_tool_warned in
6659 yes:)
6660 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6662 ac_tool_warned=yes ;;
6663 esac
6664     DLLWRAP=$ac_ct_DLLWRAP
6665   fi
6666 else
6667   DLLWRAP="$ac_cv_prog_DLLWRAP"
6668 fi
6669
6670   if test -n "$ac_tool_prefix"; then
6671   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6672 set dummy ${ac_tool_prefix}windres; ac_word=$2
6673 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6674 $as_echo_n "checking for $ac_word... " >&6; }
6675 if test "${ac_cv_prog_WINDRES+set}" = set; then
6676   $as_echo_n "(cached) " >&6
6677 else
6678   if test -n "$WINDRES"; then
6679   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6680 else
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 for as_dir in $PATH
6683 do
6684   IFS=$as_save_IFS
6685   test -z "$as_dir" && as_dir=.
6686   for ac_exec_ext in '' $ac_executable_extensions; do
6687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6688     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6689     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6690     break 2
6691   fi
6692 done
6693 done
6694 IFS=$as_save_IFS
6695
6696 fi
6697 fi
6698 WINDRES=$ac_cv_prog_WINDRES
6699 if test -n "$WINDRES"; then
6700   { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6701 $as_echo "$WINDRES" >&6; }
6702 else
6703   { $as_echo "$as_me:$LINENO: result: no" >&5
6704 $as_echo "no" >&6; }
6705 fi
6706
6707
6708 fi
6709 if test -z "$ac_cv_prog_WINDRES"; then
6710   ac_ct_WINDRES=$WINDRES
6711   # Extract the first word of "windres", so it can be a program name with args.
6712 set dummy windres; ac_word=$2
6713 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6714 $as_echo_n "checking for $ac_word... " >&6; }
6715 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6716   $as_echo_n "(cached) " >&6
6717 else
6718   if test -n "$ac_ct_WINDRES"; then
6719   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6720 else
6721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722 for as_dir in $PATH
6723 do
6724   IFS=$as_save_IFS
6725   test -z "$as_dir" && as_dir=.
6726   for ac_exec_ext in '' $ac_executable_extensions; do
6727   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6728     ac_cv_prog_ac_ct_WINDRES="windres"
6729     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6730     break 2
6731   fi
6732 done
6733 done
6734 IFS=$as_save_IFS
6735
6736 fi
6737 fi
6738 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6739 if test -n "$ac_ct_WINDRES"; then
6740   { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6741 $as_echo "$ac_ct_WINDRES" >&6; }
6742 else
6743   { $as_echo "$as_me:$LINENO: result: no" >&5
6744 $as_echo "no" >&6; }
6745 fi
6746
6747   if test "x$ac_ct_WINDRES" = x; then
6748     WINDRES="windres"
6749   else
6750     case $cross_compiling:$ac_tool_warned in
6751 yes:)
6752 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6754 ac_tool_warned=yes ;;
6755 esac
6756     WINDRES=$ac_ct_WINDRES
6757   fi
6758 else
6759   WINDRES="$ac_cv_prog_WINDRES"
6760 fi
6761
6762 fi
6763
6764 # Extract the first word of "tar", so it can be a program name with args.
6765 set dummy tar; ac_word=$2
6766 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6767 $as_echo_n "checking for $ac_word... " >&6; }
6768 if test "${ac_cv_path_TAR+set}" = set; then
6769   $as_echo_n "(cached) " >&6
6770 else
6771   case $TAR in
6772   [\\/]* | ?:[\\/]*)
6773   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6774   ;;
6775   *)
6776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777 for as_dir in $PATH
6778 do
6779   IFS=$as_save_IFS
6780   test -z "$as_dir" && as_dir=.
6781   for ac_exec_ext in '' $ac_executable_extensions; do
6782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6783     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6784     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6785     break 2
6786   fi
6787 done
6788 done
6789 IFS=$as_save_IFS
6790
6791   ;;
6792 esac
6793 fi
6794 TAR=$ac_cv_path_TAR
6795 if test -n "$TAR"; then
6796   { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6797 $as_echo "$TAR" >&6; }
6798 else
6799   { $as_echo "$as_me:$LINENO: result: no" >&5
6800 $as_echo "no" >&6; }
6801 fi
6802
6803
6804 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6805 $as_echo_n "checking whether ln -s works... " >&6; }
6806 LN_S=$as_ln_s
6807 if test "$LN_S" = "ln -s"; then
6808   { $as_echo "$as_me:$LINENO: result: yes" >&5
6809 $as_echo "yes" >&6; }
6810 else
6811   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6812 $as_echo "no, using $LN_S" >&6; }
6813 fi
6814
6815 for ac_prog in gawk mawk nawk awk
6816 do
6817   # Extract the first word of "$ac_prog", so it can be a program name with args.
6818 set dummy $ac_prog; ac_word=$2
6819 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6820 $as_echo_n "checking for $ac_word... " >&6; }
6821 if test "${ac_cv_prog_AWK+set}" = set; then
6822   $as_echo_n "(cached) " >&6
6823 else
6824   if test -n "$AWK"; then
6825   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6826 else
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 for as_dir in $PATH
6829 do
6830   IFS=$as_save_IFS
6831   test -z "$as_dir" && as_dir=.
6832   for ac_exec_ext in '' $ac_executable_extensions; do
6833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6834     ac_cv_prog_AWK="$ac_prog"
6835     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6836     break 2
6837   fi
6838 done
6839 done
6840 IFS=$as_save_IFS
6841
6842 fi
6843 fi
6844 AWK=$ac_cv_prog_AWK
6845 if test -n "$AWK"; then
6846   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
6847 $as_echo "$AWK" >&6; }
6848 else
6849   { $as_echo "$as_me:$LINENO: result: no" >&5
6850 $as_echo "no" >&6; }
6851 fi
6852
6853
6854   test -n "$AWK" && break
6855 done
6856
6857 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
6858 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6859 if test -z "$MKDIR_P"; then
6860   if test "${ac_cv_path_mkdir+set}" = set; then
6861   $as_echo_n "(cached) " >&6
6862 else
6863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6865 do
6866   IFS=$as_save_IFS
6867   test -z "$as_dir" && as_dir=.
6868   for ac_prog in mkdir gmkdir; do
6869          for ac_exec_ext in '' $ac_executable_extensions; do
6870            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
6871            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6872              'mkdir (GNU coreutils) '* | \
6873              'mkdir (coreutils) '* | \
6874              'mkdir (fileutils) '4.1*)
6875                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6876                break 3;;
6877            esac
6878          done
6879        done
6880 done
6881 IFS=$as_save_IFS
6882
6883 fi
6884
6885   if test "${ac_cv_path_mkdir+set}" = set; then
6886     MKDIR_P="$ac_cv_path_mkdir -p"
6887   else
6888     # As a last resort, use the slow shell script.  Don't cache a
6889     # value for MKDIR_P within a source directory, because that will
6890     # break other packages using the cache if that directory is
6891     # removed, or if the value is a relative name.
6892     test -d ./--version && rmdir ./--version
6893     MKDIR_P="$ac_install_sh -d"
6894   fi
6895 fi
6896 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
6897 $as_echo "$MKDIR_P" >&6; }
6898
6899 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
6900 # a relative path to it in each makefile where it subsitutes it. This clashes
6901 # with our Makefile.global concept. This workaround helps.
6902 case $MKDIR_P in
6903   *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
6904 esac
6905
6906 # Let the user override the search
6907 if test -z "$BISON"; then
6908   for ac_prog in bison
6909 do
6910   # Extract the first word of "$ac_prog", so it can be a program name with args.
6911 set dummy $ac_prog; ac_word=$2
6912 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6913 $as_echo_n "checking for $ac_word... " >&6; }
6914 if test "${ac_cv_path_BISON+set}" = set; then
6915   $as_echo_n "(cached) " >&6
6916 else
6917   case $BISON in
6918   [\\/]* | ?:[\\/]*)
6919   ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
6920   ;;
6921   *)
6922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 for as_dir in $PATH
6924 do
6925   IFS=$as_save_IFS
6926   test -z "$as_dir" && as_dir=.
6927   for ac_exec_ext in '' $ac_executable_extensions; do
6928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6929     ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
6930     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6931     break 2
6932   fi
6933 done
6934 done
6935 IFS=$as_save_IFS
6936
6937   ;;
6938 esac
6939 fi
6940 BISON=$ac_cv_path_BISON
6941 if test -n "$BISON"; then
6942   { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6943 $as_echo "$BISON" >&6; }
6944 else
6945   { $as_echo "$as_me:$LINENO: result: no" >&5
6946 $as_echo "no" >&6; }
6947 fi
6948
6949
6950   test -n "$BISON" && break
6951 done
6952
6953 fi
6954
6955 if test "$BISON"; then
6956   pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
6957   { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6958 $as_echo "$as_me: using $pgac_bison_version" >&6;}
6959   if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6960   then
6961     { $as_echo "$as_me:$LINENO: WARNING:
6962 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6963 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
6964 $as_echo "$as_me: WARNING:
6965 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6966 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
6967     BISON=""
6968   fi
6969 fi
6970
6971 if test -z "$BISON"; then
6972   { $as_echo "$as_me:$LINENO: WARNING:
6973 *** Without Bison you will not be able to build PostgreSQL from Git nor
6974 *** change any of the parser definition files.  You can obtain Bison from
6975 *** a GNU mirror site.  (If you are using the official distribution of
6976 *** PostgreSQL then you do not need to worry about this, because the Bison
6977 *** output is pre-generated.)" >&5
6978 $as_echo "$as_me: WARNING:
6979 *** Without Bison you will not be able to build PostgreSQL from Git nor
6980 *** change any of the parser definition files.  You can obtain Bison from
6981 *** a GNU mirror site.  (If you are using the official distribution of
6982 *** PostgreSQL then you do not need to worry about this, because the Bison
6983 *** output is pre-generated.)" >&2;}
6984 fi
6985 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6986
6987
6988 { $as_echo "$as_me:$LINENO: checking for flex" >&5
6989 $as_echo_n "checking for flex... " >&6; }
6990 if test "${pgac_cv_path_flex+set}" = set; then
6991   $as_echo_n "(cached) " >&6
6992 else
6993   # Let the user override the test
6994 if test -n "$FLEX"; then
6995   pgac_cv_path_flex=$FLEX
6996 else
6997   pgac_save_IFS=$IFS
6998   IFS=$PATH_SEPARATOR
6999   for pgac_dir in $PATH; do
7000     IFS=$pgac_save_IFS
7001     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
7002       pgac_dir=`pwd`
7003     fi
7004     for pgac_prog in flex lex; do
7005       pgac_candidate="$pgac_dir/$pgac_prog"
7006       if test -f "$pgac_candidate" \
7007         && $pgac_candidate --version </dev/null >/dev/null 2>&1
7008       then
7009         echo '%%'  > conftest.l
7010         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
7011           pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
7012           if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
7013           then
7014             pgac_cv_path_flex=$pgac_candidate
7015             break 2
7016           else
7017             { $as_echo "$as_me:$LINENO: WARNING:
7018 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7019 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
7020 $as_echo "$as_me: WARNING:
7021 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7022 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
7023           fi
7024         fi
7025       fi
7026     done
7027   done
7028   rm -f conftest.l lex.yy.c
7029   : ${pgac_cv_path_flex=no}
7030 fi
7031
7032 fi
7033 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
7034 $as_echo "$pgac_cv_path_flex" >&6; }
7035 if test x"$pgac_cv_path_flex" = x"no"; then
7036   { $as_echo "$as_me:$LINENO: WARNING:
7037 *** Without Flex you will not be able to build PostgreSQL from Git nor
7038 *** change any of the scanner definition files.  You can obtain Flex from
7039 *** a GNU mirror site.  (If you are using the official distribution of
7040 *** PostgreSQL then you do not need to worry about this because the Flex
7041 *** output is pre-generated.)" >&5
7042 $as_echo "$as_me: WARNING:
7043 *** Without Flex you will not be able to build PostgreSQL from Git nor
7044 *** change any of the scanner definition files.  You can obtain Flex from
7045 *** a GNU mirror site.  (If you are using the official distribution of
7046 *** PostgreSQL then you do not need to worry about this because the Flex
7047 *** output is pre-generated.)" >&2;}
7048
7049   FLEX=
7050 else
7051   FLEX=$pgac_cv_path_flex
7052   pgac_flex_version=`$FLEX --version 2>/dev/null`
7053   { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
7054 $as_echo "$as_me: using $pgac_flex_version" >&6;}
7055 fi
7056
7057
7058
7059
7060
7061 # Let the user override the search
7062 if test -z "$PERL"; then
7063   # Extract the first word of "perl", so it can be a program name with args.
7064 set dummy perl; ac_word=$2
7065 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7066 $as_echo_n "checking for $ac_word... " >&6; }
7067 if test "${ac_cv_path_PERL+set}" = set; then
7068   $as_echo_n "(cached) " >&6
7069 else
7070   case $PERL in
7071   [\\/]* | ?:[\\/]*)
7072   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7073   ;;
7074   *)
7075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7076 for as_dir in $PATH
7077 do
7078   IFS=$as_save_IFS
7079   test -z "$as_dir" && as_dir=.
7080   for ac_exec_ext in '' $ac_executable_extensions; do
7081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7082     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7083     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7084     break 2
7085   fi
7086 done
7087 done
7088 IFS=$as_save_IFS
7089
7090   ;;
7091 esac
7092 fi
7093 PERL=$ac_cv_path_PERL
7094 if test -n "$PERL"; then
7095   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
7096 $as_echo "$PERL" >&6; }
7097 else
7098   { $as_echo "$as_me:$LINENO: result: no" >&5
7099 $as_echo "no" >&6; }
7100 fi
7101
7102
7103 fi
7104
7105 if test "$PERL"; then
7106   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'`
7107   { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
7108 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
7109   if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
7110     $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
7111   then
7112     { $as_echo "$as_me:$LINENO: WARNING:
7113 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7114 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
7115 $as_echo "$as_me: WARNING:
7116 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7117 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
7118     PERL=""
7119   fi
7120 fi
7121
7122 if test -z "$PERL"; then
7123   { $as_echo "$as_me:$LINENO: WARNING:
7124 *** Without Perl you will not be able to build PostgreSQL from Git.
7125 *** You can obtain Perl from any CPAN mirror site.
7126 *** (If you are using the official distribution of PostgreSQL then you do not
7127 *** need to worry about this, because the Perl output is pre-generated.)" >&5
7128 $as_echo "$as_me: WARNING:
7129 *** Without Perl you will not be able to build PostgreSQL from Git.
7130 *** You can obtain Perl from any CPAN mirror site.
7131 *** (If you are using the official distribution of PostgreSQL then you do not
7132 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
7133 fi
7134
7135 if test "$with_perl" = yes; then
7136   if test -z "$PERL"; then
7137     { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
7138 $as_echo "$as_me: error: Perl not found" >&2;}
7139    { (exit 1); exit 1; }; }
7140   fi
7141
7142 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
7143 $as_echo_n "checking for Perl archlibexp... " >&6; }
7144 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7145 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
7146 $as_echo "$perl_archlibexp" >&6; }
7147 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
7148 $as_echo_n "checking for Perl privlibexp... " >&6; }
7149 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7150 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
7151 $as_echo "$perl_privlibexp" >&6; }
7152 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
7153 $as_echo_n "checking for Perl useshrplib... " >&6; }
7154 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7155 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
7156 $as_echo "$perl_useshrplib" >&6; }
7157
7158 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
7159 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
7160 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7161 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7162 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7163 if test -z "$perl_embed_ldflags" ; then
7164         { $as_echo "$as_me:$LINENO: result: no" >&5
7165 $as_echo "no" >&6; }
7166         { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
7167 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7168 installed." >&5
7169 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
7170 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7171 installed." >&2;}
7172    { (exit 1); exit 1; }; }
7173 else
7174         { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
7175 $as_echo "$perl_embed_ldflags" >&6; }
7176 fi
7177
7178 fi
7179
7180 if test "$with_python" = yes; then
7181   # Extract the first word of "python", so it can be a program name with args.
7182 set dummy python; ac_word=$2
7183 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7184 $as_echo_n "checking for $ac_word... " >&6; }
7185 if test "${ac_cv_path_PYTHON+set}" = set; then
7186   $as_echo_n "(cached) " >&6
7187 else
7188   case $PYTHON in
7189   [\\/]* | ?:[\\/]*)
7190   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7191   ;;
7192   *)
7193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 for as_dir in $PATH
7195 do
7196   IFS=$as_save_IFS
7197   test -z "$as_dir" && as_dir=.
7198   for ac_exec_ext in '' $ac_executable_extensions; do
7199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7200     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7201     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7202     break 2
7203   fi
7204 done
7205 done
7206 IFS=$as_save_IFS
7207
7208   ;;
7209 esac
7210 fi
7211 PYTHON=$ac_cv_path_PYTHON
7212 if test -n "$PYTHON"; then
7213   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
7214 $as_echo "$PYTHON" >&6; }
7215 else
7216   { $as_echo "$as_me:$LINENO: result: no" >&5
7217 $as_echo "no" >&6; }
7218 fi
7219
7220
7221 if test x"$PYTHON" = x""; then
7222   { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
7223 $as_echo "$as_me: error: Python not found" >&2;}
7224    { (exit 1); exit 1; }; }
7225 fi
7226
7227
7228 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
7229 $as_echo_n "checking for Python distutils module... " >&6; }
7230 if "${PYTHON}" -c 'import distutils' 2>&5
7231 then
7232     { $as_echo "$as_me:$LINENO: result: yes" >&5
7233 $as_echo "yes" >&6; }
7234 else
7235     { $as_echo "$as_me:$LINENO: result: no" >&5
7236 $as_echo "no" >&6; }
7237     { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7238 $as_echo "$as_me: error: distutils module not found" >&2;}
7239    { (exit 1); exit 1; }; }
7240 fi
7241 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7242 $as_echo_n "checking Python configuration directory... " >&6; }
7243 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7244 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7245 python_configdir=`${PYTHON} -c "from distutils.sysconfig import get_python_lib as f; import os; print(os.path.join(f(plat_specific=1,standard_lib=1),'config'))"`
7246 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
7247
7248 # This should be enough of a message.
7249 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7250 $as_echo "$python_configdir" >&6; }
7251
7252
7253 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7254 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7255
7256 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7257 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7258 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7259 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7260
7261 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7262 then
7263         # New way: use the official shared library
7264         ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7265         python_libspec="-L${python_libdir} -l${ldlibrary}"
7266 else
7267         # Old way: use libpython from python_configdir
7268         python_libdir="${python_configdir}"
7269         python_libspec="-L${python_libdir} -lpython${python_version}"
7270 fi
7271
7272 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7273
7274 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7275 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7276
7277
7278 # threaded python is not supported on bsd's
7279 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7280 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7281 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7282 if test "$pythreads" = "1"; then
7283   { $as_echo "$as_me:$LINENO: result: yes" >&5
7284 $as_echo "yes" >&6; }
7285   case $host_os in
7286   openbsd*|freebsd*)
7287     { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7288 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7289    { (exit 1); exit 1; }; }
7290     ;;
7291   esac
7292 else
7293   { $as_echo "$as_me:$LINENO: result: no" >&5
7294 $as_echo "no" >&6; }
7295 fi
7296
7297
7298 fi
7299
7300 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7301   # Extract the first word of "zic", so it can be a program name with args.
7302 set dummy zic; ac_word=$2
7303 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7304 $as_echo_n "checking for $ac_word... " >&6; }
7305 if test "${ac_cv_path_ZIC+set}" = set; then
7306   $as_echo_n "(cached) " >&6
7307 else
7308   case $ZIC in
7309   [\\/]* | ?:[\\/]*)
7310   ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7311   ;;
7312   *)
7313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 for as_dir in $PATH
7315 do
7316   IFS=$as_save_IFS
7317   test -z "$as_dir" && as_dir=.
7318   for ac_exec_ext in '' $ac_executable_extensions; do
7319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7320     ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7321     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7322     break 2
7323   fi
7324 done
7325 done
7326 IFS=$as_save_IFS
7327
7328   ;;
7329 esac
7330 fi
7331 ZIC=$ac_cv_path_ZIC
7332 if test -n "$ZIC"; then
7333   { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7334 $as_echo "$ZIC" >&6; }
7335 else
7336   { $as_echo "$as_me:$LINENO: result: no" >&5
7337 $as_echo "no" >&6; }
7338 fi
7339
7340
7341   if test -z "$ZIC"; then
7342     { { $as_echo "$as_me:$LINENO: error:
7343 When cross-compiling, either use the option --with-system-tzdata to use
7344 existing time-zone data, or set the environment variable ZIC to a zic
7345 program to use during the build." >&5
7346 $as_echo "$as_me: error:
7347 When cross-compiling, either use the option --with-system-tzdata to use
7348 existing time-zone data, or set the environment variable ZIC to a zic
7349 program to use during the build." >&2;}
7350    { (exit 1); exit 1; }; }
7351   fi
7352 fi
7353
7354
7355 ##
7356 ## Libraries
7357 ##
7358 ## Most libraries are included only if they demonstrably provide a function
7359 ## we need, but libm is an exception: always include it, because there are
7360 ## too many compilers that play cute optimization games that will break
7361 ## probes for standard functions such as pow().
7362 ##
7363
7364
7365 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7366 $as_echo_n "checking for main in -lm... " >&6; }
7367 if test "${ac_cv_lib_m_main+set}" = set; then
7368   $as_echo_n "(cached) " >&6
7369 else
7370   ac_check_lib_save_LIBS=$LIBS
7371 LIBS="-lm  $LIBS"
7372 cat >conftest.$ac_ext <<_ACEOF
7373 /* confdefs.h.  */
7374 _ACEOF
7375 cat confdefs.h >>conftest.$ac_ext
7376 cat >>conftest.$ac_ext <<_ACEOF
7377 /* end confdefs.h.  */
7378
7379
7380 int
7381 main ()
7382 {
7383 return main ();
7384   ;
7385   return 0;
7386 }
7387 _ACEOF
7388 rm -f conftest.$ac_objext conftest$ac_exeext
7389 if { (ac_try="$ac_link"
7390 case "(($ac_try" in
7391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7392   *) ac_try_echo=$ac_try;;
7393 esac
7394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7395 $as_echo "$ac_try_echo") >&5
7396   (eval "$ac_link") 2>conftest.er1
7397   ac_status=$?
7398   grep -v '^ *+' conftest.er1 >conftest.err
7399   rm -f conftest.er1
7400   cat conftest.err >&5
7401   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402   (exit $ac_status); } && {
7403          test -z "$ac_c_werror_flag" ||
7404          test ! -s conftest.err
7405        } && test -s conftest$ac_exeext && {
7406          test "$cross_compiling" = yes ||
7407          $as_test_x conftest$ac_exeext
7408        }; then
7409   ac_cv_lib_m_main=yes
7410 else
7411   $as_echo "$as_me: failed program was:" >&5
7412 sed 's/^/| /' conftest.$ac_ext >&5
7413
7414         ac_cv_lib_m_main=no
7415 fi
7416
7417 rm -rf conftest.dSYM
7418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7419       conftest$ac_exeext conftest.$ac_ext
7420 LIBS=$ac_check_lib_save_LIBS
7421 fi
7422 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7423 $as_echo "$ac_cv_lib_m_main" >&6; }
7424 if test "x$ac_cv_lib_m_main" = x""yes; then
7425   cat >>confdefs.h <<_ACEOF
7426 #define HAVE_LIBM 1
7427 _ACEOF
7428
7429   LIBS="-lm $LIBS"
7430
7431 fi
7432
7433 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7434 $as_echo_n "checking for library containing setproctitle... " >&6; }
7435 if test "${ac_cv_search_setproctitle+set}" = set; then
7436   $as_echo_n "(cached) " >&6
7437 else
7438   ac_func_search_save_LIBS=$LIBS
7439 cat >conftest.$ac_ext <<_ACEOF
7440 /* confdefs.h.  */
7441 _ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h.  */
7445
7446 /* Override any GCC internal prototype to avoid an error.
7447    Use char because int might match the return type of a GCC
7448    builtin and then its argument prototype would still apply.  */
7449 #ifdef __cplusplus
7450 extern "C"
7451 #endif
7452 char setproctitle ();
7453 int
7454 main ()
7455 {
7456 return setproctitle ();
7457   ;
7458   return 0;
7459 }
7460 _ACEOF
7461 for ac_lib in '' util; do
7462   if test -z "$ac_lib"; then
7463     ac_res="none required"
7464   else
7465     ac_res=-l$ac_lib
7466     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7467   fi
7468   rm -f conftest.$ac_objext conftest$ac_exeext
7469 if { (ac_try="$ac_link"
7470 case "(($ac_try" in
7471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7472   *) ac_try_echo=$ac_try;;
7473 esac
7474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7475 $as_echo "$ac_try_echo") >&5
7476   (eval "$ac_link") 2>conftest.er1
7477   ac_status=$?
7478   grep -v '^ *+' conftest.er1 >conftest.err
7479   rm -f conftest.er1
7480   cat conftest.err >&5
7481   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482   (exit $ac_status); } && {
7483          test -z "$ac_c_werror_flag" ||
7484          test ! -s conftest.err
7485        } && test -s conftest$ac_exeext && {
7486          test "$cross_compiling" = yes ||
7487          $as_test_x conftest$ac_exeext
7488        }; then
7489   ac_cv_search_setproctitle=$ac_res
7490 else
7491   $as_echo "$as_me: failed program was:" >&5
7492 sed 's/^/| /' conftest.$ac_ext >&5
7493
7494
7495 fi
7496
7497 rm -rf conftest.dSYM
7498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7499       conftest$ac_exeext
7500   if test "${ac_cv_search_setproctitle+set}" = set; then
7501   break
7502 fi
7503 done
7504 if test "${ac_cv_search_setproctitle+set}" = set; then
7505   :
7506 else
7507   ac_cv_search_setproctitle=no
7508 fi
7509 rm conftest.$ac_ext
7510 LIBS=$ac_func_search_save_LIBS
7511 fi
7512 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7513 $as_echo "$ac_cv_search_setproctitle" >&6; }
7514 ac_res=$ac_cv_search_setproctitle
7515 if test "$ac_res" != no; then
7516   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7517
7518 fi
7519
7520 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7521 $as_echo_n "checking for library containing dlopen... " >&6; }
7522 if test "${ac_cv_search_dlopen+set}" = set; then
7523   $as_echo_n "(cached) " >&6
7524 else
7525   ac_func_search_save_LIBS=$LIBS
7526 cat >conftest.$ac_ext <<_ACEOF
7527 /* confdefs.h.  */
7528 _ACEOF
7529 cat confdefs.h >>conftest.$ac_ext
7530 cat >>conftest.$ac_ext <<_ACEOF
7531 /* end confdefs.h.  */
7532
7533 /* Override any GCC internal prototype to avoid an error.
7534    Use char because int might match the return type of a GCC
7535    builtin and then its argument prototype would still apply.  */
7536 #ifdef __cplusplus
7537 extern "C"
7538 #endif
7539 char dlopen ();
7540 int
7541 main ()
7542 {
7543 return dlopen ();
7544   ;
7545   return 0;
7546 }
7547 _ACEOF
7548 for ac_lib in '' dl; do
7549   if test -z "$ac_lib"; then
7550     ac_res="none required"
7551   else
7552     ac_res=-l$ac_lib
7553     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7554   fi
7555   rm -f conftest.$ac_objext conftest$ac_exeext
7556 if { (ac_try="$ac_link"
7557 case "(($ac_try" in
7558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7559   *) ac_try_echo=$ac_try;;
7560 esac
7561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7562 $as_echo "$ac_try_echo") >&5
7563   (eval "$ac_link") 2>conftest.er1
7564   ac_status=$?
7565   grep -v '^ *+' conftest.er1 >conftest.err
7566   rm -f conftest.er1
7567   cat conftest.err >&5
7568   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569   (exit $ac_status); } && {
7570          test -z "$ac_c_werror_flag" ||
7571          test ! -s conftest.err
7572        } && test -s conftest$ac_exeext && {
7573          test "$cross_compiling" = yes ||
7574          $as_test_x conftest$ac_exeext
7575        }; then
7576   ac_cv_search_dlopen=$ac_res
7577 else
7578   $as_echo "$as_me: failed program was:" >&5
7579 sed 's/^/| /' conftest.$ac_ext >&5
7580
7581
7582 fi
7583
7584 rm -rf conftest.dSYM
7585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7586       conftest$ac_exeext
7587   if test "${ac_cv_search_dlopen+set}" = set; then
7588   break
7589 fi
7590 done
7591 if test "${ac_cv_search_dlopen+set}" = set; then
7592   :
7593 else
7594   ac_cv_search_dlopen=no
7595 fi
7596 rm conftest.$ac_ext
7597 LIBS=$ac_func_search_save_LIBS
7598 fi
7599 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7600 $as_echo "$ac_cv_search_dlopen" >&6; }
7601 ac_res=$ac_cv_search_dlopen
7602 if test "$ac_res" != no; then
7603   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7604
7605 fi
7606
7607 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7608 $as_echo_n "checking for library containing socket... " >&6; }
7609 if test "${ac_cv_search_socket+set}" = set; then
7610   $as_echo_n "(cached) " >&6
7611 else
7612   ac_func_search_save_LIBS=$LIBS
7613 cat >conftest.$ac_ext <<_ACEOF
7614 /* confdefs.h.  */
7615 _ACEOF
7616 cat confdefs.h >>conftest.$ac_ext
7617 cat >>conftest.$ac_ext <<_ACEOF
7618 /* end confdefs.h.  */
7619
7620 /* Override any GCC internal prototype to avoid an error.
7621    Use char because int might match the return type of a GCC
7622    builtin and then its argument prototype would still apply.  */
7623 #ifdef __cplusplus
7624 extern "C"
7625 #endif
7626 char socket ();
7627 int
7628 main ()
7629 {
7630 return socket ();
7631   ;
7632   return 0;
7633 }
7634 _ACEOF
7635 for ac_lib in '' socket wsock32; do
7636   if test -z "$ac_lib"; then
7637     ac_res="none required"
7638   else
7639     ac_res=-l$ac_lib
7640     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7641   fi
7642   rm -f conftest.$ac_objext conftest$ac_exeext
7643 if { (ac_try="$ac_link"
7644 case "(($ac_try" in
7645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7646   *) ac_try_echo=$ac_try;;
7647 esac
7648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7649 $as_echo "$ac_try_echo") >&5
7650   (eval "$ac_link") 2>conftest.er1
7651   ac_status=$?
7652   grep -v '^ *+' conftest.er1 >conftest.err
7653   rm -f conftest.er1
7654   cat conftest.err >&5
7655   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656   (exit $ac_status); } && {
7657          test -z "$ac_c_werror_flag" ||
7658          test ! -s conftest.err
7659        } && test -s conftest$ac_exeext && {
7660          test "$cross_compiling" = yes ||
7661          $as_test_x conftest$ac_exeext
7662        }; then
7663   ac_cv_search_socket=$ac_res
7664 else
7665   $as_echo "$as_me: failed program was:" >&5
7666 sed 's/^/| /' conftest.$ac_ext >&5
7667
7668
7669 fi
7670
7671 rm -rf conftest.dSYM
7672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7673       conftest$ac_exeext
7674   if test "${ac_cv_search_socket+set}" = set; then
7675   break
7676 fi
7677 done
7678 if test "${ac_cv_search_socket+set}" = set; then
7679   :
7680 else
7681   ac_cv_search_socket=no
7682 fi
7683 rm conftest.$ac_ext
7684 LIBS=$ac_func_search_save_LIBS
7685 fi
7686 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7687 $as_echo "$ac_cv_search_socket" >&6; }
7688 ac_res=$ac_cv_search_socket
7689 if test "$ac_res" != no; then
7690   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7691
7692 fi
7693
7694 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7695 $as_echo_n "checking for library containing shl_load... " >&6; }
7696 if test "${ac_cv_search_shl_load+set}" = set; then
7697   $as_echo_n "(cached) " >&6
7698 else
7699   ac_func_search_save_LIBS=$LIBS
7700 cat >conftest.$ac_ext <<_ACEOF
7701 /* confdefs.h.  */
7702 _ACEOF
7703 cat confdefs.h >>conftest.$ac_ext
7704 cat >>conftest.$ac_ext <<_ACEOF
7705 /* end confdefs.h.  */
7706
7707 /* Override any GCC internal prototype to avoid an error.
7708    Use char because int might match the return type of a GCC
7709    builtin and then its argument prototype would still apply.  */
7710 #ifdef __cplusplus
7711 extern "C"
7712 #endif
7713 char shl_load ();
7714 int
7715 main ()
7716 {
7717 return shl_load ();
7718   ;
7719   return 0;
7720 }
7721 _ACEOF
7722 for ac_lib in '' dld; do
7723   if test -z "$ac_lib"; then
7724     ac_res="none required"
7725   else
7726     ac_res=-l$ac_lib
7727     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7728   fi
7729   rm -f conftest.$ac_objext conftest$ac_exeext
7730 if { (ac_try="$ac_link"
7731 case "(($ac_try" in
7732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7733   *) ac_try_echo=$ac_try;;
7734 esac
7735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7736 $as_echo "$ac_try_echo") >&5
7737   (eval "$ac_link") 2>conftest.er1
7738   ac_status=$?
7739   grep -v '^ *+' conftest.er1 >conftest.err
7740   rm -f conftest.er1
7741   cat conftest.err >&5
7742   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743   (exit $ac_status); } && {
7744          test -z "$ac_c_werror_flag" ||
7745          test ! -s conftest.err
7746        } && test -s conftest$ac_exeext && {
7747          test "$cross_compiling" = yes ||
7748          $as_test_x conftest$ac_exeext
7749        }; then
7750   ac_cv_search_shl_load=$ac_res
7751 else
7752   $as_echo "$as_me: failed program was:" >&5
7753 sed 's/^/| /' conftest.$ac_ext >&5
7754
7755
7756 fi
7757
7758 rm -rf conftest.dSYM
7759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7760       conftest$ac_exeext
7761   if test "${ac_cv_search_shl_load+set}" = set; then
7762   break
7763 fi
7764 done
7765 if test "${ac_cv_search_shl_load+set}" = set; then
7766   :
7767 else
7768   ac_cv_search_shl_load=no
7769 fi
7770 rm conftest.$ac_ext
7771 LIBS=$ac_func_search_save_LIBS
7772 fi
7773 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7774 $as_echo "$ac_cv_search_shl_load" >&6; }
7775 ac_res=$ac_cv_search_shl_load
7776 if test "$ac_res" != no; then
7777   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7778
7779 fi
7780
7781 # We only use libld in port/dynloader/aix.c
7782 case $host_os in
7783      aix*)
7784         { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7785 $as_echo_n "checking for library containing ldopen... " >&6; }
7786 if test "${ac_cv_search_ldopen+set}" = set; then
7787   $as_echo_n "(cached) " >&6
7788 else
7789   ac_func_search_save_LIBS=$LIBS
7790 cat >conftest.$ac_ext <<_ACEOF
7791 /* confdefs.h.  */
7792 _ACEOF
7793 cat confdefs.h >>conftest.$ac_ext
7794 cat >>conftest.$ac_ext <<_ACEOF
7795 /* end confdefs.h.  */
7796
7797 /* Override any GCC internal prototype to avoid an error.
7798    Use char because int might match the return type of a GCC
7799    builtin and then its argument prototype would still apply.  */
7800 #ifdef __cplusplus
7801 extern "C"
7802 #endif
7803 char ldopen ();
7804 int
7805 main ()
7806 {
7807 return ldopen ();
7808   ;
7809   return 0;
7810 }
7811 _ACEOF
7812 for ac_lib in '' ld; do
7813   if test -z "$ac_lib"; then
7814     ac_res="none required"
7815   else
7816     ac_res=-l$ac_lib
7817     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7818   fi
7819   rm -f conftest.$ac_objext conftest$ac_exeext
7820 if { (ac_try="$ac_link"
7821 case "(($ac_try" in
7822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7823   *) ac_try_echo=$ac_try;;
7824 esac
7825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7826 $as_echo "$ac_try_echo") >&5
7827   (eval "$ac_link") 2>conftest.er1
7828   ac_status=$?
7829   grep -v '^ *+' conftest.er1 >conftest.err
7830   rm -f conftest.er1
7831   cat conftest.err >&5
7832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833   (exit $ac_status); } && {
7834          test -z "$ac_c_werror_flag" ||
7835          test ! -s conftest.err
7836        } && test -s conftest$ac_exeext && {
7837          test "$cross_compiling" = yes ||
7838          $as_test_x conftest$ac_exeext
7839        }; then
7840   ac_cv_search_ldopen=$ac_res
7841 else
7842   $as_echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7844
7845
7846 fi
7847
7848 rm -rf conftest.dSYM
7849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7850       conftest$ac_exeext
7851   if test "${ac_cv_search_ldopen+set}" = set; then
7852   break
7853 fi
7854 done
7855 if test "${ac_cv_search_ldopen+set}" = set; then
7856   :
7857 else
7858   ac_cv_search_ldopen=no
7859 fi
7860 rm conftest.$ac_ext
7861 LIBS=$ac_func_search_save_LIBS
7862 fi
7863 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7864 $as_echo "$ac_cv_search_ldopen" >&6; }
7865 ac_res=$ac_cv_search_ldopen
7866 if test "$ac_res" != no; then
7867   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7868
7869 fi
7870
7871         ;;
7872 esac
7873 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7874 $as_echo_n "checking for library containing getopt_long... " >&6; }
7875 if test "${ac_cv_search_getopt_long+set}" = set; then
7876   $as_echo_n "(cached) " >&6
7877 else
7878   ac_func_search_save_LIBS=$LIBS
7879 cat >conftest.$ac_ext <<_ACEOF
7880 /* confdefs.h.  */
7881 _ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h.  */
7885
7886 /* Override any GCC internal prototype to avoid an error.
7887    Use char because int might match the return type of a GCC
7888    builtin and then its argument prototype would still apply.  */
7889 #ifdef __cplusplus
7890 extern "C"
7891 #endif
7892 char getopt_long ();
7893 int
7894 main ()
7895 {
7896 return getopt_long ();
7897   ;
7898   return 0;
7899 }
7900 _ACEOF
7901 for ac_lib in '' getopt gnugetopt; do
7902   if test -z "$ac_lib"; then
7903     ac_res="none required"
7904   else
7905     ac_res=-l$ac_lib
7906     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7907   fi
7908   rm -f conftest.$ac_objext conftest$ac_exeext
7909 if { (ac_try="$ac_link"
7910 case "(($ac_try" in
7911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7912   *) ac_try_echo=$ac_try;;
7913 esac
7914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7915 $as_echo "$ac_try_echo") >&5
7916   (eval "$ac_link") 2>conftest.er1
7917   ac_status=$?
7918   grep -v '^ *+' conftest.er1 >conftest.err
7919   rm -f conftest.er1
7920   cat conftest.err >&5
7921   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922   (exit $ac_status); } && {
7923          test -z "$ac_c_werror_flag" ||
7924          test ! -s conftest.err
7925        } && test -s conftest$ac_exeext && {
7926          test "$cross_compiling" = yes ||
7927          $as_test_x conftest$ac_exeext
7928        }; then
7929   ac_cv_search_getopt_long=$ac_res
7930 else
7931   $as_echo "$as_me: failed program was:" >&5
7932 sed 's/^/| /' conftest.$ac_ext >&5
7933
7934
7935 fi
7936
7937 rm -rf conftest.dSYM
7938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7939       conftest$ac_exeext
7940   if test "${ac_cv_search_getopt_long+set}" = set; then
7941   break
7942 fi
7943 done
7944 if test "${ac_cv_search_getopt_long+set}" = set; then
7945   :
7946 else
7947   ac_cv_search_getopt_long=no
7948 fi
7949 rm conftest.$ac_ext
7950 LIBS=$ac_func_search_save_LIBS
7951 fi
7952 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7953 $as_echo "$ac_cv_search_getopt_long" >&6; }
7954 ac_res=$ac_cv_search_getopt_long
7955 if test "$ac_res" != no; then
7956   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7957
7958 fi
7959
7960 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
7961 $as_echo_n "checking for library containing crypt... " >&6; }
7962 if test "${ac_cv_search_crypt+set}" = set; then
7963   $as_echo_n "(cached) " >&6
7964 else
7965   ac_func_search_save_LIBS=$LIBS
7966 cat >conftest.$ac_ext <<_ACEOF
7967 /* confdefs.h.  */
7968 _ACEOF
7969 cat confdefs.h >>conftest.$ac_ext
7970 cat >>conftest.$ac_ext <<_ACEOF
7971 /* end confdefs.h.  */
7972
7973 /* Override any GCC internal prototype to avoid an error.
7974    Use char because int might match the return type of a GCC
7975    builtin and then its argument prototype would still apply.  */
7976 #ifdef __cplusplus
7977 extern "C"
7978 #endif
7979 char crypt ();
7980 int
7981 main ()
7982 {
7983 return crypt ();
7984   ;
7985   return 0;
7986 }
7987 _ACEOF
7988 for ac_lib in '' crypt; do
7989   if test -z "$ac_lib"; then
7990     ac_res="none required"
7991   else
7992     ac_res=-l$ac_lib
7993     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7994   fi
7995   rm -f conftest.$ac_objext conftest$ac_exeext
7996 if { (ac_try="$ac_link"
7997 case "(($ac_try" in
7998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7999   *) ac_try_echo=$ac_try;;
8000 esac
8001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8002 $as_echo "$ac_try_echo") >&5
8003   (eval "$ac_link") 2>conftest.er1
8004   ac_status=$?
8005   grep -v '^ *+' conftest.er1 >conftest.err
8006   rm -f conftest.er1
8007   cat conftest.err >&5
8008   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009   (exit $ac_status); } && {
8010          test -z "$ac_c_werror_flag" ||
8011          test ! -s conftest.err
8012        } && test -s conftest$ac_exeext && {
8013          test "$cross_compiling" = yes ||
8014          $as_test_x conftest$ac_exeext
8015        }; then
8016   ac_cv_search_crypt=$ac_res
8017 else
8018   $as_echo "$as_me: failed program was:" >&5
8019 sed 's/^/| /' conftest.$ac_ext >&5
8020
8021
8022 fi
8023
8024 rm -rf conftest.dSYM
8025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8026       conftest$ac_exeext
8027   if test "${ac_cv_search_crypt+set}" = set; then
8028   break
8029 fi
8030 done
8031 if test "${ac_cv_search_crypt+set}" = set; then
8032   :
8033 else
8034   ac_cv_search_crypt=no
8035 fi
8036 rm conftest.$ac_ext
8037 LIBS=$ac_func_search_save_LIBS
8038 fi
8039 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
8040 $as_echo "$ac_cv_search_crypt" >&6; }
8041 ac_res=$ac_cv_search_crypt
8042 if test "$ac_res" != no; then
8043   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8044
8045 fi
8046
8047 # Solaris:
8048 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
8049 $as_echo_n "checking for library containing fdatasync... " >&6; }
8050 if test "${ac_cv_search_fdatasync+set}" = set; then
8051   $as_echo_n "(cached) " >&6
8052 else
8053   ac_func_search_save_LIBS=$LIBS
8054 cat >conftest.$ac_ext <<_ACEOF
8055 /* confdefs.h.  */
8056 _ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h.  */
8060
8061 /* Override any GCC internal prototype to avoid an error.
8062    Use char because int might match the return type of a GCC
8063    builtin and then its argument prototype would still apply.  */
8064 #ifdef __cplusplus
8065 extern "C"
8066 #endif
8067 char fdatasync ();
8068 int
8069 main ()
8070 {
8071 return fdatasync ();
8072   ;
8073   return 0;
8074 }
8075 _ACEOF
8076 for ac_lib in '' rt posix4; do
8077   if test -z "$ac_lib"; then
8078     ac_res="none required"
8079   else
8080     ac_res=-l$ac_lib
8081     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8082   fi
8083   rm -f conftest.$ac_objext conftest$ac_exeext
8084 if { (ac_try="$ac_link"
8085 case "(($ac_try" in
8086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8087   *) ac_try_echo=$ac_try;;
8088 esac
8089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8090 $as_echo "$ac_try_echo") >&5
8091   (eval "$ac_link") 2>conftest.er1
8092   ac_status=$?
8093   grep -v '^ *+' conftest.er1 >conftest.err
8094   rm -f conftest.er1
8095   cat conftest.err >&5
8096   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097   (exit $ac_status); } && {
8098          test -z "$ac_c_werror_flag" ||
8099          test ! -s conftest.err
8100        } && test -s conftest$ac_exeext && {
8101          test "$cross_compiling" = yes ||
8102          $as_test_x conftest$ac_exeext
8103        }; then
8104   ac_cv_search_fdatasync=$ac_res
8105 else
8106   $as_echo "$as_me: failed program was:" >&5
8107 sed 's/^/| /' conftest.$ac_ext >&5
8108
8109
8110 fi
8111
8112 rm -rf conftest.dSYM
8113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8114       conftest$ac_exeext
8115   if test "${ac_cv_search_fdatasync+set}" = set; then
8116   break
8117 fi
8118 done
8119 if test "${ac_cv_search_fdatasync+set}" = set; then
8120   :
8121 else
8122   ac_cv_search_fdatasync=no
8123 fi
8124 rm conftest.$ac_ext
8125 LIBS=$ac_func_search_save_LIBS
8126 fi
8127 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
8128 $as_echo "$ac_cv_search_fdatasync" >&6; }
8129 ac_res=$ac_cv_search_fdatasync
8130 if test "$ac_res" != no; then
8131   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8132
8133 fi
8134
8135 # Required for thread_test.c on Solaris 2.5:
8136 # Other ports use it too (HP-UX) so test unconditionally
8137 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
8138 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
8139 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8140   $as_echo_n "(cached) " >&6
8141 else
8142   ac_func_search_save_LIBS=$LIBS
8143 cat >conftest.$ac_ext <<_ACEOF
8144 /* confdefs.h.  */
8145 _ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h.  */
8149
8150 /* Override any GCC internal prototype to avoid an error.
8151    Use char because int might match the return type of a GCC
8152    builtin and then its argument prototype would still apply.  */
8153 #ifdef __cplusplus
8154 extern "C"
8155 #endif
8156 char gethostbyname_r ();
8157 int
8158 main ()
8159 {
8160 return gethostbyname_r ();
8161   ;
8162   return 0;
8163 }
8164 _ACEOF
8165 for ac_lib in '' nsl; do
8166   if test -z "$ac_lib"; then
8167     ac_res="none required"
8168   else
8169     ac_res=-l$ac_lib
8170     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8171   fi
8172   rm -f conftest.$ac_objext conftest$ac_exeext
8173 if { (ac_try="$ac_link"
8174 case "(($ac_try" in
8175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8176   *) ac_try_echo=$ac_try;;
8177 esac
8178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8179 $as_echo "$ac_try_echo") >&5
8180   (eval "$ac_link") 2>conftest.er1
8181   ac_status=$?
8182   grep -v '^ *+' conftest.er1 >conftest.err
8183   rm -f conftest.er1
8184   cat conftest.err >&5
8185   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186   (exit $ac_status); } && {
8187          test -z "$ac_c_werror_flag" ||
8188          test ! -s conftest.err
8189        } && test -s conftest$ac_exeext && {
8190          test "$cross_compiling" = yes ||
8191          $as_test_x conftest$ac_exeext
8192        }; then
8193   ac_cv_search_gethostbyname_r=$ac_res
8194 else
8195   $as_echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8197
8198
8199 fi
8200
8201 rm -rf conftest.dSYM
8202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8203       conftest$ac_exeext
8204   if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8205   break
8206 fi
8207 done
8208 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8209   :
8210 else
8211   ac_cv_search_gethostbyname_r=no
8212 fi
8213 rm conftest.$ac_ext
8214 LIBS=$ac_func_search_save_LIBS
8215 fi
8216 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
8217 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
8218 ac_res=$ac_cv_search_gethostbyname_r
8219 if test "$ac_res" != no; then
8220   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8221
8222 fi
8223
8224 # Cygwin:
8225 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
8226 $as_echo_n "checking for library containing shmget... " >&6; }
8227 if test "${ac_cv_search_shmget+set}" = set; then
8228   $as_echo_n "(cached) " >&6
8229 else
8230   ac_func_search_save_LIBS=$LIBS
8231 cat >conftest.$ac_ext <<_ACEOF
8232 /* confdefs.h.  */
8233 _ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h.  */
8237
8238 /* Override any GCC internal prototype to avoid an error.
8239    Use char because int might match the return type of a GCC
8240    builtin and then its argument prototype would still apply.  */
8241 #ifdef __cplusplus
8242 extern "C"
8243 #endif
8244 char shmget ();
8245 int
8246 main ()
8247 {
8248 return shmget ();
8249   ;
8250   return 0;
8251 }
8252 _ACEOF
8253 for ac_lib in '' cygipc; do
8254   if test -z "$ac_lib"; then
8255     ac_res="none required"
8256   else
8257     ac_res=-l$ac_lib
8258     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8259   fi
8260   rm -f conftest.$ac_objext conftest$ac_exeext
8261 if { (ac_try="$ac_link"
8262 case "(($ac_try" in
8263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8264   *) ac_try_echo=$ac_try;;
8265 esac
8266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8267 $as_echo "$ac_try_echo") >&5
8268   (eval "$ac_link") 2>conftest.er1
8269   ac_status=$?
8270   grep -v '^ *+' conftest.er1 >conftest.err
8271   rm -f conftest.er1
8272   cat conftest.err >&5
8273   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274   (exit $ac_status); } && {
8275          test -z "$ac_c_werror_flag" ||
8276          test ! -s conftest.err
8277        } && test -s conftest$ac_exeext && {
8278          test "$cross_compiling" = yes ||
8279          $as_test_x conftest$ac_exeext
8280        }; then
8281   ac_cv_search_shmget=$ac_res
8282 else
8283   $as_echo "$as_me: failed program was:" >&5
8284 sed 's/^/| /' conftest.$ac_ext >&5
8285
8286
8287 fi
8288
8289 rm -rf conftest.dSYM
8290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8291       conftest$ac_exeext
8292   if test "${ac_cv_search_shmget+set}" = set; then
8293   break
8294 fi
8295 done
8296 if test "${ac_cv_search_shmget+set}" = set; then
8297   :
8298 else
8299   ac_cv_search_shmget=no
8300 fi
8301 rm conftest.$ac_ext
8302 LIBS=$ac_func_search_save_LIBS
8303 fi
8304 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8305 $as_echo "$ac_cv_search_shmget" >&6; }
8306 ac_res=$ac_cv_search_shmget
8307 if test "$ac_res" != no; then
8308   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8309
8310 fi
8311
8312
8313 if test "$with_readline" = yes; then
8314
8315
8316 { $as_echo "$as_me:$LINENO: checking for library containing readline" >&5
8317 $as_echo_n "checking for library containing readline... " >&6; }
8318 if test "${pgac_cv_check_readline+set}" = set; then
8319   $as_echo_n "(cached) " >&6
8320 else
8321   pgac_cv_check_readline=no
8322 pgac_save_LIBS=$LIBS
8323 if test x"$with_libedit_preferred" != x"yes"
8324 then    READLINE_ORDER="-lreadline -ledit"
8325 else    READLINE_ORDER="-ledit -lreadline"
8326 fi
8327 for pgac_rllib in $READLINE_ORDER ; do
8328   for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8329     LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8330     cat >conftest.$ac_ext <<_ACEOF
8331 /* confdefs.h.  */
8332 _ACEOF
8333 cat confdefs.h >>conftest.$ac_ext
8334 cat >>conftest.$ac_ext <<_ACEOF
8335 /* end confdefs.h.  */
8336
8337 /* Override any GCC internal prototype to avoid an error.
8338    Use char because int might match the return type of a GCC
8339    builtin and then its argument prototype would still apply.  */
8340 #ifdef __cplusplus
8341 extern "C"
8342 #endif
8343 char readline ();
8344 int
8345 main ()
8346 {
8347 return readline ();
8348   ;
8349   return 0;
8350 }
8351 _ACEOF
8352 rm -f conftest.$ac_objext conftest$ac_exeext
8353 if { (ac_try="$ac_link"
8354 case "(($ac_try" in
8355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8356   *) ac_try_echo=$ac_try;;
8357 esac
8358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8359 $as_echo "$ac_try_echo") >&5
8360   (eval "$ac_link") 2>conftest.er1
8361   ac_status=$?
8362   grep -v '^ *+' conftest.er1 >conftest.err
8363   rm -f conftest.er1
8364   cat conftest.err >&5
8365   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366   (exit $ac_status); } && {
8367          test -z "$ac_c_werror_flag" ||
8368          test ! -s conftest.err
8369        } && test -s conftest$ac_exeext && {
8370          test "$cross_compiling" = yes ||
8371          $as_test_x conftest$ac_exeext
8372        }; then
8373
8374       # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8375       # recognize dependent libraries; assume curses is needed if we didn't
8376       # find any dependency.
8377       case $host_os in
8378         netbsd* | openbsd* | irix*)
8379           if test x"$pgac_lib" = x"" ; then
8380             pgac_lib=" -lcurses"
8381           fi ;;
8382       esac
8383
8384       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8385       break
8386
8387 else
8388   $as_echo "$as_me: failed program was:" >&5
8389 sed 's/^/| /' conftest.$ac_ext >&5
8390
8391
8392 fi
8393
8394 rm -rf conftest.dSYM
8395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8396       conftest$ac_exeext conftest.$ac_ext
8397   done
8398   if test "$pgac_cv_check_readline" != no ; then
8399     break
8400   fi
8401 done
8402 LIBS=$pgac_save_LIBS
8403
8404 fi
8405 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_readline" >&5
8406 $as_echo "$pgac_cv_check_readline" >&6; }
8407 if test "$pgac_cv_check_readline" != no ; then
8408   LIBS="$pgac_cv_check_readline $LIBS"
8409
8410 cat >>confdefs.h <<\_ACEOF
8411 #define HAVE_LIBREADLINE 1
8412 _ACEOF
8413
8414 fi
8415
8416
8417   if test x"$pgac_cv_check_readline" = x"no"; then
8418     { { $as_echo "$as_me:$LINENO: error: readline library not found
8419 If you have readline already installed, see config.log for details on the
8420 failure.  It is possible the compiler isn't looking in the proper directory.
8421 Use --without-readline to disable readline support." >&5
8422 $as_echo "$as_me: error: readline library not found
8423 If you have readline already installed, see config.log for details on the
8424 failure.  It is possible the compiler isn't looking in the proper directory.
8425 Use --without-readline to disable readline support." >&2;}
8426    { (exit 1); exit 1; }; }
8427   fi
8428 fi
8429
8430 if test "$with_zlib" = yes; then
8431
8432 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8433 $as_echo_n "checking for inflate in -lz... " >&6; }
8434 if test "${ac_cv_lib_z_inflate+set}" = set; then
8435   $as_echo_n "(cached) " >&6
8436 else
8437   ac_check_lib_save_LIBS=$LIBS
8438 LIBS="-lz  $LIBS"
8439 cat >conftest.$ac_ext <<_ACEOF
8440 /* confdefs.h.  */
8441 _ACEOF
8442 cat confdefs.h >>conftest.$ac_ext
8443 cat >>conftest.$ac_ext <<_ACEOF
8444 /* end confdefs.h.  */
8445
8446 /* Override any GCC internal prototype to avoid an error.
8447    Use char because int might match the return type of a GCC
8448    builtin and then its argument prototype would still apply.  */
8449 #ifdef __cplusplus
8450 extern "C"
8451 #endif
8452 char inflate ();
8453 int
8454 main ()
8455 {
8456 return inflate ();
8457   ;
8458   return 0;
8459 }
8460 _ACEOF
8461 rm -f conftest.$ac_objext conftest$ac_exeext
8462 if { (ac_try="$ac_link"
8463 case "(($ac_try" in
8464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8465   *) ac_try_echo=$ac_try;;
8466 esac
8467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8468 $as_echo "$ac_try_echo") >&5
8469   (eval "$ac_link") 2>conftest.er1
8470   ac_status=$?
8471   grep -v '^ *+' conftest.er1 >conftest.err
8472   rm -f conftest.er1
8473   cat conftest.err >&5
8474   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475   (exit $ac_status); } && {
8476          test -z "$ac_c_werror_flag" ||
8477          test ! -s conftest.err
8478        } && test -s conftest$ac_exeext && {
8479          test "$cross_compiling" = yes ||
8480          $as_test_x conftest$ac_exeext
8481        }; then
8482   ac_cv_lib_z_inflate=yes
8483 else
8484   $as_echo "$as_me: failed program was:" >&5
8485 sed 's/^/| /' conftest.$ac_ext >&5
8486
8487         ac_cv_lib_z_inflate=no
8488 fi
8489
8490 rm -rf conftest.dSYM
8491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8492       conftest$ac_exeext conftest.$ac_ext
8493 LIBS=$ac_check_lib_save_LIBS
8494 fi
8495 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8496 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8497 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8498   cat >>confdefs.h <<_ACEOF
8499 #define HAVE_LIBZ 1
8500 _ACEOF
8501
8502   LIBS="-lz $LIBS"
8503
8504 else
8505   { { $as_echo "$as_me:$LINENO: error: zlib library not found
8506 If you have zlib already installed, see config.log for details on the
8507 failure.  It is possible the compiler isn't looking in the proper directory.
8508 Use --without-zlib to disable zlib support." >&5
8509 $as_echo "$as_me: error: zlib library not found
8510 If you have zlib already installed, see config.log for details on the
8511 failure.  It is possible the compiler isn't looking in the proper directory.
8512 Use --without-zlib to disable zlib support." >&2;}
8513    { (exit 1); exit 1; }; }
8514 fi
8515
8516 fi
8517
8518 if test "$enable_spinlocks" = yes; then
8519
8520 cat >>confdefs.h <<\_ACEOF
8521 #define HAVE_SPINLOCKS 1
8522 _ACEOF
8523
8524 else
8525   { $as_echo "$as_me:$LINENO: WARNING:
8526 *** Not using spinlocks will cause poor performance." >&5
8527 $as_echo "$as_me: WARNING:
8528 *** Not using spinlocks will cause poor performance." >&2;}
8529 fi
8530
8531 if test "$with_gssapi" = yes ; then
8532   if test "$PORTNAME" != "win32"; then
8533     { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8534 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8535 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8536   $as_echo_n "(cached) " >&6
8537 else
8538   ac_func_search_save_LIBS=$LIBS
8539 cat >conftest.$ac_ext <<_ACEOF
8540 /* confdefs.h.  */
8541 _ACEOF
8542 cat confdefs.h >>conftest.$ac_ext
8543 cat >>conftest.$ac_ext <<_ACEOF
8544 /* end confdefs.h.  */
8545
8546 /* Override any GCC internal prototype to avoid an error.
8547    Use char because int might match the return type of a GCC
8548    builtin and then its argument prototype would still apply.  */
8549 #ifdef __cplusplus
8550 extern "C"
8551 #endif
8552 char gss_init_sec_context ();
8553 int
8554 main ()
8555 {
8556 return gss_init_sec_context ();
8557   ;
8558   return 0;
8559 }
8560 _ACEOF
8561 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8562   if test -z "$ac_lib"; then
8563     ac_res="none required"
8564   else
8565     ac_res=-l$ac_lib
8566     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8567   fi
8568   rm -f conftest.$ac_objext conftest$ac_exeext
8569 if { (ac_try="$ac_link"
8570 case "(($ac_try" in
8571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8572   *) ac_try_echo=$ac_try;;
8573 esac
8574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8575 $as_echo "$ac_try_echo") >&5
8576   (eval "$ac_link") 2>conftest.er1
8577   ac_status=$?
8578   grep -v '^ *+' conftest.er1 >conftest.err
8579   rm -f conftest.er1
8580   cat conftest.err >&5
8581   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582   (exit $ac_status); } && {
8583          test -z "$ac_c_werror_flag" ||
8584          test ! -s conftest.err
8585        } && test -s conftest$ac_exeext && {
8586          test "$cross_compiling" = yes ||
8587          $as_test_x conftest$ac_exeext
8588        }; then
8589   ac_cv_search_gss_init_sec_context=$ac_res
8590 else
8591   $as_echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.$ac_ext >&5
8593
8594
8595 fi
8596
8597 rm -rf conftest.dSYM
8598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8599       conftest$ac_exeext
8600   if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8601   break
8602 fi
8603 done
8604 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8605   :
8606 else
8607   ac_cv_search_gss_init_sec_context=no
8608 fi
8609 rm conftest.$ac_ext
8610 LIBS=$ac_func_search_save_LIBS
8611 fi
8612 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8613 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8614 ac_res=$ac_cv_search_gss_init_sec_context
8615 if test "$ac_res" != no; then
8616   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8617
8618 else
8619   { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8620 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8621    { (exit 1); exit 1; }; }
8622 fi
8623
8624   else
8625     LIBS="$LIBS -lgssapi32"
8626   fi
8627 fi
8628
8629 if test "$with_krb5" = yes ; then
8630   if test "$PORTNAME" != "win32"; then
8631      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8632 $as_echo_n "checking for library containing com_err... " >&6; }
8633 if test "${ac_cv_search_com_err+set}" = set; then
8634   $as_echo_n "(cached) " >&6
8635 else
8636   ac_func_search_save_LIBS=$LIBS
8637 cat >conftest.$ac_ext <<_ACEOF
8638 /* confdefs.h.  */
8639 _ACEOF
8640 cat confdefs.h >>conftest.$ac_ext
8641 cat >>conftest.$ac_ext <<_ACEOF
8642 /* end confdefs.h.  */
8643
8644 /* Override any GCC internal prototype to avoid an error.
8645    Use char because int might match the return type of a GCC
8646    builtin and then its argument prototype would still apply.  */
8647 #ifdef __cplusplus
8648 extern "C"
8649 #endif
8650 char com_err ();
8651 int
8652 main ()
8653 {
8654 return com_err ();
8655   ;
8656   return 0;
8657 }
8658 _ACEOF
8659 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8660   if test -z "$ac_lib"; then
8661     ac_res="none required"
8662   else
8663     ac_res=-l$ac_lib
8664     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8665   fi
8666   rm -f conftest.$ac_objext conftest$ac_exeext
8667 if { (ac_try="$ac_link"
8668 case "(($ac_try" in
8669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8670   *) ac_try_echo=$ac_try;;
8671 esac
8672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8673 $as_echo "$ac_try_echo") >&5
8674   (eval "$ac_link") 2>conftest.er1
8675   ac_status=$?
8676   grep -v '^ *+' conftest.er1 >conftest.err
8677   rm -f conftest.er1
8678   cat conftest.err >&5
8679   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680   (exit $ac_status); } && {
8681          test -z "$ac_c_werror_flag" ||
8682          test ! -s conftest.err
8683        } && test -s conftest$ac_exeext && {
8684          test "$cross_compiling" = yes ||
8685          $as_test_x conftest$ac_exeext
8686        }; then
8687   ac_cv_search_com_err=$ac_res
8688 else
8689   $as_echo "$as_me: failed program was:" >&5
8690 sed 's/^/| /' conftest.$ac_ext >&5
8691
8692
8693 fi
8694
8695 rm -rf conftest.dSYM
8696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8697       conftest$ac_exeext
8698   if test "${ac_cv_search_com_err+set}" = set; then
8699   break
8700 fi
8701 done
8702 if test "${ac_cv_search_com_err+set}" = set; then
8703   :
8704 else
8705   ac_cv_search_com_err=no
8706 fi
8707 rm conftest.$ac_ext
8708 LIBS=$ac_func_search_save_LIBS
8709 fi
8710 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8711 $as_echo "$ac_cv_search_com_err" >&6; }
8712 ac_res=$ac_cv_search_com_err
8713 if test "$ac_res" != no; then
8714   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8715
8716 else
8717   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8718 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8719    { (exit 1); exit 1; }; }
8720 fi
8721
8722      { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8723 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8724 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8725   $as_echo_n "(cached) " >&6
8726 else
8727   ac_func_search_save_LIBS=$LIBS
8728 cat >conftest.$ac_ext <<_ACEOF
8729 /* confdefs.h.  */
8730 _ACEOF
8731 cat confdefs.h >>conftest.$ac_ext
8732 cat >>conftest.$ac_ext <<_ACEOF
8733 /* end confdefs.h.  */
8734
8735 /* Override any GCC internal prototype to avoid an error.
8736    Use char because int might match the return type of a GCC
8737    builtin and then its argument prototype would still apply.  */
8738 #ifdef __cplusplus
8739 extern "C"
8740 #endif
8741 char krb5_sendauth ();
8742 int
8743 main ()
8744 {
8745 return krb5_sendauth ();
8746   ;
8747   return 0;
8748 }
8749 _ACEOF
8750 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8751   if test -z "$ac_lib"; then
8752     ac_res="none required"
8753   else
8754     ac_res=-l$ac_lib
8755     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8756   fi
8757   rm -f conftest.$ac_objext conftest$ac_exeext
8758 if { (ac_try="$ac_link"
8759 case "(($ac_try" in
8760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761   *) ac_try_echo=$ac_try;;
8762 esac
8763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8764 $as_echo "$ac_try_echo") >&5
8765   (eval "$ac_link") 2>conftest.er1
8766   ac_status=$?
8767   grep -v '^ *+' conftest.er1 >conftest.err
8768   rm -f conftest.er1
8769   cat conftest.err >&5
8770   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771   (exit $ac_status); } && {
8772          test -z "$ac_c_werror_flag" ||
8773          test ! -s conftest.err
8774        } && test -s conftest$ac_exeext && {
8775          test "$cross_compiling" = yes ||
8776          $as_test_x conftest$ac_exeext
8777        }; then
8778   ac_cv_search_krb5_sendauth=$ac_res
8779 else
8780   $as_echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8782
8783
8784 fi
8785
8786 rm -rf conftest.dSYM
8787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8788       conftest$ac_exeext
8789   if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8790   break
8791 fi
8792 done
8793 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8794   :
8795 else
8796   ac_cv_search_krb5_sendauth=no
8797 fi
8798 rm conftest.$ac_ext
8799 LIBS=$ac_func_search_save_LIBS
8800 fi
8801 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8802 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
8803 ac_res=$ac_cv_search_krb5_sendauth
8804 if test "$ac_res" != no; then
8805   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8806
8807 else
8808   { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8809 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8810    { (exit 1); exit 1; }; }
8811 fi
8812
8813   else
8814      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8815 $as_echo_n "checking for library containing com_err... " >&6; }
8816 if test "${ac_cv_search_com_err+set}" = set; then
8817   $as_echo_n "(cached) " >&6
8818 else
8819   ac_func_search_save_LIBS=$LIBS
8820 cat >conftest.$ac_ext <<_ACEOF
8821 /* confdefs.h.  */
8822 _ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h.  */
8826
8827 /* Override any GCC internal prototype to avoid an error.
8828    Use char because int might match the return type of a GCC
8829    builtin and then its argument prototype would still apply.  */
8830 #ifdef __cplusplus
8831 extern "C"
8832 #endif
8833 char com_err ();
8834 int
8835 main ()
8836 {
8837 return com_err ();
8838   ;
8839   return 0;
8840 }
8841 _ACEOF
8842 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8843   if test -z "$ac_lib"; then
8844     ac_res="none required"
8845   else
8846     ac_res=-l$ac_lib
8847     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8848   fi
8849   rm -f conftest.$ac_objext conftest$ac_exeext
8850 if { (ac_try="$ac_link"
8851 case "(($ac_try" in
8852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8853   *) ac_try_echo=$ac_try;;
8854 esac
8855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8856 $as_echo "$ac_try_echo") >&5
8857   (eval "$ac_link") 2>conftest.er1
8858   ac_status=$?
8859   grep -v '^ *+' conftest.er1 >conftest.err
8860   rm -f conftest.er1
8861   cat conftest.err >&5
8862   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863   (exit $ac_status); } && {
8864          test -z "$ac_c_werror_flag" ||
8865          test ! -s conftest.err
8866        } && test -s conftest$ac_exeext && {
8867          test "$cross_compiling" = yes ||
8868          $as_test_x conftest$ac_exeext
8869        }; then
8870   ac_cv_search_com_err=$ac_res
8871 else
8872   $as_echo "$as_me: failed program was:" >&5
8873 sed 's/^/| /' conftest.$ac_ext >&5
8874
8875
8876 fi
8877
8878 rm -rf conftest.dSYM
8879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8880       conftest$ac_exeext
8881   if test "${ac_cv_search_com_err+set}" = set; then
8882   break
8883 fi
8884 done
8885 if test "${ac_cv_search_com_err+set}" = set; then
8886   :
8887 else
8888   ac_cv_search_com_err=no
8889 fi
8890 rm conftest.$ac_ext
8891 LIBS=$ac_func_search_save_LIBS
8892 fi
8893 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8894 $as_echo "$ac_cv_search_com_err" >&6; }
8895 ac_res=$ac_cv_search_com_err
8896 if test "$ac_res" != no; then
8897   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8898
8899 else
8900   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8901 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8902    { (exit 1); exit 1; }; }
8903 fi
8904
8905   fi
8906 fi
8907
8908 if test "$with_openssl" = yes ; then
8909     if test "$PORTNAME" != "win32"; then
8910
8911 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8912 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
8913 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
8914   $as_echo_n "(cached) " >&6
8915 else
8916   ac_check_lib_save_LIBS=$LIBS
8917 LIBS="-lcrypto  $LIBS"
8918 cat >conftest.$ac_ext <<_ACEOF
8919 /* confdefs.h.  */
8920 _ACEOF
8921 cat confdefs.h >>conftest.$ac_ext
8922 cat >>conftest.$ac_ext <<_ACEOF
8923 /* end confdefs.h.  */
8924
8925 /* Override any GCC internal prototype to avoid an error.
8926    Use char because int might match the return type of a GCC
8927    builtin and then its argument prototype would still apply.  */
8928 #ifdef __cplusplus
8929 extern "C"
8930 #endif
8931 char CRYPTO_new_ex_data ();
8932 int
8933 main ()
8934 {
8935 return CRYPTO_new_ex_data ();
8936   ;
8937   return 0;
8938 }
8939 _ACEOF
8940 rm -f conftest.$ac_objext conftest$ac_exeext
8941 if { (ac_try="$ac_link"
8942 case "(($ac_try" in
8943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8944   *) ac_try_echo=$ac_try;;
8945 esac
8946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8947 $as_echo "$ac_try_echo") >&5
8948   (eval "$ac_link") 2>conftest.er1
8949   ac_status=$?
8950   grep -v '^ *+' conftest.er1 >conftest.err
8951   rm -f conftest.er1
8952   cat conftest.err >&5
8953   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954   (exit $ac_status); } && {
8955          test -z "$ac_c_werror_flag" ||
8956          test ! -s conftest.err
8957        } && test -s conftest$ac_exeext && {
8958          test "$cross_compiling" = yes ||
8959          $as_test_x conftest$ac_exeext
8960        }; then
8961   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8962 else
8963   $as_echo "$as_me: failed program was:" >&5
8964 sed 's/^/| /' conftest.$ac_ext >&5
8965
8966         ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8967 fi
8968
8969 rm -rf conftest.dSYM
8970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8971       conftest$ac_exeext conftest.$ac_ext
8972 LIBS=$ac_check_lib_save_LIBS
8973 fi
8974 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8975 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8976 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
8977   cat >>confdefs.h <<_ACEOF
8978 #define HAVE_LIBCRYPTO 1
8979 _ACEOF
8980
8981   LIBS="-lcrypto $LIBS"
8982
8983 else
8984   { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8985 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8986    { (exit 1); exit 1; }; }
8987 fi
8988
8989
8990 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8991 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
8992 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8993   $as_echo_n "(cached) " >&6
8994 else
8995   ac_check_lib_save_LIBS=$LIBS
8996 LIBS="-lssl  $LIBS"
8997 cat >conftest.$ac_ext <<_ACEOF
8998 /* confdefs.h.  */
8999 _ACEOF
9000 cat confdefs.h >>conftest.$ac_ext
9001 cat >>conftest.$ac_ext <<_ACEOF
9002 /* end confdefs.h.  */
9003
9004 /* Override any GCC internal prototype to avoid an error.
9005    Use char because int might match the return type of a GCC
9006    builtin and then its argument prototype would still apply.  */
9007 #ifdef __cplusplus
9008 extern "C"
9009 #endif
9010 char SSL_library_init ();
9011 int
9012 main ()
9013 {
9014 return SSL_library_init ();
9015   ;
9016   return 0;
9017 }
9018 _ACEOF
9019 rm -f conftest.$ac_objext conftest$ac_exeext
9020 if { (ac_try="$ac_link"
9021 case "(($ac_try" in
9022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9023   *) ac_try_echo=$ac_try;;
9024 esac
9025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9026 $as_echo "$ac_try_echo") >&5
9027   (eval "$ac_link") 2>conftest.er1
9028   ac_status=$?
9029   grep -v '^ *+' conftest.er1 >conftest.err
9030   rm -f conftest.er1
9031   cat conftest.err >&5
9032   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033   (exit $ac_status); } && {
9034          test -z "$ac_c_werror_flag" ||
9035          test ! -s conftest.err
9036        } && test -s conftest$ac_exeext && {
9037          test "$cross_compiling" = yes ||
9038          $as_test_x conftest$ac_exeext
9039        }; then
9040   ac_cv_lib_ssl_SSL_library_init=yes
9041 else
9042   $as_echo "$as_me: failed program was:" >&5
9043 sed 's/^/| /' conftest.$ac_ext >&5
9044
9045         ac_cv_lib_ssl_SSL_library_init=no
9046 fi
9047
9048 rm -rf conftest.dSYM
9049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9050       conftest$ac_exeext conftest.$ac_ext
9051 LIBS=$ac_check_lib_save_LIBS
9052 fi
9053 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
9054 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
9055 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
9056   cat >>confdefs.h <<_ACEOF
9057 #define HAVE_LIBSSL 1
9058 _ACEOF
9059
9060   LIBS="-lssl $LIBS"
9061
9062 else
9063   { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
9064 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
9065    { (exit 1); exit 1; }; }
9066 fi
9067
9068   else
9069
9070 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
9071 $as_echo_n "checking for CRYPTO_new_ex_data in -leay32... " >&6; }
9072 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
9073   $as_echo_n "(cached) " >&6
9074 else
9075   ac_check_lib_save_LIBS=$LIBS
9076 LIBS="-leay32  $LIBS"
9077 cat >conftest.$ac_ext <<_ACEOF
9078 /* confdefs.h.  */
9079 _ACEOF
9080 cat confdefs.h >>conftest.$ac_ext
9081 cat >>conftest.$ac_ext <<_ACEOF
9082 /* end confdefs.h.  */
9083
9084 /* Override any GCC internal prototype to avoid an error.
9085    Use char because int might match the return type of a GCC
9086    builtin and then its argument prototype would still apply.  */
9087 #ifdef __cplusplus
9088 extern "C"
9089 #endif
9090 char CRYPTO_new_ex_data ();
9091 int
9092 main ()
9093 {
9094 return CRYPTO_new_ex_data ();
9095   ;
9096   return 0;
9097 }
9098 _ACEOF
9099 rm -f conftest.$ac_objext conftest$ac_exeext
9100 if { (ac_try="$ac_link"
9101 case "(($ac_try" in
9102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9103   *) ac_try_echo=$ac_try;;
9104 esac
9105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9106 $as_echo "$ac_try_echo") >&5
9107   (eval "$ac_link") 2>conftest.er1
9108   ac_status=$?
9109   grep -v '^ *+' conftest.er1 >conftest.err
9110   rm -f conftest.er1
9111   cat conftest.err >&5
9112   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113   (exit $ac_status); } && {
9114          test -z "$ac_c_werror_flag" ||
9115          test ! -s conftest.err
9116        } && test -s conftest$ac_exeext && {
9117          test "$cross_compiling" = yes ||
9118          $as_test_x conftest$ac_exeext
9119        }; then
9120   ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
9121 else
9122   $as_echo "$as_me: failed program was:" >&5
9123 sed 's/^/| /' conftest.$ac_ext >&5
9124
9125         ac_cv_lib_eay32_CRYPTO_new_ex_data=no
9126 fi
9127
9128 rm -rf conftest.dSYM
9129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9130       conftest$ac_exeext conftest.$ac_ext
9131 LIBS=$ac_check_lib_save_LIBS
9132 fi
9133 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
9134 $as_echo "$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
9135 if test "x$ac_cv_lib_eay32_CRYPTO_new_ex_data" = x""yes; then
9136   cat >>confdefs.h <<_ACEOF
9137 #define HAVE_LIBEAY32 1
9138 _ACEOF
9139
9140   LIBS="-leay32 $LIBS"
9141
9142 else
9143   { { $as_echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
9144 $as_echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
9145    { (exit 1); exit 1; }; }
9146 fi
9147
9148
9149 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
9150 $as_echo_n "checking for SSL_library_init in -lssleay32... " >&6; }
9151 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
9152   $as_echo_n "(cached) " >&6
9153 else
9154   ac_check_lib_save_LIBS=$LIBS
9155 LIBS="-lssleay32  $LIBS"
9156 cat >conftest.$ac_ext <<_ACEOF
9157 /* confdefs.h.  */
9158 _ACEOF
9159 cat confdefs.h >>conftest.$ac_ext
9160 cat >>conftest.$ac_ext <<_ACEOF
9161 /* end confdefs.h.  */
9162
9163 /* Override any GCC internal prototype to avoid an error.
9164    Use char because int might match the return type of a GCC
9165    builtin and then its argument prototype would still apply.  */
9166 #ifdef __cplusplus
9167 extern "C"
9168 #endif
9169 char SSL_library_init ();
9170 int
9171 main ()
9172 {
9173 return SSL_library_init ();
9174   ;
9175   return 0;
9176 }
9177 _ACEOF
9178 rm -f conftest.$ac_objext conftest$ac_exeext
9179 if { (ac_try="$ac_link"
9180 case "(($ac_try" in
9181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9182   *) ac_try_echo=$ac_try;;
9183 esac
9184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9185 $as_echo "$ac_try_echo") >&5
9186   (eval "$ac_link") 2>conftest.er1
9187   ac_status=$?
9188   grep -v '^ *+' conftest.er1 >conftest.err
9189   rm -f conftest.er1
9190   cat conftest.err >&5
9191   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192   (exit $ac_status); } && {
9193          test -z "$ac_c_werror_flag" ||
9194          test ! -s conftest.err
9195        } && test -s conftest$ac_exeext && {
9196          test "$cross_compiling" = yes ||
9197          $as_test_x conftest$ac_exeext
9198        }; then
9199   ac_cv_lib_ssleay32_SSL_library_init=yes
9200 else
9201   $as_echo "$as_me: failed program was:" >&5
9202 sed 's/^/| /' conftest.$ac_ext >&5
9203
9204         ac_cv_lib_ssleay32_SSL_library_init=no
9205 fi
9206
9207 rm -rf conftest.dSYM
9208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9209       conftest$ac_exeext conftest.$ac_ext
9210 LIBS=$ac_check_lib_save_LIBS
9211 fi
9212 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
9213 $as_echo "$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
9214 if test "x$ac_cv_lib_ssleay32_SSL_library_init" = x""yes; then
9215   cat >>confdefs.h <<_ACEOF
9216 #define HAVE_LIBSSLEAY32 1
9217 _ACEOF
9218
9219   LIBS="-lssleay32 $LIBS"
9220
9221 else
9222   { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
9223 $as_echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
9224    { (exit 1); exit 1; }; }
9225 fi
9226
9227   fi
9228 fi
9229
9230 if test "$with_pam" = yes ; then
9231
9232 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9233 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9234 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9235   $as_echo_n "(cached) " >&6
9236 else
9237   ac_check_lib_save_LIBS=$LIBS
9238 LIBS="-lpam  $LIBS"
9239 cat >conftest.$ac_ext <<_ACEOF
9240 /* confdefs.h.  */
9241 _ACEOF
9242 cat confdefs.h >>conftest.$ac_ext
9243 cat >>conftest.$ac_ext <<_ACEOF
9244 /* end confdefs.h.  */
9245
9246 /* Override any GCC internal prototype to avoid an error.
9247    Use char because int might match the return type of a GCC
9248    builtin and then its argument prototype would still apply.  */
9249 #ifdef __cplusplus
9250 extern "C"
9251 #endif
9252 char pam_start ();
9253 int
9254 main ()
9255 {
9256 return pam_start ();
9257   ;
9258   return 0;
9259 }
9260 _ACEOF
9261 rm -f conftest.$ac_objext conftest$ac_exeext
9262 if { (ac_try="$ac_link"
9263 case "(($ac_try" in
9264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9265   *) ac_try_echo=$ac_try;;
9266 esac
9267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9268 $as_echo "$ac_try_echo") >&5
9269   (eval "$ac_link") 2>conftest.er1
9270   ac_status=$?
9271   grep -v '^ *+' conftest.er1 >conftest.err
9272   rm -f conftest.er1
9273   cat conftest.err >&5
9274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275   (exit $ac_status); } && {
9276          test -z "$ac_c_werror_flag" ||
9277          test ! -s conftest.err
9278        } && test -s conftest$ac_exeext && {
9279          test "$cross_compiling" = yes ||
9280          $as_test_x conftest$ac_exeext
9281        }; then
9282   ac_cv_lib_pam_pam_start=yes
9283 else
9284   $as_echo "$as_me: failed program was:" >&5
9285 sed 's/^/| /' conftest.$ac_ext >&5
9286
9287         ac_cv_lib_pam_pam_start=no
9288 fi
9289
9290 rm -rf conftest.dSYM
9291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9292       conftest$ac_exeext conftest.$ac_ext
9293 LIBS=$ac_check_lib_save_LIBS
9294 fi
9295 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9296 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9297 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9298   cat >>confdefs.h <<_ACEOF
9299 #define HAVE_LIBPAM 1
9300 _ACEOF
9301
9302   LIBS="-lpam $LIBS"
9303
9304 else
9305   { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9306 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9307    { (exit 1); exit 1; }; }
9308 fi
9309
9310 fi
9311
9312 if test "$with_libxml" = yes ; then
9313
9314 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9315 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9316 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9317   $as_echo_n "(cached) " >&6
9318 else
9319   ac_check_lib_save_LIBS=$LIBS
9320 LIBS="-lxml2  $LIBS"
9321 cat >conftest.$ac_ext <<_ACEOF
9322 /* confdefs.h.  */
9323 _ACEOF
9324 cat confdefs.h >>conftest.$ac_ext
9325 cat >>conftest.$ac_ext <<_ACEOF
9326 /* end confdefs.h.  */
9327
9328 /* Override any GCC internal prototype to avoid an error.
9329    Use char because int might match the return type of a GCC
9330    builtin and then its argument prototype would still apply.  */
9331 #ifdef __cplusplus
9332 extern "C"
9333 #endif
9334 char xmlSaveToBuffer ();
9335 int
9336 main ()
9337 {
9338 return xmlSaveToBuffer ();
9339   ;
9340   return 0;
9341 }
9342 _ACEOF
9343 rm -f conftest.$ac_objext conftest$ac_exeext
9344 if { (ac_try="$ac_link"
9345 case "(($ac_try" in
9346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9347   *) ac_try_echo=$ac_try;;
9348 esac
9349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9350 $as_echo "$ac_try_echo") >&5
9351   (eval "$ac_link") 2>conftest.er1
9352   ac_status=$?
9353   grep -v '^ *+' conftest.er1 >conftest.err
9354   rm -f conftest.er1
9355   cat conftest.err >&5
9356   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357   (exit $ac_status); } && {
9358          test -z "$ac_c_werror_flag" ||
9359          test ! -s conftest.err
9360        } && test -s conftest$ac_exeext && {
9361          test "$cross_compiling" = yes ||
9362          $as_test_x conftest$ac_exeext
9363        }; then
9364   ac_cv_lib_xml2_xmlSaveToBuffer=yes
9365 else
9366   $as_echo "$as_me: failed program was:" >&5
9367 sed 's/^/| /' conftest.$ac_ext >&5
9368
9369         ac_cv_lib_xml2_xmlSaveToBuffer=no
9370 fi
9371
9372 rm -rf conftest.dSYM
9373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9374       conftest$ac_exeext conftest.$ac_ext
9375 LIBS=$ac_check_lib_save_LIBS
9376 fi
9377 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9378 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9379 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9380   cat >>confdefs.h <<_ACEOF
9381 #define HAVE_LIBXML2 1
9382 _ACEOF
9383
9384   LIBS="-lxml2 $LIBS"
9385
9386 else
9387   { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9388 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9389    { (exit 1); exit 1; }; }
9390 fi
9391
9392 fi
9393
9394 if test "$with_libxslt" = yes ; then
9395
9396 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9397 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9398 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9399   $as_echo_n "(cached) " >&6
9400 else
9401   ac_check_lib_save_LIBS=$LIBS
9402 LIBS="-lxslt  $LIBS"
9403 cat >conftest.$ac_ext <<_ACEOF
9404 /* confdefs.h.  */
9405 _ACEOF
9406 cat confdefs.h >>conftest.$ac_ext
9407 cat >>conftest.$ac_ext <<_ACEOF
9408 /* end confdefs.h.  */
9409
9410 /* Override any GCC internal prototype to avoid an error.
9411    Use char because int might match the return type of a GCC
9412    builtin and then its argument prototype would still apply.  */
9413 #ifdef __cplusplus
9414 extern "C"
9415 #endif
9416 char xsltCleanupGlobals ();
9417 int
9418 main ()
9419 {
9420 return xsltCleanupGlobals ();
9421   ;
9422   return 0;
9423 }
9424 _ACEOF
9425 rm -f conftest.$ac_objext conftest$ac_exeext
9426 if { (ac_try="$ac_link"
9427 case "(($ac_try" in
9428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9429   *) ac_try_echo=$ac_try;;
9430 esac
9431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9432 $as_echo "$ac_try_echo") >&5
9433   (eval "$ac_link") 2>conftest.er1
9434   ac_status=$?
9435   grep -v '^ *+' conftest.er1 >conftest.err
9436   rm -f conftest.er1
9437   cat conftest.err >&5
9438   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439   (exit $ac_status); } && {
9440          test -z "$ac_c_werror_flag" ||
9441          test ! -s conftest.err
9442        } && test -s conftest$ac_exeext && {
9443          test "$cross_compiling" = yes ||
9444          $as_test_x conftest$ac_exeext
9445        }; then
9446   ac_cv_lib_xslt_xsltCleanupGlobals=yes
9447 else
9448   $as_echo "$as_me: failed program was:" >&5
9449 sed 's/^/| /' conftest.$ac_ext >&5
9450
9451         ac_cv_lib_xslt_xsltCleanupGlobals=no
9452 fi
9453
9454 rm -rf conftest.dSYM
9455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9456       conftest$ac_exeext conftest.$ac_ext
9457 LIBS=$ac_check_lib_save_LIBS
9458 fi
9459 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9460 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9461 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9462   cat >>confdefs.h <<_ACEOF
9463 #define HAVE_LIBXSLT 1
9464 _ACEOF
9465
9466   LIBS="-lxslt $LIBS"
9467
9468 else
9469   { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9470 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9471    { (exit 1); exit 1; }; }
9472 fi
9473
9474 fi
9475
9476 # for contrib/sepgsql
9477 if test "$with_selinux" = yes; then
9478
9479 { $as_echo "$as_me:$LINENO: checking for selinux_sepgsql_context_path in -lselinux" >&5
9480 $as_echo_n "checking for selinux_sepgsql_context_path in -lselinux... " >&6; }
9481 if test "${ac_cv_lib_selinux_selinux_sepgsql_context_path+set}" = set; then
9482   $as_echo_n "(cached) " >&6
9483 else
9484   ac_check_lib_save_LIBS=$LIBS
9485 LIBS="-lselinux  $LIBS"
9486 cat >conftest.$ac_ext <<_ACEOF
9487 /* confdefs.h.  */
9488 _ACEOF
9489 cat confdefs.h >>conftest.$ac_ext
9490 cat >>conftest.$ac_ext <<_ACEOF
9491 /* end confdefs.h.  */
9492
9493 /* Override any GCC internal prototype to avoid an error.
9494    Use char because int might match the return type of a GCC
9495    builtin and then its argument prototype would still apply.  */
9496 #ifdef __cplusplus
9497 extern "C"
9498 #endif
9499 char selinux_sepgsql_context_path ();
9500 int
9501 main ()
9502 {
9503 return selinux_sepgsql_context_path ();
9504   ;
9505   return 0;
9506 }
9507 _ACEOF
9508 rm -f conftest.$ac_objext conftest$ac_exeext
9509 if { (ac_try="$ac_link"
9510 case "(($ac_try" in
9511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9512   *) ac_try_echo=$ac_try;;
9513 esac
9514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9515 $as_echo "$ac_try_echo") >&5
9516   (eval "$ac_link") 2>conftest.er1
9517   ac_status=$?
9518   grep -v '^ *+' conftest.er1 >conftest.err
9519   rm -f conftest.er1
9520   cat conftest.err >&5
9521   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522   (exit $ac_status); } && {
9523          test -z "$ac_c_werror_flag" ||
9524          test ! -s conftest.err
9525        } && test -s conftest$ac_exeext && {
9526          test "$cross_compiling" = yes ||
9527          $as_test_x conftest$ac_exeext
9528        }; then
9529   ac_cv_lib_selinux_selinux_sepgsql_context_path=yes
9530 else
9531   $as_echo "$as_me: failed program was:" >&5
9532 sed 's/^/| /' conftest.$ac_ext >&5
9533
9534         ac_cv_lib_selinux_selinux_sepgsql_context_path=no
9535 fi
9536
9537 rm -rf conftest.dSYM
9538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9539       conftest$ac_exeext conftest.$ac_ext
9540 LIBS=$ac_check_lib_save_LIBS
9541 fi
9542 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_selinux_sepgsql_context_path" >&5
9543 $as_echo "$ac_cv_lib_selinux_selinux_sepgsql_context_path" >&6; }
9544 if test "x$ac_cv_lib_selinux_selinux_sepgsql_context_path" = x""yes; then
9545   cat >>confdefs.h <<_ACEOF
9546 #define HAVE_LIBSELINUX 1
9547 _ACEOF
9548
9549   LIBS="-lselinux $LIBS"
9550
9551 else
9552   { { $as_echo "$as_me:$LINENO: error: library 'libselinux', version 2.0.93 or newer, is required for SELinux support" >&5
9553 $as_echo "$as_me: error: library 'libselinux', version 2.0.93 or newer, is required for SELinux support" >&2;}
9554    { (exit 1); exit 1; }; }
9555 fi
9556
9557 fi
9558
9559 # for contrib/uuid-ossp
9560 if test "$with_ossp_uuid" = yes ; then
9561   { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9562 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9563 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9564   $as_echo_n "(cached) " >&6
9565 else
9566   ac_check_lib_save_LIBS=$LIBS
9567 LIBS="-lossp-uuid  $LIBS"
9568 cat >conftest.$ac_ext <<_ACEOF
9569 /* confdefs.h.  */
9570 _ACEOF
9571 cat confdefs.h >>conftest.$ac_ext
9572 cat >>conftest.$ac_ext <<_ACEOF
9573 /* end confdefs.h.  */
9574
9575 /* Override any GCC internal prototype to avoid an error.
9576    Use char because int might match the return type of a GCC
9577    builtin and then its argument prototype would still apply.  */
9578 #ifdef __cplusplus
9579 extern "C"
9580 #endif
9581 char uuid_export ();
9582 int
9583 main ()
9584 {
9585 return uuid_export ();
9586   ;
9587   return 0;
9588 }
9589 _ACEOF
9590 rm -f conftest.$ac_objext conftest$ac_exeext
9591 if { (ac_try="$ac_link"
9592 case "(($ac_try" in
9593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9594   *) ac_try_echo=$ac_try;;
9595 esac
9596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9597 $as_echo "$ac_try_echo") >&5
9598   (eval "$ac_link") 2>conftest.er1
9599   ac_status=$?
9600   grep -v '^ *+' conftest.er1 >conftest.err
9601   rm -f conftest.er1
9602   cat conftest.err >&5
9603   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604   (exit $ac_status); } && {
9605          test -z "$ac_c_werror_flag" ||
9606          test ! -s conftest.err
9607        } && test -s conftest$ac_exeext && {
9608          test "$cross_compiling" = yes ||
9609          $as_test_x conftest$ac_exeext
9610        }; then
9611   ac_cv_lib_ossp_uuid_uuid_export=yes
9612 else
9613   $as_echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.$ac_ext >&5
9615
9616         ac_cv_lib_ossp_uuid_uuid_export=no
9617 fi
9618
9619 rm -rf conftest.dSYM
9620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9621       conftest$ac_exeext conftest.$ac_ext
9622 LIBS=$ac_check_lib_save_LIBS
9623 fi
9624 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9625 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9626 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9627   OSSP_UUID_LIBS="-lossp-uuid"
9628 else
9629   { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9630 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9631 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9632   $as_echo_n "(cached) " >&6
9633 else
9634   ac_check_lib_save_LIBS=$LIBS
9635 LIBS="-luuid  $LIBS"
9636 cat >conftest.$ac_ext <<_ACEOF
9637 /* confdefs.h.  */
9638 _ACEOF
9639 cat confdefs.h >>conftest.$ac_ext
9640 cat >>conftest.$ac_ext <<_ACEOF
9641 /* end confdefs.h.  */
9642
9643 /* Override any GCC internal prototype to avoid an error.
9644    Use char because int might match the return type of a GCC
9645    builtin and then its argument prototype would still apply.  */
9646 #ifdef __cplusplus
9647 extern "C"
9648 #endif
9649 char uuid_export ();
9650 int
9651 main ()
9652 {
9653 return uuid_export ();
9654   ;
9655   return 0;
9656 }
9657 _ACEOF
9658 rm -f conftest.$ac_objext conftest$ac_exeext
9659 if { (ac_try="$ac_link"
9660 case "(($ac_try" in
9661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662   *) ac_try_echo=$ac_try;;
9663 esac
9664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9665 $as_echo "$ac_try_echo") >&5
9666   (eval "$ac_link") 2>conftest.er1
9667   ac_status=$?
9668   grep -v '^ *+' conftest.er1 >conftest.err
9669   rm -f conftest.er1
9670   cat conftest.err >&5
9671   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672   (exit $ac_status); } && {
9673          test -z "$ac_c_werror_flag" ||
9674          test ! -s conftest.err
9675        } && test -s conftest$ac_exeext && {
9676          test "$cross_compiling" = yes ||
9677          $as_test_x conftest$ac_exeext
9678        }; then
9679   ac_cv_lib_uuid_uuid_export=yes
9680 else
9681   $as_echo "$as_me: failed program was:" >&5
9682 sed 's/^/| /' conftest.$ac_ext >&5
9683
9684         ac_cv_lib_uuid_uuid_export=no
9685 fi
9686
9687 rm -rf conftest.dSYM
9688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9689       conftest$ac_exeext conftest.$ac_ext
9690 LIBS=$ac_check_lib_save_LIBS
9691 fi
9692 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9693 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9694 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9695   OSSP_UUID_LIBS="-luuid"
9696 else
9697   { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9698 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9699    { (exit 1); exit 1; }; }
9700 fi
9701
9702 fi
9703
9704 fi
9705
9706
9707
9708 ##
9709 ## Header files
9710 ##
9711
9712 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9713 $as_echo_n "checking for ANSI C header files... " >&6; }
9714 if test "${ac_cv_header_stdc+set}" = set; then
9715   $as_echo_n "(cached) " >&6
9716 else
9717   cat >conftest.$ac_ext <<_ACEOF
9718 /* confdefs.h.  */
9719 _ACEOF
9720 cat confdefs.h >>conftest.$ac_ext
9721 cat >>conftest.$ac_ext <<_ACEOF
9722 /* end confdefs.h.  */
9723 #include <stdlib.h>
9724 #include <stdarg.h>
9725 #include <string.h>
9726 #include <float.h>
9727
9728 int
9729 main ()
9730 {
9731
9732   ;
9733   return 0;
9734 }
9735 _ACEOF
9736 rm -f conftest.$ac_objext
9737 if { (ac_try="$ac_compile"
9738 case "(($ac_try" in
9739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9740   *) ac_try_echo=$ac_try;;
9741 esac
9742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9743 $as_echo "$ac_try_echo") >&5
9744   (eval "$ac_compile") 2>conftest.er1
9745   ac_status=$?
9746   grep -v '^ *+' conftest.er1 >conftest.err
9747   rm -f conftest.er1
9748   cat conftest.err >&5
9749   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750   (exit $ac_status); } && {
9751          test -z "$ac_c_werror_flag" ||
9752          test ! -s conftest.err
9753        } && test -s conftest.$ac_objext; then
9754   ac_cv_header_stdc=yes
9755 else
9756   $as_echo "$as_me: failed program was:" >&5
9757 sed 's/^/| /' conftest.$ac_ext >&5
9758
9759         ac_cv_header_stdc=no
9760 fi
9761
9762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9763
9764 if test $ac_cv_header_stdc = yes; then
9765   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9766   cat >conftest.$ac_ext <<_ACEOF
9767 /* confdefs.h.  */
9768 _ACEOF
9769 cat confdefs.h >>conftest.$ac_ext
9770 cat >>conftest.$ac_ext <<_ACEOF
9771 /* end confdefs.h.  */
9772 #include <string.h>
9773
9774 _ACEOF
9775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9776   $EGREP "memchr" >/dev/null 2>&1; then
9777   :
9778 else
9779   ac_cv_header_stdc=no
9780 fi
9781 rm -f conftest*
9782
9783 fi
9784
9785 if test $ac_cv_header_stdc = yes; then
9786   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9787   cat >conftest.$ac_ext <<_ACEOF
9788 /* confdefs.h.  */
9789 _ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h.  */
9793 #include <stdlib.h>
9794
9795 _ACEOF
9796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9797   $EGREP "free" >/dev/null 2>&1; then
9798   :
9799 else
9800   ac_cv_header_stdc=no
9801 fi
9802 rm -f conftest*
9803
9804 fi
9805
9806 if test $ac_cv_header_stdc = yes; then
9807   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9808   if test "$cross_compiling" = yes; then
9809   :
9810 else
9811   cat >conftest.$ac_ext <<_ACEOF
9812 /* confdefs.h.  */
9813 _ACEOF
9814 cat confdefs.h >>conftest.$ac_ext
9815 cat >>conftest.$ac_ext <<_ACEOF
9816 /* end confdefs.h.  */
9817 #include <ctype.h>
9818 #include <stdlib.h>
9819 #if ((' ' & 0x0FF) == 0x020)
9820 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9821 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9822 #else
9823 # define ISLOWER(c) \
9824                    (('a' <= (c) && (c) <= 'i') \
9825                      || ('j' <= (c) && (c) <= 'r') \
9826                      || ('s' <= (c) && (c) <= 'z'))
9827 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9828 #endif
9829
9830 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9831 int
9832 main ()
9833 {
9834   int i;
9835   for (i = 0; i < 256; i++)
9836     if (XOR (islower (i), ISLOWER (i))
9837         || toupper (i) != TOUPPER (i))
9838       return 2;
9839   return 0;
9840 }
9841 _ACEOF
9842 rm -f conftest$ac_exeext
9843 if { (ac_try="$ac_link"
9844 case "(($ac_try" in
9845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9846   *) ac_try_echo=$ac_try;;
9847 esac
9848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9849 $as_echo "$ac_try_echo") >&5
9850   (eval "$ac_link") 2>&5
9851   ac_status=$?
9852   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9854   { (case "(($ac_try" in
9855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9856   *) ac_try_echo=$ac_try;;
9857 esac
9858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9859 $as_echo "$ac_try_echo") >&5
9860   (eval "$ac_try") 2>&5
9861   ac_status=$?
9862   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863   (exit $ac_status); }; }; then
9864   :
9865 else
9866   $as_echo "$as_me: program exited with status $ac_status" >&5
9867 $as_echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.$ac_ext >&5
9869
9870 ( exit $ac_status )
9871 ac_cv_header_stdc=no
9872 fi
9873 rm -rf conftest.dSYM
9874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9875 fi
9876
9877
9878 fi
9879 fi
9880 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9881 $as_echo "$ac_cv_header_stdc" >&6; }
9882 if test $ac_cv_header_stdc = yes; then
9883
9884 cat >>confdefs.h <<\_ACEOF
9885 #define STDC_HEADERS 1
9886 _ACEOF
9887
9888 fi
9889
9890 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9901                   inttypes.h stdint.h unistd.h
9902 do
9903 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9904 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9905 $as_echo_n "checking for $ac_header... " >&6; }
9906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9907   $as_echo_n "(cached) " >&6
9908 else
9909   cat >conftest.$ac_ext <<_ACEOF
9910 /* confdefs.h.  */
9911 _ACEOF
9912 cat confdefs.h >>conftest.$ac_ext
9913 cat >>conftest.$ac_ext <<_ACEOF
9914 /* end confdefs.h.  */
9915 $ac_includes_default
9916
9917 #include <$ac_header>
9918 _ACEOF
9919 rm -f conftest.$ac_objext
9920 if { (ac_try="$ac_compile"
9921 case "(($ac_try" in
9922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9923   *) ac_try_echo=$ac_try;;
9924 esac
9925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9926 $as_echo "$ac_try_echo") >&5
9927   (eval "$ac_compile") 2>conftest.er1
9928   ac_status=$?
9929   grep -v '^ *+' conftest.er1 >conftest.err
9930   rm -f conftest.er1
9931   cat conftest.err >&5
9932   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933   (exit $ac_status); } && {
9934          test -z "$ac_c_werror_flag" ||
9935          test ! -s conftest.err
9936        } && test -s conftest.$ac_objext; then
9937   eval "$as_ac_Header=yes"
9938 else
9939   $as_echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9941
9942         eval "$as_ac_Header=no"
9943 fi
9944
9945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9946 fi
9947 ac_res=`eval 'as_val=${'$as_ac_Header'}
9948                  $as_echo "$as_val"'`
9949                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9950 $as_echo "$ac_res" >&6; }
9951 as_val=`eval 'as_val=${'$as_ac_Header'}
9952                  $as_echo "$as_val"'`
9953    if test "x$as_val" = x""yes; then
9954   cat >>confdefs.h <<_ACEOF
9955 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9956 _ACEOF
9957
9958 fi
9959
9960 done
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993 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/un.h termios.h ucred.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
9994 do
9995 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9997   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9998 $as_echo_n "checking for $ac_header... " >&6; }
9999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10000   $as_echo_n "(cached) " >&6
10001 fi
10002 ac_res=`eval 'as_val=${'$as_ac_Header'}
10003                  $as_echo "$as_val"'`
10004                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10005 $as_echo "$ac_res" >&6; }
10006 else
10007   # Is the header compilable?
10008 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10009 $as_echo_n "checking $ac_header usability... " >&6; }
10010 cat >conftest.$ac_ext <<_ACEOF
10011 /* confdefs.h.  */
10012 _ACEOF
10013 cat confdefs.h >>conftest.$ac_ext
10014 cat >>conftest.$ac_ext <<_ACEOF
10015 /* end confdefs.h.  */
10016 $ac_includes_default
10017 #include <$ac_header>
10018 _ACEOF
10019 rm -f conftest.$ac_objext
10020 if { (ac_try="$ac_compile"
10021 case "(($ac_try" in
10022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10023   *) ac_try_echo=$ac_try;;
10024 esac
10025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10026 $as_echo "$ac_try_echo") >&5
10027   (eval "$ac_compile") 2>conftest.er1
10028   ac_status=$?
10029   grep -v '^ *+' conftest.er1 >conftest.err
10030   rm -f conftest.er1
10031   cat conftest.err >&5
10032   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033   (exit $ac_status); } && {
10034          test -z "$ac_c_werror_flag" ||
10035          test ! -s conftest.err
10036        } && test -s conftest.$ac_objext; then
10037   ac_header_compiler=yes
10038 else
10039   $as_echo "$as_me: failed program was:" >&5
10040 sed 's/^/| /' conftest.$ac_ext >&5
10041
10042         ac_header_compiler=no
10043 fi
10044
10045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10046 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10047 $as_echo "$ac_header_compiler" >&6; }
10048
10049 # Is the header present?
10050 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10051 $as_echo_n "checking $ac_header presence... " >&6; }
10052 cat >conftest.$ac_ext <<_ACEOF
10053 /* confdefs.h.  */
10054 _ACEOF
10055 cat confdefs.h >>conftest.$ac_ext
10056 cat >>conftest.$ac_ext <<_ACEOF
10057 /* end confdefs.h.  */
10058 #include <$ac_header>
10059 _ACEOF
10060 if { (ac_try="$ac_cpp conftest.$ac_ext"
10061 case "(($ac_try" in
10062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10063   *) ac_try_echo=$ac_try;;
10064 esac
10065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10066 $as_echo "$ac_try_echo") >&5
10067   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10068   ac_status=$?
10069   grep -v '^ *+' conftest.er1 >conftest.err
10070   rm -f conftest.er1
10071   cat conftest.err >&5
10072   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073   (exit $ac_status); } >/dev/null && {
10074          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10075          test ! -s conftest.err
10076        }; then
10077   ac_header_preproc=yes
10078 else
10079   $as_echo "$as_me: failed program was:" >&5
10080 sed 's/^/| /' conftest.$ac_ext >&5
10081
10082   ac_header_preproc=no
10083 fi
10084
10085 rm -f conftest.err conftest.$ac_ext
10086 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10087 $as_echo "$ac_header_preproc" >&6; }
10088
10089 # So?  What about this header?
10090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10091   yes:no: )
10092     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10093 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10094     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10095 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10096     ac_header_preproc=yes
10097     ;;
10098   no:yes:* )
10099     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10100 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10101     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10102 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10103     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10104 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10105     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10106 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10107     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10108 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10109     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10110 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10111     ( cat <<\_ASBOX
10112 ## ---------------------------------------- ##
10113 ## Report this to pgsql-bugs@postgresql.org ##
10114 ## ---------------------------------------- ##
10115 _ASBOX
10116      ) | sed "s/^/$as_me: WARNING:     /" >&2
10117     ;;
10118 esac
10119 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10120 $as_echo_n "checking for $ac_header... " >&6; }
10121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10122   $as_echo_n "(cached) " >&6
10123 else
10124   eval "$as_ac_Header=\$ac_header_preproc"
10125 fi
10126 ac_res=`eval 'as_val=${'$as_ac_Header'}
10127                  $as_echo "$as_val"'`
10128                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10129 $as_echo "$ac_res" >&6; }
10130
10131 fi
10132 as_val=`eval 'as_val=${'$as_ac_Header'}
10133                  $as_echo "$as_val"'`
10134    if test "x$as_val" = x""yes; then
10135   cat >>confdefs.h <<_ACEOF
10136 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10137 _ACEOF
10138
10139 fi
10140
10141 done
10142
10143
10144 # On BSD, cpp test for net/if.h will fail unless sys/socket.h
10145 # is included first.
10146
10147 for ac_header in net/if.h
10148 do
10149 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10150 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10151 $as_echo_n "checking for $ac_header... " >&6; }
10152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10153   $as_echo_n "(cached) " >&6
10154 else
10155   cat >conftest.$ac_ext <<_ACEOF
10156 /* confdefs.h.  */
10157 _ACEOF
10158 cat confdefs.h >>conftest.$ac_ext
10159 cat >>conftest.$ac_ext <<_ACEOF
10160 /* end confdefs.h.  */
10161 $ac_includes_default
10162 #ifdef HAVE_SYS_SOCKET_H
10163 #include <sys/socket.h>
10164 #endif
10165
10166
10167 #include <$ac_header>
10168 _ACEOF
10169 rm -f conftest.$ac_objext
10170 if { (ac_try="$ac_compile"
10171 case "(($ac_try" in
10172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10173   *) ac_try_echo=$ac_try;;
10174 esac
10175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10176 $as_echo "$ac_try_echo") >&5
10177   (eval "$ac_compile") 2>conftest.er1
10178   ac_status=$?
10179   grep -v '^ *+' conftest.er1 >conftest.err
10180   rm -f conftest.er1
10181   cat conftest.err >&5
10182   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183   (exit $ac_status); } && {
10184          test -z "$ac_c_werror_flag" ||
10185          test ! -s conftest.err
10186        } && test -s conftest.$ac_objext; then
10187   eval "$as_ac_Header=yes"
10188 else
10189   $as_echo "$as_me: failed program was:" >&5
10190 sed 's/^/| /' conftest.$ac_ext >&5
10191
10192         eval "$as_ac_Header=no"
10193 fi
10194
10195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10196 fi
10197 ac_res=`eval 'as_val=${'$as_ac_Header'}
10198                  $as_echo "$as_val"'`
10199                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10200 $as_echo "$ac_res" >&6; }
10201 as_val=`eval 'as_val=${'$as_ac_Header'}
10202                  $as_echo "$as_val"'`
10203    if test "x$as_val" = x""yes; then
10204   cat >>confdefs.h <<_ACEOF
10205 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10206 _ACEOF
10207
10208 fi
10209
10210 done
10211
10212
10213 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
10214 # netinet/in.h is included first.
10215
10216 for ac_header in netinet/in.h
10217 do
10218 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10220   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10221 $as_echo_n "checking for $ac_header... " >&6; }
10222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10223   $as_echo_n "(cached) " >&6
10224 fi
10225 ac_res=`eval 'as_val=${'$as_ac_Header'}
10226                  $as_echo "$as_val"'`
10227                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10228 $as_echo "$ac_res" >&6; }
10229 else
10230   # Is the header compilable?
10231 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10232 $as_echo_n "checking $ac_header usability... " >&6; }
10233 cat >conftest.$ac_ext <<_ACEOF
10234 /* confdefs.h.  */
10235 _ACEOF
10236 cat confdefs.h >>conftest.$ac_ext
10237 cat >>conftest.$ac_ext <<_ACEOF
10238 /* end confdefs.h.  */
10239 $ac_includes_default
10240 #include <$ac_header>
10241 _ACEOF
10242 rm -f conftest.$ac_objext
10243 if { (ac_try="$ac_compile"
10244 case "(($ac_try" in
10245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246   *) ac_try_echo=$ac_try;;
10247 esac
10248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10249 $as_echo "$ac_try_echo") >&5
10250   (eval "$ac_compile") 2>conftest.er1
10251   ac_status=$?
10252   grep -v '^ *+' conftest.er1 >conftest.err
10253   rm -f conftest.er1
10254   cat conftest.err >&5
10255   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256   (exit $ac_status); } && {
10257          test -z "$ac_c_werror_flag" ||
10258          test ! -s conftest.err
10259        } && test -s conftest.$ac_objext; then
10260   ac_header_compiler=yes
10261 else
10262   $as_echo "$as_me: failed program was:" >&5
10263 sed 's/^/| /' conftest.$ac_ext >&5
10264
10265         ac_header_compiler=no
10266 fi
10267
10268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10269 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10270 $as_echo "$ac_header_compiler" >&6; }
10271
10272 # Is the header present?
10273 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10274 $as_echo_n "checking $ac_header presence... " >&6; }
10275 cat >conftest.$ac_ext <<_ACEOF
10276 /* confdefs.h.  */
10277 _ACEOF
10278 cat confdefs.h >>conftest.$ac_ext
10279 cat >>conftest.$ac_ext <<_ACEOF
10280 /* end confdefs.h.  */
10281 #include <$ac_header>
10282 _ACEOF
10283 if { (ac_try="$ac_cpp conftest.$ac_ext"
10284 case "(($ac_try" in
10285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10286   *) ac_try_echo=$ac_try;;
10287 esac
10288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10289 $as_echo "$ac_try_echo") >&5
10290   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10291   ac_status=$?
10292   grep -v '^ *+' conftest.er1 >conftest.err
10293   rm -f conftest.er1
10294   cat conftest.err >&5
10295   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296   (exit $ac_status); } >/dev/null && {
10297          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10298          test ! -s conftest.err
10299        }; then
10300   ac_header_preproc=yes
10301 else
10302   $as_echo "$as_me: failed program was:" >&5
10303 sed 's/^/| /' conftest.$ac_ext >&5
10304
10305   ac_header_preproc=no
10306 fi
10307
10308 rm -f conftest.err conftest.$ac_ext
10309 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10310 $as_echo "$ac_header_preproc" >&6; }
10311
10312 # So?  What about this header?
10313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10314   yes:no: )
10315     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10316 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10317     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10318 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10319     ac_header_preproc=yes
10320     ;;
10321   no:yes:* )
10322     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10323 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10324     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10325 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10326     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10327 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10328     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10329 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10330     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10331 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10332     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10333 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10334     ( cat <<\_ASBOX
10335 ## ---------------------------------------- ##
10336 ## Report this to pgsql-bugs@postgresql.org ##
10337 ## ---------------------------------------- ##
10338 _ASBOX
10339      ) | sed "s/^/$as_me: WARNING:     /" >&2
10340     ;;
10341 esac
10342 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10343 $as_echo_n "checking for $ac_header... " >&6; }
10344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10345   $as_echo_n "(cached) " >&6
10346 else
10347   eval "$as_ac_Header=\$ac_header_preproc"
10348 fi
10349 ac_res=`eval 'as_val=${'$as_ac_Header'}
10350                  $as_echo "$as_val"'`
10351                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10352 $as_echo "$ac_res" >&6; }
10353
10354 fi
10355 as_val=`eval 'as_val=${'$as_ac_Header'}
10356                  $as_echo "$as_val"'`
10357    if test "x$as_val" = x""yes; then
10358   cat >>confdefs.h <<_ACEOF
10359 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10360 _ACEOF
10361
10362 fi
10363
10364 done
10365
10366
10367 for ac_header in netinet/tcp.h
10368 do
10369 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10370 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10371 $as_echo_n "checking for $ac_header... " >&6; }
10372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10373   $as_echo_n "(cached) " >&6
10374 else
10375   cat >conftest.$ac_ext <<_ACEOF
10376 /* confdefs.h.  */
10377 _ACEOF
10378 cat confdefs.h >>conftest.$ac_ext
10379 cat >>conftest.$ac_ext <<_ACEOF
10380 /* end confdefs.h.  */
10381 $ac_includes_default
10382 #ifdef HAVE_NETINET_IN_H
10383 #include <netinet/in.h>
10384 #endif
10385
10386
10387 #include <$ac_header>
10388 _ACEOF
10389 rm -f conftest.$ac_objext
10390 if { (ac_try="$ac_compile"
10391 case "(($ac_try" in
10392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10393   *) ac_try_echo=$ac_try;;
10394 esac
10395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10396 $as_echo "$ac_try_echo") >&5
10397   (eval "$ac_compile") 2>conftest.er1
10398   ac_status=$?
10399   grep -v '^ *+' conftest.er1 >conftest.err
10400   rm -f conftest.er1
10401   cat conftest.err >&5
10402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403   (exit $ac_status); } && {
10404          test -z "$ac_c_werror_flag" ||
10405          test ! -s conftest.err
10406        } && test -s conftest.$ac_objext; then
10407   eval "$as_ac_Header=yes"
10408 else
10409   $as_echo "$as_me: failed program was:" >&5
10410 sed 's/^/| /' conftest.$ac_ext >&5
10411
10412         eval "$as_ac_Header=no"
10413 fi
10414
10415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10416 fi
10417 ac_res=`eval 'as_val=${'$as_ac_Header'}
10418                  $as_echo "$as_val"'`
10419                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10420 $as_echo "$ac_res" >&6; }
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 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10434
10435 for ac_header in readline/readline.h
10436 do
10437 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10439   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10440 $as_echo_n "checking for $ac_header... " >&6; }
10441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10442   $as_echo_n "(cached) " >&6
10443 fi
10444 ac_res=`eval 'as_val=${'$as_ac_Header'}
10445                  $as_echo "$as_val"'`
10446                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10447 $as_echo "$ac_res" >&6; }
10448 else
10449   # Is the header compilable?
10450 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10451 $as_echo_n "checking $ac_header usability... " >&6; }
10452 cat >conftest.$ac_ext <<_ACEOF
10453 /* confdefs.h.  */
10454 _ACEOF
10455 cat confdefs.h >>conftest.$ac_ext
10456 cat >>conftest.$ac_ext <<_ACEOF
10457 /* end confdefs.h.  */
10458 $ac_includes_default
10459 #include <$ac_header>
10460 _ACEOF
10461 rm -f conftest.$ac_objext
10462 if { (ac_try="$ac_compile"
10463 case "(($ac_try" in
10464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10465   *) ac_try_echo=$ac_try;;
10466 esac
10467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10468 $as_echo "$ac_try_echo") >&5
10469   (eval "$ac_compile") 2>conftest.er1
10470   ac_status=$?
10471   grep -v '^ *+' conftest.er1 >conftest.err
10472   rm -f conftest.er1
10473   cat conftest.err >&5
10474   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475   (exit $ac_status); } && {
10476          test -z "$ac_c_werror_flag" ||
10477          test ! -s conftest.err
10478        } && test -s conftest.$ac_objext; then
10479   ac_header_compiler=yes
10480 else
10481   $as_echo "$as_me: failed program was:" >&5
10482 sed 's/^/| /' conftest.$ac_ext >&5
10483
10484         ac_header_compiler=no
10485 fi
10486
10487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10488 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10489 $as_echo "$ac_header_compiler" >&6; }
10490
10491 # Is the header present?
10492 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10493 $as_echo_n "checking $ac_header presence... " >&6; }
10494 cat >conftest.$ac_ext <<_ACEOF
10495 /* confdefs.h.  */
10496 _ACEOF
10497 cat confdefs.h >>conftest.$ac_ext
10498 cat >>conftest.$ac_ext <<_ACEOF
10499 /* end confdefs.h.  */
10500 #include <$ac_header>
10501 _ACEOF
10502 if { (ac_try="$ac_cpp conftest.$ac_ext"
10503 case "(($ac_try" in
10504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10505   *) ac_try_echo=$ac_try;;
10506 esac
10507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10508 $as_echo "$ac_try_echo") >&5
10509   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10510   ac_status=$?
10511   grep -v '^ *+' conftest.er1 >conftest.err
10512   rm -f conftest.er1
10513   cat conftest.err >&5
10514   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515   (exit $ac_status); } >/dev/null && {
10516          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10517          test ! -s conftest.err
10518        }; then
10519   ac_header_preproc=yes
10520 else
10521   $as_echo "$as_me: failed program was:" >&5
10522 sed 's/^/| /' conftest.$ac_ext >&5
10523
10524   ac_header_preproc=no
10525 fi
10526
10527 rm -f conftest.err conftest.$ac_ext
10528 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10529 $as_echo "$ac_header_preproc" >&6; }
10530
10531 # So?  What about this header?
10532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10533   yes:no: )
10534     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10535 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10536     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10537 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10538     ac_header_preproc=yes
10539     ;;
10540   no:yes:* )
10541     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10542 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10543     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10544 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10545     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10546 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10547     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10548 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10549     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10550 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10551     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10552 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10553     ( cat <<\_ASBOX
10554 ## ---------------------------------------- ##
10555 ## Report this to pgsql-bugs@postgresql.org ##
10556 ## ---------------------------------------- ##
10557 _ASBOX
10558      ) | sed "s/^/$as_me: WARNING:     /" >&2
10559     ;;
10560 esac
10561 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10562 $as_echo_n "checking for $ac_header... " >&6; }
10563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10564   $as_echo_n "(cached) " >&6
10565 else
10566   eval "$as_ac_Header=\$ac_header_preproc"
10567 fi
10568 ac_res=`eval 'as_val=${'$as_ac_Header'}
10569                  $as_echo "$as_val"'`
10570                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10571 $as_echo "$ac_res" >&6; }
10572
10573 fi
10574 as_val=`eval 'as_val=${'$as_ac_Header'}
10575                  $as_echo "$as_val"'`
10576    if test "x$as_val" = x""yes; then
10577   cat >>confdefs.h <<_ACEOF
10578 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10579 _ACEOF
10580
10581 else
10582
10583 for ac_header in readline.h
10584 do
10585 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10587   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10588 $as_echo_n "checking for $ac_header... " >&6; }
10589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10590   $as_echo_n "(cached) " >&6
10591 fi
10592 ac_res=`eval 'as_val=${'$as_ac_Header'}
10593                  $as_echo "$as_val"'`
10594                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10595 $as_echo "$ac_res" >&6; }
10596 else
10597   # Is the header compilable?
10598 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10599 $as_echo_n "checking $ac_header usability... " >&6; }
10600 cat >conftest.$ac_ext <<_ACEOF
10601 /* confdefs.h.  */
10602 _ACEOF
10603 cat confdefs.h >>conftest.$ac_ext
10604 cat >>conftest.$ac_ext <<_ACEOF
10605 /* end confdefs.h.  */
10606 $ac_includes_default
10607 #include <$ac_header>
10608 _ACEOF
10609 rm -f conftest.$ac_objext
10610 if { (ac_try="$ac_compile"
10611 case "(($ac_try" in
10612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10613   *) ac_try_echo=$ac_try;;
10614 esac
10615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10616 $as_echo "$ac_try_echo") >&5
10617   (eval "$ac_compile") 2>conftest.er1
10618   ac_status=$?
10619   grep -v '^ *+' conftest.er1 >conftest.err
10620   rm -f conftest.er1
10621   cat conftest.err >&5
10622   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623   (exit $ac_status); } && {
10624          test -z "$ac_c_werror_flag" ||
10625          test ! -s conftest.err
10626        } && test -s conftest.$ac_objext; then
10627   ac_header_compiler=yes
10628 else
10629   $as_echo "$as_me: failed program was:" >&5
10630 sed 's/^/| /' conftest.$ac_ext >&5
10631
10632         ac_header_compiler=no
10633 fi
10634
10635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10636 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10637 $as_echo "$ac_header_compiler" >&6; }
10638
10639 # Is the header present?
10640 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10641 $as_echo_n "checking $ac_header presence... " >&6; }
10642 cat >conftest.$ac_ext <<_ACEOF
10643 /* confdefs.h.  */
10644 _ACEOF
10645 cat confdefs.h >>conftest.$ac_ext
10646 cat >>conftest.$ac_ext <<_ACEOF
10647 /* end confdefs.h.  */
10648 #include <$ac_header>
10649 _ACEOF
10650 if { (ac_try="$ac_cpp conftest.$ac_ext"
10651 case "(($ac_try" in
10652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10653   *) ac_try_echo=$ac_try;;
10654 esac
10655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10656 $as_echo "$ac_try_echo") >&5
10657   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10658   ac_status=$?
10659   grep -v '^ *+' conftest.er1 >conftest.err
10660   rm -f conftest.er1
10661   cat conftest.err >&5
10662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663   (exit $ac_status); } >/dev/null && {
10664          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10665          test ! -s conftest.err
10666        }; then
10667   ac_header_preproc=yes
10668 else
10669   $as_echo "$as_me: failed program was:" >&5
10670 sed 's/^/| /' conftest.$ac_ext >&5
10671
10672   ac_header_preproc=no
10673 fi
10674
10675 rm -f conftest.err conftest.$ac_ext
10676 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10677 $as_echo "$ac_header_preproc" >&6; }
10678
10679 # So?  What about this header?
10680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10681   yes:no: )
10682     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10683 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10684     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10685 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10686     ac_header_preproc=yes
10687     ;;
10688   no:yes:* )
10689     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10690 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10691     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10692 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10693     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10694 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10695     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10696 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10697     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10698 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10699     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10700 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10701     ( cat <<\_ASBOX
10702 ## ---------------------------------------- ##
10703 ## Report this to pgsql-bugs@postgresql.org ##
10704 ## ---------------------------------------- ##
10705 _ASBOX
10706      ) | sed "s/^/$as_me: WARNING:     /" >&2
10707     ;;
10708 esac
10709 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10710 $as_echo_n "checking for $ac_header... " >&6; }
10711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10712   $as_echo_n "(cached) " >&6
10713 else
10714   eval "$as_ac_Header=\$ac_header_preproc"
10715 fi
10716 ac_res=`eval 'as_val=${'$as_ac_Header'}
10717                  $as_echo "$as_val"'`
10718                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10719 $as_echo "$ac_res" >&6; }
10720
10721 fi
10722 as_val=`eval 'as_val=${'$as_ac_Header'}
10723                  $as_echo "$as_val"'`
10724    if test "x$as_val" = x""yes; then
10725   cat >>confdefs.h <<_ACEOF
10726 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10727 _ACEOF
10728
10729 else
10730   { { $as_echo "$as_me:$LINENO: error: readline header not found
10731 If you have readline already installed, see config.log for details on the
10732 failure.  It is possible the compiler isn't looking in the proper directory.
10733 Use --without-readline to disable readline support." >&5
10734 $as_echo "$as_me: error: readline header not found
10735 If you have readline already installed, see config.log for details on the
10736 failure.  It is possible the compiler isn't looking in the proper directory.
10737 Use --without-readline to disable readline support." >&2;}
10738    { (exit 1); exit 1; }; }
10739 fi
10740
10741 done
10742
10743 fi
10744
10745 done
10746
10747
10748 for ac_header in readline/history.h
10749 do
10750 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10752   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10753 $as_echo_n "checking for $ac_header... " >&6; }
10754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10755   $as_echo_n "(cached) " >&6
10756 fi
10757 ac_res=`eval 'as_val=${'$as_ac_Header'}
10758                  $as_echo "$as_val"'`
10759                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10760 $as_echo "$ac_res" >&6; }
10761 else
10762   # Is the header compilable?
10763 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10764 $as_echo_n "checking $ac_header usability... " >&6; }
10765 cat >conftest.$ac_ext <<_ACEOF
10766 /* confdefs.h.  */
10767 _ACEOF
10768 cat confdefs.h >>conftest.$ac_ext
10769 cat >>conftest.$ac_ext <<_ACEOF
10770 /* end confdefs.h.  */
10771 $ac_includes_default
10772 #include <$ac_header>
10773 _ACEOF
10774 rm -f conftest.$ac_objext
10775 if { (ac_try="$ac_compile"
10776 case "(($ac_try" in
10777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10778   *) ac_try_echo=$ac_try;;
10779 esac
10780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10781 $as_echo "$ac_try_echo") >&5
10782   (eval "$ac_compile") 2>conftest.er1
10783   ac_status=$?
10784   grep -v '^ *+' conftest.er1 >conftest.err
10785   rm -f conftest.er1
10786   cat conftest.err >&5
10787   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788   (exit $ac_status); } && {
10789          test -z "$ac_c_werror_flag" ||
10790          test ! -s conftest.err
10791        } && test -s conftest.$ac_objext; then
10792   ac_header_compiler=yes
10793 else
10794   $as_echo "$as_me: failed program was:" >&5
10795 sed 's/^/| /' conftest.$ac_ext >&5
10796
10797         ac_header_compiler=no
10798 fi
10799
10800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10801 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10802 $as_echo "$ac_header_compiler" >&6; }
10803
10804 # Is the header present?
10805 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10806 $as_echo_n "checking $ac_header presence... " >&6; }
10807 cat >conftest.$ac_ext <<_ACEOF
10808 /* confdefs.h.  */
10809 _ACEOF
10810 cat confdefs.h >>conftest.$ac_ext
10811 cat >>conftest.$ac_ext <<_ACEOF
10812 /* end confdefs.h.  */
10813 #include <$ac_header>
10814 _ACEOF
10815 if { (ac_try="$ac_cpp conftest.$ac_ext"
10816 case "(($ac_try" in
10817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10818   *) ac_try_echo=$ac_try;;
10819 esac
10820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10821 $as_echo "$ac_try_echo") >&5
10822   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10823   ac_status=$?
10824   grep -v '^ *+' conftest.er1 >conftest.err
10825   rm -f conftest.er1
10826   cat conftest.err >&5
10827   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828   (exit $ac_status); } >/dev/null && {
10829          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10830          test ! -s conftest.err
10831        }; then
10832   ac_header_preproc=yes
10833 else
10834   $as_echo "$as_me: failed program was:" >&5
10835 sed 's/^/| /' conftest.$ac_ext >&5
10836
10837   ac_header_preproc=no
10838 fi
10839
10840 rm -f conftest.err conftest.$ac_ext
10841 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10842 $as_echo "$ac_header_preproc" >&6; }
10843
10844 # So?  What about this header?
10845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10846   yes:no: )
10847     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10848 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10849     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10850 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10851     ac_header_preproc=yes
10852     ;;
10853   no:yes:* )
10854     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10855 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10856     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10857 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10858     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10859 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10860     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10861 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10862     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10863 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10864     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10865 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10866     ( cat <<\_ASBOX
10867 ## ---------------------------------------- ##
10868 ## Report this to pgsql-bugs@postgresql.org ##
10869 ## ---------------------------------------- ##
10870 _ASBOX
10871      ) | sed "s/^/$as_me: WARNING:     /" >&2
10872     ;;
10873 esac
10874 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10875 $as_echo_n "checking for $ac_header... " >&6; }
10876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10877   $as_echo_n "(cached) " >&6
10878 else
10879   eval "$as_ac_Header=\$ac_header_preproc"
10880 fi
10881 ac_res=`eval 'as_val=${'$as_ac_Header'}
10882                  $as_echo "$as_val"'`
10883                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10884 $as_echo "$ac_res" >&6; }
10885
10886 fi
10887 as_val=`eval 'as_val=${'$as_ac_Header'}
10888                  $as_echo "$as_val"'`
10889    if test "x$as_val" = x""yes; then
10890   cat >>confdefs.h <<_ACEOF
10891 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10892 _ACEOF
10893
10894 else
10895
10896 for ac_header in history.h
10897 do
10898 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10900   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10901 $as_echo_n "checking for $ac_header... " >&6; }
10902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10903   $as_echo_n "(cached) " >&6
10904 fi
10905 ac_res=`eval 'as_val=${'$as_ac_Header'}
10906                  $as_echo "$as_val"'`
10907                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10908 $as_echo "$ac_res" >&6; }
10909 else
10910   # Is the header compilable?
10911 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10912 $as_echo_n "checking $ac_header usability... " >&6; }
10913 cat >conftest.$ac_ext <<_ACEOF
10914 /* confdefs.h.  */
10915 _ACEOF
10916 cat confdefs.h >>conftest.$ac_ext
10917 cat >>conftest.$ac_ext <<_ACEOF
10918 /* end confdefs.h.  */
10919 $ac_includes_default
10920 #include <$ac_header>
10921 _ACEOF
10922 rm -f conftest.$ac_objext
10923 if { (ac_try="$ac_compile"
10924 case "(($ac_try" in
10925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10926   *) ac_try_echo=$ac_try;;
10927 esac
10928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10929 $as_echo "$ac_try_echo") >&5
10930   (eval "$ac_compile") 2>conftest.er1
10931   ac_status=$?
10932   grep -v '^ *+' conftest.er1 >conftest.err
10933   rm -f conftest.er1
10934   cat conftest.err >&5
10935   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936   (exit $ac_status); } && {
10937          test -z "$ac_c_werror_flag" ||
10938          test ! -s conftest.err
10939        } && test -s conftest.$ac_objext; then
10940   ac_header_compiler=yes
10941 else
10942   $as_echo "$as_me: failed program was:" >&5
10943 sed 's/^/| /' conftest.$ac_ext >&5
10944
10945         ac_header_compiler=no
10946 fi
10947
10948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10949 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10950 $as_echo "$ac_header_compiler" >&6; }
10951
10952 # Is the header present?
10953 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10954 $as_echo_n "checking $ac_header presence... " >&6; }
10955 cat >conftest.$ac_ext <<_ACEOF
10956 /* confdefs.h.  */
10957 _ACEOF
10958 cat confdefs.h >>conftest.$ac_ext
10959 cat >>conftest.$ac_ext <<_ACEOF
10960 /* end confdefs.h.  */
10961 #include <$ac_header>
10962 _ACEOF
10963 if { (ac_try="$ac_cpp conftest.$ac_ext"
10964 case "(($ac_try" in
10965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10966   *) ac_try_echo=$ac_try;;
10967 esac
10968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10969 $as_echo "$ac_try_echo") >&5
10970   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10971   ac_status=$?
10972   grep -v '^ *+' conftest.er1 >conftest.err
10973   rm -f conftest.er1
10974   cat conftest.err >&5
10975   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976   (exit $ac_status); } >/dev/null && {
10977          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10978          test ! -s conftest.err
10979        }; then
10980   ac_header_preproc=yes
10981 else
10982   $as_echo "$as_me: failed program was:" >&5
10983 sed 's/^/| /' conftest.$ac_ext >&5
10984
10985   ac_header_preproc=no
10986 fi
10987
10988 rm -f conftest.err conftest.$ac_ext
10989 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10990 $as_echo "$ac_header_preproc" >&6; }
10991
10992 # So?  What about this header?
10993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10994   yes:no: )
10995     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10996 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10997     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10998 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10999     ac_header_preproc=yes
11000     ;;
11001   no:yes:* )
11002     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11003 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11004     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11005 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11006     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11007 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11008     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11009 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11010     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11011 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11012     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11013 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11014     ( cat <<\_ASBOX
11015 ## ---------------------------------------- ##
11016 ## Report this to pgsql-bugs@postgresql.org ##
11017 ## ---------------------------------------- ##
11018 _ASBOX
11019      ) | sed "s/^/$as_me: WARNING:     /" >&2
11020     ;;
11021 esac
11022 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11023 $as_echo_n "checking for $ac_header... " >&6; }
11024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11025   $as_echo_n "(cached) " >&6
11026 else
11027   eval "$as_ac_Header=\$ac_header_preproc"
11028 fi
11029 ac_res=`eval 'as_val=${'$as_ac_Header'}
11030                  $as_echo "$as_val"'`
11031                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11032 $as_echo "$ac_res" >&6; }
11033
11034 fi
11035 as_val=`eval 'as_val=${'$as_ac_Header'}
11036                  $as_echo "$as_val"'`
11037    if test "x$as_val" = x""yes; then
11038   cat >>confdefs.h <<_ACEOF
11039 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11040 _ACEOF
11041
11042 else
11043   { { $as_echo "$as_me:$LINENO: error: history header not found
11044 If you have readline already installed, see config.log for details on the
11045 failure.  It is possible the compiler isn't looking in the proper directory.
11046 Use --without-readline to disable readline support." >&5
11047 $as_echo "$as_me: error: history header not found
11048 If you have readline already installed, see config.log for details on the
11049 failure.  It is possible the compiler isn't looking in the proper directory.
11050 Use --without-readline to disable readline support." >&2;}
11051    { (exit 1); exit 1; }; }
11052 fi
11053
11054 done
11055
11056 fi
11057
11058 done
11059
11060 fi
11061
11062 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
11063 # Some installations of libedit usurp /usr/include/readline/, which seems
11064 # bad practice, since in combined installations readline will have its headers
11065 # there.  We might have to resort to AC_EGREP checks to make sure we found
11066 # the proper header...
11067
11068 for ac_header in editline/readline.h
11069 do
11070 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11072   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11073 $as_echo_n "checking for $ac_header... " >&6; }
11074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11075   $as_echo_n "(cached) " >&6
11076 fi
11077 ac_res=`eval 'as_val=${'$as_ac_Header'}
11078                  $as_echo "$as_val"'`
11079                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11080 $as_echo "$ac_res" >&6; }
11081 else
11082   # Is the header compilable?
11083 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11084 $as_echo_n "checking $ac_header usability... " >&6; }
11085 cat >conftest.$ac_ext <<_ACEOF
11086 /* confdefs.h.  */
11087 _ACEOF
11088 cat confdefs.h >>conftest.$ac_ext
11089 cat >>conftest.$ac_ext <<_ACEOF
11090 /* end confdefs.h.  */
11091 $ac_includes_default
11092 #include <$ac_header>
11093 _ACEOF
11094 rm -f conftest.$ac_objext
11095 if { (ac_try="$ac_compile"
11096 case "(($ac_try" in
11097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11098   *) ac_try_echo=$ac_try;;
11099 esac
11100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11101 $as_echo "$ac_try_echo") >&5
11102   (eval "$ac_compile") 2>conftest.er1
11103   ac_status=$?
11104   grep -v '^ *+' conftest.er1 >conftest.err
11105   rm -f conftest.er1
11106   cat conftest.err >&5
11107   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108   (exit $ac_status); } && {
11109          test -z "$ac_c_werror_flag" ||
11110          test ! -s conftest.err
11111        } && test -s conftest.$ac_objext; then
11112   ac_header_compiler=yes
11113 else
11114   $as_echo "$as_me: failed program was:" >&5
11115 sed 's/^/| /' conftest.$ac_ext >&5
11116
11117         ac_header_compiler=no
11118 fi
11119
11120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11121 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11122 $as_echo "$ac_header_compiler" >&6; }
11123
11124 # Is the header present?
11125 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11126 $as_echo_n "checking $ac_header presence... " >&6; }
11127 cat >conftest.$ac_ext <<_ACEOF
11128 /* confdefs.h.  */
11129 _ACEOF
11130 cat confdefs.h >>conftest.$ac_ext
11131 cat >>conftest.$ac_ext <<_ACEOF
11132 /* end confdefs.h.  */
11133 #include <$ac_header>
11134 _ACEOF
11135 if { (ac_try="$ac_cpp conftest.$ac_ext"
11136 case "(($ac_try" in
11137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11138   *) ac_try_echo=$ac_try;;
11139 esac
11140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11141 $as_echo "$ac_try_echo") >&5
11142   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11143   ac_status=$?
11144   grep -v '^ *+' conftest.er1 >conftest.err
11145   rm -f conftest.er1
11146   cat conftest.err >&5
11147   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148   (exit $ac_status); } >/dev/null && {
11149          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11150          test ! -s conftest.err
11151        }; then
11152   ac_header_preproc=yes
11153 else
11154   $as_echo "$as_me: failed program was:" >&5
11155 sed 's/^/| /' conftest.$ac_ext >&5
11156
11157   ac_header_preproc=no
11158 fi
11159
11160 rm -f conftest.err conftest.$ac_ext
11161 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11162 $as_echo "$ac_header_preproc" >&6; }
11163
11164 # So?  What about this header?
11165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11166   yes:no: )
11167     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11168 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11169     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11170 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11171     ac_header_preproc=yes
11172     ;;
11173   no:yes:* )
11174     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11175 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11176     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11177 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11178     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11179 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11180     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11181 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11182     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11183 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11184     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11185 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11186     ( cat <<\_ASBOX
11187 ## ---------------------------------------- ##
11188 ## Report this to pgsql-bugs@postgresql.org ##
11189 ## ---------------------------------------- ##
11190 _ASBOX
11191      ) | sed "s/^/$as_me: WARNING:     /" >&2
11192     ;;
11193 esac
11194 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11195 $as_echo_n "checking for $ac_header... " >&6; }
11196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11197   $as_echo_n "(cached) " >&6
11198 else
11199   eval "$as_ac_Header=\$ac_header_preproc"
11200 fi
11201 ac_res=`eval 'as_val=${'$as_ac_Header'}
11202                  $as_echo "$as_val"'`
11203                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11204 $as_echo "$ac_res" >&6; }
11205
11206 fi
11207 as_val=`eval 'as_val=${'$as_ac_Header'}
11208                  $as_echo "$as_val"'`
11209    if test "x$as_val" = x""yes; then
11210   cat >>confdefs.h <<_ACEOF
11211 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11212 _ACEOF
11213
11214 else
11215
11216 for ac_header in readline.h
11217 do
11218 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11220   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11221 $as_echo_n "checking for $ac_header... " >&6; }
11222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11223   $as_echo_n "(cached) " >&6
11224 fi
11225 ac_res=`eval 'as_val=${'$as_ac_Header'}
11226                  $as_echo "$as_val"'`
11227                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11228 $as_echo "$ac_res" >&6; }
11229 else
11230   # Is the header compilable?
11231 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11232 $as_echo_n "checking $ac_header usability... " >&6; }
11233 cat >conftest.$ac_ext <<_ACEOF
11234 /* confdefs.h.  */
11235 _ACEOF
11236 cat confdefs.h >>conftest.$ac_ext
11237 cat >>conftest.$ac_ext <<_ACEOF
11238 /* end confdefs.h.  */
11239 $ac_includes_default
11240 #include <$ac_header>
11241 _ACEOF
11242 rm -f conftest.$ac_objext
11243 if { (ac_try="$ac_compile"
11244 case "(($ac_try" in
11245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246   *) ac_try_echo=$ac_try;;
11247 esac
11248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11249 $as_echo "$ac_try_echo") >&5
11250   (eval "$ac_compile") 2>conftest.er1
11251   ac_status=$?
11252   grep -v '^ *+' conftest.er1 >conftest.err
11253   rm -f conftest.er1
11254   cat conftest.err >&5
11255   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256   (exit $ac_status); } && {
11257          test -z "$ac_c_werror_flag" ||
11258          test ! -s conftest.err
11259        } && test -s conftest.$ac_objext; then
11260   ac_header_compiler=yes
11261 else
11262   $as_echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.$ac_ext >&5
11264
11265         ac_header_compiler=no
11266 fi
11267
11268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11269 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11270 $as_echo "$ac_header_compiler" >&6; }
11271
11272 # Is the header present?
11273 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11274 $as_echo_n "checking $ac_header presence... " >&6; }
11275 cat >conftest.$ac_ext <<_ACEOF
11276 /* confdefs.h.  */
11277 _ACEOF
11278 cat confdefs.h >>conftest.$ac_ext
11279 cat >>conftest.$ac_ext <<_ACEOF
11280 /* end confdefs.h.  */
11281 #include <$ac_header>
11282 _ACEOF
11283 if { (ac_try="$ac_cpp conftest.$ac_ext"
11284 case "(($ac_try" in
11285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11286   *) ac_try_echo=$ac_try;;
11287 esac
11288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11289 $as_echo "$ac_try_echo") >&5
11290   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11291   ac_status=$?
11292   grep -v '^ *+' conftest.er1 >conftest.err
11293   rm -f conftest.er1
11294   cat conftest.err >&5
11295   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296   (exit $ac_status); } >/dev/null && {
11297          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11298          test ! -s conftest.err
11299        }; then
11300   ac_header_preproc=yes
11301 else
11302   $as_echo "$as_me: failed program was:" >&5
11303 sed 's/^/| /' conftest.$ac_ext >&5
11304
11305   ac_header_preproc=no
11306 fi
11307
11308 rm -f conftest.err conftest.$ac_ext
11309 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11310 $as_echo "$ac_header_preproc" >&6; }
11311
11312 # So?  What about this header?
11313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11314   yes:no: )
11315     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11316 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11317     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11318 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11319     ac_header_preproc=yes
11320     ;;
11321   no:yes:* )
11322     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11323 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11324     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11325 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11326     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11327 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11328     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11329 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11330     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11331 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11332     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11333 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11334     ( cat <<\_ASBOX
11335 ## ---------------------------------------- ##
11336 ## Report this to pgsql-bugs@postgresql.org ##
11337 ## ---------------------------------------- ##
11338 _ASBOX
11339      ) | sed "s/^/$as_me: WARNING:     /" >&2
11340     ;;
11341 esac
11342 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11343 $as_echo_n "checking for $ac_header... " >&6; }
11344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11345   $as_echo_n "(cached) " >&6
11346 else
11347   eval "$as_ac_Header=\$ac_header_preproc"
11348 fi
11349 ac_res=`eval 'as_val=${'$as_ac_Header'}
11350                  $as_echo "$as_val"'`
11351                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11352 $as_echo "$ac_res" >&6; }
11353
11354 fi
11355 as_val=`eval 'as_val=${'$as_ac_Header'}
11356                  $as_echo "$as_val"'`
11357    if test "x$as_val" = x""yes; then
11358   cat >>confdefs.h <<_ACEOF
11359 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11360 _ACEOF
11361
11362 else
11363
11364 for ac_header in readline/readline.h
11365 do
11366 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11368   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11369 $as_echo_n "checking for $ac_header... " >&6; }
11370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11371   $as_echo_n "(cached) " >&6
11372 fi
11373 ac_res=`eval 'as_val=${'$as_ac_Header'}
11374                  $as_echo "$as_val"'`
11375                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11376 $as_echo "$ac_res" >&6; }
11377 else
11378   # Is the header compilable?
11379 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11380 $as_echo_n "checking $ac_header usability... " >&6; }
11381 cat >conftest.$ac_ext <<_ACEOF
11382 /* confdefs.h.  */
11383 _ACEOF
11384 cat confdefs.h >>conftest.$ac_ext
11385 cat >>conftest.$ac_ext <<_ACEOF
11386 /* end confdefs.h.  */
11387 $ac_includes_default
11388 #include <$ac_header>
11389 _ACEOF
11390 rm -f conftest.$ac_objext
11391 if { (ac_try="$ac_compile"
11392 case "(($ac_try" in
11393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11394   *) ac_try_echo=$ac_try;;
11395 esac
11396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11397 $as_echo "$ac_try_echo") >&5
11398   (eval "$ac_compile") 2>conftest.er1
11399   ac_status=$?
11400   grep -v '^ *+' conftest.er1 >conftest.err
11401   rm -f conftest.er1
11402   cat conftest.err >&5
11403   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404   (exit $ac_status); } && {
11405          test -z "$ac_c_werror_flag" ||
11406          test ! -s conftest.err
11407        } && test -s conftest.$ac_objext; then
11408   ac_header_compiler=yes
11409 else
11410   $as_echo "$as_me: failed program was:" >&5
11411 sed 's/^/| /' conftest.$ac_ext >&5
11412
11413         ac_header_compiler=no
11414 fi
11415
11416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11417 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11418 $as_echo "$ac_header_compiler" >&6; }
11419
11420 # Is the header present?
11421 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11422 $as_echo_n "checking $ac_header presence... " >&6; }
11423 cat >conftest.$ac_ext <<_ACEOF
11424 /* confdefs.h.  */
11425 _ACEOF
11426 cat confdefs.h >>conftest.$ac_ext
11427 cat >>conftest.$ac_ext <<_ACEOF
11428 /* end confdefs.h.  */
11429 #include <$ac_header>
11430 _ACEOF
11431 if { (ac_try="$ac_cpp conftest.$ac_ext"
11432 case "(($ac_try" in
11433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11434   *) ac_try_echo=$ac_try;;
11435 esac
11436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11437 $as_echo "$ac_try_echo") >&5
11438   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11439   ac_status=$?
11440   grep -v '^ *+' conftest.er1 >conftest.err
11441   rm -f conftest.er1
11442   cat conftest.err >&5
11443   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444   (exit $ac_status); } >/dev/null && {
11445          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11446          test ! -s conftest.err
11447        }; then
11448   ac_header_preproc=yes
11449 else
11450   $as_echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.$ac_ext >&5
11452
11453   ac_header_preproc=no
11454 fi
11455
11456 rm -f conftest.err conftest.$ac_ext
11457 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11458 $as_echo "$ac_header_preproc" >&6; }
11459
11460 # So?  What about this header?
11461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11462   yes:no: )
11463     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11464 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11465     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11466 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11467     ac_header_preproc=yes
11468     ;;
11469   no:yes:* )
11470     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11471 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11472     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11473 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11474     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11475 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11476     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11477 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11478     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11479 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11480     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11481 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11482     ( cat <<\_ASBOX
11483 ## ---------------------------------------- ##
11484 ## Report this to pgsql-bugs@postgresql.org ##
11485 ## ---------------------------------------- ##
11486 _ASBOX
11487      ) | sed "s/^/$as_me: WARNING:     /" >&2
11488     ;;
11489 esac
11490 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11491 $as_echo_n "checking for $ac_header... " >&6; }
11492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11493   $as_echo_n "(cached) " >&6
11494 else
11495   eval "$as_ac_Header=\$ac_header_preproc"
11496 fi
11497 ac_res=`eval 'as_val=${'$as_ac_Header'}
11498                  $as_echo "$as_val"'`
11499                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11500 $as_echo "$ac_res" >&6; }
11501
11502 fi
11503 as_val=`eval 'as_val=${'$as_ac_Header'}
11504                  $as_echo "$as_val"'`
11505    if test "x$as_val" = x""yes; then
11506   cat >>confdefs.h <<_ACEOF
11507 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11508 _ACEOF
11509
11510 else
11511   { { $as_echo "$as_me:$LINENO: error: readline header not found
11512 If you have libedit already installed, see config.log for details on the
11513 failure.  It is possible the compiler isn't looking in the proper directory.
11514 Use --without-readline to disable libedit support." >&5
11515 $as_echo "$as_me: error: readline header not found
11516 If you have libedit already installed, see config.log for details on the
11517 failure.  It is possible the compiler isn't looking in the proper directory.
11518 Use --without-readline to disable libedit support." >&2;}
11519    { (exit 1); exit 1; }; }
11520 fi
11521
11522 done
11523
11524 fi
11525
11526 done
11527
11528 fi
11529
11530 done
11531
11532 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11533 # not be there at all.  Hence, don't complain if not found.  We must check
11534 # though, since in yet other versions it is an independent header.
11535
11536 for ac_header in editline/history.h
11537 do
11538 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11540   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11541 $as_echo_n "checking for $ac_header... " >&6; }
11542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11543   $as_echo_n "(cached) " >&6
11544 fi
11545 ac_res=`eval 'as_val=${'$as_ac_Header'}
11546                  $as_echo "$as_val"'`
11547                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11548 $as_echo "$ac_res" >&6; }
11549 else
11550   # Is the header compilable?
11551 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11552 $as_echo_n "checking $ac_header usability... " >&6; }
11553 cat >conftest.$ac_ext <<_ACEOF
11554 /* confdefs.h.  */
11555 _ACEOF
11556 cat confdefs.h >>conftest.$ac_ext
11557 cat >>conftest.$ac_ext <<_ACEOF
11558 /* end confdefs.h.  */
11559 $ac_includes_default
11560 #include <$ac_header>
11561 _ACEOF
11562 rm -f conftest.$ac_objext
11563 if { (ac_try="$ac_compile"
11564 case "(($ac_try" in
11565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566   *) ac_try_echo=$ac_try;;
11567 esac
11568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11569 $as_echo "$ac_try_echo") >&5
11570   (eval "$ac_compile") 2>conftest.er1
11571   ac_status=$?
11572   grep -v '^ *+' conftest.er1 >conftest.err
11573   rm -f conftest.er1
11574   cat conftest.err >&5
11575   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576   (exit $ac_status); } && {
11577          test -z "$ac_c_werror_flag" ||
11578          test ! -s conftest.err
11579        } && test -s conftest.$ac_objext; then
11580   ac_header_compiler=yes
11581 else
11582   $as_echo "$as_me: failed program was:" >&5
11583 sed 's/^/| /' conftest.$ac_ext >&5
11584
11585         ac_header_compiler=no
11586 fi
11587
11588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11589 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11590 $as_echo "$ac_header_compiler" >&6; }
11591
11592 # Is the header present?
11593 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11594 $as_echo_n "checking $ac_header presence... " >&6; }
11595 cat >conftest.$ac_ext <<_ACEOF
11596 /* confdefs.h.  */
11597 _ACEOF
11598 cat confdefs.h >>conftest.$ac_ext
11599 cat >>conftest.$ac_ext <<_ACEOF
11600 /* end confdefs.h.  */
11601 #include <$ac_header>
11602 _ACEOF
11603 if { (ac_try="$ac_cpp conftest.$ac_ext"
11604 case "(($ac_try" in
11605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11606   *) ac_try_echo=$ac_try;;
11607 esac
11608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11609 $as_echo "$ac_try_echo") >&5
11610   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11611   ac_status=$?
11612   grep -v '^ *+' conftest.er1 >conftest.err
11613   rm -f conftest.er1
11614   cat conftest.err >&5
11615   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616   (exit $ac_status); } >/dev/null && {
11617          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11618          test ! -s conftest.err
11619        }; then
11620   ac_header_preproc=yes
11621 else
11622   $as_echo "$as_me: failed program was:" >&5
11623 sed 's/^/| /' conftest.$ac_ext >&5
11624
11625   ac_header_preproc=no
11626 fi
11627
11628 rm -f conftest.err conftest.$ac_ext
11629 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11630 $as_echo "$ac_header_preproc" >&6; }
11631
11632 # So?  What about this header?
11633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11634   yes:no: )
11635     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11636 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11637     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11638 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11639     ac_header_preproc=yes
11640     ;;
11641   no:yes:* )
11642     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11643 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11644     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11645 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11646     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11647 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11648     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11649 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11650     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11651 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11652     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11653 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11654     ( cat <<\_ASBOX
11655 ## ---------------------------------------- ##
11656 ## Report this to pgsql-bugs@postgresql.org ##
11657 ## ---------------------------------------- ##
11658 _ASBOX
11659      ) | sed "s/^/$as_me: WARNING:     /" >&2
11660     ;;
11661 esac
11662 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11663 $as_echo_n "checking for $ac_header... " >&6; }
11664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11665   $as_echo_n "(cached) " >&6
11666 else
11667   eval "$as_ac_Header=\$ac_header_preproc"
11668 fi
11669 ac_res=`eval 'as_val=${'$as_ac_Header'}
11670                  $as_echo "$as_val"'`
11671                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11672 $as_echo "$ac_res" >&6; }
11673
11674 fi
11675 as_val=`eval 'as_val=${'$as_ac_Header'}
11676                  $as_echo "$as_val"'`
11677    if test "x$as_val" = x""yes; then
11678   cat >>confdefs.h <<_ACEOF
11679 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11680 _ACEOF
11681
11682 else
11683
11684 for ac_header in history.h
11685 do
11686 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11688   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11689 $as_echo_n "checking for $ac_header... " >&6; }
11690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11691   $as_echo_n "(cached) " >&6
11692 fi
11693 ac_res=`eval 'as_val=${'$as_ac_Header'}
11694                  $as_echo "$as_val"'`
11695                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11696 $as_echo "$ac_res" >&6; }
11697 else
11698   # Is the header compilable?
11699 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11700 $as_echo_n "checking $ac_header usability... " >&6; }
11701 cat >conftest.$ac_ext <<_ACEOF
11702 /* confdefs.h.  */
11703 _ACEOF
11704 cat confdefs.h >>conftest.$ac_ext
11705 cat >>conftest.$ac_ext <<_ACEOF
11706 /* end confdefs.h.  */
11707 $ac_includes_default
11708 #include <$ac_header>
11709 _ACEOF
11710 rm -f conftest.$ac_objext
11711 if { (ac_try="$ac_compile"
11712 case "(($ac_try" in
11713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11714   *) ac_try_echo=$ac_try;;
11715 esac
11716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11717 $as_echo "$ac_try_echo") >&5
11718   (eval "$ac_compile") 2>conftest.er1
11719   ac_status=$?
11720   grep -v '^ *+' conftest.er1 >conftest.err
11721   rm -f conftest.er1
11722   cat conftest.err >&5
11723   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724   (exit $ac_status); } && {
11725          test -z "$ac_c_werror_flag" ||
11726          test ! -s conftest.err
11727        } && test -s conftest.$ac_objext; then
11728   ac_header_compiler=yes
11729 else
11730   $as_echo "$as_me: failed program was:" >&5
11731 sed 's/^/| /' conftest.$ac_ext >&5
11732
11733         ac_header_compiler=no
11734 fi
11735
11736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11737 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11738 $as_echo "$ac_header_compiler" >&6; }
11739
11740 # Is the header present?
11741 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11742 $as_echo_n "checking $ac_header presence... " >&6; }
11743 cat >conftest.$ac_ext <<_ACEOF
11744 /* confdefs.h.  */
11745 _ACEOF
11746 cat confdefs.h >>conftest.$ac_ext
11747 cat >>conftest.$ac_ext <<_ACEOF
11748 /* end confdefs.h.  */
11749 #include <$ac_header>
11750 _ACEOF
11751 if { (ac_try="$ac_cpp conftest.$ac_ext"
11752 case "(($ac_try" in
11753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11754   *) ac_try_echo=$ac_try;;
11755 esac
11756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11757 $as_echo "$ac_try_echo") >&5
11758   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11759   ac_status=$?
11760   grep -v '^ *+' conftest.er1 >conftest.err
11761   rm -f conftest.er1
11762   cat conftest.err >&5
11763   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764   (exit $ac_status); } >/dev/null && {
11765          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11766          test ! -s conftest.err
11767        }; then
11768   ac_header_preproc=yes
11769 else
11770   $as_echo "$as_me: failed program was:" >&5
11771 sed 's/^/| /' conftest.$ac_ext >&5
11772
11773   ac_header_preproc=no
11774 fi
11775
11776 rm -f conftest.err conftest.$ac_ext
11777 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11778 $as_echo "$ac_header_preproc" >&6; }
11779
11780 # So?  What about this header?
11781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11782   yes:no: )
11783     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11784 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11785     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11786 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11787     ac_header_preproc=yes
11788     ;;
11789   no:yes:* )
11790     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11791 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11792     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11793 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11794     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11795 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11796     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11797 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11798     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11799 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11800     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11801 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11802     ( cat <<\_ASBOX
11803 ## ---------------------------------------- ##
11804 ## Report this to pgsql-bugs@postgresql.org ##
11805 ## ---------------------------------------- ##
11806 _ASBOX
11807      ) | sed "s/^/$as_me: WARNING:     /" >&2
11808     ;;
11809 esac
11810 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11811 $as_echo_n "checking for $ac_header... " >&6; }
11812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11813   $as_echo_n "(cached) " >&6
11814 else
11815   eval "$as_ac_Header=\$ac_header_preproc"
11816 fi
11817 ac_res=`eval 'as_val=${'$as_ac_Header'}
11818                  $as_echo "$as_val"'`
11819                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11820 $as_echo "$ac_res" >&6; }
11821
11822 fi
11823 as_val=`eval 'as_val=${'$as_ac_Header'}
11824                  $as_echo "$as_val"'`
11825    if test "x$as_val" = x""yes; then
11826   cat >>confdefs.h <<_ACEOF
11827 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11828 _ACEOF
11829
11830 else
11831
11832 for ac_header in readline/history.h
11833 do
11834 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11836   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11837 $as_echo_n "checking for $ac_header... " >&6; }
11838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11839   $as_echo_n "(cached) " >&6
11840 fi
11841 ac_res=`eval 'as_val=${'$as_ac_Header'}
11842                  $as_echo "$as_val"'`
11843                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11844 $as_echo "$ac_res" >&6; }
11845 else
11846   # Is the header compilable?
11847 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11848 $as_echo_n "checking $ac_header usability... " >&6; }
11849 cat >conftest.$ac_ext <<_ACEOF
11850 /* confdefs.h.  */
11851 _ACEOF
11852 cat confdefs.h >>conftest.$ac_ext
11853 cat >>conftest.$ac_ext <<_ACEOF
11854 /* end confdefs.h.  */
11855 $ac_includes_default
11856 #include <$ac_header>
11857 _ACEOF
11858 rm -f conftest.$ac_objext
11859 if { (ac_try="$ac_compile"
11860 case "(($ac_try" in
11861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11862   *) ac_try_echo=$ac_try;;
11863 esac
11864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11865 $as_echo "$ac_try_echo") >&5
11866   (eval "$ac_compile") 2>conftest.er1
11867   ac_status=$?
11868   grep -v '^ *+' conftest.er1 >conftest.err
11869   rm -f conftest.er1
11870   cat conftest.err >&5
11871   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872   (exit $ac_status); } && {
11873          test -z "$ac_c_werror_flag" ||
11874          test ! -s conftest.err
11875        } && test -s conftest.$ac_objext; then
11876   ac_header_compiler=yes
11877 else
11878   $as_echo "$as_me: failed program was:" >&5
11879 sed 's/^/| /' conftest.$ac_ext >&5
11880
11881         ac_header_compiler=no
11882 fi
11883
11884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11885 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11886 $as_echo "$ac_header_compiler" >&6; }
11887
11888 # Is the header present?
11889 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11890 $as_echo_n "checking $ac_header presence... " >&6; }
11891 cat >conftest.$ac_ext <<_ACEOF
11892 /* confdefs.h.  */
11893 _ACEOF
11894 cat confdefs.h >>conftest.$ac_ext
11895 cat >>conftest.$ac_ext <<_ACEOF
11896 /* end confdefs.h.  */
11897 #include <$ac_header>
11898 _ACEOF
11899 if { (ac_try="$ac_cpp conftest.$ac_ext"
11900 case "(($ac_try" in
11901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11902   *) ac_try_echo=$ac_try;;
11903 esac
11904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11905 $as_echo "$ac_try_echo") >&5
11906   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11907   ac_status=$?
11908   grep -v '^ *+' conftest.er1 >conftest.err
11909   rm -f conftest.er1
11910   cat conftest.err >&5
11911   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912   (exit $ac_status); } >/dev/null && {
11913          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11914          test ! -s conftest.err
11915        }; then
11916   ac_header_preproc=yes
11917 else
11918   $as_echo "$as_me: failed program was:" >&5
11919 sed 's/^/| /' conftest.$ac_ext >&5
11920
11921   ac_header_preproc=no
11922 fi
11923
11924 rm -f conftest.err conftest.$ac_ext
11925 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11926 $as_echo "$ac_header_preproc" >&6; }
11927
11928 # So?  What about this header?
11929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11930   yes:no: )
11931     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11932 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11933     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11934 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11935     ac_header_preproc=yes
11936     ;;
11937   no:yes:* )
11938     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11939 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11940     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11941 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11942     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11943 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11944     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11945 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11946     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11947 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11948     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11949 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11950     ( cat <<\_ASBOX
11951 ## ---------------------------------------- ##
11952 ## Report this to pgsql-bugs@postgresql.org ##
11953 ## ---------------------------------------- ##
11954 _ASBOX
11955      ) | sed "s/^/$as_me: WARNING:     /" >&2
11956     ;;
11957 esac
11958 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11959 $as_echo_n "checking for $ac_header... " >&6; }
11960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11961   $as_echo_n "(cached) " >&6
11962 else
11963   eval "$as_ac_Header=\$ac_header_preproc"
11964 fi
11965 ac_res=`eval 'as_val=${'$as_ac_Header'}
11966                  $as_echo "$as_val"'`
11967                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11968 $as_echo "$ac_res" >&6; }
11969
11970 fi
11971 as_val=`eval 'as_val=${'$as_ac_Header'}
11972                  $as_echo "$as_val"'`
11973    if test "x$as_val" = x""yes; then
11974   cat >>confdefs.h <<_ACEOF
11975 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11976 _ACEOF
11977
11978 fi
11979
11980 done
11981
11982 fi
11983
11984 done
11985
11986 fi
11987
11988 done
11989
11990 fi
11991
11992 if test "$with_zlib" = yes; then
11993   if test "${ac_cv_header_zlib_h+set}" = set; then
11994   { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11995 $as_echo_n "checking for zlib.h... " >&6; }
11996 if test "${ac_cv_header_zlib_h+set}" = set; then
11997   $as_echo_n "(cached) " >&6
11998 fi
11999 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12000 $as_echo "$ac_cv_header_zlib_h" >&6; }
12001 else
12002   # Is the header compilable?
12003 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
12004 $as_echo_n "checking zlib.h usability... " >&6; }
12005 cat >conftest.$ac_ext <<_ACEOF
12006 /* confdefs.h.  */
12007 _ACEOF
12008 cat confdefs.h >>conftest.$ac_ext
12009 cat >>conftest.$ac_ext <<_ACEOF
12010 /* end confdefs.h.  */
12011 $ac_includes_default
12012 #include <zlib.h>
12013 _ACEOF
12014 rm -f conftest.$ac_objext
12015 if { (ac_try="$ac_compile"
12016 case "(($ac_try" in
12017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12018   *) ac_try_echo=$ac_try;;
12019 esac
12020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12021 $as_echo "$ac_try_echo") >&5
12022   (eval "$ac_compile") 2>conftest.er1
12023   ac_status=$?
12024   grep -v '^ *+' conftest.er1 >conftest.err
12025   rm -f conftest.er1
12026   cat conftest.err >&5
12027   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028   (exit $ac_status); } && {
12029          test -z "$ac_c_werror_flag" ||
12030          test ! -s conftest.err
12031        } && test -s conftest.$ac_objext; then
12032   ac_header_compiler=yes
12033 else
12034   $as_echo "$as_me: failed program was:" >&5
12035 sed 's/^/| /' conftest.$ac_ext >&5
12036
12037         ac_header_compiler=no
12038 fi
12039
12040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12041 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12042 $as_echo "$ac_header_compiler" >&6; }
12043
12044 # Is the header present?
12045 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
12046 $as_echo_n "checking zlib.h presence... " >&6; }
12047 cat >conftest.$ac_ext <<_ACEOF
12048 /* confdefs.h.  */
12049 _ACEOF
12050 cat confdefs.h >>conftest.$ac_ext
12051 cat >>conftest.$ac_ext <<_ACEOF
12052 /* end confdefs.h.  */
12053 #include <zlib.h>
12054 _ACEOF
12055 if { (ac_try="$ac_cpp conftest.$ac_ext"
12056 case "(($ac_try" in
12057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12058   *) ac_try_echo=$ac_try;;
12059 esac
12060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12061 $as_echo "$ac_try_echo") >&5
12062   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12063   ac_status=$?
12064   grep -v '^ *+' conftest.er1 >conftest.err
12065   rm -f conftest.er1
12066   cat conftest.err >&5
12067   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068   (exit $ac_status); } >/dev/null && {
12069          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12070          test ! -s conftest.err
12071        }; then
12072   ac_header_preproc=yes
12073 else
12074   $as_echo "$as_me: failed program was:" >&5
12075 sed 's/^/| /' conftest.$ac_ext >&5
12076
12077   ac_header_preproc=no
12078 fi
12079
12080 rm -f conftest.err conftest.$ac_ext
12081 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12082 $as_echo "$ac_header_preproc" >&6; }
12083
12084 # So?  What about this header?
12085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12086   yes:no: )
12087     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12088 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12089     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
12090 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
12091     ac_header_preproc=yes
12092     ;;
12093   no:yes:* )
12094     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
12095 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
12096     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
12097 $as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
12098     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
12099 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
12100     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
12101 $as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12102     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
12103 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
12104     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
12105 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
12106     ( cat <<\_ASBOX
12107 ## ---------------------------------------- ##
12108 ## Report this to pgsql-bugs@postgresql.org ##
12109 ## ---------------------------------------- ##
12110 _ASBOX
12111      ) | sed "s/^/$as_me: WARNING:     /" >&2
12112     ;;
12113 esac
12114 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12115 $as_echo_n "checking for zlib.h... " >&6; }
12116 if test "${ac_cv_header_zlib_h+set}" = set; then
12117   $as_echo_n "(cached) " >&6
12118 else
12119   ac_cv_header_zlib_h=$ac_header_preproc
12120 fi
12121 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12122 $as_echo "$ac_cv_header_zlib_h" >&6; }
12123
12124 fi
12125 if test "x$ac_cv_header_zlib_h" = x""yes; then
12126   :
12127 else
12128   { { $as_echo "$as_me:$LINENO: error: zlib header not found
12129 If you have zlib already installed, see config.log for details on the
12130 failure.  It is possible the compiler isn't looking in the proper directory.
12131 Use --without-zlib to disable zlib support." >&5
12132 $as_echo "$as_me: error: zlib header not found
12133 If you have zlib already installed, see config.log for details on the
12134 failure.  It is possible the compiler isn't looking in the proper directory.
12135 Use --without-zlib to disable zlib support." >&2;}
12136    { (exit 1); exit 1; }; }
12137 fi
12138
12139
12140 fi
12141
12142 if test "$with_gssapi" = yes ; then
12143
12144 for ac_header in gssapi/gssapi.h
12145 do
12146 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12148   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12149 $as_echo_n "checking for $ac_header... " >&6; }
12150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12151   $as_echo_n "(cached) " >&6
12152 fi
12153 ac_res=`eval 'as_val=${'$as_ac_Header'}
12154                  $as_echo "$as_val"'`
12155                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12156 $as_echo "$ac_res" >&6; }
12157 else
12158   # Is the header compilable?
12159 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12160 $as_echo_n "checking $ac_header usability... " >&6; }
12161 cat >conftest.$ac_ext <<_ACEOF
12162 /* confdefs.h.  */
12163 _ACEOF
12164 cat confdefs.h >>conftest.$ac_ext
12165 cat >>conftest.$ac_ext <<_ACEOF
12166 /* end confdefs.h.  */
12167 $ac_includes_default
12168 #include <$ac_header>
12169 _ACEOF
12170 rm -f conftest.$ac_objext
12171 if { (ac_try="$ac_compile"
12172 case "(($ac_try" in
12173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12174   *) ac_try_echo=$ac_try;;
12175 esac
12176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12177 $as_echo "$ac_try_echo") >&5
12178   (eval "$ac_compile") 2>conftest.er1
12179   ac_status=$?
12180   grep -v '^ *+' conftest.er1 >conftest.err
12181   rm -f conftest.er1
12182   cat conftest.err >&5
12183   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184   (exit $ac_status); } && {
12185          test -z "$ac_c_werror_flag" ||
12186          test ! -s conftest.err
12187        } && test -s conftest.$ac_objext; then
12188   ac_header_compiler=yes
12189 else
12190   $as_echo "$as_me: failed program was:" >&5
12191 sed 's/^/| /' conftest.$ac_ext >&5
12192
12193         ac_header_compiler=no
12194 fi
12195
12196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12197 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12198 $as_echo "$ac_header_compiler" >&6; }
12199
12200 # Is the header present?
12201 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12202 $as_echo_n "checking $ac_header presence... " >&6; }
12203 cat >conftest.$ac_ext <<_ACEOF
12204 /* confdefs.h.  */
12205 _ACEOF
12206 cat confdefs.h >>conftest.$ac_ext
12207 cat >>conftest.$ac_ext <<_ACEOF
12208 /* end confdefs.h.  */
12209 #include <$ac_header>
12210 _ACEOF
12211 if { (ac_try="$ac_cpp conftest.$ac_ext"
12212 case "(($ac_try" in
12213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12214   *) ac_try_echo=$ac_try;;
12215 esac
12216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12217 $as_echo "$ac_try_echo") >&5
12218   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12219   ac_status=$?
12220   grep -v '^ *+' conftest.er1 >conftest.err
12221   rm -f conftest.er1
12222   cat conftest.err >&5
12223   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224   (exit $ac_status); } >/dev/null && {
12225          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12226          test ! -s conftest.err
12227        }; then
12228   ac_header_preproc=yes
12229 else
12230   $as_echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12232
12233   ac_header_preproc=no
12234 fi
12235
12236 rm -f conftest.err conftest.$ac_ext
12237 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12238 $as_echo "$ac_header_preproc" >&6; }
12239
12240 # So?  What about this header?
12241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12242   yes:no: )
12243     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12244 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12245     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12246 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12247     ac_header_preproc=yes
12248     ;;
12249   no:yes:* )
12250     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12251 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12252     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12253 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12254     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12255 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12256     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12257 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12258     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12259 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12260     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12261 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12262     ( cat <<\_ASBOX
12263 ## ---------------------------------------- ##
12264 ## Report this to pgsql-bugs@postgresql.org ##
12265 ## ---------------------------------------- ##
12266 _ASBOX
12267      ) | sed "s/^/$as_me: WARNING:     /" >&2
12268     ;;
12269 esac
12270 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12271 $as_echo_n "checking for $ac_header... " >&6; }
12272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12273   $as_echo_n "(cached) " >&6
12274 else
12275   eval "$as_ac_Header=\$ac_header_preproc"
12276 fi
12277 ac_res=`eval 'as_val=${'$as_ac_Header'}
12278                  $as_echo "$as_val"'`
12279                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12280 $as_echo "$ac_res" >&6; }
12281
12282 fi
12283 as_val=`eval 'as_val=${'$as_ac_Header'}
12284                  $as_echo "$as_val"'`
12285    if test "x$as_val" = x""yes; then
12286   cat >>confdefs.h <<_ACEOF
12287 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12288 _ACEOF
12289
12290 else
12291
12292 for ac_header in gssapi.h
12293 do
12294 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12296   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12297 $as_echo_n "checking for $ac_header... " >&6; }
12298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12299   $as_echo_n "(cached) " >&6
12300 fi
12301 ac_res=`eval 'as_val=${'$as_ac_Header'}
12302                  $as_echo "$as_val"'`
12303                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12304 $as_echo "$ac_res" >&6; }
12305 else
12306   # Is the header compilable?
12307 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12308 $as_echo_n "checking $ac_header usability... " >&6; }
12309 cat >conftest.$ac_ext <<_ACEOF
12310 /* confdefs.h.  */
12311 _ACEOF
12312 cat confdefs.h >>conftest.$ac_ext
12313 cat >>conftest.$ac_ext <<_ACEOF
12314 /* end confdefs.h.  */
12315 $ac_includes_default
12316 #include <$ac_header>
12317 _ACEOF
12318 rm -f conftest.$ac_objext
12319 if { (ac_try="$ac_compile"
12320 case "(($ac_try" in
12321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12322   *) ac_try_echo=$ac_try;;
12323 esac
12324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12325 $as_echo "$ac_try_echo") >&5
12326   (eval "$ac_compile") 2>conftest.er1
12327   ac_status=$?
12328   grep -v '^ *+' conftest.er1 >conftest.err
12329   rm -f conftest.er1
12330   cat conftest.err >&5
12331   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332   (exit $ac_status); } && {
12333          test -z "$ac_c_werror_flag" ||
12334          test ! -s conftest.err
12335        } && test -s conftest.$ac_objext; then
12336   ac_header_compiler=yes
12337 else
12338   $as_echo "$as_me: failed program was:" >&5
12339 sed 's/^/| /' conftest.$ac_ext >&5
12340
12341         ac_header_compiler=no
12342 fi
12343
12344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12345 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12346 $as_echo "$ac_header_compiler" >&6; }
12347
12348 # Is the header present?
12349 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12350 $as_echo_n "checking $ac_header presence... " >&6; }
12351 cat >conftest.$ac_ext <<_ACEOF
12352 /* confdefs.h.  */
12353 _ACEOF
12354 cat confdefs.h >>conftest.$ac_ext
12355 cat >>conftest.$ac_ext <<_ACEOF
12356 /* end confdefs.h.  */
12357 #include <$ac_header>
12358 _ACEOF
12359 if { (ac_try="$ac_cpp conftest.$ac_ext"
12360 case "(($ac_try" in
12361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12362   *) ac_try_echo=$ac_try;;
12363 esac
12364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12365 $as_echo "$ac_try_echo") >&5
12366   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12367   ac_status=$?
12368   grep -v '^ *+' conftest.er1 >conftest.err
12369   rm -f conftest.er1
12370   cat conftest.err >&5
12371   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372   (exit $ac_status); } >/dev/null && {
12373          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12374          test ! -s conftest.err
12375        }; then
12376   ac_header_preproc=yes
12377 else
12378   $as_echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12380
12381   ac_header_preproc=no
12382 fi
12383
12384 rm -f conftest.err conftest.$ac_ext
12385 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12386 $as_echo "$ac_header_preproc" >&6; }
12387
12388 # So?  What about this header?
12389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12390   yes:no: )
12391     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12392 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12393     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12394 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12395     ac_header_preproc=yes
12396     ;;
12397   no:yes:* )
12398     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12399 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12400     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12401 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12402     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12403 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12404     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12405 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12406     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12407 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12408     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12409 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12410     ( cat <<\_ASBOX
12411 ## ---------------------------------------- ##
12412 ## Report this to pgsql-bugs@postgresql.org ##
12413 ## ---------------------------------------- ##
12414 _ASBOX
12415      ) | sed "s/^/$as_me: WARNING:     /" >&2
12416     ;;
12417 esac
12418 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12419 $as_echo_n "checking for $ac_header... " >&6; }
12420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12421   $as_echo_n "(cached) " >&6
12422 else
12423   eval "$as_ac_Header=\$ac_header_preproc"
12424 fi
12425 ac_res=`eval 'as_val=${'$as_ac_Header'}
12426                  $as_echo "$as_val"'`
12427                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12428 $as_echo "$ac_res" >&6; }
12429
12430 fi
12431 as_val=`eval 'as_val=${'$as_ac_Header'}
12432                  $as_echo "$as_val"'`
12433    if test "x$as_val" = x""yes; then
12434   cat >>confdefs.h <<_ACEOF
12435 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12436 _ACEOF
12437
12438 else
12439   { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12440 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12441    { (exit 1); exit 1; }; }
12442 fi
12443
12444 done
12445
12446 fi
12447
12448 done
12449
12450 fi
12451
12452 if test "$with_krb5" = yes ; then
12453   if test "${ac_cv_header_krb5_h+set}" = set; then
12454   { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12455 $as_echo_n "checking for krb5.h... " >&6; }
12456 if test "${ac_cv_header_krb5_h+set}" = set; then
12457   $as_echo_n "(cached) " >&6
12458 fi
12459 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12460 $as_echo "$ac_cv_header_krb5_h" >&6; }
12461 else
12462   # Is the header compilable?
12463 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12464 $as_echo_n "checking krb5.h usability... " >&6; }
12465 cat >conftest.$ac_ext <<_ACEOF
12466 /* confdefs.h.  */
12467 _ACEOF
12468 cat confdefs.h >>conftest.$ac_ext
12469 cat >>conftest.$ac_ext <<_ACEOF
12470 /* end confdefs.h.  */
12471 $ac_includes_default
12472 #include <krb5.h>
12473 _ACEOF
12474 rm -f conftest.$ac_objext
12475 if { (ac_try="$ac_compile"
12476 case "(($ac_try" in
12477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12478   *) ac_try_echo=$ac_try;;
12479 esac
12480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12481 $as_echo "$ac_try_echo") >&5
12482   (eval "$ac_compile") 2>conftest.er1
12483   ac_status=$?
12484   grep -v '^ *+' conftest.er1 >conftest.err
12485   rm -f conftest.er1
12486   cat conftest.err >&5
12487   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488   (exit $ac_status); } && {
12489          test -z "$ac_c_werror_flag" ||
12490          test ! -s conftest.err
12491        } && test -s conftest.$ac_objext; then
12492   ac_header_compiler=yes
12493 else
12494   $as_echo "$as_me: failed program was:" >&5
12495 sed 's/^/| /' conftest.$ac_ext >&5
12496
12497         ac_header_compiler=no
12498 fi
12499
12500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12501 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12502 $as_echo "$ac_header_compiler" >&6; }
12503
12504 # Is the header present?
12505 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12506 $as_echo_n "checking krb5.h presence... " >&6; }
12507 cat >conftest.$ac_ext <<_ACEOF
12508 /* confdefs.h.  */
12509 _ACEOF
12510 cat confdefs.h >>conftest.$ac_ext
12511 cat >>conftest.$ac_ext <<_ACEOF
12512 /* end confdefs.h.  */
12513 #include <krb5.h>
12514 _ACEOF
12515 if { (ac_try="$ac_cpp conftest.$ac_ext"
12516 case "(($ac_try" in
12517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12518   *) ac_try_echo=$ac_try;;
12519 esac
12520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12521 $as_echo "$ac_try_echo") >&5
12522   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12523   ac_status=$?
12524   grep -v '^ *+' conftest.er1 >conftest.err
12525   rm -f conftest.er1
12526   cat conftest.err >&5
12527   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528   (exit $ac_status); } >/dev/null && {
12529          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12530          test ! -s conftest.err
12531        }; then
12532   ac_header_preproc=yes
12533 else
12534   $as_echo "$as_me: failed program was:" >&5
12535 sed 's/^/| /' conftest.$ac_ext >&5
12536
12537   ac_header_preproc=no
12538 fi
12539
12540 rm -f conftest.err conftest.$ac_ext
12541 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12542 $as_echo "$ac_header_preproc" >&6; }
12543
12544 # So?  What about this header?
12545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12546   yes:no: )
12547     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12548 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12549     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12550 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12551     ac_header_preproc=yes
12552     ;;
12553   no:yes:* )
12554     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12555 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12556     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     check for missing prerequisite headers?" >&5
12557 $as_echo "$as_me: WARNING: krb5.h:     check for missing prerequisite headers?" >&2;}
12558     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12559 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12560     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&5
12561 $as_echo "$as_me: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12562     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12563 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12564     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12565 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12566     ( cat <<\_ASBOX
12567 ## ---------------------------------------- ##
12568 ## Report this to pgsql-bugs@postgresql.org ##
12569 ## ---------------------------------------- ##
12570 _ASBOX
12571      ) | sed "s/^/$as_me: WARNING:     /" >&2
12572     ;;
12573 esac
12574 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12575 $as_echo_n "checking for krb5.h... " >&6; }
12576 if test "${ac_cv_header_krb5_h+set}" = set; then
12577   $as_echo_n "(cached) " >&6
12578 else
12579   ac_cv_header_krb5_h=$ac_header_preproc
12580 fi
12581 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12582 $as_echo "$ac_cv_header_krb5_h" >&6; }
12583
12584 fi
12585 if test "x$ac_cv_header_krb5_h" = x""yes; then
12586   :
12587 else
12588   { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12589 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12590    { (exit 1); exit 1; }; }
12591 fi
12592
12593
12594 fi
12595
12596 if test "$with_openssl" = yes ; then
12597   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12598   { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12599 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12600 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12601   $as_echo_n "(cached) " >&6
12602 fi
12603 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12604 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12605 else
12606   # Is the header compilable?
12607 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12608 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12609 cat >conftest.$ac_ext <<_ACEOF
12610 /* confdefs.h.  */
12611 _ACEOF
12612 cat confdefs.h >>conftest.$ac_ext
12613 cat >>conftest.$ac_ext <<_ACEOF
12614 /* end confdefs.h.  */
12615 $ac_includes_default
12616 #include <openssl/ssl.h>
12617 _ACEOF
12618 rm -f conftest.$ac_objext
12619 if { (ac_try="$ac_compile"
12620 case "(($ac_try" in
12621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12622   *) ac_try_echo=$ac_try;;
12623 esac
12624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12625 $as_echo "$ac_try_echo") >&5
12626   (eval "$ac_compile") 2>conftest.er1
12627   ac_status=$?
12628   grep -v '^ *+' conftest.er1 >conftest.err
12629   rm -f conftest.er1
12630   cat conftest.err >&5
12631   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632   (exit $ac_status); } && {
12633          test -z "$ac_c_werror_flag" ||
12634          test ! -s conftest.err
12635        } && test -s conftest.$ac_objext; then
12636   ac_header_compiler=yes
12637 else
12638   $as_echo "$as_me: failed program was:" >&5
12639 sed 's/^/| /' conftest.$ac_ext >&5
12640
12641         ac_header_compiler=no
12642 fi
12643
12644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12645 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12646 $as_echo "$ac_header_compiler" >&6; }
12647
12648 # Is the header present?
12649 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12650 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12651 cat >conftest.$ac_ext <<_ACEOF
12652 /* confdefs.h.  */
12653 _ACEOF
12654 cat confdefs.h >>conftest.$ac_ext
12655 cat >>conftest.$ac_ext <<_ACEOF
12656 /* end confdefs.h.  */
12657 #include <openssl/ssl.h>
12658 _ACEOF
12659 if { (ac_try="$ac_cpp conftest.$ac_ext"
12660 case "(($ac_try" in
12661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12662   *) ac_try_echo=$ac_try;;
12663 esac
12664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12665 $as_echo "$ac_try_echo") >&5
12666   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12667   ac_status=$?
12668   grep -v '^ *+' conftest.er1 >conftest.err
12669   rm -f conftest.er1
12670   cat conftest.err >&5
12671   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672   (exit $ac_status); } >/dev/null && {
12673          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12674          test ! -s conftest.err
12675        }; then
12676   ac_header_preproc=yes
12677 else
12678   $as_echo "$as_me: failed program was:" >&5
12679 sed 's/^/| /' conftest.$ac_ext >&5
12680
12681   ac_header_preproc=no
12682 fi
12683
12684 rm -f conftest.err conftest.$ac_ext
12685 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12686 $as_echo "$ac_header_preproc" >&6; }
12687
12688 # So?  What about this header?
12689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12690   yes:no: )
12691     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12692 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12693     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12694 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12695     ac_header_preproc=yes
12696     ;;
12697   no:yes:* )
12698     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12699 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12700     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&5
12701 $as_echo "$as_me: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&2;}
12702     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12703 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12704     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&5
12705 $as_echo "$as_me: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12706     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12707 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12708     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12709 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12710     ( cat <<\_ASBOX
12711 ## ---------------------------------------- ##
12712 ## Report this to pgsql-bugs@postgresql.org ##
12713 ## ---------------------------------------- ##
12714 _ASBOX
12715      ) | sed "s/^/$as_me: WARNING:     /" >&2
12716     ;;
12717 esac
12718 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12719 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12720 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12721   $as_echo_n "(cached) " >&6
12722 else
12723   ac_cv_header_openssl_ssl_h=$ac_header_preproc
12724 fi
12725 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12726 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12727
12728 fi
12729 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
12730   :
12731 else
12732   { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12733 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12734    { (exit 1); exit 1; }; }
12735 fi
12736
12737
12738   if test "${ac_cv_header_openssl_err_h+set}" = set; then
12739   { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12740 $as_echo_n "checking for openssl/err.h... " >&6; }
12741 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12742   $as_echo_n "(cached) " >&6
12743 fi
12744 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12745 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12746 else
12747   # Is the header compilable?
12748 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12749 $as_echo_n "checking openssl/err.h usability... " >&6; }
12750 cat >conftest.$ac_ext <<_ACEOF
12751 /* confdefs.h.  */
12752 _ACEOF
12753 cat confdefs.h >>conftest.$ac_ext
12754 cat >>conftest.$ac_ext <<_ACEOF
12755 /* end confdefs.h.  */
12756 $ac_includes_default
12757 #include <openssl/err.h>
12758 _ACEOF
12759 rm -f conftest.$ac_objext
12760 if { (ac_try="$ac_compile"
12761 case "(($ac_try" in
12762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12763   *) ac_try_echo=$ac_try;;
12764 esac
12765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12766 $as_echo "$ac_try_echo") >&5
12767   (eval "$ac_compile") 2>conftest.er1
12768   ac_status=$?
12769   grep -v '^ *+' conftest.er1 >conftest.err
12770   rm -f conftest.er1
12771   cat conftest.err >&5
12772   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773   (exit $ac_status); } && {
12774          test -z "$ac_c_werror_flag" ||
12775          test ! -s conftest.err
12776        } && test -s conftest.$ac_objext; then
12777   ac_header_compiler=yes
12778 else
12779   $as_echo "$as_me: failed program was:" >&5
12780 sed 's/^/| /' conftest.$ac_ext >&5
12781
12782         ac_header_compiler=no
12783 fi
12784
12785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12786 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12787 $as_echo "$ac_header_compiler" >&6; }
12788
12789 # Is the header present?
12790 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12791 $as_echo_n "checking openssl/err.h presence... " >&6; }
12792 cat >conftest.$ac_ext <<_ACEOF
12793 /* confdefs.h.  */
12794 _ACEOF
12795 cat confdefs.h >>conftest.$ac_ext
12796 cat >>conftest.$ac_ext <<_ACEOF
12797 /* end confdefs.h.  */
12798 #include <openssl/err.h>
12799 _ACEOF
12800 if { (ac_try="$ac_cpp conftest.$ac_ext"
12801 case "(($ac_try" in
12802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12803   *) ac_try_echo=$ac_try;;
12804 esac
12805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12806 $as_echo "$ac_try_echo") >&5
12807   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12808   ac_status=$?
12809   grep -v '^ *+' conftest.er1 >conftest.err
12810   rm -f conftest.er1
12811   cat conftest.err >&5
12812   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813   (exit $ac_status); } >/dev/null && {
12814          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12815          test ! -s conftest.err
12816        }; then
12817   ac_header_preproc=yes
12818 else
12819   $as_echo "$as_me: failed program was:" >&5
12820 sed 's/^/| /' conftest.$ac_ext >&5
12821
12822   ac_header_preproc=no
12823 fi
12824
12825 rm -f conftest.err conftest.$ac_ext
12826 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12827 $as_echo "$ac_header_preproc" >&6; }
12828
12829 # So?  What about this header?
12830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12831   yes:no: )
12832     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12833 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12834     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12835 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12836     ac_header_preproc=yes
12837     ;;
12838   no:yes:* )
12839     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12840 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12841     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&5
12842 $as_echo "$as_me: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&2;}
12843     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12844 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12845     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&5
12846 $as_echo "$as_me: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12847     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12848 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12849     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12850 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12851     ( cat <<\_ASBOX
12852 ## ---------------------------------------- ##
12853 ## Report this to pgsql-bugs@postgresql.org ##
12854 ## ---------------------------------------- ##
12855 _ASBOX
12856      ) | sed "s/^/$as_me: WARNING:     /" >&2
12857     ;;
12858 esac
12859 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12860 $as_echo_n "checking for openssl/err.h... " >&6; }
12861 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12862   $as_echo_n "(cached) " >&6
12863 else
12864   ac_cv_header_openssl_err_h=$ac_header_preproc
12865 fi
12866 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12867 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12868
12869 fi
12870 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
12871   :
12872 else
12873   { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12874 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12875    { (exit 1); exit 1; }; }
12876 fi
12877
12878
12879
12880 for ac_func in ERR_set_mark
12881 do
12882 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12883 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12884 $as_echo_n "checking for $ac_func... " >&6; }
12885 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12886   $as_echo_n "(cached) " >&6
12887 else
12888   cat >conftest.$ac_ext <<_ACEOF
12889 /* confdefs.h.  */
12890 _ACEOF
12891 cat confdefs.h >>conftest.$ac_ext
12892 cat >>conftest.$ac_ext <<_ACEOF
12893 /* end confdefs.h.  */
12894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12895    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12896 #define $ac_func innocuous_$ac_func
12897
12898 /* System header to define __stub macros and hopefully few prototypes,
12899     which can conflict with char $ac_func (); below.
12900     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12901     <limits.h> exists even on freestanding compilers.  */
12902
12903 #ifdef __STDC__
12904 # include <limits.h>
12905 #else
12906 # include <assert.h>
12907 #endif
12908
12909 #undef $ac_func
12910
12911 /* Override any GCC internal prototype to avoid an error.
12912    Use char because int might match the return type of a GCC
12913    builtin and then its argument prototype would still apply.  */
12914 #ifdef __cplusplus
12915 extern "C"
12916 #endif
12917 char $ac_func ();
12918 /* The GNU C library defines this for functions which it implements
12919     to always fail with ENOSYS.  Some functions are actually named
12920     something starting with __ and the normal name is an alias.  */
12921 #if defined __stub_$ac_func || defined __stub___$ac_func
12922 choke me
12923 #endif
12924
12925 int
12926 main ()
12927 {
12928 return $ac_func ();
12929   ;
12930   return 0;
12931 }
12932 _ACEOF
12933 rm -f conftest.$ac_objext conftest$ac_exeext
12934 if { (ac_try="$ac_link"
12935 case "(($ac_try" in
12936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12937   *) ac_try_echo=$ac_try;;
12938 esac
12939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12940 $as_echo "$ac_try_echo") >&5
12941   (eval "$ac_link") 2>conftest.er1
12942   ac_status=$?
12943   grep -v '^ *+' conftest.er1 >conftest.err
12944   rm -f conftest.er1
12945   cat conftest.err >&5
12946   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947   (exit $ac_status); } && {
12948          test -z "$ac_c_werror_flag" ||
12949          test ! -s conftest.err
12950        } && test -s conftest$ac_exeext && {
12951          test "$cross_compiling" = yes ||
12952          $as_test_x conftest$ac_exeext
12953        }; then
12954   eval "$as_ac_var=yes"
12955 else
12956   $as_echo "$as_me: failed program was:" >&5
12957 sed 's/^/| /' conftest.$ac_ext >&5
12958
12959         eval "$as_ac_var=no"
12960 fi
12961
12962 rm -rf conftest.dSYM
12963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12964       conftest$ac_exeext conftest.$ac_ext
12965 fi
12966 ac_res=`eval 'as_val=${'$as_ac_var'}
12967                  $as_echo "$as_val"'`
12968                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12969 $as_echo "$ac_res" >&6; }
12970 as_val=`eval 'as_val=${'$as_ac_var'}
12971                  $as_echo "$as_val"'`
12972    if test "x$as_val" = x""yes; then
12973   cat >>confdefs.h <<_ACEOF
12974 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12975 _ACEOF
12976
12977 fi
12978 done
12979
12980 fi
12981
12982 if test "$with_pam" = yes ; then
12983
12984 for ac_header in security/pam_appl.h
12985 do
12986 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12988   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12989 $as_echo_n "checking for $ac_header... " >&6; }
12990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12991   $as_echo_n "(cached) " >&6
12992 fi
12993 ac_res=`eval 'as_val=${'$as_ac_Header'}
12994                  $as_echo "$as_val"'`
12995                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12996 $as_echo "$ac_res" >&6; }
12997 else
12998   # Is the header compilable?
12999 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13000 $as_echo_n "checking $ac_header usability... " >&6; }
13001 cat >conftest.$ac_ext <<_ACEOF
13002 /* confdefs.h.  */
13003 _ACEOF
13004 cat confdefs.h >>conftest.$ac_ext
13005 cat >>conftest.$ac_ext <<_ACEOF
13006 /* end confdefs.h.  */
13007 $ac_includes_default
13008 #include <$ac_header>
13009 _ACEOF
13010 rm -f conftest.$ac_objext
13011 if { (ac_try="$ac_compile"
13012 case "(($ac_try" in
13013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13014   *) ac_try_echo=$ac_try;;
13015 esac
13016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13017 $as_echo "$ac_try_echo") >&5
13018   (eval "$ac_compile") 2>conftest.er1
13019   ac_status=$?
13020   grep -v '^ *+' conftest.er1 >conftest.err
13021   rm -f conftest.er1
13022   cat conftest.err >&5
13023   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024   (exit $ac_status); } && {
13025          test -z "$ac_c_werror_flag" ||
13026          test ! -s conftest.err
13027        } && test -s conftest.$ac_objext; then
13028   ac_header_compiler=yes
13029 else
13030   $as_echo "$as_me: failed program was:" >&5
13031 sed 's/^/| /' conftest.$ac_ext >&5
13032
13033         ac_header_compiler=no
13034 fi
13035
13036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13037 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13038 $as_echo "$ac_header_compiler" >&6; }
13039
13040 # Is the header present?
13041 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13042 $as_echo_n "checking $ac_header presence... " >&6; }
13043 cat >conftest.$ac_ext <<_ACEOF
13044 /* confdefs.h.  */
13045 _ACEOF
13046 cat confdefs.h >>conftest.$ac_ext
13047 cat >>conftest.$ac_ext <<_ACEOF
13048 /* end confdefs.h.  */
13049 #include <$ac_header>
13050 _ACEOF
13051 if { (ac_try="$ac_cpp conftest.$ac_ext"
13052 case "(($ac_try" in
13053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13054   *) ac_try_echo=$ac_try;;
13055 esac
13056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13057 $as_echo "$ac_try_echo") >&5
13058   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13059   ac_status=$?
13060   grep -v '^ *+' conftest.er1 >conftest.err
13061   rm -f conftest.er1
13062   cat conftest.err >&5
13063   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064   (exit $ac_status); } >/dev/null && {
13065          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13066          test ! -s conftest.err
13067        }; then
13068   ac_header_preproc=yes
13069 else
13070   $as_echo "$as_me: failed program was:" >&5
13071 sed 's/^/| /' conftest.$ac_ext >&5
13072
13073   ac_header_preproc=no
13074 fi
13075
13076 rm -f conftest.err conftest.$ac_ext
13077 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13078 $as_echo "$ac_header_preproc" >&6; }
13079
13080 # So?  What about this header?
13081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13082   yes:no: )
13083     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13084 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13085     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13086 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13087     ac_header_preproc=yes
13088     ;;
13089   no:yes:* )
13090     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13091 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13092     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13093 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13094     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13095 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13096     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13097 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13098     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13099 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13100     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13101 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13102     ( cat <<\_ASBOX
13103 ## ---------------------------------------- ##
13104 ## Report this to pgsql-bugs@postgresql.org ##
13105 ## ---------------------------------------- ##
13106 _ASBOX
13107      ) | sed "s/^/$as_me: WARNING:     /" >&2
13108     ;;
13109 esac
13110 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13111 $as_echo_n "checking for $ac_header... " >&6; }
13112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13113   $as_echo_n "(cached) " >&6
13114 else
13115   eval "$as_ac_Header=\$ac_header_preproc"
13116 fi
13117 ac_res=`eval 'as_val=${'$as_ac_Header'}
13118                  $as_echo "$as_val"'`
13119                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13120 $as_echo "$ac_res" >&6; }
13121
13122 fi
13123 as_val=`eval 'as_val=${'$as_ac_Header'}
13124                  $as_echo "$as_val"'`
13125    if test "x$as_val" = x""yes; then
13126   cat >>confdefs.h <<_ACEOF
13127 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13128 _ACEOF
13129
13130 else
13131
13132 for ac_header in pam/pam_appl.h
13133 do
13134 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13136   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13137 $as_echo_n "checking for $ac_header... " >&6; }
13138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13139   $as_echo_n "(cached) " >&6
13140 fi
13141 ac_res=`eval 'as_val=${'$as_ac_Header'}
13142                  $as_echo "$as_val"'`
13143                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13144 $as_echo "$ac_res" >&6; }
13145 else
13146   # Is the header compilable?
13147 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13148 $as_echo_n "checking $ac_header usability... " >&6; }
13149 cat >conftest.$ac_ext <<_ACEOF
13150 /* confdefs.h.  */
13151 _ACEOF
13152 cat confdefs.h >>conftest.$ac_ext
13153 cat >>conftest.$ac_ext <<_ACEOF
13154 /* end confdefs.h.  */
13155 $ac_includes_default
13156 #include <$ac_header>
13157 _ACEOF
13158 rm -f conftest.$ac_objext
13159 if { (ac_try="$ac_compile"
13160 case "(($ac_try" in
13161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13162   *) ac_try_echo=$ac_try;;
13163 esac
13164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13165 $as_echo "$ac_try_echo") >&5
13166   (eval "$ac_compile") 2>conftest.er1
13167   ac_status=$?
13168   grep -v '^ *+' conftest.er1 >conftest.err
13169   rm -f conftest.er1
13170   cat conftest.err >&5
13171   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172   (exit $ac_status); } && {
13173          test -z "$ac_c_werror_flag" ||
13174          test ! -s conftest.err
13175        } && test -s conftest.$ac_objext; then
13176   ac_header_compiler=yes
13177 else
13178   $as_echo "$as_me: failed program was:" >&5
13179 sed 's/^/| /' conftest.$ac_ext >&5
13180
13181         ac_header_compiler=no
13182 fi
13183
13184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13185 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13186 $as_echo "$ac_header_compiler" >&6; }
13187
13188 # Is the header present?
13189 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13190 $as_echo_n "checking $ac_header presence... " >&6; }
13191 cat >conftest.$ac_ext <<_ACEOF
13192 /* confdefs.h.  */
13193 _ACEOF
13194 cat confdefs.h >>conftest.$ac_ext
13195 cat >>conftest.$ac_ext <<_ACEOF
13196 /* end confdefs.h.  */
13197 #include <$ac_header>
13198 _ACEOF
13199 if { (ac_try="$ac_cpp conftest.$ac_ext"
13200 case "(($ac_try" in
13201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13202   *) ac_try_echo=$ac_try;;
13203 esac
13204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13205 $as_echo "$ac_try_echo") >&5
13206   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13207   ac_status=$?
13208   grep -v '^ *+' conftest.er1 >conftest.err
13209   rm -f conftest.er1
13210   cat conftest.err >&5
13211   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212   (exit $ac_status); } >/dev/null && {
13213          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13214          test ! -s conftest.err
13215        }; then
13216   ac_header_preproc=yes
13217 else
13218   $as_echo "$as_me: failed program was:" >&5
13219 sed 's/^/| /' conftest.$ac_ext >&5
13220
13221   ac_header_preproc=no
13222 fi
13223
13224 rm -f conftest.err conftest.$ac_ext
13225 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13226 $as_echo "$ac_header_preproc" >&6; }
13227
13228 # So?  What about this header?
13229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13230   yes:no: )
13231     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13232 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13233     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13234 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13235     ac_header_preproc=yes
13236     ;;
13237   no:yes:* )
13238     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13239 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13240     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13241 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13242     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13243 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13244     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13245 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13246     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13247 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13248     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13249 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13250     ( cat <<\_ASBOX
13251 ## ---------------------------------------- ##
13252 ## Report this to pgsql-bugs@postgresql.org ##
13253 ## ---------------------------------------- ##
13254 _ASBOX
13255      ) | sed "s/^/$as_me: WARNING:     /" >&2
13256     ;;
13257 esac
13258 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13259 $as_echo_n "checking for $ac_header... " >&6; }
13260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13261   $as_echo_n "(cached) " >&6
13262 else
13263   eval "$as_ac_Header=\$ac_header_preproc"
13264 fi
13265 ac_res=`eval 'as_val=${'$as_ac_Header'}
13266                  $as_echo "$as_val"'`
13267                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13268 $as_echo "$ac_res" >&6; }
13269
13270 fi
13271 as_val=`eval 'as_val=${'$as_ac_Header'}
13272                  $as_echo "$as_val"'`
13273    if test "x$as_val" = x""yes; then
13274   cat >>confdefs.h <<_ACEOF
13275 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13276 _ACEOF
13277
13278 else
13279   { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
13280 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
13281    { (exit 1); exit 1; }; }
13282 fi
13283
13284 done
13285
13286 fi
13287
13288 done
13289
13290 fi
13291
13292 if test "$with_libxml" = yes ; then
13293   if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13294   { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13295 $as_echo_n "checking for libxml/parser.h... " >&6; }
13296 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13297   $as_echo_n "(cached) " >&6
13298 fi
13299 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13300 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13301 else
13302   # Is the header compilable?
13303 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
13304 $as_echo_n "checking libxml/parser.h usability... " >&6; }
13305 cat >conftest.$ac_ext <<_ACEOF
13306 /* confdefs.h.  */
13307 _ACEOF
13308 cat confdefs.h >>conftest.$ac_ext
13309 cat >>conftest.$ac_ext <<_ACEOF
13310 /* end confdefs.h.  */
13311 $ac_includes_default
13312 #include <libxml/parser.h>
13313 _ACEOF
13314 rm -f conftest.$ac_objext
13315 if { (ac_try="$ac_compile"
13316 case "(($ac_try" in
13317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318   *) ac_try_echo=$ac_try;;
13319 esac
13320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13321 $as_echo "$ac_try_echo") >&5
13322   (eval "$ac_compile") 2>conftest.er1
13323   ac_status=$?
13324   grep -v '^ *+' conftest.er1 >conftest.err
13325   rm -f conftest.er1
13326   cat conftest.err >&5
13327   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328   (exit $ac_status); } && {
13329          test -z "$ac_c_werror_flag" ||
13330          test ! -s conftest.err
13331        } && test -s conftest.$ac_objext; then
13332   ac_header_compiler=yes
13333 else
13334   $as_echo "$as_me: failed program was:" >&5
13335 sed 's/^/| /' conftest.$ac_ext >&5
13336
13337         ac_header_compiler=no
13338 fi
13339
13340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13341 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13342 $as_echo "$ac_header_compiler" >&6; }
13343
13344 # Is the header present?
13345 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13346 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13347 cat >conftest.$ac_ext <<_ACEOF
13348 /* confdefs.h.  */
13349 _ACEOF
13350 cat confdefs.h >>conftest.$ac_ext
13351 cat >>conftest.$ac_ext <<_ACEOF
13352 /* end confdefs.h.  */
13353 #include <libxml/parser.h>
13354 _ACEOF
13355 if { (ac_try="$ac_cpp conftest.$ac_ext"
13356 case "(($ac_try" in
13357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13358   *) ac_try_echo=$ac_try;;
13359 esac
13360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13361 $as_echo "$ac_try_echo") >&5
13362   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13363   ac_status=$?
13364   grep -v '^ *+' conftest.er1 >conftest.err
13365   rm -f conftest.er1
13366   cat conftest.err >&5
13367   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368   (exit $ac_status); } >/dev/null && {
13369          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13370          test ! -s conftest.err
13371        }; then
13372   ac_header_preproc=yes
13373 else
13374   $as_echo "$as_me: failed program was:" >&5
13375 sed 's/^/| /' conftest.$ac_ext >&5
13376
13377   ac_header_preproc=no
13378 fi
13379
13380 rm -f conftest.err conftest.$ac_ext
13381 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13382 $as_echo "$ac_header_preproc" >&6; }
13383
13384 # So?  What about this header?
13385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13386   yes:no: )
13387     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13388 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13389     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13390 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13391     ac_header_preproc=yes
13392     ;;
13393   no:yes:* )
13394     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13395 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13396     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
13397 $as_echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
13398     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13399 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13400     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
13401 $as_echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13402     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13403 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13404     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13405 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13406     ( cat <<\_ASBOX
13407 ## ---------------------------------------- ##
13408 ## Report this to pgsql-bugs@postgresql.org ##
13409 ## ---------------------------------------- ##
13410 _ASBOX
13411      ) | sed "s/^/$as_me: WARNING:     /" >&2
13412     ;;
13413 esac
13414 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13415 $as_echo_n "checking for libxml/parser.h... " >&6; }
13416 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13417   $as_echo_n "(cached) " >&6
13418 else
13419   ac_cv_header_libxml_parser_h=$ac_header_preproc
13420 fi
13421 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13422 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13423
13424 fi
13425 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13426   :
13427 else
13428   { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13429 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13430    { (exit 1); exit 1; }; }
13431 fi
13432
13433
13434 fi
13435
13436 if test "$with_libxslt" = yes ; then
13437   if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13438   { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13439 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13440 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13441   $as_echo_n "(cached) " >&6
13442 fi
13443 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13444 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13445 else
13446   # Is the header compilable?
13447 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13448 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13449 cat >conftest.$ac_ext <<_ACEOF
13450 /* confdefs.h.  */
13451 _ACEOF
13452 cat confdefs.h >>conftest.$ac_ext
13453 cat >>conftest.$ac_ext <<_ACEOF
13454 /* end confdefs.h.  */
13455 $ac_includes_default
13456 #include <libxslt/xslt.h>
13457 _ACEOF
13458 rm -f conftest.$ac_objext
13459 if { (ac_try="$ac_compile"
13460 case "(($ac_try" in
13461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13462   *) ac_try_echo=$ac_try;;
13463 esac
13464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13465 $as_echo "$ac_try_echo") >&5
13466   (eval "$ac_compile") 2>conftest.er1
13467   ac_status=$?
13468   grep -v '^ *+' conftest.er1 >conftest.err
13469   rm -f conftest.er1
13470   cat conftest.err >&5
13471   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472   (exit $ac_status); } && {
13473          test -z "$ac_c_werror_flag" ||
13474          test ! -s conftest.err
13475        } && test -s conftest.$ac_objext; then
13476   ac_header_compiler=yes
13477 else
13478   $as_echo "$as_me: failed program was:" >&5
13479 sed 's/^/| /' conftest.$ac_ext >&5
13480
13481         ac_header_compiler=no
13482 fi
13483
13484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13485 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13486 $as_echo "$ac_header_compiler" >&6; }
13487
13488 # Is the header present?
13489 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13490 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13491 cat >conftest.$ac_ext <<_ACEOF
13492 /* confdefs.h.  */
13493 _ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h.  */
13497 #include <libxslt/xslt.h>
13498 _ACEOF
13499 if { (ac_try="$ac_cpp conftest.$ac_ext"
13500 case "(($ac_try" in
13501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13502   *) ac_try_echo=$ac_try;;
13503 esac
13504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13505 $as_echo "$ac_try_echo") >&5
13506   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13507   ac_status=$?
13508   grep -v '^ *+' conftest.er1 >conftest.err
13509   rm -f conftest.er1
13510   cat conftest.err >&5
13511   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512   (exit $ac_status); } >/dev/null && {
13513          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13514          test ! -s conftest.err
13515        }; then
13516   ac_header_preproc=yes
13517 else
13518   $as_echo "$as_me: failed program was:" >&5
13519 sed 's/^/| /' conftest.$ac_ext >&5
13520
13521   ac_header_preproc=no
13522 fi
13523
13524 rm -f conftest.err conftest.$ac_ext
13525 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13526 $as_echo "$ac_header_preproc" >&6; }
13527
13528 # So?  What about this header?
13529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13530   yes:no: )
13531     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13532 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13533     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13534 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13535     ac_header_preproc=yes
13536     ;;
13537   no:yes:* )
13538     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13539 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13540     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&5
13541 $as_echo "$as_me: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&2;}
13542     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13543 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13544     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&5
13545 $as_echo "$as_me: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13546     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13547 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13548     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13549 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13550     ( cat <<\_ASBOX
13551 ## ---------------------------------------- ##
13552 ## Report this to pgsql-bugs@postgresql.org ##
13553 ## ---------------------------------------- ##
13554 _ASBOX
13555      ) | sed "s/^/$as_me: WARNING:     /" >&2
13556     ;;
13557 esac
13558 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13559 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13560 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13561   $as_echo_n "(cached) " >&6
13562 else
13563   ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13564 fi
13565 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13566 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13567
13568 fi
13569 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13570   :
13571 else
13572   { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13573 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13574    { (exit 1); exit 1; }; }
13575 fi
13576
13577
13578 fi
13579
13580 if test "$with_ldap" = yes ; then
13581   if test "$PORTNAME" != "win32"; then
13582
13583 for ac_header in ldap.h
13584 do
13585 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13587   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13588 $as_echo_n "checking for $ac_header... " >&6; }
13589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13590   $as_echo_n "(cached) " >&6
13591 fi
13592 ac_res=`eval 'as_val=${'$as_ac_Header'}
13593                  $as_echo "$as_val"'`
13594                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13595 $as_echo "$ac_res" >&6; }
13596 else
13597   # Is the header compilable?
13598 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13599 $as_echo_n "checking $ac_header usability... " >&6; }
13600 cat >conftest.$ac_ext <<_ACEOF
13601 /* confdefs.h.  */
13602 _ACEOF
13603 cat confdefs.h >>conftest.$ac_ext
13604 cat >>conftest.$ac_ext <<_ACEOF
13605 /* end confdefs.h.  */
13606 $ac_includes_default
13607 #include <$ac_header>
13608 _ACEOF
13609 rm -f conftest.$ac_objext
13610 if { (ac_try="$ac_compile"
13611 case "(($ac_try" in
13612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13613   *) ac_try_echo=$ac_try;;
13614 esac
13615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13616 $as_echo "$ac_try_echo") >&5
13617   (eval "$ac_compile") 2>conftest.er1
13618   ac_status=$?
13619   grep -v '^ *+' conftest.er1 >conftest.err
13620   rm -f conftest.er1
13621   cat conftest.err >&5
13622   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623   (exit $ac_status); } && {
13624          test -z "$ac_c_werror_flag" ||
13625          test ! -s conftest.err
13626        } && test -s conftest.$ac_objext; then
13627   ac_header_compiler=yes
13628 else
13629   $as_echo "$as_me: failed program was:" >&5
13630 sed 's/^/| /' conftest.$ac_ext >&5
13631
13632         ac_header_compiler=no
13633 fi
13634
13635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13636 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13637 $as_echo "$ac_header_compiler" >&6; }
13638
13639 # Is the header present?
13640 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13641 $as_echo_n "checking $ac_header presence... " >&6; }
13642 cat >conftest.$ac_ext <<_ACEOF
13643 /* confdefs.h.  */
13644 _ACEOF
13645 cat confdefs.h >>conftest.$ac_ext
13646 cat >>conftest.$ac_ext <<_ACEOF
13647 /* end confdefs.h.  */
13648 #include <$ac_header>
13649 _ACEOF
13650 if { (ac_try="$ac_cpp conftest.$ac_ext"
13651 case "(($ac_try" in
13652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13653   *) ac_try_echo=$ac_try;;
13654 esac
13655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13656 $as_echo "$ac_try_echo") >&5
13657   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13658   ac_status=$?
13659   grep -v '^ *+' conftest.er1 >conftest.err
13660   rm -f conftest.er1
13661   cat conftest.err >&5
13662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663   (exit $ac_status); } >/dev/null && {
13664          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13665          test ! -s conftest.err
13666        }; then
13667   ac_header_preproc=yes
13668 else
13669   $as_echo "$as_me: failed program was:" >&5
13670 sed 's/^/| /' conftest.$ac_ext >&5
13671
13672   ac_header_preproc=no
13673 fi
13674
13675 rm -f conftest.err conftest.$ac_ext
13676 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13677 $as_echo "$ac_header_preproc" >&6; }
13678
13679 # So?  What about this header?
13680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13681   yes:no: )
13682     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13683 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13684     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13685 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13686     ac_header_preproc=yes
13687     ;;
13688   no:yes:* )
13689     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13690 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13691     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13692 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13693     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13694 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13695     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13696 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13697     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13698 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13699     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13700 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13701     ( cat <<\_ASBOX
13702 ## ---------------------------------------- ##
13703 ## Report this to pgsql-bugs@postgresql.org ##
13704 ## ---------------------------------------- ##
13705 _ASBOX
13706      ) | sed "s/^/$as_me: WARNING:     /" >&2
13707     ;;
13708 esac
13709 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13710 $as_echo_n "checking for $ac_header... " >&6; }
13711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13712   $as_echo_n "(cached) " >&6
13713 else
13714   eval "$as_ac_Header=\$ac_header_preproc"
13715 fi
13716 ac_res=`eval 'as_val=${'$as_ac_Header'}
13717                  $as_echo "$as_val"'`
13718                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13719 $as_echo "$ac_res" >&6; }
13720
13721 fi
13722 as_val=`eval 'as_val=${'$as_ac_Header'}
13723                  $as_echo "$as_val"'`
13724    if test "x$as_val" = x""yes; then
13725   cat >>confdefs.h <<_ACEOF
13726 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13727 _ACEOF
13728
13729 else
13730   { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13731 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13732    { (exit 1); exit 1; }; }
13733 fi
13734
13735 done
13736
13737   else
13738
13739 for ac_header in winldap.h
13740 do
13741 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13742 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13743 $as_echo_n "checking for $ac_header... " >&6; }
13744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13745   $as_echo_n "(cached) " >&6
13746 else
13747   cat >conftest.$ac_ext <<_ACEOF
13748 /* confdefs.h.  */
13749 _ACEOF
13750 cat confdefs.h >>conftest.$ac_ext
13751 cat >>conftest.$ac_ext <<_ACEOF
13752 /* end confdefs.h.  */
13753 $ac_includes_default
13754 #include <windows.h>
13755
13756
13757 #include <$ac_header>
13758 _ACEOF
13759 rm -f conftest.$ac_objext
13760 if { (ac_try="$ac_compile"
13761 case "(($ac_try" in
13762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13763   *) ac_try_echo=$ac_try;;
13764 esac
13765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13766 $as_echo "$ac_try_echo") >&5
13767   (eval "$ac_compile") 2>conftest.er1
13768   ac_status=$?
13769   grep -v '^ *+' conftest.er1 >conftest.err
13770   rm -f conftest.er1
13771   cat conftest.err >&5
13772   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773   (exit $ac_status); } && {
13774          test -z "$ac_c_werror_flag" ||
13775          test ! -s conftest.err
13776        } && test -s conftest.$ac_objext; then
13777   eval "$as_ac_Header=yes"
13778 else
13779   $as_echo "$as_me: failed program was:" >&5
13780 sed 's/^/| /' conftest.$ac_ext >&5
13781
13782         eval "$as_ac_Header=no"
13783 fi
13784
13785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13786 fi
13787 ac_res=`eval 'as_val=${'$as_ac_Header'}
13788                  $as_echo "$as_val"'`
13789                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13790 $as_echo "$ac_res" >&6; }
13791 as_val=`eval 'as_val=${'$as_ac_Header'}
13792                  $as_echo "$as_val"'`
13793    if test "x$as_val" = x""yes; then
13794   cat >>confdefs.h <<_ACEOF
13795 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13796 _ACEOF
13797
13798 else
13799   { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13800 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13801    { (exit 1); exit 1; }; }
13802 fi
13803
13804 done
13805
13806   fi
13807 fi
13808
13809 if test "$with_bonjour" = yes ; then
13810   if test "${ac_cv_header_dns_sd_h+set}" = set; then
13811   { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13812 $as_echo_n "checking for dns_sd.h... " >&6; }
13813 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13814   $as_echo_n "(cached) " >&6
13815 fi
13816 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13817 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13818 else
13819   # Is the header compilable?
13820 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
13821 $as_echo_n "checking dns_sd.h usability... " >&6; }
13822 cat >conftest.$ac_ext <<_ACEOF
13823 /* confdefs.h.  */
13824 _ACEOF
13825 cat confdefs.h >>conftest.$ac_ext
13826 cat >>conftest.$ac_ext <<_ACEOF
13827 /* end confdefs.h.  */
13828 $ac_includes_default
13829 #include <dns_sd.h>
13830 _ACEOF
13831 rm -f conftest.$ac_objext
13832 if { (ac_try="$ac_compile"
13833 case "(($ac_try" in
13834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13835   *) ac_try_echo=$ac_try;;
13836 esac
13837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13838 $as_echo "$ac_try_echo") >&5
13839   (eval "$ac_compile") 2>conftest.er1
13840   ac_status=$?
13841   grep -v '^ *+' conftest.er1 >conftest.err
13842   rm -f conftest.er1
13843   cat conftest.err >&5
13844   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845   (exit $ac_status); } && {
13846          test -z "$ac_c_werror_flag" ||
13847          test ! -s conftest.err
13848        } && test -s conftest.$ac_objext; then
13849   ac_header_compiler=yes
13850 else
13851   $as_echo "$as_me: failed program was:" >&5
13852 sed 's/^/| /' conftest.$ac_ext >&5
13853
13854         ac_header_compiler=no
13855 fi
13856
13857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13858 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13859 $as_echo "$ac_header_compiler" >&6; }
13860
13861 # Is the header present?
13862 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
13863 $as_echo_n "checking dns_sd.h presence... " >&6; }
13864 cat >conftest.$ac_ext <<_ACEOF
13865 /* confdefs.h.  */
13866 _ACEOF
13867 cat confdefs.h >>conftest.$ac_ext
13868 cat >>conftest.$ac_ext <<_ACEOF
13869 /* end confdefs.h.  */
13870 #include <dns_sd.h>
13871 _ACEOF
13872 if { (ac_try="$ac_cpp conftest.$ac_ext"
13873 case "(($ac_try" in
13874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13875   *) ac_try_echo=$ac_try;;
13876 esac
13877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13878 $as_echo "$ac_try_echo") >&5
13879   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13880   ac_status=$?
13881   grep -v '^ *+' conftest.er1 >conftest.err
13882   rm -f conftest.er1
13883   cat conftest.err >&5
13884   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885   (exit $ac_status); } >/dev/null && {
13886          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13887          test ! -s conftest.err
13888        }; then
13889   ac_header_preproc=yes
13890 else
13891   $as_echo "$as_me: failed program was:" >&5
13892 sed 's/^/| /' conftest.$ac_ext >&5
13893
13894   ac_header_preproc=no
13895 fi
13896
13897 rm -f conftest.err conftest.$ac_ext
13898 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13899 $as_echo "$ac_header_preproc" >&6; }
13900
13901 # So?  What about this header?
13902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13903   yes:no: )
13904     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
13905 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13906     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
13907 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
13908     ac_header_preproc=yes
13909     ;;
13910   no:yes:* )
13911     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
13912 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
13913     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&5
13914 $as_echo "$as_me: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&2;}
13915     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
13916 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
13917     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&5
13918 $as_echo "$as_me: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13919     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
13920 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
13921     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
13922 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
13923     ( cat <<\_ASBOX
13924 ## ---------------------------------------- ##
13925 ## Report this to pgsql-bugs@postgresql.org ##
13926 ## ---------------------------------------- ##
13927 _ASBOX
13928      ) | sed "s/^/$as_me: WARNING:     /" >&2
13929     ;;
13930 esac
13931 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13932 $as_echo_n "checking for dns_sd.h... " >&6; }
13933 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13934   $as_echo_n "(cached) " >&6
13935 else
13936   ac_cv_header_dns_sd_h=$ac_header_preproc
13937 fi
13938 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13939 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13940
13941 fi
13942 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
13943   :
13944 else
13945   { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
13946 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
13947    { (exit 1); exit 1; }; }
13948 fi
13949
13950
13951 fi
13952
13953 # for contrib/uuid-ossp
13954 if test "$with_ossp_uuid" = yes ; then
13955
13956 for ac_header in ossp/uuid.h
13957 do
13958 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13960   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13961 $as_echo_n "checking for $ac_header... " >&6; }
13962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13963   $as_echo_n "(cached) " >&6
13964 fi
13965 ac_res=`eval 'as_val=${'$as_ac_Header'}
13966                  $as_echo "$as_val"'`
13967                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13968 $as_echo "$ac_res" >&6; }
13969 else
13970   # Is the header compilable?
13971 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13972 $as_echo_n "checking $ac_header usability... " >&6; }
13973 cat >conftest.$ac_ext <<_ACEOF
13974 /* confdefs.h.  */
13975 _ACEOF
13976 cat confdefs.h >>conftest.$ac_ext
13977 cat >>conftest.$ac_ext <<_ACEOF
13978 /* end confdefs.h.  */
13979 $ac_includes_default
13980 #include <$ac_header>
13981 _ACEOF
13982 rm -f conftest.$ac_objext
13983 if { (ac_try="$ac_compile"
13984 case "(($ac_try" in
13985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13986   *) ac_try_echo=$ac_try;;
13987 esac
13988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13989 $as_echo "$ac_try_echo") >&5
13990   (eval "$ac_compile") 2>conftest.er1
13991   ac_status=$?
13992   grep -v '^ *+' conftest.er1 >conftest.err
13993   rm -f conftest.er1
13994   cat conftest.err >&5
13995   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996   (exit $ac_status); } && {
13997          test -z "$ac_c_werror_flag" ||
13998          test ! -s conftest.err
13999        } && test -s conftest.$ac_objext; then
14000   ac_header_compiler=yes
14001 else
14002   $as_echo "$as_me: failed program was:" >&5
14003 sed 's/^/| /' conftest.$ac_ext >&5
14004
14005         ac_header_compiler=no
14006 fi
14007
14008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14009 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14010 $as_echo "$ac_header_compiler" >&6; }
14011
14012 # Is the header present?
14013 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14014 $as_echo_n "checking $ac_header presence... " >&6; }
14015 cat >conftest.$ac_ext <<_ACEOF
14016 /* confdefs.h.  */
14017 _ACEOF
14018 cat confdefs.h >>conftest.$ac_ext
14019 cat >>conftest.$ac_ext <<_ACEOF
14020 /* end confdefs.h.  */
14021 #include <$ac_header>
14022 _ACEOF
14023 if { (ac_try="$ac_cpp conftest.$ac_ext"
14024 case "(($ac_try" in
14025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14026   *) ac_try_echo=$ac_try;;
14027 esac
14028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14029 $as_echo "$ac_try_echo") >&5
14030   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14031   ac_status=$?
14032   grep -v '^ *+' conftest.er1 >conftest.err
14033   rm -f conftest.er1
14034   cat conftest.err >&5
14035   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036   (exit $ac_status); } >/dev/null && {
14037          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14038          test ! -s conftest.err
14039        }; then
14040   ac_header_preproc=yes
14041 else
14042   $as_echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14044
14045   ac_header_preproc=no
14046 fi
14047
14048 rm -f conftest.err conftest.$ac_ext
14049 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14050 $as_echo "$ac_header_preproc" >&6; }
14051
14052 # So?  What about this header?
14053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14054   yes:no: )
14055     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14056 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14057     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14058 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14059     ac_header_preproc=yes
14060     ;;
14061   no:yes:* )
14062     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14063 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14064     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14065 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14066     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14067 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14068     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14069 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14070     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14071 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14072     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14073 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14074     ( cat <<\_ASBOX
14075 ## ---------------------------------------- ##
14076 ## Report this to pgsql-bugs@postgresql.org ##
14077 ## ---------------------------------------- ##
14078 _ASBOX
14079      ) | sed "s/^/$as_me: WARNING:     /" >&2
14080     ;;
14081 esac
14082 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14083 $as_echo_n "checking for $ac_header... " >&6; }
14084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14085   $as_echo_n "(cached) " >&6
14086 else
14087   eval "$as_ac_Header=\$ac_header_preproc"
14088 fi
14089 ac_res=`eval 'as_val=${'$as_ac_Header'}
14090                  $as_echo "$as_val"'`
14091                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14092 $as_echo "$ac_res" >&6; }
14093
14094 fi
14095 as_val=`eval 'as_val=${'$as_ac_Header'}
14096                  $as_echo "$as_val"'`
14097    if test "x$as_val" = x""yes; then
14098   cat >>confdefs.h <<_ACEOF
14099 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14100 _ACEOF
14101
14102 else
14103
14104
14105 for ac_header in uuid.h
14106 do
14107 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14109   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14110 $as_echo_n "checking for $ac_header... " >&6; }
14111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14112   $as_echo_n "(cached) " >&6
14113 fi
14114 ac_res=`eval 'as_val=${'$as_ac_Header'}
14115                  $as_echo "$as_val"'`
14116                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14117 $as_echo "$ac_res" >&6; }
14118 else
14119   # Is the header compilable?
14120 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14121 $as_echo_n "checking $ac_header usability... " >&6; }
14122 cat >conftest.$ac_ext <<_ACEOF
14123 /* confdefs.h.  */
14124 _ACEOF
14125 cat confdefs.h >>conftest.$ac_ext
14126 cat >>conftest.$ac_ext <<_ACEOF
14127 /* end confdefs.h.  */
14128 $ac_includes_default
14129 #include <$ac_header>
14130 _ACEOF
14131 rm -f conftest.$ac_objext
14132 if { (ac_try="$ac_compile"
14133 case "(($ac_try" in
14134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14135   *) ac_try_echo=$ac_try;;
14136 esac
14137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14138 $as_echo "$ac_try_echo") >&5
14139   (eval "$ac_compile") 2>conftest.er1
14140   ac_status=$?
14141   grep -v '^ *+' conftest.er1 >conftest.err
14142   rm -f conftest.er1
14143   cat conftest.err >&5
14144   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145   (exit $ac_status); } && {
14146          test -z "$ac_c_werror_flag" ||
14147          test ! -s conftest.err
14148        } && test -s conftest.$ac_objext; then
14149   ac_header_compiler=yes
14150 else
14151   $as_echo "$as_me: failed program was:" >&5
14152 sed 's/^/| /' conftest.$ac_ext >&5
14153
14154         ac_header_compiler=no
14155 fi
14156
14157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14158 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14159 $as_echo "$ac_header_compiler" >&6; }
14160
14161 # Is the header present?
14162 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14163 $as_echo_n "checking $ac_header presence... " >&6; }
14164 cat >conftest.$ac_ext <<_ACEOF
14165 /* confdefs.h.  */
14166 _ACEOF
14167 cat confdefs.h >>conftest.$ac_ext
14168 cat >>conftest.$ac_ext <<_ACEOF
14169 /* end confdefs.h.  */
14170 #include <$ac_header>
14171 _ACEOF
14172 if { (ac_try="$ac_cpp conftest.$ac_ext"
14173 case "(($ac_try" in
14174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14175   *) ac_try_echo=$ac_try;;
14176 esac
14177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14178 $as_echo "$ac_try_echo") >&5
14179   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14180   ac_status=$?
14181   grep -v '^ *+' conftest.er1 >conftest.err
14182   rm -f conftest.er1
14183   cat conftest.err >&5
14184   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185   (exit $ac_status); } >/dev/null && {
14186          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14187          test ! -s conftest.err
14188        }; then
14189   ac_header_preproc=yes
14190 else
14191   $as_echo "$as_me: failed program was:" >&5
14192 sed 's/^/| /' conftest.$ac_ext >&5
14193
14194   ac_header_preproc=no
14195 fi
14196
14197 rm -f conftest.err conftest.$ac_ext
14198 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14199 $as_echo "$ac_header_preproc" >&6; }
14200
14201 # So?  What about this header?
14202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14203   yes:no: )
14204     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14205 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14206     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14207 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14208     ac_header_preproc=yes
14209     ;;
14210   no:yes:* )
14211     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14212 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14213     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14214 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14215     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14216 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14217     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14218 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14219     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14220 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14221     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14222 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14223     ( cat <<\_ASBOX
14224 ## ---------------------------------------- ##
14225 ## Report this to pgsql-bugs@postgresql.org ##
14226 ## ---------------------------------------- ##
14227 _ASBOX
14228      ) | sed "s/^/$as_me: WARNING:     /" >&2
14229     ;;
14230 esac
14231 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14232 $as_echo_n "checking for $ac_header... " >&6; }
14233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14234   $as_echo_n "(cached) " >&6
14235 else
14236   eval "$as_ac_Header=\$ac_header_preproc"
14237 fi
14238 ac_res=`eval 'as_val=${'$as_ac_Header'}
14239                  $as_echo "$as_val"'`
14240                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14241 $as_echo "$ac_res" >&6; }
14242
14243 fi
14244 as_val=`eval 'as_val=${'$as_ac_Header'}
14245                  $as_echo "$as_val"'`
14246    if test "x$as_val" = x""yes; then
14247   cat >>confdefs.h <<_ACEOF
14248 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14249 _ACEOF
14250
14251 else
14252   { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
14253 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
14254    { (exit 1); exit 1; }; }
14255 fi
14256
14257 done
14258
14259 fi
14260
14261 done
14262
14263 fi
14264
14265
14266 ##
14267 ## Types, structures, compiler characteristics
14268 ##
14269
14270
14271  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14272 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14273 if test "${ac_cv_c_bigendian+set}" = set; then
14274   $as_echo_n "(cached) " >&6
14275 else
14276   ac_cv_c_bigendian=unknown
14277     # See if we're dealing with a universal compiler.
14278     cat >conftest.$ac_ext <<_ACEOF
14279 /* confdefs.h.  */
14280 _ACEOF
14281 cat confdefs.h >>conftest.$ac_ext
14282 cat >>conftest.$ac_ext <<_ACEOF
14283 /* end confdefs.h.  */
14284 #ifndef __APPLE_CC__
14285                not a universal capable compiler
14286              #endif
14287              typedef int dummy;
14288
14289 _ACEOF
14290 rm -f conftest.$ac_objext
14291 if { (ac_try="$ac_compile"
14292 case "(($ac_try" in
14293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14294   *) ac_try_echo=$ac_try;;
14295 esac
14296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14297 $as_echo "$ac_try_echo") >&5
14298   (eval "$ac_compile") 2>conftest.er1
14299   ac_status=$?
14300   grep -v '^ *+' conftest.er1 >conftest.err
14301   rm -f conftest.er1
14302   cat conftest.err >&5
14303   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304   (exit $ac_status); } && {
14305          test -z "$ac_c_werror_flag" ||
14306          test ! -s conftest.err
14307        } && test -s conftest.$ac_objext; then
14308
14309         # Check for potential -arch flags.  It is not universal unless
14310         # there are some -arch flags.  Note that *ppc* also matches
14311         # ppc64.  This check is also rather less than ideal.
14312         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
14313           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14314         esac
14315 else
14316   $as_echo "$as_me: failed program was:" >&5
14317 sed 's/^/| /' conftest.$ac_ext >&5
14318
14319
14320 fi
14321
14322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14323     if test $ac_cv_c_bigendian = unknown; then
14324       # See if sys/param.h defines the BYTE_ORDER macro.
14325       cat >conftest.$ac_ext <<_ACEOF
14326 /* confdefs.h.  */
14327 _ACEOF
14328 cat confdefs.h >>conftest.$ac_ext
14329 cat >>conftest.$ac_ext <<_ACEOF
14330 /* end confdefs.h.  */
14331 #include <sys/types.h>
14332              #include <sys/param.h>
14333
14334 int
14335 main ()
14336 {
14337 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14338                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14339                      && LITTLE_ENDIAN)
14340               bogus endian macros
14341              #endif
14342
14343   ;
14344   return 0;
14345 }
14346 _ACEOF
14347 rm -f conftest.$ac_objext
14348 if { (ac_try="$ac_compile"
14349 case "(($ac_try" in
14350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14351   *) ac_try_echo=$ac_try;;
14352 esac
14353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14354 $as_echo "$ac_try_echo") >&5
14355   (eval "$ac_compile") 2>conftest.er1
14356   ac_status=$?
14357   grep -v '^ *+' conftest.er1 >conftest.err
14358   rm -f conftest.er1
14359   cat conftest.err >&5
14360   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361   (exit $ac_status); } && {
14362          test -z "$ac_c_werror_flag" ||
14363          test ! -s conftest.err
14364        } && test -s conftest.$ac_objext; then
14365   # It does; now see whether it defined to BIG_ENDIAN or not.
14366          cat >conftest.$ac_ext <<_ACEOF
14367 /* confdefs.h.  */
14368 _ACEOF
14369 cat confdefs.h >>conftest.$ac_ext
14370 cat >>conftest.$ac_ext <<_ACEOF
14371 /* end confdefs.h.  */
14372 #include <sys/types.h>
14373                 #include <sys/param.h>
14374
14375 int
14376 main ()
14377 {
14378 #if BYTE_ORDER != BIG_ENDIAN
14379                  not big endian
14380                 #endif
14381
14382   ;
14383   return 0;
14384 }
14385 _ACEOF
14386 rm -f conftest.$ac_objext
14387 if { (ac_try="$ac_compile"
14388 case "(($ac_try" in
14389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14390   *) ac_try_echo=$ac_try;;
14391 esac
14392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14393 $as_echo "$ac_try_echo") >&5
14394   (eval "$ac_compile") 2>conftest.er1
14395   ac_status=$?
14396   grep -v '^ *+' conftest.er1 >conftest.err
14397   rm -f conftest.er1
14398   cat conftest.err >&5
14399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400   (exit $ac_status); } && {
14401          test -z "$ac_c_werror_flag" ||
14402          test ! -s conftest.err
14403        } && test -s conftest.$ac_objext; then
14404   ac_cv_c_bigendian=yes
14405 else
14406   $as_echo "$as_me: failed program was:" >&5
14407 sed 's/^/| /' conftest.$ac_ext >&5
14408
14409         ac_cv_c_bigendian=no
14410 fi
14411
14412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14413 else
14414   $as_echo "$as_me: failed program was:" >&5
14415 sed 's/^/| /' conftest.$ac_ext >&5
14416
14417
14418 fi
14419
14420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14421     fi
14422     if test $ac_cv_c_bigendian = unknown; then
14423       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14424       cat >conftest.$ac_ext <<_ACEOF
14425 /* confdefs.h.  */
14426 _ACEOF
14427 cat confdefs.h >>conftest.$ac_ext
14428 cat >>conftest.$ac_ext <<_ACEOF
14429 /* end confdefs.h.  */
14430 #include <limits.h>
14431
14432 int
14433 main ()
14434 {
14435 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14436               bogus endian macros
14437              #endif
14438
14439   ;
14440   return 0;
14441 }
14442 _ACEOF
14443 rm -f conftest.$ac_objext
14444 if { (ac_try="$ac_compile"
14445 case "(($ac_try" in
14446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14447   *) ac_try_echo=$ac_try;;
14448 esac
14449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14450 $as_echo "$ac_try_echo") >&5
14451   (eval "$ac_compile") 2>conftest.er1
14452   ac_status=$?
14453   grep -v '^ *+' conftest.er1 >conftest.err
14454   rm -f conftest.er1
14455   cat conftest.err >&5
14456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457   (exit $ac_status); } && {
14458          test -z "$ac_c_werror_flag" ||
14459          test ! -s conftest.err
14460        } && test -s conftest.$ac_objext; then
14461   # It does; now see whether it defined to _BIG_ENDIAN or not.
14462          cat >conftest.$ac_ext <<_ACEOF
14463 /* confdefs.h.  */
14464 _ACEOF
14465 cat confdefs.h >>conftest.$ac_ext
14466 cat >>conftest.$ac_ext <<_ACEOF
14467 /* end confdefs.h.  */
14468 #include <limits.h>
14469
14470 int
14471 main ()
14472 {
14473 #ifndef _BIG_ENDIAN
14474                  not big endian
14475                 #endif
14476
14477   ;
14478   return 0;
14479 }
14480 _ACEOF
14481 rm -f conftest.$ac_objext
14482 if { (ac_try="$ac_compile"
14483 case "(($ac_try" in
14484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14485   *) ac_try_echo=$ac_try;;
14486 esac
14487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14488 $as_echo "$ac_try_echo") >&5
14489   (eval "$ac_compile") 2>conftest.er1
14490   ac_status=$?
14491   grep -v '^ *+' conftest.er1 >conftest.err
14492   rm -f conftest.er1
14493   cat conftest.err >&5
14494   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495   (exit $ac_status); } && {
14496          test -z "$ac_c_werror_flag" ||
14497          test ! -s conftest.err
14498        } && test -s conftest.$ac_objext; then
14499   ac_cv_c_bigendian=yes
14500 else
14501   $as_echo "$as_me: failed program was:" >&5
14502 sed 's/^/| /' conftest.$ac_ext >&5
14503
14504         ac_cv_c_bigendian=no
14505 fi
14506
14507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14508 else
14509   $as_echo "$as_me: failed program was:" >&5
14510 sed 's/^/| /' conftest.$ac_ext >&5
14511
14512
14513 fi
14514
14515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14516     fi
14517     if test $ac_cv_c_bigendian = unknown; then
14518       # Compile a test program.
14519       if test "$cross_compiling" = yes; then
14520   # Try to guess by grepping values from an object file.
14521          cat >conftest.$ac_ext <<_ACEOF
14522 /* confdefs.h.  */
14523 _ACEOF
14524 cat confdefs.h >>conftest.$ac_ext
14525 cat >>conftest.$ac_ext <<_ACEOF
14526 /* end confdefs.h.  */
14527 short int ascii_mm[] =
14528                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14529                 short int ascii_ii[] =
14530                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14531                 int use_ascii (int i) {
14532                   return ascii_mm[i] + ascii_ii[i];
14533                 }
14534                 short int ebcdic_ii[] =
14535                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14536                 short int ebcdic_mm[] =
14537                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14538                 int use_ebcdic (int i) {
14539                   return ebcdic_mm[i] + ebcdic_ii[i];
14540                 }
14541                 extern int foo;
14542
14543 int
14544 main ()
14545 {
14546 return use_ascii (foo) == use_ebcdic (foo);
14547   ;
14548   return 0;
14549 }
14550 _ACEOF
14551 rm -f conftest.$ac_objext
14552 if { (ac_try="$ac_compile"
14553 case "(($ac_try" in
14554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14555   *) ac_try_echo=$ac_try;;
14556 esac
14557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14558 $as_echo "$ac_try_echo") >&5
14559   (eval "$ac_compile") 2>conftest.er1
14560   ac_status=$?
14561   grep -v '^ *+' conftest.er1 >conftest.err
14562   rm -f conftest.er1
14563   cat conftest.err >&5
14564   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565   (exit $ac_status); } && {
14566          test -z "$ac_c_werror_flag" ||
14567          test ! -s conftest.err
14568        } && test -s conftest.$ac_objext; then
14569   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14570               ac_cv_c_bigendian=yes
14571             fi
14572             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14573               if test "$ac_cv_c_bigendian" = unknown; then
14574                 ac_cv_c_bigendian=no
14575               else
14576                 # finding both strings is unlikely to happen, but who knows?
14577                 ac_cv_c_bigendian=unknown
14578               fi
14579             fi
14580 else
14581   $as_echo "$as_me: failed program was:" >&5
14582 sed 's/^/| /' conftest.$ac_ext >&5
14583
14584
14585 fi
14586
14587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14588 else
14589   cat >conftest.$ac_ext <<_ACEOF
14590 /* confdefs.h.  */
14591 _ACEOF
14592 cat confdefs.h >>conftest.$ac_ext
14593 cat >>conftest.$ac_ext <<_ACEOF
14594 /* end confdefs.h.  */
14595 $ac_includes_default
14596 int
14597 main ()
14598 {
14599
14600              /* Are we little or big endian?  From Harbison&Steele.  */
14601              union
14602              {
14603                long int l;
14604                char c[sizeof (long int)];
14605              } u;
14606              u.l = 1;
14607              return u.c[sizeof (long int) - 1] == 1;
14608
14609   ;
14610   return 0;
14611 }
14612 _ACEOF
14613 rm -f conftest$ac_exeext
14614 if { (ac_try="$ac_link"
14615 case "(($ac_try" in
14616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14617   *) ac_try_echo=$ac_try;;
14618 esac
14619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14620 $as_echo "$ac_try_echo") >&5
14621   (eval "$ac_link") 2>&5
14622   ac_status=$?
14623   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14625   { (case "(($ac_try" in
14626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14627   *) ac_try_echo=$ac_try;;
14628 esac
14629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14630 $as_echo "$ac_try_echo") >&5
14631   (eval "$ac_try") 2>&5
14632   ac_status=$?
14633   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634   (exit $ac_status); }; }; then
14635   ac_cv_c_bigendian=no
14636 else
14637   $as_echo "$as_me: program exited with status $ac_status" >&5
14638 $as_echo "$as_me: failed program was:" >&5
14639 sed 's/^/| /' conftest.$ac_ext >&5
14640
14641 ( exit $ac_status )
14642 ac_cv_c_bigendian=yes
14643 fi
14644 rm -rf conftest.dSYM
14645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14646 fi
14647
14648
14649     fi
14650 fi
14651 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14652 $as_echo "$ac_cv_c_bigendian" >&6; }
14653  case $ac_cv_c_bigendian in #(
14654    yes)
14655      cat >>confdefs.h <<\_ACEOF
14656 #define WORDS_BIGENDIAN 1
14657 _ACEOF
14658 ;; #(
14659    no)
14660       ;; #(
14661    universal)
14662
14663 cat >>confdefs.h <<\_ACEOF
14664 #define AC_APPLE_UNIVERSAL_BUILD 1
14665 _ACEOF
14666
14667      ;; #(
14668    *)
14669      { { $as_echo "$as_me:$LINENO: error: unknown endianness
14670  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14671 $as_echo "$as_me: error: unknown endianness
14672  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14673    { (exit 1); exit 1; }; } ;;
14674  esac
14675
14676 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14677 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14678 if test "${ac_cv_c_const+set}" = set; then
14679   $as_echo_n "(cached) " >&6
14680 else
14681   cat >conftest.$ac_ext <<_ACEOF
14682 /* confdefs.h.  */
14683 _ACEOF
14684 cat confdefs.h >>conftest.$ac_ext
14685 cat >>conftest.$ac_ext <<_ACEOF
14686 /* end confdefs.h.  */
14687
14688 int
14689 main ()
14690 {
14691 /* FIXME: Include the comments suggested by Paul. */
14692 #ifndef __cplusplus
14693   /* Ultrix mips cc rejects this.  */
14694   typedef int charset[2];
14695   const charset cs;
14696   /* SunOS 4.1.1 cc rejects this.  */
14697   char const *const *pcpcc;
14698   char **ppc;
14699   /* NEC SVR4.0.2 mips cc rejects this.  */
14700   struct point {int x, y;};
14701   static struct point const zero = {0,0};
14702   /* AIX XL C 1.02.0.0 rejects this.
14703      It does not let you subtract one const X* pointer from another in
14704      an arm of an if-expression whose if-part is not a constant
14705      expression */
14706   const char *g = "string";
14707   pcpcc = &g + (g ? g-g : 0);
14708   /* HPUX 7.0 cc rejects these. */
14709   ++pcpcc;
14710   ppc = (char**) pcpcc;
14711   pcpcc = (char const *const *) ppc;
14712   { /* SCO 3.2v4 cc rejects this.  */
14713     char *t;
14714     char const *s = 0 ? (char *) 0 : (char const *) 0;
14715
14716     *t++ = 0;
14717     if (s) return 0;
14718   }
14719   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14720     int x[] = {25, 17};
14721     const int *foo = &x[0];
14722     ++foo;
14723   }
14724   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14725     typedef const int *iptr;
14726     iptr p = 0;
14727     ++p;
14728   }
14729   { /* AIX XL C 1.02.0.0 rejects this saying
14730        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14731     struct s { int j; const int *ap[3]; };
14732     struct s *b; b->j = 5;
14733   }
14734   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14735     const int foo = 10;
14736     if (!foo) return 0;
14737   }
14738   return !cs[0] && !zero.x;
14739 #endif
14740
14741   ;
14742   return 0;
14743 }
14744 _ACEOF
14745 rm -f conftest.$ac_objext
14746 if { (ac_try="$ac_compile"
14747 case "(($ac_try" in
14748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14749   *) ac_try_echo=$ac_try;;
14750 esac
14751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14752 $as_echo "$ac_try_echo") >&5
14753   (eval "$ac_compile") 2>conftest.er1
14754   ac_status=$?
14755   grep -v '^ *+' conftest.er1 >conftest.err
14756   rm -f conftest.er1
14757   cat conftest.err >&5
14758   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759   (exit $ac_status); } && {
14760          test -z "$ac_c_werror_flag" ||
14761          test ! -s conftest.err
14762        } && test -s conftest.$ac_objext; then
14763   ac_cv_c_const=yes
14764 else
14765   $as_echo "$as_me: failed program was:" >&5
14766 sed 's/^/| /' conftest.$ac_ext >&5
14767
14768         ac_cv_c_const=no
14769 fi
14770
14771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14772 fi
14773 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14774 $as_echo "$ac_cv_c_const" >&6; }
14775 if test $ac_cv_c_const = no; then
14776
14777 cat >>confdefs.h <<\_ACEOF
14778 #define const /**/
14779 _ACEOF
14780
14781 fi
14782
14783 { $as_echo "$as_me:$LINENO: checking for inline" >&5
14784 $as_echo_n "checking for inline... " >&6; }
14785 if test "${ac_cv_c_inline+set}" = set; then
14786   $as_echo_n "(cached) " >&6
14787 else
14788   ac_cv_c_inline=no
14789 for ac_kw in inline __inline__ __inline; do
14790   cat >conftest.$ac_ext <<_ACEOF
14791 /* confdefs.h.  */
14792 _ACEOF
14793 cat confdefs.h >>conftest.$ac_ext
14794 cat >>conftest.$ac_ext <<_ACEOF
14795 /* end confdefs.h.  */
14796 #ifndef __cplusplus
14797 typedef int foo_t;
14798 static $ac_kw foo_t static_foo () {return 0; }
14799 $ac_kw foo_t foo () {return 0; }
14800 #endif
14801
14802 _ACEOF
14803 rm -f conftest.$ac_objext
14804 if { (ac_try="$ac_compile"
14805 case "(($ac_try" in
14806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14807   *) ac_try_echo=$ac_try;;
14808 esac
14809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14810 $as_echo "$ac_try_echo") >&5
14811   (eval "$ac_compile") 2>conftest.er1
14812   ac_status=$?
14813   grep -v '^ *+' conftest.er1 >conftest.err
14814   rm -f conftest.er1
14815   cat conftest.err >&5
14816   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817   (exit $ac_status); } && {
14818          test -z "$ac_c_werror_flag" ||
14819          test ! -s conftest.err
14820        } && test -s conftest.$ac_objext; then
14821   ac_cv_c_inline=$ac_kw
14822 else
14823   $as_echo "$as_me: failed program was:" >&5
14824 sed 's/^/| /' conftest.$ac_ext >&5
14825
14826
14827 fi
14828
14829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14830   test "$ac_cv_c_inline" != no && break
14831 done
14832
14833 fi
14834 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14835 $as_echo "$ac_cv_c_inline" >&6; }
14836
14837
14838 case $ac_cv_c_inline in
14839   inline | yes) ;;
14840   *)
14841     case $ac_cv_c_inline in
14842       no) ac_val=;;
14843       *) ac_val=$ac_cv_c_inline;;
14844     esac
14845     cat >>confdefs.h <<_ACEOF
14846 #ifndef __cplusplus
14847 #define inline $ac_val
14848 #endif
14849 _ACEOF
14850     ;;
14851 esac
14852
14853 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
14854 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
14855 if test "${pgac_cv_c_inline_quietly+set}" = set; then
14856   $as_echo_n "(cached) " >&6
14857 else
14858   pgac_cv_c_inline_quietly=no
14859   if test "$ac_cv_c_inline" != no; then
14860     pgac_c_inline_save_werror=$ac_c_werror_flag
14861     ac_c_werror_flag=yes
14862     cat >conftest.$ac_ext <<_ACEOF
14863 /* confdefs.h.  */
14864 _ACEOF
14865 cat confdefs.h >>conftest.$ac_ext
14866 cat >>conftest.$ac_ext <<_ACEOF
14867 /* end confdefs.h.  */
14868 static inline int fun () {return 0;}
14869 int
14870 main ()
14871 {
14872
14873   ;
14874   return 0;
14875 }
14876 _ACEOF
14877 rm -f conftest.$ac_objext conftest$ac_exeext
14878 if { (ac_try="$ac_link"
14879 case "(($ac_try" in
14880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14881   *) ac_try_echo=$ac_try;;
14882 esac
14883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14884 $as_echo "$ac_try_echo") >&5
14885   (eval "$ac_link") 2>conftest.er1
14886   ac_status=$?
14887   grep -v '^ *+' conftest.er1 >conftest.err
14888   rm -f conftest.er1
14889   cat conftest.err >&5
14890   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891   (exit $ac_status); } && {
14892          test -z "$ac_c_werror_flag" ||
14893          test ! -s conftest.err
14894        } && test -s conftest$ac_exeext && {
14895          test "$cross_compiling" = yes ||
14896          $as_test_x conftest$ac_exeext
14897        }; then
14898   pgac_cv_c_inline_quietly=yes
14899 else
14900   $as_echo "$as_me: failed program was:" >&5
14901 sed 's/^/| /' conftest.$ac_ext >&5
14902
14903
14904 fi
14905
14906 rm -rf conftest.dSYM
14907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14908       conftest$ac_exeext conftest.$ac_ext
14909     ac_c_werror_flag=$pgac_c_inline_save_werror
14910   fi
14911 fi
14912 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
14913 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
14914 if test "$pgac_cv_c_inline_quietly" != no; then
14915
14916 cat >>confdefs.h <<_ACEOF
14917 #define USE_INLINE 1
14918 _ACEOF
14919
14920 fi
14921
14922 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
14923 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
14924 if test "${ac_cv_c_stringize+set}" = set; then
14925   $as_echo_n "(cached) " >&6
14926 else
14927   cat >conftest.$ac_ext <<_ACEOF
14928 /* confdefs.h.  */
14929 _ACEOF
14930 cat confdefs.h >>conftest.$ac_ext
14931 cat >>conftest.$ac_ext <<_ACEOF
14932 /* end confdefs.h.  */
14933 #define x(y) #y
14934
14935 char *s = x(teststring);
14936 _ACEOF
14937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14938   $EGREP "#teststring" >/dev/null 2>&1; then
14939   ac_cv_c_stringize=no
14940 else
14941   ac_cv_c_stringize=yes
14942 fi
14943 rm -f conftest*
14944
14945 fi
14946 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
14947 $as_echo "$ac_cv_c_stringize" >&6; }
14948 if test $ac_cv_c_stringize = yes; then
14949
14950 cat >>confdefs.h <<\_ACEOF
14951 #define HAVE_STRINGIZE 1
14952 _ACEOF
14953
14954 fi
14955
14956 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
14957 $as_echo_n "checking for signed types... " >&6; }
14958 if test "${pgac_cv_c_signed+set}" = set; then
14959   $as_echo_n "(cached) " >&6
14960 else
14961   cat >conftest.$ac_ext <<_ACEOF
14962 /* confdefs.h.  */
14963 _ACEOF
14964 cat confdefs.h >>conftest.$ac_ext
14965 cat >>conftest.$ac_ext <<_ACEOF
14966 /* end confdefs.h.  */
14967
14968 int
14969 main ()
14970 {
14971 signed char c; signed short s; signed int i;
14972   ;
14973   return 0;
14974 }
14975 _ACEOF
14976 rm -f conftest.$ac_objext
14977 if { (ac_try="$ac_compile"
14978 case "(($ac_try" in
14979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14980   *) ac_try_echo=$ac_try;;
14981 esac
14982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14983 $as_echo "$ac_try_echo") >&5
14984   (eval "$ac_compile") 2>conftest.er1
14985   ac_status=$?
14986   grep -v '^ *+' conftest.er1 >conftest.err
14987   rm -f conftest.er1
14988   cat conftest.err >&5
14989   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990   (exit $ac_status); } && {
14991          test -z "$ac_c_werror_flag" ||
14992          test ! -s conftest.err
14993        } && test -s conftest.$ac_objext; then
14994   pgac_cv_c_signed=yes
14995 else
14996   $as_echo "$as_me: failed program was:" >&5
14997 sed 's/^/| /' conftest.$ac_ext >&5
14998
14999         pgac_cv_c_signed=no
15000 fi
15001
15002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15003 fi
15004 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
15005 $as_echo "$pgac_cv_c_signed" >&6; }
15006 if test x"$pgac_cv_c_signed" = xno ; then
15007
15008 cat >>confdefs.h <<\_ACEOF
15009 #define signed /**/
15010 _ACEOF
15011
15012 fi
15013 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
15014 $as_echo_n "checking for working volatile... " >&6; }
15015 if test "${ac_cv_c_volatile+set}" = set; then
15016   $as_echo_n "(cached) " >&6
15017 else
15018   cat >conftest.$ac_ext <<_ACEOF
15019 /* confdefs.h.  */
15020 _ACEOF
15021 cat confdefs.h >>conftest.$ac_ext
15022 cat >>conftest.$ac_ext <<_ACEOF
15023 /* end confdefs.h.  */
15024
15025 int
15026 main ()
15027 {
15028
15029 volatile int x;
15030 int * volatile y = (int *) 0;
15031 return !x && !y;
15032   ;
15033   return 0;
15034 }
15035 _ACEOF
15036 rm -f conftest.$ac_objext
15037 if { (ac_try="$ac_compile"
15038 case "(($ac_try" in
15039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15040   *) ac_try_echo=$ac_try;;
15041 esac
15042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15043 $as_echo "$ac_try_echo") >&5
15044   (eval "$ac_compile") 2>conftest.er1
15045   ac_status=$?
15046   grep -v '^ *+' conftest.er1 >conftest.err
15047   rm -f conftest.er1
15048   cat conftest.err >&5
15049   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050   (exit $ac_status); } && {
15051          test -z "$ac_c_werror_flag" ||
15052          test ! -s conftest.err
15053        } && test -s conftest.$ac_objext; then
15054   ac_cv_c_volatile=yes
15055 else
15056   $as_echo "$as_me: failed program was:" >&5
15057 sed 's/^/| /' conftest.$ac_ext >&5
15058
15059         ac_cv_c_volatile=no
15060 fi
15061
15062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15063 fi
15064 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
15065 $as_echo "$ac_cv_c_volatile" >&6; }
15066 if test $ac_cv_c_volatile = no; then
15067
15068 cat >>confdefs.h <<\_ACEOF
15069 #define volatile /**/
15070 _ACEOF
15071
15072 fi
15073
15074 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
15075 $as_echo_n "checking for __func__... " >&6; }
15076 if test "${pgac_cv_funcname_func_support+set}" = set; then
15077   $as_echo_n "(cached) " >&6
15078 else
15079   cat >conftest.$ac_ext <<_ACEOF
15080 /* confdefs.h.  */
15081 _ACEOF
15082 cat confdefs.h >>conftest.$ac_ext
15083 cat >>conftest.$ac_ext <<_ACEOF
15084 /* end confdefs.h.  */
15085 #include <stdio.h>
15086 int
15087 main ()
15088 {
15089 printf("%s\n", __func__);
15090   ;
15091   return 0;
15092 }
15093 _ACEOF
15094 rm -f conftest.$ac_objext
15095 if { (ac_try="$ac_compile"
15096 case "(($ac_try" in
15097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15098   *) ac_try_echo=$ac_try;;
15099 esac
15100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15101 $as_echo "$ac_try_echo") >&5
15102   (eval "$ac_compile") 2>conftest.er1
15103   ac_status=$?
15104   grep -v '^ *+' conftest.er1 >conftest.err
15105   rm -f conftest.er1
15106   cat conftest.err >&5
15107   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108   (exit $ac_status); } && {
15109          test -z "$ac_c_werror_flag" ||
15110          test ! -s conftest.err
15111        } && test -s conftest.$ac_objext; then
15112   pgac_cv_funcname_func_support=yes
15113 else
15114   $as_echo "$as_me: failed program was:" >&5
15115 sed 's/^/| /' conftest.$ac_ext >&5
15116
15117         pgac_cv_funcname_func_support=no
15118 fi
15119
15120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15121 fi
15122 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
15123 $as_echo "$pgac_cv_funcname_func_support" >&6; }
15124 if test x"$pgac_cv_funcname_func_support" = xyes ; then
15125
15126 cat >>confdefs.h <<\_ACEOF
15127 #define HAVE_FUNCNAME__FUNC 1
15128 _ACEOF
15129
15130 else
15131 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
15132 $as_echo_n "checking for __FUNCTION__... " >&6; }
15133 if test "${pgac_cv_funcname_function_support+set}" = set; then
15134   $as_echo_n "(cached) " >&6
15135 else
15136   cat >conftest.$ac_ext <<_ACEOF
15137 /* confdefs.h.  */
15138 _ACEOF
15139 cat confdefs.h >>conftest.$ac_ext
15140 cat >>conftest.$ac_ext <<_ACEOF
15141 /* end confdefs.h.  */
15142 #include <stdio.h>
15143 int
15144 main ()
15145 {
15146 printf("%s\n", __FUNCTION__);
15147   ;
15148   return 0;
15149 }
15150 _ACEOF
15151 rm -f conftest.$ac_objext
15152 if { (ac_try="$ac_compile"
15153 case "(($ac_try" in
15154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15155   *) ac_try_echo=$ac_try;;
15156 esac
15157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15158 $as_echo "$ac_try_echo") >&5
15159   (eval "$ac_compile") 2>conftest.er1
15160   ac_status=$?
15161   grep -v '^ *+' conftest.er1 >conftest.err
15162   rm -f conftest.er1
15163   cat conftest.err >&5
15164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165   (exit $ac_status); } && {
15166          test -z "$ac_c_werror_flag" ||
15167          test ! -s conftest.err
15168        } && test -s conftest.$ac_objext; then
15169   pgac_cv_funcname_function_support=yes
15170 else
15171   $as_echo "$as_me: failed program was:" >&5
15172 sed 's/^/| /' conftest.$ac_ext >&5
15173
15174         pgac_cv_funcname_function_support=no
15175 fi
15176
15177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15178 fi
15179 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
15180 $as_echo "$pgac_cv_funcname_function_support" >&6; }
15181 if test x"$pgac_cv_funcname_function_support" = xyes ; then
15182
15183 cat >>confdefs.h <<\_ACEOF
15184 #define HAVE_FUNCNAME__FUNCTION 1
15185 _ACEOF
15186
15187 fi
15188 fi
15189 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
15190 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
15191 if test "${ac_cv_struct_tm+set}" = set; then
15192   $as_echo_n "(cached) " >&6
15193 else
15194   cat >conftest.$ac_ext <<_ACEOF
15195 /* confdefs.h.  */
15196 _ACEOF
15197 cat confdefs.h >>conftest.$ac_ext
15198 cat >>conftest.$ac_ext <<_ACEOF
15199 /* end confdefs.h.  */
15200 #include <sys/types.h>
15201 #include <time.h>
15202
15203 int
15204 main ()
15205 {
15206 struct tm tm;
15207                                      int *p = &tm.tm_sec;
15208                                      return !p;
15209   ;
15210   return 0;
15211 }
15212 _ACEOF
15213 rm -f conftest.$ac_objext
15214 if { (ac_try="$ac_compile"
15215 case "(($ac_try" in
15216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15217   *) ac_try_echo=$ac_try;;
15218 esac
15219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15220 $as_echo "$ac_try_echo") >&5
15221   (eval "$ac_compile") 2>conftest.er1
15222   ac_status=$?
15223   grep -v '^ *+' conftest.er1 >conftest.err
15224   rm -f conftest.er1
15225   cat conftest.err >&5
15226   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227   (exit $ac_status); } && {
15228          test -z "$ac_c_werror_flag" ||
15229          test ! -s conftest.err
15230        } && test -s conftest.$ac_objext; then
15231   ac_cv_struct_tm=time.h
15232 else
15233   $as_echo "$as_me: failed program was:" >&5
15234 sed 's/^/| /' conftest.$ac_ext >&5
15235
15236         ac_cv_struct_tm=sys/time.h
15237 fi
15238
15239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15240 fi
15241 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
15242 $as_echo "$ac_cv_struct_tm" >&6; }
15243 if test $ac_cv_struct_tm = sys/time.h; then
15244
15245 cat >>confdefs.h <<\_ACEOF
15246 #define TM_IN_SYS_TIME 1
15247 _ACEOF
15248
15249 fi
15250
15251 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
15252 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
15253 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
15254   $as_echo_n "(cached) " >&6
15255 else
15256   cat >conftest.$ac_ext <<_ACEOF
15257 /* confdefs.h.  */
15258 _ACEOF
15259 cat confdefs.h >>conftest.$ac_ext
15260 cat >>conftest.$ac_ext <<_ACEOF
15261 /* end confdefs.h.  */
15262 #include <sys/types.h>
15263 #include <$ac_cv_struct_tm>
15264
15265
15266 int
15267 main ()
15268 {
15269 static struct tm ac_aggr;
15270 if (ac_aggr.tm_zone)
15271 return 0;
15272   ;
15273   return 0;
15274 }
15275 _ACEOF
15276 rm -f conftest.$ac_objext
15277 if { (ac_try="$ac_compile"
15278 case "(($ac_try" in
15279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15280   *) ac_try_echo=$ac_try;;
15281 esac
15282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15283 $as_echo "$ac_try_echo") >&5
15284   (eval "$ac_compile") 2>conftest.er1
15285   ac_status=$?
15286   grep -v '^ *+' conftest.er1 >conftest.err
15287   rm -f conftest.er1
15288   cat conftest.err >&5
15289   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290   (exit $ac_status); } && {
15291          test -z "$ac_c_werror_flag" ||
15292          test ! -s conftest.err
15293        } && test -s conftest.$ac_objext; then
15294   ac_cv_member_struct_tm_tm_zone=yes
15295 else
15296   $as_echo "$as_me: failed program was:" >&5
15297 sed 's/^/| /' conftest.$ac_ext >&5
15298
15299         cat >conftest.$ac_ext <<_ACEOF
15300 /* confdefs.h.  */
15301 _ACEOF
15302 cat confdefs.h >>conftest.$ac_ext
15303 cat >>conftest.$ac_ext <<_ACEOF
15304 /* end confdefs.h.  */
15305 #include <sys/types.h>
15306 #include <$ac_cv_struct_tm>
15307
15308
15309 int
15310 main ()
15311 {
15312 static struct tm ac_aggr;
15313 if (sizeof ac_aggr.tm_zone)
15314 return 0;
15315   ;
15316   return 0;
15317 }
15318 _ACEOF
15319 rm -f conftest.$ac_objext
15320 if { (ac_try="$ac_compile"
15321 case "(($ac_try" in
15322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15323   *) ac_try_echo=$ac_try;;
15324 esac
15325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15326 $as_echo "$ac_try_echo") >&5
15327   (eval "$ac_compile") 2>conftest.er1
15328   ac_status=$?
15329   grep -v '^ *+' conftest.er1 >conftest.err
15330   rm -f conftest.er1
15331   cat conftest.err >&5
15332   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333   (exit $ac_status); } && {
15334          test -z "$ac_c_werror_flag" ||
15335          test ! -s conftest.err
15336        } && test -s conftest.$ac_objext; then
15337   ac_cv_member_struct_tm_tm_zone=yes
15338 else
15339   $as_echo "$as_me: failed program was:" >&5
15340 sed 's/^/| /' conftest.$ac_ext >&5
15341
15342         ac_cv_member_struct_tm_tm_zone=no
15343 fi
15344
15345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15346 fi
15347
15348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15349 fi
15350 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
15351 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
15352 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
15353
15354 cat >>confdefs.h <<_ACEOF
15355 #define HAVE_STRUCT_TM_TM_ZONE 1
15356 _ACEOF
15357
15358
15359 fi
15360
15361 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
15362
15363 cat >>confdefs.h <<\_ACEOF
15364 #define HAVE_TM_ZONE 1
15365 _ACEOF
15366
15367 fi
15368 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
15369 $as_echo_n "checking for tzname... " >&6; }
15370 if test "${ac_cv_var_tzname+set}" = set; then
15371   $as_echo_n "(cached) " >&6
15372 else
15373   cat >conftest.$ac_ext <<_ACEOF
15374 /* confdefs.h.  */
15375 _ACEOF
15376 cat confdefs.h >>conftest.$ac_ext
15377 cat >>conftest.$ac_ext <<_ACEOF
15378 /* end confdefs.h.  */
15379 #include <time.h>
15380 #ifndef tzname /* For SGI.  */
15381 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
15382 #endif
15383
15384 int
15385 main ()
15386 {
15387 atoi(*tzname);
15388   ;
15389   return 0;
15390 }
15391 _ACEOF
15392 rm -f conftest.$ac_objext conftest$ac_exeext
15393 if { (ac_try="$ac_link"
15394 case "(($ac_try" in
15395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15396   *) ac_try_echo=$ac_try;;
15397 esac
15398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15399 $as_echo "$ac_try_echo") >&5
15400   (eval "$ac_link") 2>conftest.er1
15401   ac_status=$?
15402   grep -v '^ *+' conftest.er1 >conftest.err
15403   rm -f conftest.er1
15404   cat conftest.err >&5
15405   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406   (exit $ac_status); } && {
15407          test -z "$ac_c_werror_flag" ||
15408          test ! -s conftest.err
15409        } && test -s conftest$ac_exeext && {
15410          test "$cross_compiling" = yes ||
15411          $as_test_x conftest$ac_exeext
15412        }; then
15413   ac_cv_var_tzname=yes
15414 else
15415   $as_echo "$as_me: failed program was:" >&5
15416 sed 's/^/| /' conftest.$ac_ext >&5
15417
15418         ac_cv_var_tzname=no
15419 fi
15420
15421 rm -rf conftest.dSYM
15422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15423       conftest$ac_exeext conftest.$ac_ext
15424 fi
15425 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15426 $as_echo "$ac_cv_var_tzname" >&6; }
15427 if test $ac_cv_var_tzname = yes; then
15428
15429 cat >>confdefs.h <<\_ACEOF
15430 #define HAVE_TZNAME 1
15431 _ACEOF
15432
15433 fi
15434
15435 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
15436 $as_echo_n "checking for union semun... " >&6; }
15437 if test "${ac_cv_type_union_semun+set}" = set; then
15438   $as_echo_n "(cached) " >&6
15439 else
15440   ac_cv_type_union_semun=no
15441 cat >conftest.$ac_ext <<_ACEOF
15442 /* confdefs.h.  */
15443 _ACEOF
15444 cat confdefs.h >>conftest.$ac_ext
15445 cat >>conftest.$ac_ext <<_ACEOF
15446 /* end confdefs.h.  */
15447 #include <sys/types.h>
15448 #include <sys/ipc.h>
15449 #include <sys/sem.h>
15450
15451 int
15452 main ()
15453 {
15454 if (sizeof (union semun))
15455        return 0;
15456   ;
15457   return 0;
15458 }
15459 _ACEOF
15460 rm -f conftest.$ac_objext
15461 if { (ac_try="$ac_compile"
15462 case "(($ac_try" in
15463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15464   *) ac_try_echo=$ac_try;;
15465 esac
15466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15467 $as_echo "$ac_try_echo") >&5
15468   (eval "$ac_compile") 2>conftest.er1
15469   ac_status=$?
15470   grep -v '^ *+' conftest.er1 >conftest.err
15471   rm -f conftest.er1
15472   cat conftest.err >&5
15473   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474   (exit $ac_status); } && {
15475          test -z "$ac_c_werror_flag" ||
15476          test ! -s conftest.err
15477        } && test -s conftest.$ac_objext; then
15478   cat >conftest.$ac_ext <<_ACEOF
15479 /* confdefs.h.  */
15480 _ACEOF
15481 cat confdefs.h >>conftest.$ac_ext
15482 cat >>conftest.$ac_ext <<_ACEOF
15483 /* end confdefs.h.  */
15484 #include <sys/types.h>
15485 #include <sys/ipc.h>
15486 #include <sys/sem.h>
15487
15488 int
15489 main ()
15490 {
15491 if (sizeof ((union semun)))
15492           return 0;
15493   ;
15494   return 0;
15495 }
15496 _ACEOF
15497 rm -f conftest.$ac_objext
15498 if { (ac_try="$ac_compile"
15499 case "(($ac_try" in
15500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15501   *) ac_try_echo=$ac_try;;
15502 esac
15503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15504 $as_echo "$ac_try_echo") >&5
15505   (eval "$ac_compile") 2>conftest.er1
15506   ac_status=$?
15507   grep -v '^ *+' conftest.er1 >conftest.err
15508   rm -f conftest.er1
15509   cat conftest.err >&5
15510   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511   (exit $ac_status); } && {
15512          test -z "$ac_c_werror_flag" ||
15513          test ! -s conftest.err
15514        } && test -s conftest.$ac_objext; then
15515   :
15516 else
15517   $as_echo "$as_me: failed program was:" >&5
15518 sed 's/^/| /' conftest.$ac_ext >&5
15519
15520         ac_cv_type_union_semun=yes
15521 fi
15522
15523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15524 else
15525   $as_echo "$as_me: failed program was:" >&5
15526 sed 's/^/| /' conftest.$ac_ext >&5
15527
15528
15529 fi
15530
15531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15532 fi
15533 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
15534 $as_echo "$ac_cv_type_union_semun" >&6; }
15535 if test "x$ac_cv_type_union_semun" = x""yes; then
15536
15537 cat >>confdefs.h <<_ACEOF
15538 #define HAVE_UNION_SEMUN 1
15539 _ACEOF
15540
15541
15542 fi
15543
15544 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
15545 $as_echo_n "checking for struct sockaddr_un... " >&6; }
15546 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
15547   $as_echo_n "(cached) " >&6
15548 else
15549   ac_cv_type_struct_sockaddr_un=no
15550 cat >conftest.$ac_ext <<_ACEOF
15551 /* confdefs.h.  */
15552 _ACEOF
15553 cat confdefs.h >>conftest.$ac_ext
15554 cat >>conftest.$ac_ext <<_ACEOF
15555 /* end confdefs.h.  */
15556 #include <sys/types.h>
15557 #ifdef HAVE_SYS_UN_H
15558 #include <sys/un.h>
15559 #endif
15560
15561
15562 int
15563 main ()
15564 {
15565 if (sizeof (struct sockaddr_un))
15566        return 0;
15567   ;
15568   return 0;
15569 }
15570 _ACEOF
15571 rm -f conftest.$ac_objext
15572 if { (ac_try="$ac_compile"
15573 case "(($ac_try" in
15574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15575   *) ac_try_echo=$ac_try;;
15576 esac
15577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15578 $as_echo "$ac_try_echo") >&5
15579   (eval "$ac_compile") 2>conftest.er1
15580   ac_status=$?
15581   grep -v '^ *+' conftest.er1 >conftest.err
15582   rm -f conftest.er1
15583   cat conftest.err >&5
15584   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585   (exit $ac_status); } && {
15586          test -z "$ac_c_werror_flag" ||
15587          test ! -s conftest.err
15588        } && test -s conftest.$ac_objext; then
15589   cat >conftest.$ac_ext <<_ACEOF
15590 /* confdefs.h.  */
15591 _ACEOF
15592 cat confdefs.h >>conftest.$ac_ext
15593 cat >>conftest.$ac_ext <<_ACEOF
15594 /* end confdefs.h.  */
15595 #include <sys/types.h>
15596 #ifdef HAVE_SYS_UN_H
15597 #include <sys/un.h>
15598 #endif
15599
15600
15601 int
15602 main ()
15603 {
15604 if (sizeof ((struct sockaddr_un)))
15605           return 0;
15606   ;
15607   return 0;
15608 }
15609 _ACEOF
15610 rm -f conftest.$ac_objext
15611 if { (ac_try="$ac_compile"
15612 case "(($ac_try" in
15613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15614   *) ac_try_echo=$ac_try;;
15615 esac
15616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15617 $as_echo "$ac_try_echo") >&5
15618   (eval "$ac_compile") 2>conftest.er1
15619   ac_status=$?
15620   grep -v '^ *+' conftest.er1 >conftest.err
15621   rm -f conftest.er1
15622   cat conftest.err >&5
15623   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624   (exit $ac_status); } && {
15625          test -z "$ac_c_werror_flag" ||
15626          test ! -s conftest.err
15627        } && test -s conftest.$ac_objext; then
15628   :
15629 else
15630   $as_echo "$as_me: failed program was:" >&5
15631 sed 's/^/| /' conftest.$ac_ext >&5
15632
15633         ac_cv_type_struct_sockaddr_un=yes
15634 fi
15635
15636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15637 else
15638   $as_echo "$as_me: failed program was:" >&5
15639 sed 's/^/| /' conftest.$ac_ext >&5
15640
15641
15642 fi
15643
15644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15645 fi
15646 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
15647 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
15648 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
15649
15650 cat >>confdefs.h <<_ACEOF
15651 #define HAVE_STRUCT_SOCKADDR_UN 1
15652 _ACEOF
15653
15654
15655 cat >>confdefs.h <<\_ACEOF
15656 #define HAVE_UNIX_SOCKETS 1
15657 _ACEOF
15658
15659 fi
15660
15661 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
15662 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
15663 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
15664   $as_echo_n "(cached) " >&6
15665 else
15666   ac_cv_type_struct_sockaddr_storage=no
15667 cat >conftest.$ac_ext <<_ACEOF
15668 /* confdefs.h.  */
15669 _ACEOF
15670 cat confdefs.h >>conftest.$ac_ext
15671 cat >>conftest.$ac_ext <<_ACEOF
15672 /* end confdefs.h.  */
15673 #include <sys/types.h>
15674 #ifdef HAVE_SYS_SOCKET_H
15675 #include <sys/socket.h>
15676 #endif
15677
15678
15679 int
15680 main ()
15681 {
15682 if (sizeof (struct sockaddr_storage))
15683        return 0;
15684   ;
15685   return 0;
15686 }
15687 _ACEOF
15688 rm -f conftest.$ac_objext
15689 if { (ac_try="$ac_compile"
15690 case "(($ac_try" in
15691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15692   *) ac_try_echo=$ac_try;;
15693 esac
15694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15695 $as_echo "$ac_try_echo") >&5
15696   (eval "$ac_compile") 2>conftest.er1
15697   ac_status=$?
15698   grep -v '^ *+' conftest.er1 >conftest.err
15699   rm -f conftest.er1
15700   cat conftest.err >&5
15701   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702   (exit $ac_status); } && {
15703          test -z "$ac_c_werror_flag" ||
15704          test ! -s conftest.err
15705        } && test -s conftest.$ac_objext; then
15706   cat >conftest.$ac_ext <<_ACEOF
15707 /* confdefs.h.  */
15708 _ACEOF
15709 cat confdefs.h >>conftest.$ac_ext
15710 cat >>conftest.$ac_ext <<_ACEOF
15711 /* end confdefs.h.  */
15712 #include <sys/types.h>
15713 #ifdef HAVE_SYS_SOCKET_H
15714 #include <sys/socket.h>
15715 #endif
15716
15717
15718 int
15719 main ()
15720 {
15721 if (sizeof ((struct sockaddr_storage)))
15722           return 0;
15723   ;
15724   return 0;
15725 }
15726 _ACEOF
15727 rm -f conftest.$ac_objext
15728 if { (ac_try="$ac_compile"
15729 case "(($ac_try" in
15730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15731   *) ac_try_echo=$ac_try;;
15732 esac
15733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15734 $as_echo "$ac_try_echo") >&5
15735   (eval "$ac_compile") 2>conftest.er1
15736   ac_status=$?
15737   grep -v '^ *+' conftest.er1 >conftest.err
15738   rm -f conftest.er1
15739   cat conftest.err >&5
15740   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741   (exit $ac_status); } && {
15742          test -z "$ac_c_werror_flag" ||
15743          test ! -s conftest.err
15744        } && test -s conftest.$ac_objext; then
15745   :
15746 else
15747   $as_echo "$as_me: failed program was:" >&5
15748 sed 's/^/| /' conftest.$ac_ext >&5
15749
15750         ac_cv_type_struct_sockaddr_storage=yes
15751 fi
15752
15753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15754 else
15755   $as_echo "$as_me: failed program was:" >&5
15756 sed 's/^/| /' conftest.$ac_ext >&5
15757
15758
15759 fi
15760
15761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15762 fi
15763 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
15764 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
15765 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
15766
15767 cat >>confdefs.h <<_ACEOF
15768 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
15769 _ACEOF
15770
15771
15772 fi
15773
15774 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
15775 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
15776 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
15777   $as_echo_n "(cached) " >&6
15778 else
15779   cat >conftest.$ac_ext <<_ACEOF
15780 /* confdefs.h.  */
15781 _ACEOF
15782 cat confdefs.h >>conftest.$ac_ext
15783 cat >>conftest.$ac_ext <<_ACEOF
15784 /* end confdefs.h.  */
15785 #include <sys/types.h>
15786 #ifdef HAVE_SYS_SOCKET_H
15787 #include <sys/socket.h>
15788 #endif
15789
15790
15791 int
15792 main ()
15793 {
15794 static struct sockaddr_storage ac_aggr;
15795 if (ac_aggr.ss_family)
15796 return 0;
15797   ;
15798   return 0;
15799 }
15800 _ACEOF
15801 rm -f conftest.$ac_objext
15802 if { (ac_try="$ac_compile"
15803 case "(($ac_try" in
15804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15805   *) ac_try_echo=$ac_try;;
15806 esac
15807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15808 $as_echo "$ac_try_echo") >&5
15809   (eval "$ac_compile") 2>conftest.er1
15810   ac_status=$?
15811   grep -v '^ *+' conftest.er1 >conftest.err
15812   rm -f conftest.er1
15813   cat conftest.err >&5
15814   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815   (exit $ac_status); } && {
15816          test -z "$ac_c_werror_flag" ||
15817          test ! -s conftest.err
15818        } && test -s conftest.$ac_objext; then
15819   ac_cv_member_struct_sockaddr_storage_ss_family=yes
15820 else
15821   $as_echo "$as_me: failed program was:" >&5
15822 sed 's/^/| /' conftest.$ac_ext >&5
15823
15824         cat >conftest.$ac_ext <<_ACEOF
15825 /* confdefs.h.  */
15826 _ACEOF
15827 cat confdefs.h >>conftest.$ac_ext
15828 cat >>conftest.$ac_ext <<_ACEOF
15829 /* end confdefs.h.  */
15830 #include <sys/types.h>
15831 #ifdef HAVE_SYS_SOCKET_H
15832 #include <sys/socket.h>
15833 #endif
15834
15835
15836 int
15837 main ()
15838 {
15839 static struct sockaddr_storage ac_aggr;
15840 if (sizeof ac_aggr.ss_family)
15841 return 0;
15842   ;
15843   return 0;
15844 }
15845 _ACEOF
15846 rm -f conftest.$ac_objext
15847 if { (ac_try="$ac_compile"
15848 case "(($ac_try" in
15849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15850   *) ac_try_echo=$ac_try;;
15851 esac
15852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15853 $as_echo "$ac_try_echo") >&5
15854   (eval "$ac_compile") 2>conftest.er1
15855   ac_status=$?
15856   grep -v '^ *+' conftest.er1 >conftest.err
15857   rm -f conftest.er1
15858   cat conftest.err >&5
15859   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860   (exit $ac_status); } && {
15861          test -z "$ac_c_werror_flag" ||
15862          test ! -s conftest.err
15863        } && test -s conftest.$ac_objext; then
15864   ac_cv_member_struct_sockaddr_storage_ss_family=yes
15865 else
15866   $as_echo "$as_me: failed program was:" >&5
15867 sed 's/^/| /' conftest.$ac_ext >&5
15868
15869         ac_cv_member_struct_sockaddr_storage_ss_family=no
15870 fi
15871
15872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15873 fi
15874
15875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15876 fi
15877 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
15878 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
15879 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
15880
15881 cat >>confdefs.h <<_ACEOF
15882 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
15883 _ACEOF
15884
15885
15886 fi
15887 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
15888 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
15889 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
15890   $as_echo_n "(cached) " >&6
15891 else
15892   cat >conftest.$ac_ext <<_ACEOF
15893 /* confdefs.h.  */
15894 _ACEOF
15895 cat confdefs.h >>conftest.$ac_ext
15896 cat >>conftest.$ac_ext <<_ACEOF
15897 /* end confdefs.h.  */
15898 #include <sys/types.h>
15899 #ifdef HAVE_SYS_SOCKET_H
15900 #include <sys/socket.h>
15901 #endif
15902
15903
15904 int
15905 main ()
15906 {
15907 static struct sockaddr_storage ac_aggr;
15908 if (ac_aggr.__ss_family)
15909 return 0;
15910   ;
15911   return 0;
15912 }
15913 _ACEOF
15914 rm -f conftest.$ac_objext
15915 if { (ac_try="$ac_compile"
15916 case "(($ac_try" in
15917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15918   *) ac_try_echo=$ac_try;;
15919 esac
15920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15921 $as_echo "$ac_try_echo") >&5
15922   (eval "$ac_compile") 2>conftest.er1
15923   ac_status=$?
15924   grep -v '^ *+' conftest.er1 >conftest.err
15925   rm -f conftest.er1
15926   cat conftest.err >&5
15927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928   (exit $ac_status); } && {
15929          test -z "$ac_c_werror_flag" ||
15930          test ! -s conftest.err
15931        } && test -s conftest.$ac_objext; then
15932   ac_cv_member_struct_sockaddr_storage___ss_family=yes
15933 else
15934   $as_echo "$as_me: failed program was:" >&5
15935 sed 's/^/| /' conftest.$ac_ext >&5
15936
15937         cat >conftest.$ac_ext <<_ACEOF
15938 /* confdefs.h.  */
15939 _ACEOF
15940 cat confdefs.h >>conftest.$ac_ext
15941 cat >>conftest.$ac_ext <<_ACEOF
15942 /* end confdefs.h.  */
15943 #include <sys/types.h>
15944 #ifdef HAVE_SYS_SOCKET_H
15945 #include <sys/socket.h>
15946 #endif
15947
15948
15949 int
15950 main ()
15951 {
15952 static struct sockaddr_storage ac_aggr;
15953 if (sizeof ac_aggr.__ss_family)
15954 return 0;
15955   ;
15956   return 0;
15957 }
15958 _ACEOF
15959 rm -f conftest.$ac_objext
15960 if { (ac_try="$ac_compile"
15961 case "(($ac_try" in
15962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15963   *) ac_try_echo=$ac_try;;
15964 esac
15965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15966 $as_echo "$ac_try_echo") >&5
15967   (eval "$ac_compile") 2>conftest.er1
15968   ac_status=$?
15969   grep -v '^ *+' conftest.er1 >conftest.err
15970   rm -f conftest.er1
15971   cat conftest.err >&5
15972   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973   (exit $ac_status); } && {
15974          test -z "$ac_c_werror_flag" ||
15975          test ! -s conftest.err
15976        } && test -s conftest.$ac_objext; then
15977   ac_cv_member_struct_sockaddr_storage___ss_family=yes
15978 else
15979   $as_echo "$as_me: failed program was:" >&5
15980 sed 's/^/| /' conftest.$ac_ext >&5
15981
15982         ac_cv_member_struct_sockaddr_storage___ss_family=no
15983 fi
15984
15985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15986 fi
15987
15988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15989 fi
15990 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
15991 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
15992 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
15993
15994 cat >>confdefs.h <<_ACEOF
15995 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
15996 _ACEOF
15997
15998
15999 fi
16000 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
16001 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
16002 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
16003   $as_echo_n "(cached) " >&6
16004 else
16005   cat >conftest.$ac_ext <<_ACEOF
16006 /* confdefs.h.  */
16007 _ACEOF
16008 cat confdefs.h >>conftest.$ac_ext
16009 cat >>conftest.$ac_ext <<_ACEOF
16010 /* end confdefs.h.  */
16011 #include <sys/types.h>
16012 #ifdef HAVE_SYS_SOCKET_H
16013 #include <sys/socket.h>
16014 #endif
16015
16016
16017 int
16018 main ()
16019 {
16020 static struct sockaddr_storage ac_aggr;
16021 if (ac_aggr.ss_len)
16022 return 0;
16023   ;
16024   return 0;
16025 }
16026 _ACEOF
16027 rm -f conftest.$ac_objext
16028 if { (ac_try="$ac_compile"
16029 case "(($ac_try" in
16030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16031   *) ac_try_echo=$ac_try;;
16032 esac
16033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16034 $as_echo "$ac_try_echo") >&5
16035   (eval "$ac_compile") 2>conftest.er1
16036   ac_status=$?
16037   grep -v '^ *+' conftest.er1 >conftest.err
16038   rm -f conftest.er1
16039   cat conftest.err >&5
16040   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041   (exit $ac_status); } && {
16042          test -z "$ac_c_werror_flag" ||
16043          test ! -s conftest.err
16044        } && test -s conftest.$ac_objext; then
16045   ac_cv_member_struct_sockaddr_storage_ss_len=yes
16046 else
16047   $as_echo "$as_me: failed program was:" >&5
16048 sed 's/^/| /' conftest.$ac_ext >&5
16049
16050         cat >conftest.$ac_ext <<_ACEOF
16051 /* confdefs.h.  */
16052 _ACEOF
16053 cat confdefs.h >>conftest.$ac_ext
16054 cat >>conftest.$ac_ext <<_ACEOF
16055 /* end confdefs.h.  */
16056 #include <sys/types.h>
16057 #ifdef HAVE_SYS_SOCKET_H
16058 #include <sys/socket.h>
16059 #endif
16060
16061
16062 int
16063 main ()
16064 {
16065 static struct sockaddr_storage ac_aggr;
16066 if (sizeof ac_aggr.ss_len)
16067 return 0;
16068   ;
16069   return 0;
16070 }
16071 _ACEOF
16072 rm -f conftest.$ac_objext
16073 if { (ac_try="$ac_compile"
16074 case "(($ac_try" in
16075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16076   *) ac_try_echo=$ac_try;;
16077 esac
16078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16079 $as_echo "$ac_try_echo") >&5
16080   (eval "$ac_compile") 2>conftest.er1
16081   ac_status=$?
16082   grep -v '^ *+' conftest.er1 >conftest.err
16083   rm -f conftest.er1
16084   cat conftest.err >&5
16085   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086   (exit $ac_status); } && {
16087          test -z "$ac_c_werror_flag" ||
16088          test ! -s conftest.err
16089        } && test -s conftest.$ac_objext; then
16090   ac_cv_member_struct_sockaddr_storage_ss_len=yes
16091 else
16092   $as_echo "$as_me: failed program was:" >&5
16093 sed 's/^/| /' conftest.$ac_ext >&5
16094
16095         ac_cv_member_struct_sockaddr_storage_ss_len=no
16096 fi
16097
16098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16099 fi
16100
16101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16102 fi
16103 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
16104 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
16105 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
16106
16107 cat >>confdefs.h <<_ACEOF
16108 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
16109 _ACEOF
16110
16111
16112 fi
16113 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
16114 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
16115 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
16116   $as_echo_n "(cached) " >&6
16117 else
16118   cat >conftest.$ac_ext <<_ACEOF
16119 /* confdefs.h.  */
16120 _ACEOF
16121 cat confdefs.h >>conftest.$ac_ext
16122 cat >>conftest.$ac_ext <<_ACEOF
16123 /* end confdefs.h.  */
16124 #include <sys/types.h>
16125 #ifdef HAVE_SYS_SOCKET_H
16126 #include <sys/socket.h>
16127 #endif
16128
16129
16130 int
16131 main ()
16132 {
16133 static struct sockaddr_storage ac_aggr;
16134 if (ac_aggr.__ss_len)
16135 return 0;
16136   ;
16137   return 0;
16138 }
16139 _ACEOF
16140 rm -f conftest.$ac_objext
16141 if { (ac_try="$ac_compile"
16142 case "(($ac_try" in
16143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16144   *) ac_try_echo=$ac_try;;
16145 esac
16146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16147 $as_echo "$ac_try_echo") >&5
16148   (eval "$ac_compile") 2>conftest.er1
16149   ac_status=$?
16150   grep -v '^ *+' conftest.er1 >conftest.err
16151   rm -f conftest.er1
16152   cat conftest.err >&5
16153   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154   (exit $ac_status); } && {
16155          test -z "$ac_c_werror_flag" ||
16156          test ! -s conftest.err
16157        } && test -s conftest.$ac_objext; then
16158   ac_cv_member_struct_sockaddr_storage___ss_len=yes
16159 else
16160   $as_echo "$as_me: failed program was:" >&5
16161 sed 's/^/| /' conftest.$ac_ext >&5
16162
16163         cat >conftest.$ac_ext <<_ACEOF
16164 /* confdefs.h.  */
16165 _ACEOF
16166 cat confdefs.h >>conftest.$ac_ext
16167 cat >>conftest.$ac_ext <<_ACEOF
16168 /* end confdefs.h.  */
16169 #include <sys/types.h>
16170 #ifdef HAVE_SYS_SOCKET_H
16171 #include <sys/socket.h>
16172 #endif
16173
16174
16175 int
16176 main ()
16177 {
16178 static struct sockaddr_storage ac_aggr;
16179 if (sizeof ac_aggr.__ss_len)
16180 return 0;
16181   ;
16182   return 0;
16183 }
16184 _ACEOF
16185 rm -f conftest.$ac_objext
16186 if { (ac_try="$ac_compile"
16187 case "(($ac_try" in
16188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189   *) ac_try_echo=$ac_try;;
16190 esac
16191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16192 $as_echo "$ac_try_echo") >&5
16193   (eval "$ac_compile") 2>conftest.er1
16194   ac_status=$?
16195   grep -v '^ *+' conftest.er1 >conftest.err
16196   rm -f conftest.er1
16197   cat conftest.err >&5
16198   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199   (exit $ac_status); } && {
16200          test -z "$ac_c_werror_flag" ||
16201          test ! -s conftest.err
16202        } && test -s conftest.$ac_objext; then
16203   ac_cv_member_struct_sockaddr_storage___ss_len=yes
16204 else
16205   $as_echo "$as_me: failed program was:" >&5
16206 sed 's/^/| /' conftest.$ac_ext >&5
16207
16208         ac_cv_member_struct_sockaddr_storage___ss_len=no
16209 fi
16210
16211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16212 fi
16213
16214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16215 fi
16216 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
16217 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
16218 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
16219
16220 cat >>confdefs.h <<_ACEOF
16221 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
16222 _ACEOF
16223
16224
16225 fi
16226 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
16227 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
16228 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
16229   $as_echo_n "(cached) " >&6
16230 else
16231   cat >conftest.$ac_ext <<_ACEOF
16232 /* confdefs.h.  */
16233 _ACEOF
16234 cat confdefs.h >>conftest.$ac_ext
16235 cat >>conftest.$ac_ext <<_ACEOF
16236 /* end confdefs.h.  */
16237 #include <sys/types.h>
16238 #ifdef HAVE_SYS_SOCKET_H
16239 #include <sys/socket.h>
16240 #endif
16241
16242
16243 int
16244 main ()
16245 {
16246 static struct sockaddr ac_aggr;
16247 if (ac_aggr.sa_len)
16248 return 0;
16249   ;
16250   return 0;
16251 }
16252 _ACEOF
16253 rm -f conftest.$ac_objext
16254 if { (ac_try="$ac_compile"
16255 case "(($ac_try" in
16256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16257   *) ac_try_echo=$ac_try;;
16258 esac
16259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16260 $as_echo "$ac_try_echo") >&5
16261   (eval "$ac_compile") 2>conftest.er1
16262   ac_status=$?
16263   grep -v '^ *+' conftest.er1 >conftest.err
16264   rm -f conftest.er1
16265   cat conftest.err >&5
16266   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267   (exit $ac_status); } && {
16268          test -z "$ac_c_werror_flag" ||
16269          test ! -s conftest.err
16270        } && test -s conftest.$ac_objext; then
16271   ac_cv_member_struct_sockaddr_sa_len=yes
16272 else
16273   $as_echo "$as_me: failed program was:" >&5
16274 sed 's/^/| /' conftest.$ac_ext >&5
16275
16276         cat >conftest.$ac_ext <<_ACEOF
16277 /* confdefs.h.  */
16278 _ACEOF
16279 cat confdefs.h >>conftest.$ac_ext
16280 cat >>conftest.$ac_ext <<_ACEOF
16281 /* end confdefs.h.  */
16282 #include <sys/types.h>
16283 #ifdef HAVE_SYS_SOCKET_H
16284 #include <sys/socket.h>
16285 #endif
16286
16287
16288 int
16289 main ()
16290 {
16291 static struct sockaddr ac_aggr;
16292 if (sizeof ac_aggr.sa_len)
16293 return 0;
16294   ;
16295   return 0;
16296 }
16297 _ACEOF
16298 rm -f conftest.$ac_objext
16299 if { (ac_try="$ac_compile"
16300 case "(($ac_try" in
16301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16302   *) ac_try_echo=$ac_try;;
16303 esac
16304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16305 $as_echo "$ac_try_echo") >&5
16306   (eval "$ac_compile") 2>conftest.er1
16307   ac_status=$?
16308   grep -v '^ *+' conftest.er1 >conftest.err
16309   rm -f conftest.er1
16310   cat conftest.err >&5
16311   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312   (exit $ac_status); } && {
16313          test -z "$ac_c_werror_flag" ||
16314          test ! -s conftest.err
16315        } && test -s conftest.$ac_objext; then
16316   ac_cv_member_struct_sockaddr_sa_len=yes
16317 else
16318   $as_echo "$as_me: failed program was:" >&5
16319 sed 's/^/| /' conftest.$ac_ext >&5
16320
16321         ac_cv_member_struct_sockaddr_sa_len=no
16322 fi
16323
16324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16325 fi
16326
16327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16328 fi
16329 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16330 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
16331 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
16332
16333 cat >>confdefs.h <<_ACEOF
16334 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16335 _ACEOF
16336
16337
16338 fi
16339
16340 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
16341 $as_echo_n "checking for struct addrinfo... " >&6; }
16342 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
16343   $as_echo_n "(cached) " >&6
16344 else
16345   ac_cv_type_struct_addrinfo=no
16346 cat >conftest.$ac_ext <<_ACEOF
16347 /* confdefs.h.  */
16348 _ACEOF
16349 cat confdefs.h >>conftest.$ac_ext
16350 cat >>conftest.$ac_ext <<_ACEOF
16351 /* end confdefs.h.  */
16352 #include <sys/types.h>
16353 #include <sys/socket.h>
16354 #include <netdb.h>
16355
16356
16357 int
16358 main ()
16359 {
16360 if (sizeof (struct addrinfo))
16361        return 0;
16362   ;
16363   return 0;
16364 }
16365 _ACEOF
16366 rm -f conftest.$ac_objext
16367 if { (ac_try="$ac_compile"
16368 case "(($ac_try" in
16369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16370   *) ac_try_echo=$ac_try;;
16371 esac
16372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16373 $as_echo "$ac_try_echo") >&5
16374   (eval "$ac_compile") 2>conftest.er1
16375   ac_status=$?
16376   grep -v '^ *+' conftest.er1 >conftest.err
16377   rm -f conftest.er1
16378   cat conftest.err >&5
16379   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380   (exit $ac_status); } && {
16381          test -z "$ac_c_werror_flag" ||
16382          test ! -s conftest.err
16383        } && test -s conftest.$ac_objext; then
16384   cat >conftest.$ac_ext <<_ACEOF
16385 /* confdefs.h.  */
16386 _ACEOF
16387 cat confdefs.h >>conftest.$ac_ext
16388 cat >>conftest.$ac_ext <<_ACEOF
16389 /* end confdefs.h.  */
16390 #include <sys/types.h>
16391 #include <sys/socket.h>
16392 #include <netdb.h>
16393
16394
16395 int
16396 main ()
16397 {
16398 if (sizeof ((struct addrinfo)))
16399           return 0;
16400   ;
16401   return 0;
16402 }
16403 _ACEOF
16404 rm -f conftest.$ac_objext
16405 if { (ac_try="$ac_compile"
16406 case "(($ac_try" in
16407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408   *) ac_try_echo=$ac_try;;
16409 esac
16410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16411 $as_echo "$ac_try_echo") >&5
16412   (eval "$ac_compile") 2>conftest.er1
16413   ac_status=$?
16414   grep -v '^ *+' conftest.er1 >conftest.err
16415   rm -f conftest.er1
16416   cat conftest.err >&5
16417   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418   (exit $ac_status); } && {
16419          test -z "$ac_c_werror_flag" ||
16420          test ! -s conftest.err
16421        } && test -s conftest.$ac_objext; then
16422   :
16423 else
16424   $as_echo "$as_me: failed program was:" >&5
16425 sed 's/^/| /' conftest.$ac_ext >&5
16426
16427         ac_cv_type_struct_addrinfo=yes
16428 fi
16429
16430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16431 else
16432   $as_echo "$as_me: failed program was:" >&5
16433 sed 's/^/| /' conftest.$ac_ext >&5
16434
16435
16436 fi
16437
16438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16439 fi
16440 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
16441 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
16442 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
16443
16444 cat >>confdefs.h <<_ACEOF
16445 #define HAVE_STRUCT_ADDRINFO 1
16446 _ACEOF
16447
16448
16449 fi
16450
16451
16452   { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
16453 $as_echo_n "checking for intptr_t... " >&6; }
16454 if test "${ac_cv_type_intptr_t+set}" = set; then
16455   $as_echo_n "(cached) " >&6
16456 else
16457   ac_cv_type_intptr_t=no
16458 cat >conftest.$ac_ext <<_ACEOF
16459 /* confdefs.h.  */
16460 _ACEOF
16461 cat confdefs.h >>conftest.$ac_ext
16462 cat >>conftest.$ac_ext <<_ACEOF
16463 /* end confdefs.h.  */
16464 $ac_includes_default
16465 int
16466 main ()
16467 {
16468 if (sizeof (intptr_t))
16469        return 0;
16470   ;
16471   return 0;
16472 }
16473 _ACEOF
16474 rm -f conftest.$ac_objext
16475 if { (ac_try="$ac_compile"
16476 case "(($ac_try" in
16477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16478   *) ac_try_echo=$ac_try;;
16479 esac
16480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16481 $as_echo "$ac_try_echo") >&5
16482   (eval "$ac_compile") 2>conftest.er1
16483   ac_status=$?
16484   grep -v '^ *+' conftest.er1 >conftest.err
16485   rm -f conftest.er1
16486   cat conftest.err >&5
16487   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488   (exit $ac_status); } && {
16489          test -z "$ac_c_werror_flag" ||
16490          test ! -s conftest.err
16491        } && test -s conftest.$ac_objext; then
16492   cat >conftest.$ac_ext <<_ACEOF
16493 /* confdefs.h.  */
16494 _ACEOF
16495 cat confdefs.h >>conftest.$ac_ext
16496 cat >>conftest.$ac_ext <<_ACEOF
16497 /* end confdefs.h.  */
16498 $ac_includes_default
16499 int
16500 main ()
16501 {
16502 if (sizeof ((intptr_t)))
16503           return 0;
16504   ;
16505   return 0;
16506 }
16507 _ACEOF
16508 rm -f conftest.$ac_objext
16509 if { (ac_try="$ac_compile"
16510 case "(($ac_try" in
16511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16512   *) ac_try_echo=$ac_try;;
16513 esac
16514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16515 $as_echo "$ac_try_echo") >&5
16516   (eval "$ac_compile") 2>conftest.er1
16517   ac_status=$?
16518   grep -v '^ *+' conftest.er1 >conftest.err
16519   rm -f conftest.er1
16520   cat conftest.err >&5
16521   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522   (exit $ac_status); } && {
16523          test -z "$ac_c_werror_flag" ||
16524          test ! -s conftest.err
16525        } && test -s conftest.$ac_objext; then
16526   :
16527 else
16528   $as_echo "$as_me: failed program was:" >&5
16529 sed 's/^/| /' conftest.$ac_ext >&5
16530
16531         ac_cv_type_intptr_t=yes
16532 fi
16533
16534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16535 else
16536   $as_echo "$as_me: failed program was:" >&5
16537 sed 's/^/| /' conftest.$ac_ext >&5
16538
16539
16540 fi
16541
16542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16543 fi
16544 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
16545 $as_echo "$ac_cv_type_intptr_t" >&6; }
16546 if test "x$ac_cv_type_intptr_t" = x""yes; then
16547
16548 cat >>confdefs.h <<\_ACEOF
16549 #define HAVE_INTPTR_T 1
16550 _ACEOF
16551
16552 else
16553   for ac_type in 'int' 'long int' 'long long int'; do
16554        cat >conftest.$ac_ext <<_ACEOF
16555 /* confdefs.h.  */
16556 _ACEOF
16557 cat confdefs.h >>conftest.$ac_ext
16558 cat >>conftest.$ac_ext <<_ACEOF
16559 /* end confdefs.h.  */
16560 $ac_includes_default
16561 int
16562 main ()
16563 {
16564 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16565 test_array [0] = 0
16566
16567   ;
16568   return 0;
16569 }
16570 _ACEOF
16571 rm -f conftest.$ac_objext
16572 if { (ac_try="$ac_compile"
16573 case "(($ac_try" in
16574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575   *) ac_try_echo=$ac_try;;
16576 esac
16577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16578 $as_echo "$ac_try_echo") >&5
16579   (eval "$ac_compile") 2>conftest.er1
16580   ac_status=$?
16581   grep -v '^ *+' conftest.er1 >conftest.err
16582   rm -f conftest.er1
16583   cat conftest.err >&5
16584   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585   (exit $ac_status); } && {
16586          test -z "$ac_c_werror_flag" ||
16587          test ! -s conftest.err
16588        } && test -s conftest.$ac_objext; then
16589
16590 cat >>confdefs.h <<_ACEOF
16591 #define intptr_t $ac_type
16592 _ACEOF
16593
16594           ac_type=
16595 else
16596   $as_echo "$as_me: failed program was:" >&5
16597 sed 's/^/| /' conftest.$ac_ext >&5
16598
16599
16600 fi
16601
16602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16603        test -z "$ac_type" && break
16604      done
16605 fi
16606
16607
16608
16609   { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
16610 $as_echo_n "checking for uintptr_t... " >&6; }
16611 if test "${ac_cv_type_uintptr_t+set}" = set; then
16612   $as_echo_n "(cached) " >&6
16613 else
16614   ac_cv_type_uintptr_t=no
16615 cat >conftest.$ac_ext <<_ACEOF
16616 /* confdefs.h.  */
16617 _ACEOF
16618 cat confdefs.h >>conftest.$ac_ext
16619 cat >>conftest.$ac_ext <<_ACEOF
16620 /* end confdefs.h.  */
16621 $ac_includes_default
16622 int
16623 main ()
16624 {
16625 if (sizeof (uintptr_t))
16626        return 0;
16627   ;
16628   return 0;
16629 }
16630 _ACEOF
16631 rm -f conftest.$ac_objext
16632 if { (ac_try="$ac_compile"
16633 case "(($ac_try" in
16634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635   *) ac_try_echo=$ac_try;;
16636 esac
16637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16638 $as_echo "$ac_try_echo") >&5
16639   (eval "$ac_compile") 2>conftest.er1
16640   ac_status=$?
16641   grep -v '^ *+' conftest.er1 >conftest.err
16642   rm -f conftest.er1
16643   cat conftest.err >&5
16644   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645   (exit $ac_status); } && {
16646          test -z "$ac_c_werror_flag" ||
16647          test ! -s conftest.err
16648        } && test -s conftest.$ac_objext; then
16649   cat >conftest.$ac_ext <<_ACEOF
16650 /* confdefs.h.  */
16651 _ACEOF
16652 cat confdefs.h >>conftest.$ac_ext
16653 cat >>conftest.$ac_ext <<_ACEOF
16654 /* end confdefs.h.  */
16655 $ac_includes_default
16656 int
16657 main ()
16658 {
16659 if (sizeof ((uintptr_t)))
16660           return 0;
16661   ;
16662   return 0;
16663 }
16664 _ACEOF
16665 rm -f conftest.$ac_objext
16666 if { (ac_try="$ac_compile"
16667 case "(($ac_try" in
16668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16669   *) ac_try_echo=$ac_try;;
16670 esac
16671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16672 $as_echo "$ac_try_echo") >&5
16673   (eval "$ac_compile") 2>conftest.er1
16674   ac_status=$?
16675   grep -v '^ *+' conftest.er1 >conftest.err
16676   rm -f conftest.er1
16677   cat conftest.err >&5
16678   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679   (exit $ac_status); } && {
16680          test -z "$ac_c_werror_flag" ||
16681          test ! -s conftest.err
16682        } && test -s conftest.$ac_objext; then
16683   :
16684 else
16685   $as_echo "$as_me: failed program was:" >&5
16686 sed 's/^/| /' conftest.$ac_ext >&5
16687
16688         ac_cv_type_uintptr_t=yes
16689 fi
16690
16691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16692 else
16693   $as_echo "$as_me: failed program was:" >&5
16694 sed 's/^/| /' conftest.$ac_ext >&5
16695
16696
16697 fi
16698
16699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16700 fi
16701 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16702 $as_echo "$ac_cv_type_uintptr_t" >&6; }
16703 if test "x$ac_cv_type_uintptr_t" = x""yes; then
16704
16705 cat >>confdefs.h <<\_ACEOF
16706 #define HAVE_UINTPTR_T 1
16707 _ACEOF
16708
16709 else
16710   for ac_type in 'unsigned int' 'unsigned long int' \
16711         'unsigned long long int'; do
16712        cat >conftest.$ac_ext <<_ACEOF
16713 /* confdefs.h.  */
16714 _ACEOF
16715 cat confdefs.h >>conftest.$ac_ext
16716 cat >>conftest.$ac_ext <<_ACEOF
16717 /* end confdefs.h.  */
16718 $ac_includes_default
16719 int
16720 main ()
16721 {
16722 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16723 test_array [0] = 0
16724
16725   ;
16726   return 0;
16727 }
16728 _ACEOF
16729 rm -f conftest.$ac_objext
16730 if { (ac_try="$ac_compile"
16731 case "(($ac_try" in
16732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16733   *) ac_try_echo=$ac_try;;
16734 esac
16735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16736 $as_echo "$ac_try_echo") >&5
16737   (eval "$ac_compile") 2>conftest.er1
16738   ac_status=$?
16739   grep -v '^ *+' conftest.er1 >conftest.err
16740   rm -f conftest.er1
16741   cat conftest.err >&5
16742   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743   (exit $ac_status); } && {
16744          test -z "$ac_c_werror_flag" ||
16745          test ! -s conftest.err
16746        } && test -s conftest.$ac_objext; then
16747
16748 cat >>confdefs.h <<_ACEOF
16749 #define uintptr_t $ac_type
16750 _ACEOF
16751
16752           ac_type=
16753 else
16754   $as_echo "$as_me: failed program was:" >&5
16755 sed 's/^/| /' conftest.$ac_ext >&5
16756
16757
16758 fi
16759
16760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16761        test -z "$ac_type" && break
16762      done
16763 fi
16764
16765
16766
16767   { $as_echo "$as_me:$LINENO: checking for long long int" >&5
16768 $as_echo_n "checking for long long int... " >&6; }
16769 if test "${ac_cv_type_long_long_int+set}" = set; then
16770   $as_echo_n "(cached) " >&6
16771 else
16772   cat >conftest.$ac_ext <<_ACEOF
16773
16774   /* confdefs.h.  */
16775 _ACEOF
16776 cat confdefs.h >>conftest.$ac_ext
16777 cat >>conftest.$ac_ext <<_ACEOF
16778 /* end confdefs.h.  */
16779 /* For now, do not test the preprocessor; as of 2007 there are too many
16780          implementations with broken preprocessors.  Perhaps this can
16781          be revisited in 2012.  In the meantime, code should not expect
16782          #if to work with literals wider than 32 bits.  */
16783       /* Test literals.  */
16784       long long int ll = 9223372036854775807ll;
16785       long long int nll = -9223372036854775807LL;
16786       unsigned long long int ull = 18446744073709551615ULL;
16787       /* Test constant expressions.   */
16788       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16789                      ? 1 : -1)];
16790       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16791                      ? 1 : -1)];
16792       int i = 63;
16793 int
16794 main ()
16795 {
16796 /* Test availability of runtime routines for shift and division.  */
16797       long long int llmax = 9223372036854775807ll;
16798       unsigned long long int ullmax = 18446744073709551615ull;
16799       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16800               | (llmax / ll) | (llmax % ll)
16801               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16802               | (ullmax / ull) | (ullmax % ull));
16803   ;
16804   return 0;
16805 }
16806
16807 _ACEOF
16808 rm -f conftest.$ac_objext conftest$ac_exeext
16809 if { (ac_try="$ac_link"
16810 case "(($ac_try" in
16811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16812   *) ac_try_echo=$ac_try;;
16813 esac
16814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16815 $as_echo "$ac_try_echo") >&5
16816   (eval "$ac_link") 2>conftest.er1
16817   ac_status=$?
16818   grep -v '^ *+' conftest.er1 >conftest.err
16819   rm -f conftest.er1
16820   cat conftest.err >&5
16821   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822   (exit $ac_status); } && {
16823          test -z "$ac_c_werror_flag" ||
16824          test ! -s conftest.err
16825        } && test -s conftest$ac_exeext && {
16826          test "$cross_compiling" = yes ||
16827          $as_test_x conftest$ac_exeext
16828        }; then
16829                         if test "$cross_compiling" = yes; then
16830   ac_cv_type_long_long_int=yes
16831 else
16832   cat >conftest.$ac_ext <<_ACEOF
16833 /* confdefs.h.  */
16834 _ACEOF
16835 cat confdefs.h >>conftest.$ac_ext
16836 cat >>conftest.$ac_ext <<_ACEOF
16837 /* end confdefs.h.  */
16838 #include <limits.h>
16839                #ifndef LLONG_MAX
16840                # define HALF \
16841                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16842                # define LLONG_MAX (HALF - 1 + HALF)
16843                #endif
16844 int
16845 main ()
16846 {
16847 long long int n = 1;
16848                int i;
16849                for (i = 0; ; i++)
16850                  {
16851                    long long int m = n << i;
16852                    if (m >> i != n)
16853                      return 1;
16854                    if (LLONG_MAX / 2 < m)
16855                      break;
16856                  }
16857                return 0;
16858   ;
16859   return 0;
16860 }
16861 _ACEOF
16862 rm -f conftest$ac_exeext
16863 if { (ac_try="$ac_link"
16864 case "(($ac_try" in
16865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16866   *) ac_try_echo=$ac_try;;
16867 esac
16868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16869 $as_echo "$ac_try_echo") >&5
16870   (eval "$ac_link") 2>&5
16871   ac_status=$?
16872   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16874   { (case "(($ac_try" in
16875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16876   *) ac_try_echo=$ac_try;;
16877 esac
16878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16879 $as_echo "$ac_try_echo") >&5
16880   (eval "$ac_try") 2>&5
16881   ac_status=$?
16882   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883   (exit $ac_status); }; }; then
16884   ac_cv_type_long_long_int=yes
16885 else
16886   $as_echo "$as_me: program exited with status $ac_status" >&5
16887 $as_echo "$as_me: failed program was:" >&5
16888 sed 's/^/| /' conftest.$ac_ext >&5
16889
16890 ( exit $ac_status )
16891 ac_cv_type_long_long_int=no
16892 fi
16893 rm -rf conftest.dSYM
16894 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16895 fi
16896
16897
16898 else
16899   $as_echo "$as_me: failed program was:" >&5
16900 sed 's/^/| /' conftest.$ac_ext >&5
16901
16902         ac_cv_type_long_long_int=no
16903 fi
16904
16905 rm -rf conftest.dSYM
16906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16907       conftest$ac_exeext conftest.$ac_ext
16908 fi
16909 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16910 $as_echo "$ac_cv_type_long_long_int" >&6; }
16911   if test $ac_cv_type_long_long_int = yes; then
16912
16913 cat >>confdefs.h <<\_ACEOF
16914 #define HAVE_LONG_LONG_INT 1
16915 _ACEOF
16916
16917   fi
16918
16919
16920 { $as_echo "$as_me:$LINENO: checking for locale_t" >&5
16921 $as_echo_n "checking for locale_t... " >&6; }
16922 if test "${pgac_cv_type_locale_t+set}" = set; then
16923   $as_echo_n "(cached) " >&6
16924 else
16925   cat >conftest.$ac_ext <<_ACEOF
16926 /* confdefs.h.  */
16927 _ACEOF
16928 cat confdefs.h >>conftest.$ac_ext
16929 cat >>conftest.$ac_ext <<_ACEOF
16930 /* end confdefs.h.  */
16931 #include <locale.h>
16932 locale_t x;
16933 int
16934 main ()
16935 {
16936
16937   ;
16938   return 0;
16939 }
16940 _ACEOF
16941 rm -f conftest.$ac_objext
16942 if { (ac_try="$ac_compile"
16943 case "(($ac_try" in
16944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945   *) ac_try_echo=$ac_try;;
16946 esac
16947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16948 $as_echo "$ac_try_echo") >&5
16949   (eval "$ac_compile") 2>conftest.er1
16950   ac_status=$?
16951   grep -v '^ *+' conftest.er1 >conftest.err
16952   rm -f conftest.er1
16953   cat conftest.err >&5
16954   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955   (exit $ac_status); } && {
16956          test -z "$ac_c_werror_flag" ||
16957          test ! -s conftest.err
16958        } && test -s conftest.$ac_objext; then
16959   pgac_cv_type_locale_t=yes
16960 else
16961   $as_echo "$as_me: failed program was:" >&5
16962 sed 's/^/| /' conftest.$ac_ext >&5
16963
16964         cat >conftest.$ac_ext <<_ACEOF
16965 /* confdefs.h.  */
16966 _ACEOF
16967 cat confdefs.h >>conftest.$ac_ext
16968 cat >>conftest.$ac_ext <<_ACEOF
16969 /* end confdefs.h.  */
16970 #include <xlocale.h>
16971 locale_t x;
16972 int
16973 main ()
16974 {
16975
16976   ;
16977   return 0;
16978 }
16979 _ACEOF
16980 rm -f conftest.$ac_objext
16981 if { (ac_try="$ac_compile"
16982 case "(($ac_try" in
16983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984   *) ac_try_echo=$ac_try;;
16985 esac
16986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16987 $as_echo "$ac_try_echo") >&5
16988   (eval "$ac_compile") 2>conftest.er1
16989   ac_status=$?
16990   grep -v '^ *+' conftest.er1 >conftest.err
16991   rm -f conftest.er1
16992   cat conftest.err >&5
16993   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994   (exit $ac_status); } && {
16995          test -z "$ac_c_werror_flag" ||
16996          test ! -s conftest.err
16997        } && test -s conftest.$ac_objext; then
16998   pgac_cv_type_locale_t='yes (in xlocale.h)'
16999 else
17000   $as_echo "$as_me: failed program was:" >&5
17001 sed 's/^/| /' conftest.$ac_ext >&5
17002
17003         pgac_cv_type_locale_t=no
17004 fi
17005
17006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17007 fi
17008
17009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17010 fi
17011 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_locale_t" >&5
17012 $as_echo "$pgac_cv_type_locale_t" >&6; }
17013 if test "$pgac_cv_type_locale_t" != no; then
17014
17015 cat >>confdefs.h <<\_ACEOF
17016 #define HAVE_LOCALE_T 1
17017 _ACEOF
17018
17019 fi
17020 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
17021
17022 cat >>confdefs.h <<\_ACEOF
17023 #define LOCALE_T_IN_XLOCALE 1
17024 _ACEOF
17025
17026 fi
17027
17028 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
17029 $as_echo_n "checking for struct cmsgcred... " >&6; }
17030 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
17031   $as_echo_n "(cached) " >&6
17032 else
17033   ac_cv_type_struct_cmsgcred=no
17034 cat >conftest.$ac_ext <<_ACEOF
17035 /* confdefs.h.  */
17036 _ACEOF
17037 cat confdefs.h >>conftest.$ac_ext
17038 cat >>conftest.$ac_ext <<_ACEOF
17039 /* end confdefs.h.  */
17040 #include <sys/param.h>
17041 #include <sys/types.h>
17042 #include <sys/socket.h>
17043 #include <sys/ucred.h>
17044
17045 int
17046 main ()
17047 {
17048 if (sizeof (struct cmsgcred))
17049        return 0;
17050   ;
17051   return 0;
17052 }
17053 _ACEOF
17054 rm -f conftest.$ac_objext
17055 if { (ac_try="$ac_compile"
17056 case "(($ac_try" in
17057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058   *) ac_try_echo=$ac_try;;
17059 esac
17060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17061 $as_echo "$ac_try_echo") >&5
17062   (eval "$ac_compile") 2>conftest.er1
17063   ac_status=$?
17064   grep -v '^ *+' conftest.er1 >conftest.err
17065   rm -f conftest.er1
17066   cat conftest.err >&5
17067   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068   (exit $ac_status); } && {
17069          test -z "$ac_c_werror_flag" ||
17070          test ! -s conftest.err
17071        } && test -s conftest.$ac_objext; then
17072   cat >conftest.$ac_ext <<_ACEOF
17073 /* confdefs.h.  */
17074 _ACEOF
17075 cat confdefs.h >>conftest.$ac_ext
17076 cat >>conftest.$ac_ext <<_ACEOF
17077 /* end confdefs.h.  */
17078 #include <sys/param.h>
17079 #include <sys/types.h>
17080 #include <sys/socket.h>
17081 #include <sys/ucred.h>
17082
17083 int
17084 main ()
17085 {
17086 if (sizeof ((struct cmsgcred)))
17087           return 0;
17088   ;
17089   return 0;
17090 }
17091 _ACEOF
17092 rm -f conftest.$ac_objext
17093 if { (ac_try="$ac_compile"
17094 case "(($ac_try" in
17095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17096   *) ac_try_echo=$ac_try;;
17097 esac
17098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17099 $as_echo "$ac_try_echo") >&5
17100   (eval "$ac_compile") 2>conftest.er1
17101   ac_status=$?
17102   grep -v '^ *+' conftest.er1 >conftest.err
17103   rm -f conftest.er1
17104   cat conftest.err >&5
17105   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106   (exit $ac_status); } && {
17107          test -z "$ac_c_werror_flag" ||
17108          test ! -s conftest.err
17109        } && test -s conftest.$ac_objext; then
17110   :
17111 else
17112   $as_echo "$as_me: failed program was:" >&5
17113 sed 's/^/| /' conftest.$ac_ext >&5
17114
17115         ac_cv_type_struct_cmsgcred=yes
17116 fi
17117
17118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17119 else
17120   $as_echo "$as_me: failed program was:" >&5
17121 sed 's/^/| /' conftest.$ac_ext >&5
17122
17123
17124 fi
17125
17126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17127 fi
17128 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
17129 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
17130 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
17131
17132 cat >>confdefs.h <<_ACEOF
17133 #define HAVE_STRUCT_CMSGCRED 1
17134 _ACEOF
17135
17136
17137 fi
17138 { $as_echo "$as_me:$LINENO: checking for struct fcred" >&5
17139 $as_echo_n "checking for struct fcred... " >&6; }
17140 if test "${ac_cv_type_struct_fcred+set}" = set; then
17141   $as_echo_n "(cached) " >&6
17142 else
17143   ac_cv_type_struct_fcred=no
17144 cat >conftest.$ac_ext <<_ACEOF
17145 /* confdefs.h.  */
17146 _ACEOF
17147 cat confdefs.h >>conftest.$ac_ext
17148 cat >>conftest.$ac_ext <<_ACEOF
17149 /* end confdefs.h.  */
17150 #include <sys/param.h>
17151 #include <sys/types.h>
17152 #include <sys/socket.h>
17153 #include <sys/ucred.h>
17154
17155 int
17156 main ()
17157 {
17158 if (sizeof (struct fcred))
17159        return 0;
17160   ;
17161   return 0;
17162 }
17163 _ACEOF
17164 rm -f conftest.$ac_objext
17165 if { (ac_try="$ac_compile"
17166 case "(($ac_try" in
17167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17168   *) ac_try_echo=$ac_try;;
17169 esac
17170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17171 $as_echo "$ac_try_echo") >&5
17172   (eval "$ac_compile") 2>conftest.er1
17173   ac_status=$?
17174   grep -v '^ *+' conftest.er1 >conftest.err
17175   rm -f conftest.er1
17176   cat conftest.err >&5
17177   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178   (exit $ac_status); } && {
17179          test -z "$ac_c_werror_flag" ||
17180          test ! -s conftest.err
17181        } && test -s conftest.$ac_objext; then
17182   cat >conftest.$ac_ext <<_ACEOF
17183 /* confdefs.h.  */
17184 _ACEOF
17185 cat confdefs.h >>conftest.$ac_ext
17186 cat >>conftest.$ac_ext <<_ACEOF
17187 /* end confdefs.h.  */
17188 #include <sys/param.h>
17189 #include <sys/types.h>
17190 #include <sys/socket.h>
17191 #include <sys/ucred.h>
17192
17193 int
17194 main ()
17195 {
17196 if (sizeof ((struct fcred)))
17197           return 0;
17198   ;
17199   return 0;
17200 }
17201 _ACEOF
17202 rm -f conftest.$ac_objext
17203 if { (ac_try="$ac_compile"
17204 case "(($ac_try" in
17205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17206   *) ac_try_echo=$ac_try;;
17207 esac
17208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17209 $as_echo "$ac_try_echo") >&5
17210   (eval "$ac_compile") 2>conftest.er1
17211   ac_status=$?
17212   grep -v '^ *+' conftest.er1 >conftest.err
17213   rm -f conftest.er1
17214   cat conftest.err >&5
17215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216   (exit $ac_status); } && {
17217          test -z "$ac_c_werror_flag" ||
17218          test ! -s conftest.err
17219        } && test -s conftest.$ac_objext; then
17220   :
17221 else
17222   $as_echo "$as_me: failed program was:" >&5
17223 sed 's/^/| /' conftest.$ac_ext >&5
17224
17225         ac_cv_type_struct_fcred=yes
17226 fi
17227
17228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17229 else
17230   $as_echo "$as_me: failed program was:" >&5
17231 sed 's/^/| /' conftest.$ac_ext >&5
17232
17233
17234 fi
17235
17236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17237 fi
17238 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
17239 $as_echo "$ac_cv_type_struct_fcred" >&6; }
17240 if test "x$ac_cv_type_struct_fcred" = x""yes; then
17241
17242 cat >>confdefs.h <<_ACEOF
17243 #define HAVE_STRUCT_FCRED 1
17244 _ACEOF
17245
17246
17247 fi
17248 { $as_echo "$as_me:$LINENO: checking for struct sockcred" >&5
17249 $as_echo_n "checking for struct sockcred... " >&6; }
17250 if test "${ac_cv_type_struct_sockcred+set}" = set; then
17251   $as_echo_n "(cached) " >&6
17252 else
17253   ac_cv_type_struct_sockcred=no
17254 cat >conftest.$ac_ext <<_ACEOF
17255 /* confdefs.h.  */
17256 _ACEOF
17257 cat confdefs.h >>conftest.$ac_ext
17258 cat >>conftest.$ac_ext <<_ACEOF
17259 /* end confdefs.h.  */
17260 #include <sys/param.h>
17261 #include <sys/types.h>
17262 #include <sys/socket.h>
17263 #include <sys/ucred.h>
17264
17265 int
17266 main ()
17267 {
17268 if (sizeof (struct sockcred))
17269        return 0;
17270   ;
17271   return 0;
17272 }
17273 _ACEOF
17274 rm -f conftest.$ac_objext
17275 if { (ac_try="$ac_compile"
17276 case "(($ac_try" in
17277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17278   *) ac_try_echo=$ac_try;;
17279 esac
17280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17281 $as_echo "$ac_try_echo") >&5
17282   (eval "$ac_compile") 2>conftest.er1
17283   ac_status=$?
17284   grep -v '^ *+' conftest.er1 >conftest.err
17285   rm -f conftest.er1
17286   cat conftest.err >&5
17287   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288   (exit $ac_status); } && {
17289          test -z "$ac_c_werror_flag" ||
17290          test ! -s conftest.err
17291        } && test -s conftest.$ac_objext; then
17292   cat >conftest.$ac_ext <<_ACEOF
17293 /* confdefs.h.  */
17294 _ACEOF
17295 cat confdefs.h >>conftest.$ac_ext
17296 cat >>conftest.$ac_ext <<_ACEOF
17297 /* end confdefs.h.  */
17298 #include <sys/param.h>
17299 #include <sys/types.h>
17300 #include <sys/socket.h>
17301 #include <sys/ucred.h>
17302
17303 int
17304 main ()
17305 {
17306 if (sizeof ((struct sockcred)))
17307           return 0;
17308   ;
17309   return 0;
17310 }
17311 _ACEOF
17312 rm -f conftest.$ac_objext
17313 if { (ac_try="$ac_compile"
17314 case "(($ac_try" in
17315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17316   *) ac_try_echo=$ac_try;;
17317 esac
17318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17319 $as_echo "$ac_try_echo") >&5
17320   (eval "$ac_compile") 2>conftest.er1
17321   ac_status=$?
17322   grep -v '^ *+' conftest.er1 >conftest.err
17323   rm -f conftest.er1
17324   cat conftest.err >&5
17325   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326   (exit $ac_status); } && {
17327          test -z "$ac_c_werror_flag" ||
17328          test ! -s conftest.err
17329        } && test -s conftest.$ac_objext; then
17330   :
17331 else
17332   $as_echo "$as_me: failed program was:" >&5
17333 sed 's/^/| /' conftest.$ac_ext >&5
17334
17335         ac_cv_type_struct_sockcred=yes
17336 fi
17337
17338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17339 else
17340   $as_echo "$as_me: failed program was:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17342
17343
17344 fi
17345
17346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17347 fi
17348 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
17349 $as_echo "$ac_cv_type_struct_sockcred" >&6; }
17350 if test "x$ac_cv_type_struct_sockcred" = x""yes; then
17351
17352 cat >>confdefs.h <<_ACEOF
17353 #define HAVE_STRUCT_SOCKCRED 1
17354 _ACEOF
17355
17356
17357 fi
17358
17359
17360 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
17361 $as_echo_n "checking for struct option... " >&6; }
17362 if test "${ac_cv_type_struct_option+set}" = set; then
17363   $as_echo_n "(cached) " >&6
17364 else
17365   ac_cv_type_struct_option=no
17366 cat >conftest.$ac_ext <<_ACEOF
17367 /* confdefs.h.  */
17368 _ACEOF
17369 cat confdefs.h >>conftest.$ac_ext
17370 cat >>conftest.$ac_ext <<_ACEOF
17371 /* end confdefs.h.  */
17372 #ifdef HAVE_GETOPT_H
17373 #include <getopt.h>
17374 #endif
17375
17376 int
17377 main ()
17378 {
17379 if (sizeof (struct option))
17380        return 0;
17381   ;
17382   return 0;
17383 }
17384 _ACEOF
17385 rm -f conftest.$ac_objext
17386 if { (ac_try="$ac_compile"
17387 case "(($ac_try" in
17388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389   *) ac_try_echo=$ac_try;;
17390 esac
17391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17392 $as_echo "$ac_try_echo") >&5
17393   (eval "$ac_compile") 2>conftest.er1
17394   ac_status=$?
17395   grep -v '^ *+' conftest.er1 >conftest.err
17396   rm -f conftest.er1
17397   cat conftest.err >&5
17398   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399   (exit $ac_status); } && {
17400          test -z "$ac_c_werror_flag" ||
17401          test ! -s conftest.err
17402        } && test -s conftest.$ac_objext; then
17403   cat >conftest.$ac_ext <<_ACEOF
17404 /* confdefs.h.  */
17405 _ACEOF
17406 cat confdefs.h >>conftest.$ac_ext
17407 cat >>conftest.$ac_ext <<_ACEOF
17408 /* end confdefs.h.  */
17409 #ifdef HAVE_GETOPT_H
17410 #include <getopt.h>
17411 #endif
17412
17413 int
17414 main ()
17415 {
17416 if (sizeof ((struct option)))
17417           return 0;
17418   ;
17419   return 0;
17420 }
17421 _ACEOF
17422 rm -f conftest.$ac_objext
17423 if { (ac_try="$ac_compile"
17424 case "(($ac_try" in
17425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17426   *) ac_try_echo=$ac_try;;
17427 esac
17428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17429 $as_echo "$ac_try_echo") >&5
17430   (eval "$ac_compile") 2>conftest.er1
17431   ac_status=$?
17432   grep -v '^ *+' conftest.er1 >conftest.err
17433   rm -f conftest.er1
17434   cat conftest.err >&5
17435   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436   (exit $ac_status); } && {
17437          test -z "$ac_c_werror_flag" ||
17438          test ! -s conftest.err
17439        } && test -s conftest.$ac_objext; then
17440   :
17441 else
17442   $as_echo "$as_me: failed program was:" >&5
17443 sed 's/^/| /' conftest.$ac_ext >&5
17444
17445         ac_cv_type_struct_option=yes
17446 fi
17447
17448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17449 else
17450   $as_echo "$as_me: failed program was:" >&5
17451 sed 's/^/| /' conftest.$ac_ext >&5
17452
17453
17454 fi
17455
17456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17457 fi
17458 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
17459 $as_echo "$ac_cv_type_struct_option" >&6; }
17460 if test "x$ac_cv_type_struct_option" = x""yes; then
17461
17462 cat >>confdefs.h <<_ACEOF
17463 #define HAVE_STRUCT_OPTION 1
17464 _ACEOF
17465
17466
17467 fi
17468
17469
17470 if test "$with_zlib" = yes; then
17471   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
17472   # did not).  While we could work around the lack of z_streamp, it
17473   # seems unwise to encourage people to use such old zlib versions...
17474   { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
17475 $as_echo_n "checking for z_streamp... " >&6; }
17476 if test "${ac_cv_type_z_streamp+set}" = set; then
17477   $as_echo_n "(cached) " >&6
17478 else
17479   ac_cv_type_z_streamp=no
17480 cat >conftest.$ac_ext <<_ACEOF
17481 /* confdefs.h.  */
17482 _ACEOF
17483 cat confdefs.h >>conftest.$ac_ext
17484 cat >>conftest.$ac_ext <<_ACEOF
17485 /* end confdefs.h.  */
17486 #include <zlib.h>
17487
17488 int
17489 main ()
17490 {
17491 if (sizeof (z_streamp))
17492        return 0;
17493   ;
17494   return 0;
17495 }
17496 _ACEOF
17497 rm -f conftest.$ac_objext
17498 if { (ac_try="$ac_compile"
17499 case "(($ac_try" in
17500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17501   *) ac_try_echo=$ac_try;;
17502 esac
17503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17504 $as_echo "$ac_try_echo") >&5
17505   (eval "$ac_compile") 2>conftest.er1
17506   ac_status=$?
17507   grep -v '^ *+' conftest.er1 >conftest.err
17508   rm -f conftest.er1
17509   cat conftest.err >&5
17510   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511   (exit $ac_status); } && {
17512          test -z "$ac_c_werror_flag" ||
17513          test ! -s conftest.err
17514        } && test -s conftest.$ac_objext; then
17515   cat >conftest.$ac_ext <<_ACEOF
17516 /* confdefs.h.  */
17517 _ACEOF
17518 cat confdefs.h >>conftest.$ac_ext
17519 cat >>conftest.$ac_ext <<_ACEOF
17520 /* end confdefs.h.  */
17521 #include <zlib.h>
17522
17523 int
17524 main ()
17525 {
17526 if (sizeof ((z_streamp)))
17527           return 0;
17528   ;
17529   return 0;
17530 }
17531 _ACEOF
17532 rm -f conftest.$ac_objext
17533 if { (ac_try="$ac_compile"
17534 case "(($ac_try" in
17535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536   *) ac_try_echo=$ac_try;;
17537 esac
17538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17539 $as_echo "$ac_try_echo") >&5
17540   (eval "$ac_compile") 2>conftest.er1
17541   ac_status=$?
17542   grep -v '^ *+' conftest.er1 >conftest.err
17543   rm -f conftest.er1
17544   cat conftest.err >&5
17545   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546   (exit $ac_status); } && {
17547          test -z "$ac_c_werror_flag" ||
17548          test ! -s conftest.err
17549        } && test -s conftest.$ac_objext; then
17550   :
17551 else
17552   $as_echo "$as_me: failed program was:" >&5
17553 sed 's/^/| /' conftest.$ac_ext >&5
17554
17555         ac_cv_type_z_streamp=yes
17556 fi
17557
17558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17559 else
17560   $as_echo "$as_me: failed program was:" >&5
17561 sed 's/^/| /' conftest.$ac_ext >&5
17562
17563
17564 fi
17565
17566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17567 fi
17568 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
17569 $as_echo "$ac_cv_type_z_streamp" >&6; }
17570 if test "x$ac_cv_type_z_streamp" = x""yes; then
17571   :
17572 else
17573   { { $as_echo "$as_me:$LINENO: error: zlib version is too old
17574 Use --without-zlib to disable zlib support." >&5
17575 $as_echo "$as_me: error: zlib version is too old
17576 Use --without-zlib to disable zlib support." >&2;}
17577    { (exit 1); exit 1; }; }
17578 fi
17579
17580 fi
17581
17582 if test "$with_krb5" = yes; then
17583 # Check for differences between MIT and Heimdal (KTH) releases
17584   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
17585 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
17586 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
17587   $as_echo_n "(cached) " >&6
17588 else
17589   cat >conftest.$ac_ext <<_ACEOF
17590 /* confdefs.h.  */
17591 _ACEOF
17592 cat confdefs.h >>conftest.$ac_ext
17593 cat >>conftest.$ac_ext <<_ACEOF
17594 /* end confdefs.h.  */
17595 #include <krb5.h>
17596
17597 int
17598 main ()
17599 {
17600 static krb5_ticket ac_aggr;
17601 if (ac_aggr.enc_part2)
17602 return 0;
17603   ;
17604   return 0;
17605 }
17606 _ACEOF
17607 rm -f conftest.$ac_objext
17608 if { (ac_try="$ac_compile"
17609 case "(($ac_try" in
17610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611   *) ac_try_echo=$ac_try;;
17612 esac
17613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17614 $as_echo "$ac_try_echo") >&5
17615   (eval "$ac_compile") 2>conftest.er1
17616   ac_status=$?
17617   grep -v '^ *+' conftest.er1 >conftest.err
17618   rm -f conftest.er1
17619   cat conftest.err >&5
17620   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621   (exit $ac_status); } && {
17622          test -z "$ac_c_werror_flag" ||
17623          test ! -s conftest.err
17624        } && test -s conftest.$ac_objext; then
17625   ac_cv_member_krb5_ticket_enc_part2=yes
17626 else
17627   $as_echo "$as_me: failed program was:" >&5
17628 sed 's/^/| /' conftest.$ac_ext >&5
17629
17630         cat >conftest.$ac_ext <<_ACEOF
17631 /* confdefs.h.  */
17632 _ACEOF
17633 cat confdefs.h >>conftest.$ac_ext
17634 cat >>conftest.$ac_ext <<_ACEOF
17635 /* end confdefs.h.  */
17636 #include <krb5.h>
17637
17638 int
17639 main ()
17640 {
17641 static krb5_ticket ac_aggr;
17642 if (sizeof ac_aggr.enc_part2)
17643 return 0;
17644   ;
17645   return 0;
17646 }
17647 _ACEOF
17648 rm -f conftest.$ac_objext
17649 if { (ac_try="$ac_compile"
17650 case "(($ac_try" in
17651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17652   *) ac_try_echo=$ac_try;;
17653 esac
17654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17655 $as_echo "$ac_try_echo") >&5
17656   (eval "$ac_compile") 2>conftest.er1
17657   ac_status=$?
17658   grep -v '^ *+' conftest.er1 >conftest.err
17659   rm -f conftest.er1
17660   cat conftest.err >&5
17661   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662   (exit $ac_status); } && {
17663          test -z "$ac_c_werror_flag" ||
17664          test ! -s conftest.err
17665        } && test -s conftest.$ac_objext; then
17666   ac_cv_member_krb5_ticket_enc_part2=yes
17667 else
17668   $as_echo "$as_me: failed program was:" >&5
17669 sed 's/^/| /' conftest.$ac_ext >&5
17670
17671         ac_cv_member_krb5_ticket_enc_part2=no
17672 fi
17673
17674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17675 fi
17676
17677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17678 fi
17679 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
17680 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
17681 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
17682
17683 cat >>confdefs.h <<_ACEOF
17684 #define HAVE_KRB5_TICKET_ENC_PART2 1
17685 _ACEOF
17686
17687
17688 else
17689   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
17690 $as_echo_n "checking for krb5_ticket.client... " >&6; }
17691 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
17692   $as_echo_n "(cached) " >&6
17693 else
17694   cat >conftest.$ac_ext <<_ACEOF
17695 /* confdefs.h.  */
17696 _ACEOF
17697 cat confdefs.h >>conftest.$ac_ext
17698 cat >>conftest.$ac_ext <<_ACEOF
17699 /* end confdefs.h.  */
17700 #include <krb5.h>
17701
17702 int
17703 main ()
17704 {
17705 static krb5_ticket ac_aggr;
17706 if (ac_aggr.client)
17707 return 0;
17708   ;
17709   return 0;
17710 }
17711 _ACEOF
17712 rm -f conftest.$ac_objext
17713 if { (ac_try="$ac_compile"
17714 case "(($ac_try" in
17715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17716   *) ac_try_echo=$ac_try;;
17717 esac
17718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17719 $as_echo "$ac_try_echo") >&5
17720   (eval "$ac_compile") 2>conftest.er1
17721   ac_status=$?
17722   grep -v '^ *+' conftest.er1 >conftest.err
17723   rm -f conftest.er1
17724   cat conftest.err >&5
17725   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726   (exit $ac_status); } && {
17727          test -z "$ac_c_werror_flag" ||
17728          test ! -s conftest.err
17729        } && test -s conftest.$ac_objext; then
17730   ac_cv_member_krb5_ticket_client=yes
17731 else
17732   $as_echo "$as_me: failed program was:" >&5
17733 sed 's/^/| /' conftest.$ac_ext >&5
17734
17735         cat >conftest.$ac_ext <<_ACEOF
17736 /* confdefs.h.  */
17737 _ACEOF
17738 cat confdefs.h >>conftest.$ac_ext
17739 cat >>conftest.$ac_ext <<_ACEOF
17740 /* end confdefs.h.  */
17741 #include <krb5.h>
17742
17743 int
17744 main ()
17745 {
17746 static krb5_ticket ac_aggr;
17747 if (sizeof ac_aggr.client)
17748 return 0;
17749   ;
17750   return 0;
17751 }
17752 _ACEOF
17753 rm -f conftest.$ac_objext
17754 if { (ac_try="$ac_compile"
17755 case "(($ac_try" in
17756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17757   *) ac_try_echo=$ac_try;;
17758 esac
17759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17760 $as_echo "$ac_try_echo") >&5
17761   (eval "$ac_compile") 2>conftest.er1
17762   ac_status=$?
17763   grep -v '^ *+' conftest.er1 >conftest.err
17764   rm -f conftest.er1
17765   cat conftest.err >&5
17766   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767   (exit $ac_status); } && {
17768          test -z "$ac_c_werror_flag" ||
17769          test ! -s conftest.err
17770        } && test -s conftest.$ac_objext; then
17771   ac_cv_member_krb5_ticket_client=yes
17772 else
17773   $as_echo "$as_me: failed program was:" >&5
17774 sed 's/^/| /' conftest.$ac_ext >&5
17775
17776         ac_cv_member_krb5_ticket_client=no
17777 fi
17778
17779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17780 fi
17781
17782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17783 fi
17784 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
17785 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
17786 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
17787
17788 cat >>confdefs.h <<_ACEOF
17789 #define HAVE_KRB5_TICKET_CLIENT 1
17790 _ACEOF
17791
17792
17793 else
17794   { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
17795 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
17796    { (exit 1); exit 1; }; }
17797 fi
17798
17799 fi
17800
17801   { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
17802 $as_echo_n "checking for krb5_error.text.data... " >&6; }
17803 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
17804   $as_echo_n "(cached) " >&6
17805 else
17806   cat >conftest.$ac_ext <<_ACEOF
17807 /* confdefs.h.  */
17808 _ACEOF
17809 cat confdefs.h >>conftest.$ac_ext
17810 cat >>conftest.$ac_ext <<_ACEOF
17811 /* end confdefs.h.  */
17812 #include <krb5.h>
17813
17814 int
17815 main ()
17816 {
17817 static krb5_error ac_aggr;
17818 if (ac_aggr.text.data)
17819 return 0;
17820   ;
17821   return 0;
17822 }
17823 _ACEOF
17824 rm -f conftest.$ac_objext
17825 if { (ac_try="$ac_compile"
17826 case "(($ac_try" in
17827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17828   *) ac_try_echo=$ac_try;;
17829 esac
17830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17831 $as_echo "$ac_try_echo") >&5
17832   (eval "$ac_compile") 2>conftest.er1
17833   ac_status=$?
17834   grep -v '^ *+' conftest.er1 >conftest.err
17835   rm -f conftest.er1
17836   cat conftest.err >&5
17837   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838   (exit $ac_status); } && {
17839          test -z "$ac_c_werror_flag" ||
17840          test ! -s conftest.err
17841        } && test -s conftest.$ac_objext; then
17842   ac_cv_member_krb5_error_text_data=yes
17843 else
17844   $as_echo "$as_me: failed program was:" >&5
17845 sed 's/^/| /' conftest.$ac_ext >&5
17846
17847         cat >conftest.$ac_ext <<_ACEOF
17848 /* confdefs.h.  */
17849 _ACEOF
17850 cat confdefs.h >>conftest.$ac_ext
17851 cat >>conftest.$ac_ext <<_ACEOF
17852 /* end confdefs.h.  */
17853 #include <krb5.h>
17854
17855 int
17856 main ()
17857 {
17858 static krb5_error ac_aggr;
17859 if (sizeof ac_aggr.text.data)
17860 return 0;
17861   ;
17862   return 0;
17863 }
17864 _ACEOF
17865 rm -f conftest.$ac_objext
17866 if { (ac_try="$ac_compile"
17867 case "(($ac_try" in
17868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17869   *) ac_try_echo=$ac_try;;
17870 esac
17871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17872 $as_echo "$ac_try_echo") >&5
17873   (eval "$ac_compile") 2>conftest.er1
17874   ac_status=$?
17875   grep -v '^ *+' conftest.er1 >conftest.err
17876   rm -f conftest.er1
17877   cat conftest.err >&5
17878   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879   (exit $ac_status); } && {
17880          test -z "$ac_c_werror_flag" ||
17881          test ! -s conftest.err
17882        } && test -s conftest.$ac_objext; then
17883   ac_cv_member_krb5_error_text_data=yes
17884 else
17885   $as_echo "$as_me: failed program was:" >&5
17886 sed 's/^/| /' conftest.$ac_ext >&5
17887
17888         ac_cv_member_krb5_error_text_data=no
17889 fi
17890
17891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17892 fi
17893
17894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17895 fi
17896 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
17897 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
17898 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
17899
17900 cat >>confdefs.h <<_ACEOF
17901 #define HAVE_KRB5_ERROR_TEXT_DATA 1
17902 _ACEOF
17903
17904
17905 else
17906   { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
17907 $as_echo_n "checking for krb5_error.e_data... " >&6; }
17908 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
17909   $as_echo_n "(cached) " >&6
17910 else
17911   cat >conftest.$ac_ext <<_ACEOF
17912 /* confdefs.h.  */
17913 _ACEOF
17914 cat confdefs.h >>conftest.$ac_ext
17915 cat >>conftest.$ac_ext <<_ACEOF
17916 /* end confdefs.h.  */
17917 #include <krb5.h>
17918
17919 int
17920 main ()
17921 {
17922 static krb5_error ac_aggr;
17923 if (ac_aggr.e_data)
17924 return 0;
17925   ;
17926   return 0;
17927 }
17928 _ACEOF
17929 rm -f conftest.$ac_objext
17930 if { (ac_try="$ac_compile"
17931 case "(($ac_try" in
17932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17933   *) ac_try_echo=$ac_try;;
17934 esac
17935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17936 $as_echo "$ac_try_echo") >&5
17937   (eval "$ac_compile") 2>conftest.er1
17938   ac_status=$?
17939   grep -v '^ *+' conftest.er1 >conftest.err
17940   rm -f conftest.er1
17941   cat conftest.err >&5
17942   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943   (exit $ac_status); } && {
17944          test -z "$ac_c_werror_flag" ||
17945          test ! -s conftest.err
17946        } && test -s conftest.$ac_objext; then
17947   ac_cv_member_krb5_error_e_data=yes
17948 else
17949   $as_echo "$as_me: failed program was:" >&5
17950 sed 's/^/| /' conftest.$ac_ext >&5
17951
17952         cat >conftest.$ac_ext <<_ACEOF
17953 /* confdefs.h.  */
17954 _ACEOF
17955 cat confdefs.h >>conftest.$ac_ext
17956 cat >>conftest.$ac_ext <<_ACEOF
17957 /* end confdefs.h.  */
17958 #include <krb5.h>
17959
17960 int
17961 main ()
17962 {
17963 static krb5_error ac_aggr;
17964 if (sizeof ac_aggr.e_data)
17965 return 0;
17966   ;
17967   return 0;
17968 }
17969 _ACEOF
17970 rm -f conftest.$ac_objext
17971 if { (ac_try="$ac_compile"
17972 case "(($ac_try" in
17973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17974   *) ac_try_echo=$ac_try;;
17975 esac
17976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17977 $as_echo "$ac_try_echo") >&5
17978   (eval "$ac_compile") 2>conftest.er1
17979   ac_status=$?
17980   grep -v '^ *+' conftest.er1 >conftest.err
17981   rm -f conftest.er1
17982   cat conftest.err >&5
17983   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984   (exit $ac_status); } && {
17985          test -z "$ac_c_werror_flag" ||
17986          test ! -s conftest.err
17987        } && test -s conftest.$ac_objext; then
17988   ac_cv_member_krb5_error_e_data=yes
17989 else
17990   $as_echo "$as_me: failed program was:" >&5
17991 sed 's/^/| /' conftest.$ac_ext >&5
17992
17993         ac_cv_member_krb5_error_e_data=no
17994 fi
17995
17996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17997 fi
17998
17999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18000 fi
18001 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
18002 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
18003 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
18004
18005 cat >>confdefs.h <<_ACEOF
18006 #define HAVE_KRB5_ERROR_E_DATA 1
18007 _ACEOF
18008
18009
18010 else
18011   { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
18012 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
18013    { (exit 1); exit 1; }; }
18014 fi
18015
18016 fi
18017
18018
18019 # Win32 requires headers to be loaded for __stdcall, so can't use
18020 # AC_CHECK_FUNCS here.
18021   { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
18022 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
18023   cat >conftest.$ac_ext <<_ACEOF
18024 /* confdefs.h.  */
18025 _ACEOF
18026 cat confdefs.h >>conftest.$ac_ext
18027 cat >>conftest.$ac_ext <<_ACEOF
18028 /* end confdefs.h.  */
18029 #include <krb5.h>
18030 int
18031 main ()
18032 {
18033 krb5_free_unparsed_name(NULL,NULL);
18034   ;
18035   return 0;
18036 }
18037 _ACEOF
18038 rm -f conftest.$ac_objext conftest$ac_exeext
18039 if { (ac_try="$ac_link"
18040 case "(($ac_try" in
18041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18042   *) ac_try_echo=$ac_try;;
18043 esac
18044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18045 $as_echo "$ac_try_echo") >&5
18046   (eval "$ac_link") 2>conftest.er1
18047   ac_status=$?
18048   grep -v '^ *+' conftest.er1 >conftest.err
18049   rm -f conftest.er1
18050   cat conftest.err >&5
18051   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052   (exit $ac_status); } && {
18053          test -z "$ac_c_werror_flag" ||
18054          test ! -s conftest.err
18055        } && test -s conftest$ac_exeext && {
18056          test "$cross_compiling" = yes ||
18057          $as_test_x conftest$ac_exeext
18058        }; then
18059
18060 cat >>confdefs.h <<\_ACEOF
18061 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
18062 _ACEOF
18063
18064 { $as_echo "$as_me:$LINENO: result: yes" >&5
18065 $as_echo "yes" >&6; }
18066 else
18067   $as_echo "$as_me: failed program was:" >&5
18068 sed 's/^/| /' conftest.$ac_ext >&5
18069
18070         { $as_echo "$as_me:$LINENO: result: no" >&5
18071 $as_echo "no" >&6; }
18072 fi
18073
18074 rm -rf conftest.dSYM
18075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18076       conftest$ac_exeext conftest.$ac_ext
18077 fi
18078
18079 # Check largefile support.  You might think this is a system service not a
18080 # compiler characteristic, but you'd be wrong.  We must check this before
18081 # probing existence of related functions such as fseeko, since the largefile
18082 # defines can affect what is generated for that.
18083 # Check whether --enable-largefile was given.
18084 if test "${enable_largefile+set}" = set; then
18085   enableval=$enable_largefile;
18086 fi
18087
18088 if test "$enable_largefile" != no; then
18089
18090   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
18091 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18092 if test "${ac_cv_sys_largefile_CC+set}" = set; then
18093   $as_echo_n "(cached) " >&6
18094 else
18095   ac_cv_sys_largefile_CC=no
18096      if test "$GCC" != yes; then
18097        ac_save_CC=$CC
18098        while :; do
18099          # IRIX 6.2 and later do not support large files by default,
18100          # so use the C compiler's -n32 option if that helps.
18101          cat >conftest.$ac_ext <<_ACEOF
18102 /* confdefs.h.  */
18103 _ACEOF
18104 cat confdefs.h >>conftest.$ac_ext
18105 cat >>conftest.$ac_ext <<_ACEOF
18106 /* end confdefs.h.  */
18107 #include <sys/types.h>
18108  /* Check that off_t can represent 2**63 - 1 correctly.
18109     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18110     since some C++ compilers masquerading as C compilers
18111     incorrectly reject 9223372036854775807.  */
18112 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18113   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18114                        && LARGE_OFF_T % 2147483647 == 1)
18115                       ? 1 : -1];
18116 int
18117 main ()
18118 {
18119
18120   ;
18121   return 0;
18122 }
18123 _ACEOF
18124          rm -f conftest.$ac_objext
18125 if { (ac_try="$ac_compile"
18126 case "(($ac_try" in
18127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18128   *) ac_try_echo=$ac_try;;
18129 esac
18130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18131 $as_echo "$ac_try_echo") >&5
18132   (eval "$ac_compile") 2>conftest.er1
18133   ac_status=$?
18134   grep -v '^ *+' conftest.er1 >conftest.err
18135   rm -f conftest.er1
18136   cat conftest.err >&5
18137   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138   (exit $ac_status); } && {
18139          test -z "$ac_c_werror_flag" ||
18140          test ! -s conftest.err
18141        } && test -s conftest.$ac_objext; then
18142   break
18143 else
18144   $as_echo "$as_me: failed program was:" >&5
18145 sed 's/^/| /' conftest.$ac_ext >&5
18146
18147
18148 fi
18149
18150 rm -f core conftest.err conftest.$ac_objext
18151          CC="$CC -n32"
18152          rm -f conftest.$ac_objext
18153 if { (ac_try="$ac_compile"
18154 case "(($ac_try" in
18155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18156   *) ac_try_echo=$ac_try;;
18157 esac
18158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18159 $as_echo "$ac_try_echo") >&5
18160   (eval "$ac_compile") 2>conftest.er1
18161   ac_status=$?
18162   grep -v '^ *+' conftest.er1 >conftest.err
18163   rm -f conftest.er1
18164   cat conftest.err >&5
18165   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166   (exit $ac_status); } && {
18167          test -z "$ac_c_werror_flag" ||
18168          test ! -s conftest.err
18169        } && test -s conftest.$ac_objext; then
18170   ac_cv_sys_largefile_CC=' -n32'; break
18171 else
18172   $as_echo "$as_me: failed program was:" >&5
18173 sed 's/^/| /' conftest.$ac_ext >&5
18174
18175
18176 fi
18177
18178 rm -f core conftest.err conftest.$ac_objext
18179          break
18180        done
18181        CC=$ac_save_CC
18182        rm -f conftest.$ac_ext
18183     fi
18184 fi
18185 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
18186 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
18187   if test "$ac_cv_sys_largefile_CC" != no; then
18188     CC=$CC$ac_cv_sys_largefile_CC
18189   fi
18190
18191   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18192 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18193 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18194   $as_echo_n "(cached) " >&6
18195 else
18196   while :; do
18197   cat >conftest.$ac_ext <<_ACEOF
18198 /* confdefs.h.  */
18199 _ACEOF
18200 cat confdefs.h >>conftest.$ac_ext
18201 cat >>conftest.$ac_ext <<_ACEOF
18202 /* end confdefs.h.  */
18203 #include <sys/types.h>
18204  /* Check that off_t can represent 2**63 - 1 correctly.
18205     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18206     since some C++ compilers masquerading as C compilers
18207     incorrectly reject 9223372036854775807.  */
18208 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18209   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18210                        && LARGE_OFF_T % 2147483647 == 1)
18211                       ? 1 : -1];
18212 int
18213 main ()
18214 {
18215
18216   ;
18217   return 0;
18218 }
18219 _ACEOF
18220 rm -f conftest.$ac_objext
18221 if { (ac_try="$ac_compile"
18222 case "(($ac_try" in
18223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18224   *) ac_try_echo=$ac_try;;
18225 esac
18226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18227 $as_echo "$ac_try_echo") >&5
18228   (eval "$ac_compile") 2>conftest.er1
18229   ac_status=$?
18230   grep -v '^ *+' conftest.er1 >conftest.err
18231   rm -f conftest.er1
18232   cat conftest.err >&5
18233   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234   (exit $ac_status); } && {
18235          test -z "$ac_c_werror_flag" ||
18236          test ! -s conftest.err
18237        } && test -s conftest.$ac_objext; then
18238   ac_cv_sys_file_offset_bits=no; break
18239 else
18240   $as_echo "$as_me: failed program was:" >&5
18241 sed 's/^/| /' conftest.$ac_ext >&5
18242
18243
18244 fi
18245
18246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18247   cat >conftest.$ac_ext <<_ACEOF
18248 /* confdefs.h.  */
18249 _ACEOF
18250 cat confdefs.h >>conftest.$ac_ext
18251 cat >>conftest.$ac_ext <<_ACEOF
18252 /* end confdefs.h.  */
18253 #define _FILE_OFFSET_BITS 64
18254 #include <sys/types.h>
18255  /* Check that off_t can represent 2**63 - 1 correctly.
18256     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18257     since some C++ compilers masquerading as C compilers
18258     incorrectly reject 9223372036854775807.  */
18259 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18260   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18261                        && LARGE_OFF_T % 2147483647 == 1)
18262                       ? 1 : -1];
18263 int
18264 main ()
18265 {
18266
18267   ;
18268   return 0;
18269 }
18270 _ACEOF
18271 rm -f conftest.$ac_objext
18272 if { (ac_try="$ac_compile"
18273 case "(($ac_try" in
18274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18275   *) ac_try_echo=$ac_try;;
18276 esac
18277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18278 $as_echo "$ac_try_echo") >&5
18279   (eval "$ac_compile") 2>conftest.er1
18280   ac_status=$?
18281   grep -v '^ *+' conftest.er1 >conftest.err
18282   rm -f conftest.er1
18283   cat conftest.err >&5
18284   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285   (exit $ac_status); } && {
18286          test -z "$ac_c_werror_flag" ||
18287          test ! -s conftest.err
18288        } && test -s conftest.$ac_objext; then
18289   ac_cv_sys_file_offset_bits=64; break
18290 else
18291   $as_echo "$as_me: failed program was:" >&5
18292 sed 's/^/| /' conftest.$ac_ext >&5
18293
18294
18295 fi
18296
18297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18298   ac_cv_sys_file_offset_bits=unknown
18299   break
18300 done
18301 fi
18302 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18303 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18304 case $ac_cv_sys_file_offset_bits in #(
18305   no | unknown) ;;
18306   *)
18307 cat >>confdefs.h <<_ACEOF
18308 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18309 _ACEOF
18310 ;;
18311 esac
18312 rm -rf conftest*
18313   if test $ac_cv_sys_file_offset_bits = unknown; then
18314     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18315 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18316 if test "${ac_cv_sys_large_files+set}" = set; then
18317   $as_echo_n "(cached) " >&6
18318 else
18319   while :; do
18320   cat >conftest.$ac_ext <<_ACEOF
18321 /* confdefs.h.  */
18322 _ACEOF
18323 cat confdefs.h >>conftest.$ac_ext
18324 cat >>conftest.$ac_ext <<_ACEOF
18325 /* end confdefs.h.  */
18326 #include <sys/types.h>
18327  /* Check that off_t can represent 2**63 - 1 correctly.
18328     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18329     since some C++ compilers masquerading as C compilers
18330     incorrectly reject 9223372036854775807.  */
18331 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18332   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18333                        && LARGE_OFF_T % 2147483647 == 1)
18334                       ? 1 : -1];
18335 int
18336 main ()
18337 {
18338
18339   ;
18340   return 0;
18341 }
18342 _ACEOF
18343 rm -f conftest.$ac_objext
18344 if { (ac_try="$ac_compile"
18345 case "(($ac_try" in
18346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18347   *) ac_try_echo=$ac_try;;
18348 esac
18349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18350 $as_echo "$ac_try_echo") >&5
18351   (eval "$ac_compile") 2>conftest.er1
18352   ac_status=$?
18353   grep -v '^ *+' conftest.er1 >conftest.err
18354   rm -f conftest.er1
18355   cat conftest.err >&5
18356   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357   (exit $ac_status); } && {
18358          test -z "$ac_c_werror_flag" ||
18359          test ! -s conftest.err
18360        } && test -s conftest.$ac_objext; then
18361   ac_cv_sys_large_files=no; break
18362 else
18363   $as_echo "$as_me: failed program was:" >&5
18364 sed 's/^/| /' conftest.$ac_ext >&5
18365
18366
18367 fi
18368
18369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18370   cat >conftest.$ac_ext <<_ACEOF
18371 /* confdefs.h.  */
18372 _ACEOF
18373 cat confdefs.h >>conftest.$ac_ext
18374 cat >>conftest.$ac_ext <<_ACEOF
18375 /* end confdefs.h.  */
18376 #define _LARGE_FILES 1
18377 #include <sys/types.h>
18378  /* Check that off_t can represent 2**63 - 1 correctly.
18379     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18380     since some C++ compilers masquerading as C compilers
18381     incorrectly reject 9223372036854775807.  */
18382 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18383   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18384                        && LARGE_OFF_T % 2147483647 == 1)
18385                       ? 1 : -1];
18386 int
18387 main ()
18388 {
18389
18390   ;
18391   return 0;
18392 }
18393 _ACEOF
18394 rm -f conftest.$ac_objext
18395 if { (ac_try="$ac_compile"
18396 case "(($ac_try" in
18397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18398   *) ac_try_echo=$ac_try;;
18399 esac
18400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18401 $as_echo "$ac_try_echo") >&5
18402   (eval "$ac_compile") 2>conftest.er1
18403   ac_status=$?
18404   grep -v '^ *+' conftest.er1 >conftest.err
18405   rm -f conftest.er1
18406   cat conftest.err >&5
18407   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408   (exit $ac_status); } && {
18409          test -z "$ac_c_werror_flag" ||
18410          test ! -s conftest.err
18411        } && test -s conftest.$ac_objext; then
18412   ac_cv_sys_large_files=1; break
18413 else
18414   $as_echo "$as_me: failed program was:" >&5
18415 sed 's/^/| /' conftest.$ac_ext >&5
18416
18417
18418 fi
18419
18420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18421   ac_cv_sys_large_files=unknown
18422   break
18423 done
18424 fi
18425 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18426 $as_echo "$ac_cv_sys_large_files" >&6; }
18427 case $ac_cv_sys_large_files in #(
18428   no | unknown) ;;
18429   *)
18430 cat >>confdefs.h <<_ACEOF
18431 #define _LARGE_FILES $ac_cv_sys_large_files
18432 _ACEOF
18433 ;;
18434 esac
18435 rm -rf conftest*
18436   fi
18437 fi
18438
18439
18440 # Check for largefile support (must be after AC_SYS_LARGEFILE)
18441 # The cast to long int works around a bug in the HP C Compiler
18442 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18443 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18444 # This bug is HP SR number 8606223364.
18445 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
18446 $as_echo_n "checking size of off_t... " >&6; }
18447 if test "${ac_cv_sizeof_off_t+set}" = set; then
18448   $as_echo_n "(cached) " >&6
18449 else
18450   if test "$cross_compiling" = yes; then
18451   # Depending upon the size, compute the lo and hi bounds.
18452 cat >conftest.$ac_ext <<_ACEOF
18453 /* confdefs.h.  */
18454 _ACEOF
18455 cat confdefs.h >>conftest.$ac_ext
18456 cat >>conftest.$ac_ext <<_ACEOF
18457 /* end confdefs.h.  */
18458 $ac_includes_default
18459 int
18460 main ()
18461 {
18462 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
18463 test_array [0] = 0
18464
18465   ;
18466   return 0;
18467 }
18468 _ACEOF
18469 rm -f conftest.$ac_objext
18470 if { (ac_try="$ac_compile"
18471 case "(($ac_try" in
18472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18473   *) ac_try_echo=$ac_try;;
18474 esac
18475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18476 $as_echo "$ac_try_echo") >&5
18477   (eval "$ac_compile") 2>conftest.er1
18478   ac_status=$?
18479   grep -v '^ *+' conftest.er1 >conftest.err
18480   rm -f conftest.er1
18481   cat conftest.err >&5
18482   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483   (exit $ac_status); } && {
18484          test -z "$ac_c_werror_flag" ||
18485          test ! -s conftest.err
18486        } && test -s conftest.$ac_objext; then
18487   ac_lo=0 ac_mid=0
18488   while :; do
18489     cat >conftest.$ac_ext <<_ACEOF
18490 /* confdefs.h.  */
18491 _ACEOF
18492 cat confdefs.h >>conftest.$ac_ext
18493 cat >>conftest.$ac_ext <<_ACEOF
18494 /* end confdefs.h.  */
18495 $ac_includes_default
18496 int
18497 main ()
18498 {
18499 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18500 test_array [0] = 0
18501
18502   ;
18503   return 0;
18504 }
18505 _ACEOF
18506 rm -f conftest.$ac_objext
18507 if { (ac_try="$ac_compile"
18508 case "(($ac_try" in
18509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18510   *) ac_try_echo=$ac_try;;
18511 esac
18512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18513 $as_echo "$ac_try_echo") >&5
18514   (eval "$ac_compile") 2>conftest.er1
18515   ac_status=$?
18516   grep -v '^ *+' conftest.er1 >conftest.err
18517   rm -f conftest.er1
18518   cat conftest.err >&5
18519   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520   (exit $ac_status); } && {
18521          test -z "$ac_c_werror_flag" ||
18522          test ! -s conftest.err
18523        } && test -s conftest.$ac_objext; then
18524   ac_hi=$ac_mid; break
18525 else
18526   $as_echo "$as_me: failed program was:" >&5
18527 sed 's/^/| /' conftest.$ac_ext >&5
18528
18529         ac_lo=`expr $ac_mid + 1`
18530                         if test $ac_lo -le $ac_mid; then
18531                           ac_lo= ac_hi=
18532                           break
18533                         fi
18534                         ac_mid=`expr 2 '*' $ac_mid + 1`
18535 fi
18536
18537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18538   done
18539 else
18540   $as_echo "$as_me: failed program was:" >&5
18541 sed 's/^/| /' conftest.$ac_ext >&5
18542
18543         cat >conftest.$ac_ext <<_ACEOF
18544 /* confdefs.h.  */
18545 _ACEOF
18546 cat confdefs.h >>conftest.$ac_ext
18547 cat >>conftest.$ac_ext <<_ACEOF
18548 /* end confdefs.h.  */
18549 $ac_includes_default
18550 int
18551 main ()
18552 {
18553 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
18554 test_array [0] = 0
18555
18556   ;
18557   return 0;
18558 }
18559 _ACEOF
18560 rm -f conftest.$ac_objext
18561 if { (ac_try="$ac_compile"
18562 case "(($ac_try" in
18563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18564   *) ac_try_echo=$ac_try;;
18565 esac
18566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18567 $as_echo "$ac_try_echo") >&5
18568   (eval "$ac_compile") 2>conftest.er1
18569   ac_status=$?
18570   grep -v '^ *+' conftest.er1 >conftest.err
18571   rm -f conftest.er1
18572   cat conftest.err >&5
18573   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574   (exit $ac_status); } && {
18575          test -z "$ac_c_werror_flag" ||
18576          test ! -s conftest.err
18577        } && test -s conftest.$ac_objext; then
18578   ac_hi=-1 ac_mid=-1
18579   while :; do
18580     cat >conftest.$ac_ext <<_ACEOF
18581 /* confdefs.h.  */
18582 _ACEOF
18583 cat confdefs.h >>conftest.$ac_ext
18584 cat >>conftest.$ac_ext <<_ACEOF
18585 /* end confdefs.h.  */
18586 $ac_includes_default
18587 int
18588 main ()
18589 {
18590 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
18591 test_array [0] = 0
18592
18593   ;
18594   return 0;
18595 }
18596 _ACEOF
18597 rm -f conftest.$ac_objext
18598 if { (ac_try="$ac_compile"
18599 case "(($ac_try" in
18600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18601   *) ac_try_echo=$ac_try;;
18602 esac
18603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18604 $as_echo "$ac_try_echo") >&5
18605   (eval "$ac_compile") 2>conftest.er1
18606   ac_status=$?
18607   grep -v '^ *+' conftest.er1 >conftest.err
18608   rm -f conftest.er1
18609   cat conftest.err >&5
18610   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611   (exit $ac_status); } && {
18612          test -z "$ac_c_werror_flag" ||
18613          test ! -s conftest.err
18614        } && test -s conftest.$ac_objext; then
18615   ac_lo=$ac_mid; break
18616 else
18617   $as_echo "$as_me: failed program was:" >&5
18618 sed 's/^/| /' conftest.$ac_ext >&5
18619
18620         ac_hi=`expr '(' $ac_mid ')' - 1`
18621                         if test $ac_mid -le $ac_hi; then
18622                           ac_lo= ac_hi=
18623                           break
18624                         fi
18625                         ac_mid=`expr 2 '*' $ac_mid`
18626 fi
18627
18628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18629   done
18630 else
18631   $as_echo "$as_me: failed program was:" >&5
18632 sed 's/^/| /' conftest.$ac_ext >&5
18633
18634         ac_lo= ac_hi=
18635 fi
18636
18637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18638 fi
18639
18640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18641 # Binary search between lo and hi bounds.
18642 while test "x$ac_lo" != "x$ac_hi"; do
18643   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18644   cat >conftest.$ac_ext <<_ACEOF
18645 /* confdefs.h.  */
18646 _ACEOF
18647 cat confdefs.h >>conftest.$ac_ext
18648 cat >>conftest.$ac_ext <<_ACEOF
18649 /* end confdefs.h.  */
18650 $ac_includes_default
18651 int
18652 main ()
18653 {
18654 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18655 test_array [0] = 0
18656
18657   ;
18658   return 0;
18659 }
18660 _ACEOF
18661 rm -f conftest.$ac_objext
18662 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
18670   ac_status=$?
18671   grep -v '^ *+' conftest.er1 >conftest.err
18672   rm -f conftest.er1
18673   cat conftest.err >&5
18674   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675   (exit $ac_status); } && {
18676          test -z "$ac_c_werror_flag" ||
18677          test ! -s conftest.err
18678        } && test -s conftest.$ac_objext; then
18679   ac_hi=$ac_mid
18680 else
18681   $as_echo "$as_me: failed program was:" >&5
18682 sed 's/^/| /' conftest.$ac_ext >&5
18683
18684         ac_lo=`expr '(' $ac_mid ')' + 1`
18685 fi
18686
18687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18688 done
18689 case $ac_lo in
18690 ?*) ac_cv_sizeof_off_t=$ac_lo;;
18691 '') if test "$ac_cv_type_off_t" = yes; then
18692      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18694 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18695 See \`config.log' for more details." >&5
18696 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18697 See \`config.log' for more details." >&2;}
18698    { (exit 77); exit 77; }; }; }
18699    else
18700      ac_cv_sizeof_off_t=0
18701    fi ;;
18702 esac
18703 else
18704   cat >conftest.$ac_ext <<_ACEOF
18705 /* confdefs.h.  */
18706 _ACEOF
18707 cat confdefs.h >>conftest.$ac_ext
18708 cat >>conftest.$ac_ext <<_ACEOF
18709 /* end confdefs.h.  */
18710 $ac_includes_default
18711 static long int longval () { return (long int) (sizeof (off_t)); }
18712 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
18713 #include <stdio.h>
18714 #include <stdlib.h>
18715 int
18716 main ()
18717 {
18718
18719   FILE *f = fopen ("conftest.val", "w");
18720   if (! f)
18721     return 1;
18722   if (((long int) (sizeof (off_t))) < 0)
18723     {
18724       long int i = longval ();
18725       if (i != ((long int) (sizeof (off_t))))
18726         return 1;
18727       fprintf (f, "%ld", i);
18728     }
18729   else
18730     {
18731       unsigned long int i = ulongval ();
18732       if (i != ((long int) (sizeof (off_t))))
18733         return 1;
18734       fprintf (f, "%lu", i);
18735     }
18736   /* Do not output a trailing newline, as this causes \r\n confusion
18737      on some platforms.  */
18738   return ferror (f) || fclose (f) != 0;
18739
18740   ;
18741   return 0;
18742 }
18743 _ACEOF
18744 rm -f conftest$ac_exeext
18745 if { (ac_try="$ac_link"
18746 case "(($ac_try" in
18747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18748   *) ac_try_echo=$ac_try;;
18749 esac
18750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18751 $as_echo "$ac_try_echo") >&5
18752   (eval "$ac_link") 2>&5
18753   ac_status=$?
18754   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18756   { (case "(($ac_try" in
18757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18758   *) ac_try_echo=$ac_try;;
18759 esac
18760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18761 $as_echo "$ac_try_echo") >&5
18762   (eval "$ac_try") 2>&5
18763   ac_status=$?
18764   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765   (exit $ac_status); }; }; then
18766   ac_cv_sizeof_off_t=`cat conftest.val`
18767 else
18768   $as_echo "$as_me: program exited with status $ac_status" >&5
18769 $as_echo "$as_me: failed program was:" >&5
18770 sed 's/^/| /' conftest.$ac_ext >&5
18771
18772 ( exit $ac_status )
18773 if test "$ac_cv_type_off_t" = yes; then
18774      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18776 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18777 See \`config.log' for more details." >&5
18778 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18779 See \`config.log' for more details." >&2;}
18780    { (exit 77); exit 77; }; }; }
18781    else
18782      ac_cv_sizeof_off_t=0
18783    fi
18784 fi
18785 rm -rf conftest.dSYM
18786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18787 fi
18788 rm -f conftest.val
18789 fi
18790 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
18791 $as_echo "$ac_cv_sizeof_off_t" >&6; }
18792
18793
18794
18795 cat >>confdefs.h <<_ACEOF
18796 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
18797 _ACEOF
18798
18799
18800
18801 # If we don't have largefile support, can't handle segsize >= 2GB.
18802 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
18803    { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
18804 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
18805    { (exit 1); exit 1; }; }
18806 fi
18807
18808
18809 ##
18810 ## Functions, global variables
18811 ##
18812
18813 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
18814 $as_echo_n "checking for int timezone... " >&6; }
18815 if test "${pgac_cv_var_int_timezone+set}" = set; then
18816   $as_echo_n "(cached) " >&6
18817 else
18818   cat >conftest.$ac_ext <<_ACEOF
18819 /* confdefs.h.  */
18820 _ACEOF
18821 cat confdefs.h >>conftest.$ac_ext
18822 cat >>conftest.$ac_ext <<_ACEOF
18823 /* end confdefs.h.  */
18824 #include <time.h>
18825 int res;
18826 int
18827 main ()
18828 {
18829 #ifndef __CYGWIN__
18830 res = timezone / 60;
18831 #else
18832 res = _timezone / 60;
18833 #endif
18834   ;
18835   return 0;
18836 }
18837 _ACEOF
18838 rm -f conftest.$ac_objext conftest$ac_exeext
18839 if { (ac_try="$ac_link"
18840 case "(($ac_try" in
18841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842   *) ac_try_echo=$ac_try;;
18843 esac
18844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18845 $as_echo "$ac_try_echo") >&5
18846   (eval "$ac_link") 2>conftest.er1
18847   ac_status=$?
18848   grep -v '^ *+' conftest.er1 >conftest.err
18849   rm -f conftest.er1
18850   cat conftest.err >&5
18851   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852   (exit $ac_status); } && {
18853          test -z "$ac_c_werror_flag" ||
18854          test ! -s conftest.err
18855        } && test -s conftest$ac_exeext && {
18856          test "$cross_compiling" = yes ||
18857          $as_test_x conftest$ac_exeext
18858        }; then
18859   pgac_cv_var_int_timezone=yes
18860 else
18861   $as_echo "$as_me: failed program was:" >&5
18862 sed 's/^/| /' conftest.$ac_ext >&5
18863
18864         pgac_cv_var_int_timezone=no
18865 fi
18866
18867 rm -rf conftest.dSYM
18868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18869       conftest$ac_exeext conftest.$ac_ext
18870 fi
18871 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
18872 $as_echo "$pgac_cv_var_int_timezone" >&6; }
18873 if test x"$pgac_cv_var_int_timezone" = xyes ; then
18874
18875 cat >>confdefs.h <<\_ACEOF
18876 #define HAVE_INT_TIMEZONE /**/
18877 _ACEOF
18878
18879 fi
18880 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
18881 $as_echo_n "checking types of arguments for accept()... " >&6; }
18882  if test "${ac_cv_func_accept_return+set}" = set; then
18883   $as_echo_n "(cached) " >&6
18884 else
18885    if test "${ac_cv_func_accept_arg1+set}" = set; then
18886   $as_echo_n "(cached) " >&6
18887 else
18888     if test "${ac_cv_func_accept_arg2+set}" = set; then
18889   $as_echo_n "(cached) " >&6
18890 else
18891      if test "${ac_cv_func_accept_arg3+set}" = set; then
18892   $as_echo_n "(cached) " >&6
18893 else
18894       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET'; do
18895       for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
18896        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
18897         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
18898          cat >conftest.$ac_ext <<_ACEOF
18899 /* confdefs.h.  */
18900 _ACEOF
18901 cat confdefs.h >>conftest.$ac_ext
18902 cat >>conftest.$ac_ext <<_ACEOF
18903 /* end confdefs.h.  */
18904 #ifdef HAVE_SYS_TYPES_H
18905 #include <sys/types.h>
18906 #endif
18907 #ifdef HAVE_SYS_SOCKET_H
18908 #include <sys/socket.h>
18909 #endif
18910 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
18911 int
18912 main ()
18913 {
18914
18915   ;
18916   return 0;
18917 }
18918 _ACEOF
18919 rm -f conftest.$ac_objext
18920 if { (ac_try="$ac_compile"
18921 case "(($ac_try" in
18922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18923   *) ac_try_echo=$ac_try;;
18924 esac
18925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18926 $as_echo "$ac_try_echo") >&5
18927   (eval "$ac_compile") 2>conftest.er1
18928   ac_status=$?
18929   grep -v '^ *+' conftest.er1 >conftest.err
18930   rm -f conftest.er1
18931   cat conftest.err >&5
18932   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933   (exit $ac_status); } && {
18934          test -z "$ac_c_werror_flag" ||
18935          test ! -s conftest.err
18936        } && test -s conftest.$ac_objext; then
18937   ac_not_found=no; break 4
18938 else
18939   $as_echo "$as_me: failed program was:" >&5
18940 sed 's/^/| /' conftest.$ac_ext >&5
18941
18942         ac_not_found=yes
18943 fi
18944
18945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18946        done
18947       done
18948      done
18949     done
18950     if test "$ac_not_found" = yes; then
18951       { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
18952 $as_echo "$as_me: error: could not determine argument types" >&2;}
18953    { (exit 1); exit 1; }; }
18954     fi
18955     if test "$ac_cv_func_accept_arg3" = "void"; then
18956       ac_cv_func_accept_arg3=int
18957     fi
18958
18959 fi
18960
18961 fi
18962
18963 fi
18964
18965 fi
18966  { $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
18967 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
18968
18969 cat >>confdefs.h <<_ACEOF
18970 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
18971 _ACEOF
18972
18973
18974 cat >>confdefs.h <<_ACEOF
18975 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
18976 _ACEOF
18977
18978
18979 cat >>confdefs.h <<_ACEOF
18980 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
18981 _ACEOF
18982
18983
18984 cat >>confdefs.h <<_ACEOF
18985 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
18986 _ACEOF
18987
18988
18989 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
18990 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
18991 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
18992   $as_echo_n "(cached) " >&6
18993 else
18994   cat >conftest.$ac_ext <<_ACEOF
18995 /* confdefs.h.  */
18996 _ACEOF
18997 cat confdefs.h >>conftest.$ac_ext
18998 cat >>conftest.$ac_ext <<_ACEOF
18999 /* end confdefs.h.  */
19000 #include <sys/time.h>
19001 int
19002 main ()
19003 {
19004 struct timeval *tp;
19005 struct timezone *tzp;
19006 gettimeofday(tp,tzp);
19007   ;
19008   return 0;
19009 }
19010 _ACEOF
19011 rm -f conftest.$ac_objext
19012 if { (ac_try="$ac_compile"
19013 case "(($ac_try" in
19014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19015   *) ac_try_echo=$ac_try;;
19016 esac
19017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19018 $as_echo "$ac_try_echo") >&5
19019   (eval "$ac_compile") 2>conftest.er1
19020   ac_status=$?
19021   grep -v '^ *+' conftest.er1 >conftest.err
19022   rm -f conftest.er1
19023   cat conftest.err >&5
19024   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025   (exit $ac_status); } && {
19026          test -z "$ac_c_werror_flag" ||
19027          test ! -s conftest.err
19028        } && test -s conftest.$ac_objext; then
19029   pgac_cv_func_gettimeofday_1arg=no
19030 else
19031   $as_echo "$as_me: failed program was:" >&5
19032 sed 's/^/| /' conftest.$ac_ext >&5
19033
19034         pgac_cv_func_gettimeofday_1arg=yes
19035 fi
19036
19037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19038 fi
19039 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
19040 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
19041 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
19042
19043 cat >>confdefs.h <<\_ACEOF
19044 #define GETTIMEOFDAY_1ARG /**/
19045 _ACEOF
19046
19047 fi
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075 for ac_func in cbrt dlopen fcvt fdatasync getifaddrs getpeereid getpeerucred getrlimit memmove poll pstat readlink scandir setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs wcstombs_l
19076 do
19077 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19078 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19079 $as_echo_n "checking for $ac_func... " >&6; }
19080 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19081   $as_echo_n "(cached) " >&6
19082 else
19083   cat >conftest.$ac_ext <<_ACEOF
19084 /* confdefs.h.  */
19085 _ACEOF
19086 cat confdefs.h >>conftest.$ac_ext
19087 cat >>conftest.$ac_ext <<_ACEOF
19088 /* end confdefs.h.  */
19089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19090    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19091 #define $ac_func innocuous_$ac_func
19092
19093 /* System header to define __stub macros and hopefully few prototypes,
19094     which can conflict with char $ac_func (); below.
19095     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19096     <limits.h> exists even on freestanding compilers.  */
19097
19098 #ifdef __STDC__
19099 # include <limits.h>
19100 #else
19101 # include <assert.h>
19102 #endif
19103
19104 #undef $ac_func
19105
19106 /* Override any GCC internal prototype to avoid an error.
19107    Use char because int might match the return type of a GCC
19108    builtin and then its argument prototype would still apply.  */
19109 #ifdef __cplusplus
19110 extern "C"
19111 #endif
19112 char $ac_func ();
19113 /* The GNU C library defines this for functions which it implements
19114     to always fail with ENOSYS.  Some functions are actually named
19115     something starting with __ and the normal name is an alias.  */
19116 #if defined __stub_$ac_func || defined __stub___$ac_func
19117 choke me
19118 #endif
19119
19120 int
19121 main ()
19122 {
19123 return $ac_func ();
19124   ;
19125   return 0;
19126 }
19127 _ACEOF
19128 rm -f conftest.$ac_objext conftest$ac_exeext
19129 if { (ac_try="$ac_link"
19130 case "(($ac_try" in
19131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19132   *) ac_try_echo=$ac_try;;
19133 esac
19134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19135 $as_echo "$ac_try_echo") >&5
19136   (eval "$ac_link") 2>conftest.er1
19137   ac_status=$?
19138   grep -v '^ *+' conftest.er1 >conftest.err
19139   rm -f conftest.er1
19140   cat conftest.err >&5
19141   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142   (exit $ac_status); } && {
19143          test -z "$ac_c_werror_flag" ||
19144          test ! -s conftest.err
19145        } && test -s conftest$ac_exeext && {
19146          test "$cross_compiling" = yes ||
19147          $as_test_x conftest$ac_exeext
19148        }; then
19149   eval "$as_ac_var=yes"
19150 else
19151   $as_echo "$as_me: failed program was:" >&5
19152 sed 's/^/| /' conftest.$ac_ext >&5
19153
19154         eval "$as_ac_var=no"
19155 fi
19156
19157 rm -rf conftest.dSYM
19158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19159       conftest$ac_exeext conftest.$ac_ext
19160 fi
19161 ac_res=`eval 'as_val=${'$as_ac_var'}
19162                  $as_echo "$as_val"'`
19163                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19164 $as_echo "$ac_res" >&6; }
19165 as_val=`eval 'as_val=${'$as_ac_var'}
19166                  $as_echo "$as_val"'`
19167    if test "x$as_val" = x""yes; then
19168   cat >>confdefs.h <<_ACEOF
19169 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19170 _ACEOF
19171
19172 fi
19173 done
19174
19175
19176
19177 for ac_func in fseeko
19178 do
19179 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19180 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19181 $as_echo_n "checking for $ac_func... " >&6; }
19182 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19183   $as_echo_n "(cached) " >&6
19184 else
19185   cat >conftest.$ac_ext <<_ACEOF
19186 /* confdefs.h.  */
19187 _ACEOF
19188 cat confdefs.h >>conftest.$ac_ext
19189 cat >>conftest.$ac_ext <<_ACEOF
19190 /* end confdefs.h.  */
19191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19192    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19193 #define $ac_func innocuous_$ac_func
19194
19195 /* System header to define __stub macros and hopefully few prototypes,
19196     which can conflict with char $ac_func (); below.
19197     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19198     <limits.h> exists even on freestanding compilers.  */
19199
19200 #ifdef __STDC__
19201 # include <limits.h>
19202 #else
19203 # include <assert.h>
19204 #endif
19205
19206 #undef $ac_func
19207
19208 /* Override any GCC internal prototype to avoid an error.
19209    Use char because int might match the return type of a GCC
19210    builtin and then its argument prototype would still apply.  */
19211 #ifdef __cplusplus
19212 extern "C"
19213 #endif
19214 char $ac_func ();
19215 /* The GNU C library defines this for functions which it implements
19216     to always fail with ENOSYS.  Some functions are actually named
19217     something starting with __ and the normal name is an alias.  */
19218 #if defined __stub_$ac_func || defined __stub___$ac_func
19219 choke me
19220 #endif
19221
19222 int
19223 main ()
19224 {
19225 return $ac_func ();
19226   ;
19227   return 0;
19228 }
19229 _ACEOF
19230 rm -f conftest.$ac_objext conftest$ac_exeext
19231 if { (ac_try="$ac_link"
19232 case "(($ac_try" in
19233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19234   *) ac_try_echo=$ac_try;;
19235 esac
19236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19237 $as_echo "$ac_try_echo") >&5
19238   (eval "$ac_link") 2>conftest.er1
19239   ac_status=$?
19240   grep -v '^ *+' conftest.er1 >conftest.err
19241   rm -f conftest.er1
19242   cat conftest.err >&5
19243   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244   (exit $ac_status); } && {
19245          test -z "$ac_c_werror_flag" ||
19246          test ! -s conftest.err
19247        } && test -s conftest$ac_exeext && {
19248          test "$cross_compiling" = yes ||
19249          $as_test_x conftest$ac_exeext
19250        }; then
19251   eval "$as_ac_var=yes"
19252 else
19253   $as_echo "$as_me: failed program was:" >&5
19254 sed 's/^/| /' conftest.$ac_ext >&5
19255
19256         eval "$as_ac_var=no"
19257 fi
19258
19259 rm -rf conftest.dSYM
19260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19261       conftest$ac_exeext conftest.$ac_ext
19262 fi
19263 ac_res=`eval 'as_val=${'$as_ac_var'}
19264                  $as_echo "$as_val"'`
19265                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19266 $as_echo "$ac_res" >&6; }
19267 as_val=`eval 'as_val=${'$as_ac_var'}
19268                  $as_echo "$as_val"'`
19269    if test "x$as_val" = x""yes; then
19270   cat >>confdefs.h <<_ACEOF
19271 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19272 _ACEOF
19273
19274 else
19275   case " $LIBOBJS " in
19276   *" $ac_func.$ac_objext "* ) ;;
19277   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19278  ;;
19279 esac
19280
19281 fi
19282 done
19283
19284
19285 case $host_os in
19286         # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
19287         # Mingw uses macros to access Win32 API calls
19288         bsdi*|netbsd*|mingw*)
19289
19290 cat >>confdefs.h <<\_ACEOF
19291 #define HAVE_FSEEKO 1
19292 _ACEOF
19293
19294                 ac_cv_func_fseeko=yes;;
19295         *)
19296                 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19297 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19298 if test "${ac_cv_sys_largefile_source+set}" = set; then
19299   $as_echo_n "(cached) " >&6
19300 else
19301   while :; do
19302   cat >conftest.$ac_ext <<_ACEOF
19303 /* confdefs.h.  */
19304 _ACEOF
19305 cat confdefs.h >>conftest.$ac_ext
19306 cat >>conftest.$ac_ext <<_ACEOF
19307 /* end confdefs.h.  */
19308 #include <sys/types.h> /* for off_t */
19309      #include <stdio.h>
19310 int
19311 main ()
19312 {
19313 int (*fp) (FILE *, off_t, int) = fseeko;
19314      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19315   ;
19316   return 0;
19317 }
19318 _ACEOF
19319 rm -f conftest.$ac_objext conftest$ac_exeext
19320 if { (ac_try="$ac_link"
19321 case "(($ac_try" in
19322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19323   *) ac_try_echo=$ac_try;;
19324 esac
19325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19326 $as_echo "$ac_try_echo") >&5
19327   (eval "$ac_link") 2>conftest.er1
19328   ac_status=$?
19329   grep -v '^ *+' conftest.er1 >conftest.err
19330   rm -f conftest.er1
19331   cat conftest.err >&5
19332   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333   (exit $ac_status); } && {
19334          test -z "$ac_c_werror_flag" ||
19335          test ! -s conftest.err
19336        } && test -s conftest$ac_exeext && {
19337          test "$cross_compiling" = yes ||
19338          $as_test_x conftest$ac_exeext
19339        }; then
19340   ac_cv_sys_largefile_source=no; break
19341 else
19342   $as_echo "$as_me: failed program was:" >&5
19343 sed 's/^/| /' conftest.$ac_ext >&5
19344
19345
19346 fi
19347
19348 rm -rf conftest.dSYM
19349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19350       conftest$ac_exeext conftest.$ac_ext
19351   cat >conftest.$ac_ext <<_ACEOF
19352 /* confdefs.h.  */
19353 _ACEOF
19354 cat confdefs.h >>conftest.$ac_ext
19355 cat >>conftest.$ac_ext <<_ACEOF
19356 /* end confdefs.h.  */
19357 #define _LARGEFILE_SOURCE 1
19358 #include <sys/types.h> /* for off_t */
19359      #include <stdio.h>
19360 int
19361 main ()
19362 {
19363 int (*fp) (FILE *, off_t, int) = fseeko;
19364      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19365   ;
19366   return 0;
19367 }
19368 _ACEOF
19369 rm -f conftest.$ac_objext conftest$ac_exeext
19370 if { (ac_try="$ac_link"
19371 case "(($ac_try" in
19372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19373   *) ac_try_echo=$ac_try;;
19374 esac
19375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19376 $as_echo "$ac_try_echo") >&5
19377   (eval "$ac_link") 2>conftest.er1
19378   ac_status=$?
19379   grep -v '^ *+' conftest.er1 >conftest.err
19380   rm -f conftest.er1
19381   cat conftest.err >&5
19382   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383   (exit $ac_status); } && {
19384          test -z "$ac_c_werror_flag" ||
19385          test ! -s conftest.err
19386        } && test -s conftest$ac_exeext && {
19387          test "$cross_compiling" = yes ||
19388          $as_test_x conftest$ac_exeext
19389        }; then
19390   ac_cv_sys_largefile_source=1; break
19391 else
19392   $as_echo "$as_me: failed program was:" >&5
19393 sed 's/^/| /' conftest.$ac_ext >&5
19394
19395
19396 fi
19397
19398 rm -rf conftest.dSYM
19399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19400       conftest$ac_exeext conftest.$ac_ext
19401   ac_cv_sys_largefile_source=unknown
19402   break
19403 done
19404 fi
19405 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19406 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19407 case $ac_cv_sys_largefile_source in #(
19408   no | unknown) ;;
19409   *)
19410 cat >>confdefs.h <<_ACEOF
19411 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19412 _ACEOF
19413 ;;
19414 esac
19415 rm -rf conftest*
19416
19417 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19418 # in glibc 2.1.3, but that breaks too many other things.
19419 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19420 if test $ac_cv_sys_largefile_source != unknown; then
19421
19422 cat >>confdefs.h <<\_ACEOF
19423 #define HAVE_FSEEKO 1
19424 _ACEOF
19425
19426 fi
19427 ;;
19428 esac
19429
19430 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
19431 # by calling it, 2009-04-02
19432 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
19433 if test "$PORTNAME" != "solaris"; then
19434
19435 for ac_func in posix_fadvise
19436 do
19437 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19438 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19439 $as_echo_n "checking for $ac_func... " >&6; }
19440 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19441   $as_echo_n "(cached) " >&6
19442 else
19443   cat >conftest.$ac_ext <<_ACEOF
19444 /* confdefs.h.  */
19445 _ACEOF
19446 cat confdefs.h >>conftest.$ac_ext
19447 cat >>conftest.$ac_ext <<_ACEOF
19448 /* end confdefs.h.  */
19449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19450    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19451 #define $ac_func innocuous_$ac_func
19452
19453 /* System header to define __stub macros and hopefully few prototypes,
19454     which can conflict with char $ac_func (); below.
19455     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19456     <limits.h> exists even on freestanding compilers.  */
19457
19458 #ifdef __STDC__
19459 # include <limits.h>
19460 #else
19461 # include <assert.h>
19462 #endif
19463
19464 #undef $ac_func
19465
19466 /* Override any GCC internal prototype to avoid an error.
19467    Use char because int might match the return type of a GCC
19468    builtin and then its argument prototype would still apply.  */
19469 #ifdef __cplusplus
19470 extern "C"
19471 #endif
19472 char $ac_func ();
19473 /* The GNU C library defines this for functions which it implements
19474     to always fail with ENOSYS.  Some functions are actually named
19475     something starting with __ and the normal name is an alias.  */
19476 #if defined __stub_$ac_func || defined __stub___$ac_func
19477 choke me
19478 #endif
19479
19480 int
19481 main ()
19482 {
19483 return $ac_func ();
19484   ;
19485   return 0;
19486 }
19487 _ACEOF
19488 rm -f conftest.$ac_objext conftest$ac_exeext
19489 if { (ac_try="$ac_link"
19490 case "(($ac_try" in
19491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19492   *) ac_try_echo=$ac_try;;
19493 esac
19494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19495 $as_echo "$ac_try_echo") >&5
19496   (eval "$ac_link") 2>conftest.er1
19497   ac_status=$?
19498   grep -v '^ *+' conftest.er1 >conftest.err
19499   rm -f conftest.er1
19500   cat conftest.err >&5
19501   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502   (exit $ac_status); } && {
19503          test -z "$ac_c_werror_flag" ||
19504          test ! -s conftest.err
19505        } && test -s conftest$ac_exeext && {
19506          test "$cross_compiling" = yes ||
19507          $as_test_x conftest$ac_exeext
19508        }; then
19509   eval "$as_ac_var=yes"
19510 else
19511   $as_echo "$as_me: failed program was:" >&5
19512 sed 's/^/| /' conftest.$ac_ext >&5
19513
19514         eval "$as_ac_var=no"
19515 fi
19516
19517 rm -rf conftest.dSYM
19518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19519       conftest$ac_exeext conftest.$ac_ext
19520 fi
19521 ac_res=`eval 'as_val=${'$as_ac_var'}
19522                  $as_echo "$as_val"'`
19523                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19524 $as_echo "$ac_res" >&6; }
19525 as_val=`eval 'as_val=${'$as_ac_var'}
19526                  $as_echo "$as_val"'`
19527    if test "x$as_val" = x""yes; then
19528   cat >>confdefs.h <<_ACEOF
19529 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19530 _ACEOF
19531
19532 fi
19533 done
19534
19535 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
19536 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
19537 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
19538   $as_echo_n "(cached) " >&6
19539 else
19540   cat >conftest.$ac_ext <<_ACEOF
19541 /* confdefs.h.  */
19542 _ACEOF
19543 cat confdefs.h >>conftest.$ac_ext
19544 cat >>conftest.$ac_ext <<_ACEOF
19545 /* end confdefs.h.  */
19546 #include <fcntl.h>
19547
19548 int
19549 main ()
19550 {
19551 #ifndef posix_fadvise
19552   (void) posix_fadvise;
19553 #endif
19554
19555   ;
19556   return 0;
19557 }
19558 _ACEOF
19559 rm -f conftest.$ac_objext
19560 if { (ac_try="$ac_compile"
19561 case "(($ac_try" in
19562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19563   *) ac_try_echo=$ac_try;;
19564 esac
19565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19566 $as_echo "$ac_try_echo") >&5
19567   (eval "$ac_compile") 2>conftest.er1
19568   ac_status=$?
19569   grep -v '^ *+' conftest.er1 >conftest.err
19570   rm -f conftest.er1
19571   cat conftest.err >&5
19572   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573   (exit $ac_status); } && {
19574          test -z "$ac_c_werror_flag" ||
19575          test ! -s conftest.err
19576        } && test -s conftest.$ac_objext; then
19577   ac_cv_have_decl_posix_fadvise=yes
19578 else
19579   $as_echo "$as_me: failed program was:" >&5
19580 sed 's/^/| /' conftest.$ac_ext >&5
19581
19582         ac_cv_have_decl_posix_fadvise=no
19583 fi
19584
19585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19586 fi
19587 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
19588 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
19589 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
19590
19591 cat >>confdefs.h <<_ACEOF
19592 #define HAVE_DECL_POSIX_FADVISE 1
19593 _ACEOF
19594
19595
19596 else
19597   cat >>confdefs.h <<_ACEOF
19598 #define HAVE_DECL_POSIX_FADVISE 0
19599 _ACEOF
19600
19601
19602 fi
19603
19604
19605 fi
19606
19607 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
19608 $as_echo_n "checking whether fdatasync is declared... " >&6; }
19609 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
19610   $as_echo_n "(cached) " >&6
19611 else
19612   cat >conftest.$ac_ext <<_ACEOF
19613 /* confdefs.h.  */
19614 _ACEOF
19615 cat confdefs.h >>conftest.$ac_ext
19616 cat >>conftest.$ac_ext <<_ACEOF
19617 /* end confdefs.h.  */
19618 #include <unistd.h>
19619
19620 int
19621 main ()
19622 {
19623 #ifndef fdatasync
19624   (void) fdatasync;
19625 #endif
19626
19627   ;
19628   return 0;
19629 }
19630 _ACEOF
19631 rm -f conftest.$ac_objext
19632 if { (ac_try="$ac_compile"
19633 case "(($ac_try" in
19634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19635   *) ac_try_echo=$ac_try;;
19636 esac
19637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19638 $as_echo "$ac_try_echo") >&5
19639   (eval "$ac_compile") 2>conftest.er1
19640   ac_status=$?
19641   grep -v '^ *+' conftest.er1 >conftest.err
19642   rm -f conftest.er1
19643   cat conftest.err >&5
19644   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645   (exit $ac_status); } && {
19646          test -z "$ac_c_werror_flag" ||
19647          test ! -s conftest.err
19648        } && test -s conftest.$ac_objext; then
19649   ac_cv_have_decl_fdatasync=yes
19650 else
19651   $as_echo "$as_me: failed program was:" >&5
19652 sed 's/^/| /' conftest.$ac_ext >&5
19653
19654         ac_cv_have_decl_fdatasync=no
19655 fi
19656
19657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19658 fi
19659 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
19660 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
19661 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
19662
19663 cat >>confdefs.h <<_ACEOF
19664 #define HAVE_DECL_FDATASYNC 1
19665 _ACEOF
19666
19667
19668 else
19669   cat >>confdefs.h <<_ACEOF
19670 #define HAVE_DECL_FDATASYNC 0
19671 _ACEOF
19672
19673
19674 fi
19675
19676
19677 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
19678 $as_echo_n "checking whether strlcat is declared... " >&6; }
19679 if test "${ac_cv_have_decl_strlcat+set}" = set; then
19680   $as_echo_n "(cached) " >&6
19681 else
19682   cat >conftest.$ac_ext <<_ACEOF
19683 /* confdefs.h.  */
19684 _ACEOF
19685 cat confdefs.h >>conftest.$ac_ext
19686 cat >>conftest.$ac_ext <<_ACEOF
19687 /* end confdefs.h.  */
19688 $ac_includes_default
19689 int
19690 main ()
19691 {
19692 #ifndef strlcat
19693   (void) strlcat;
19694 #endif
19695
19696   ;
19697   return 0;
19698 }
19699 _ACEOF
19700 rm -f conftest.$ac_objext
19701 if { (ac_try="$ac_compile"
19702 case "(($ac_try" in
19703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19704   *) ac_try_echo=$ac_try;;
19705 esac
19706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19707 $as_echo "$ac_try_echo") >&5
19708   (eval "$ac_compile") 2>conftest.er1
19709   ac_status=$?
19710   grep -v '^ *+' conftest.er1 >conftest.err
19711   rm -f conftest.er1
19712   cat conftest.err >&5
19713   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714   (exit $ac_status); } && {
19715          test -z "$ac_c_werror_flag" ||
19716          test ! -s conftest.err
19717        } && test -s conftest.$ac_objext; then
19718   ac_cv_have_decl_strlcat=yes
19719 else
19720   $as_echo "$as_me: failed program was:" >&5
19721 sed 's/^/| /' conftest.$ac_ext >&5
19722
19723         ac_cv_have_decl_strlcat=no
19724 fi
19725
19726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19727 fi
19728 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
19729 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
19730 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
19731
19732 cat >>confdefs.h <<_ACEOF
19733 #define HAVE_DECL_STRLCAT 1
19734 _ACEOF
19735
19736
19737 else
19738   cat >>confdefs.h <<_ACEOF
19739 #define HAVE_DECL_STRLCAT 0
19740 _ACEOF
19741
19742
19743 fi
19744 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
19745 $as_echo_n "checking whether strlcpy is declared... " >&6; }
19746 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
19747   $as_echo_n "(cached) " >&6
19748 else
19749   cat >conftest.$ac_ext <<_ACEOF
19750 /* confdefs.h.  */
19751 _ACEOF
19752 cat confdefs.h >>conftest.$ac_ext
19753 cat >>conftest.$ac_ext <<_ACEOF
19754 /* end confdefs.h.  */
19755 $ac_includes_default
19756 int
19757 main ()
19758 {
19759 #ifndef strlcpy
19760   (void) strlcpy;
19761 #endif
19762
19763   ;
19764   return 0;
19765 }
19766 _ACEOF
19767 rm -f conftest.$ac_objext
19768 if { (ac_try="$ac_compile"
19769 case "(($ac_try" in
19770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19771   *) ac_try_echo=$ac_try;;
19772 esac
19773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19774 $as_echo "$ac_try_echo") >&5
19775   (eval "$ac_compile") 2>conftest.er1
19776   ac_status=$?
19777   grep -v '^ *+' conftest.er1 >conftest.err
19778   rm -f conftest.er1
19779   cat conftest.err >&5
19780   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781   (exit $ac_status); } && {
19782          test -z "$ac_c_werror_flag" ||
19783          test ! -s conftest.err
19784        } && test -s conftest.$ac_objext; then
19785   ac_cv_have_decl_strlcpy=yes
19786 else
19787   $as_echo "$as_me: failed program was:" >&5
19788 sed 's/^/| /' conftest.$ac_ext >&5
19789
19790         ac_cv_have_decl_strlcpy=no
19791 fi
19792
19793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19794 fi
19795 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
19796 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
19797 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
19798
19799 cat >>confdefs.h <<_ACEOF
19800 #define HAVE_DECL_STRLCPY 1
19801 _ACEOF
19802
19803
19804 else
19805   cat >>confdefs.h <<_ACEOF
19806 #define HAVE_DECL_STRLCPY 0
19807 _ACEOF
19808
19809
19810 fi
19811
19812
19813 # This is probably only present on Darwin, but may as well check always
19814 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
19815 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
19816 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
19817   $as_echo_n "(cached) " >&6
19818 else
19819   cat >conftest.$ac_ext <<_ACEOF
19820 /* confdefs.h.  */
19821 _ACEOF
19822 cat confdefs.h >>conftest.$ac_ext
19823 cat >>conftest.$ac_ext <<_ACEOF
19824 /* end confdefs.h.  */
19825 #include <fcntl.h>
19826
19827 int
19828 main ()
19829 {
19830 #ifndef F_FULLFSYNC
19831   (void) F_FULLFSYNC;
19832 #endif
19833
19834   ;
19835   return 0;
19836 }
19837 _ACEOF
19838 rm -f conftest.$ac_objext
19839 if { (ac_try="$ac_compile"
19840 case "(($ac_try" in
19841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19842   *) ac_try_echo=$ac_try;;
19843 esac
19844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19845 $as_echo "$ac_try_echo") >&5
19846   (eval "$ac_compile") 2>conftest.er1
19847   ac_status=$?
19848   grep -v '^ *+' conftest.er1 >conftest.err
19849   rm -f conftest.er1
19850   cat conftest.err >&5
19851   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852   (exit $ac_status); } && {
19853          test -z "$ac_c_werror_flag" ||
19854          test ! -s conftest.err
19855        } && test -s conftest.$ac_objext; then
19856   ac_cv_have_decl_F_FULLFSYNC=yes
19857 else
19858   $as_echo "$as_me: failed program was:" >&5
19859 sed 's/^/| /' conftest.$ac_ext >&5
19860
19861         ac_cv_have_decl_F_FULLFSYNC=no
19862 fi
19863
19864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19865 fi
19866 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
19867 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
19868 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
19869
19870 cat >>confdefs.h <<_ACEOF
19871 #define HAVE_DECL_F_FULLFSYNC 1
19872 _ACEOF
19873
19874
19875 else
19876   cat >>confdefs.h <<_ACEOF
19877 #define HAVE_DECL_F_FULLFSYNC 0
19878 _ACEOF
19879
19880
19881 fi
19882
19883
19884
19885 HAVE_IPV6=no
19886 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
19887 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
19888 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
19889   $as_echo_n "(cached) " >&6
19890 else
19891   ac_cv_type_struct_sockaddr_in6=no
19892 cat >conftest.$ac_ext <<_ACEOF
19893 /* confdefs.h.  */
19894 _ACEOF
19895 cat confdefs.h >>conftest.$ac_ext
19896 cat >>conftest.$ac_ext <<_ACEOF
19897 /* end confdefs.h.  */
19898 $ac_includes_default
19899 #include <netinet/in.h>
19900
19901 int
19902 main ()
19903 {
19904 if (sizeof (struct sockaddr_in6))
19905        return 0;
19906   ;
19907   return 0;
19908 }
19909 _ACEOF
19910 rm -f conftest.$ac_objext
19911 if { (ac_try="$ac_compile"
19912 case "(($ac_try" in
19913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19914   *) ac_try_echo=$ac_try;;
19915 esac
19916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19917 $as_echo "$ac_try_echo") >&5
19918   (eval "$ac_compile") 2>conftest.er1
19919   ac_status=$?
19920   grep -v '^ *+' conftest.er1 >conftest.err
19921   rm -f conftest.er1
19922   cat conftest.err >&5
19923   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924   (exit $ac_status); } && {
19925          test -z "$ac_c_werror_flag" ||
19926          test ! -s conftest.err
19927        } && test -s conftest.$ac_objext; then
19928   cat >conftest.$ac_ext <<_ACEOF
19929 /* confdefs.h.  */
19930 _ACEOF
19931 cat confdefs.h >>conftest.$ac_ext
19932 cat >>conftest.$ac_ext <<_ACEOF
19933 /* end confdefs.h.  */
19934 $ac_includes_default
19935 #include <netinet/in.h>
19936
19937 int
19938 main ()
19939 {
19940 if (sizeof ((struct sockaddr_in6)))
19941           return 0;
19942   ;
19943   return 0;
19944 }
19945 _ACEOF
19946 rm -f conftest.$ac_objext
19947 if { (ac_try="$ac_compile"
19948 case "(($ac_try" in
19949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19950   *) ac_try_echo=$ac_try;;
19951 esac
19952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19953 $as_echo "$ac_try_echo") >&5
19954   (eval "$ac_compile") 2>conftest.er1
19955   ac_status=$?
19956   grep -v '^ *+' conftest.er1 >conftest.err
19957   rm -f conftest.er1
19958   cat conftest.err >&5
19959   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960   (exit $ac_status); } && {
19961          test -z "$ac_c_werror_flag" ||
19962          test ! -s conftest.err
19963        } && test -s conftest.$ac_objext; then
19964   :
19965 else
19966   $as_echo "$as_me: failed program was:" >&5
19967 sed 's/^/| /' conftest.$ac_ext >&5
19968
19969         ac_cv_type_struct_sockaddr_in6=yes
19970 fi
19971
19972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19973 else
19974   $as_echo "$as_me: failed program was:" >&5
19975 sed 's/^/| /' conftest.$ac_ext >&5
19976
19977
19978 fi
19979
19980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19981 fi
19982 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
19983 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
19984 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
19985
19986 cat >>confdefs.h <<\_ACEOF
19987 #define HAVE_IPV6 1
19988 _ACEOF
19989
19990          HAVE_IPV6=yes
19991 fi
19992
19993
19994
19995 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
19996 $as_echo_n "checking for PS_STRINGS... " >&6; }
19997 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
19998   $as_echo_n "(cached) " >&6
19999 else
20000   cat >conftest.$ac_ext <<_ACEOF
20001 /* confdefs.h.  */
20002 _ACEOF
20003 cat confdefs.h >>conftest.$ac_ext
20004 cat >>conftest.$ac_ext <<_ACEOF
20005 /* end confdefs.h.  */
20006 #include <machine/vmparam.h>
20007 #include <sys/exec.h>
20008
20009 int
20010 main ()
20011 {
20012 PS_STRINGS->ps_nargvstr = 1;
20013 PS_STRINGS->ps_argvstr = "foo";
20014   ;
20015   return 0;
20016 }
20017 _ACEOF
20018 rm -f conftest.$ac_objext conftest$ac_exeext
20019 if { (ac_try="$ac_link"
20020 case "(($ac_try" in
20021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20022   *) ac_try_echo=$ac_try;;
20023 esac
20024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20025 $as_echo "$ac_try_echo") >&5
20026   (eval "$ac_link") 2>conftest.er1
20027   ac_status=$?
20028   grep -v '^ *+' conftest.er1 >conftest.err
20029   rm -f conftest.er1
20030   cat conftest.err >&5
20031   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032   (exit $ac_status); } && {
20033          test -z "$ac_c_werror_flag" ||
20034          test ! -s conftest.err
20035        } && test -s conftest$ac_exeext && {
20036          test "$cross_compiling" = yes ||
20037          $as_test_x conftest$ac_exeext
20038        }; then
20039   pgac_cv_var_PS_STRINGS=yes
20040 else
20041   $as_echo "$as_me: failed program was:" >&5
20042 sed 's/^/| /' conftest.$ac_ext >&5
20043
20044         pgac_cv_var_PS_STRINGS=no
20045 fi
20046
20047 rm -rf conftest.dSYM
20048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20049       conftest$ac_exeext conftest.$ac_ext
20050 fi
20051 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
20052 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
20053 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
20054
20055 cat >>confdefs.h <<\_ACEOF
20056 #define HAVE_PS_STRINGS /**/
20057 _ACEOF
20058
20059 fi
20060
20061
20062 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
20063 # is missing.  Yes, there are machines that have only one.  We may
20064 # also decide to use snprintf.c if snprintf() is present but does not
20065 # have all the features we need --- see below.
20066
20067 if test "$PORTNAME" = "win32"; then
20068   # Win32 gets snprintf.c built unconditionally.
20069   #
20070   # To properly translate all NLS languages strings, we must support the
20071   # *printf() %$ format, which allows *printf() arguments to be selected
20072   # by position in the translated string.
20073   #
20074   # libintl versions < 0.13 use the native *printf() functions, and Win32
20075   # *printf() doesn't understand %$, so we must use our /port versions,
20076   # which do understand %$. libintl versions >= 0.13 include their own
20077   # *printf versions on Win32.  The libintl 0.13 release note text is:
20078   #
20079   #   C format strings with positions, as they arise when a translator
20080   #   needs to reorder a sentence, are now supported on all platforms.
20081   #   On those few platforms (NetBSD and Woe32) for which the native
20082   #   printf()/fprintf()/... functions don't support such format
20083   #   strings, replacements are provided through <libintl.h>.
20084   #
20085   # We could use libintl >= 0.13's *printf() if we were sure that we had
20086   # a litint >= 0.13 at runtime, but seeing that there is no clean way
20087   # to guarantee that, it is best to just use our own, so we are sure to
20088   # get %$ support. In include/port.h we disable the *printf() macros
20089   # that might have been defined by libintl.
20090   #
20091   # We do this unconditionally whether NLS is used or not so we are sure
20092   # that all Win32 libraries and binaries behave the same.
20093   pgac_need_repl_snprintf=yes
20094 else
20095   pgac_need_repl_snprintf=no
20096
20097 for ac_func in snprintf
20098 do
20099 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20100 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20101 $as_echo_n "checking for $ac_func... " >&6; }
20102 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20103   $as_echo_n "(cached) " >&6
20104 else
20105   cat >conftest.$ac_ext <<_ACEOF
20106 /* confdefs.h.  */
20107 _ACEOF
20108 cat confdefs.h >>conftest.$ac_ext
20109 cat >>conftest.$ac_ext <<_ACEOF
20110 /* end confdefs.h.  */
20111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20112    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20113 #define $ac_func innocuous_$ac_func
20114
20115 /* System header to define __stub macros and hopefully few prototypes,
20116     which can conflict with char $ac_func (); below.
20117     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20118     <limits.h> exists even on freestanding compilers.  */
20119
20120 #ifdef __STDC__
20121 # include <limits.h>
20122 #else
20123 # include <assert.h>
20124 #endif
20125
20126 #undef $ac_func
20127
20128 /* Override any GCC internal prototype to avoid an error.
20129    Use char because int might match the return type of a GCC
20130    builtin and then its argument prototype would still apply.  */
20131 #ifdef __cplusplus
20132 extern "C"
20133 #endif
20134 char $ac_func ();
20135 /* The GNU C library defines this for functions which it implements
20136     to always fail with ENOSYS.  Some functions are actually named
20137     something starting with __ and the normal name is an alias.  */
20138 #if defined __stub_$ac_func || defined __stub___$ac_func
20139 choke me
20140 #endif
20141
20142 int
20143 main ()
20144 {
20145 return $ac_func ();
20146   ;
20147   return 0;
20148 }
20149 _ACEOF
20150 rm -f conftest.$ac_objext conftest$ac_exeext
20151 if { (ac_try="$ac_link"
20152 case "(($ac_try" in
20153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20154   *) ac_try_echo=$ac_try;;
20155 esac
20156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20157 $as_echo "$ac_try_echo") >&5
20158   (eval "$ac_link") 2>conftest.er1
20159   ac_status=$?
20160   grep -v '^ *+' conftest.er1 >conftest.err
20161   rm -f conftest.er1
20162   cat conftest.err >&5
20163   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164   (exit $ac_status); } && {
20165          test -z "$ac_c_werror_flag" ||
20166          test ! -s conftest.err
20167        } && test -s conftest$ac_exeext && {
20168          test "$cross_compiling" = yes ||
20169          $as_test_x conftest$ac_exeext
20170        }; then
20171   eval "$as_ac_var=yes"
20172 else
20173   $as_echo "$as_me: failed program was:" >&5
20174 sed 's/^/| /' conftest.$ac_ext >&5
20175
20176         eval "$as_ac_var=no"
20177 fi
20178
20179 rm -rf conftest.dSYM
20180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20181       conftest$ac_exeext conftest.$ac_ext
20182 fi
20183 ac_res=`eval 'as_val=${'$as_ac_var'}
20184                  $as_echo "$as_val"'`
20185                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20186 $as_echo "$ac_res" >&6; }
20187 as_val=`eval 'as_val=${'$as_ac_var'}
20188                  $as_echo "$as_val"'`
20189    if test "x$as_val" = x""yes; then
20190   cat >>confdefs.h <<_ACEOF
20191 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20192 _ACEOF
20193
20194 else
20195   pgac_need_repl_snprintf=yes
20196 fi
20197 done
20198
20199
20200 for ac_func in vsnprintf
20201 do
20202 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20203 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20204 $as_echo_n "checking for $ac_func... " >&6; }
20205 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20206   $as_echo_n "(cached) " >&6
20207 else
20208   cat >conftest.$ac_ext <<_ACEOF
20209 /* confdefs.h.  */
20210 _ACEOF
20211 cat confdefs.h >>conftest.$ac_ext
20212 cat >>conftest.$ac_ext <<_ACEOF
20213 /* end confdefs.h.  */
20214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20215    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20216 #define $ac_func innocuous_$ac_func
20217
20218 /* System header to define __stub macros and hopefully few prototypes,
20219     which can conflict with char $ac_func (); below.
20220     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20221     <limits.h> exists even on freestanding compilers.  */
20222
20223 #ifdef __STDC__
20224 # include <limits.h>
20225 #else
20226 # include <assert.h>
20227 #endif
20228
20229 #undef $ac_func
20230
20231 /* Override any GCC internal prototype to avoid an error.
20232    Use char because int might match the return type of a GCC
20233    builtin and then its argument prototype would still apply.  */
20234 #ifdef __cplusplus
20235 extern "C"
20236 #endif
20237 char $ac_func ();
20238 /* The GNU C library defines this for functions which it implements
20239     to always fail with ENOSYS.  Some functions are actually named
20240     something starting with __ and the normal name is an alias.  */
20241 #if defined __stub_$ac_func || defined __stub___$ac_func
20242 choke me
20243 #endif
20244
20245 int
20246 main ()
20247 {
20248 return $ac_func ();
20249   ;
20250   return 0;
20251 }
20252 _ACEOF
20253 rm -f conftest.$ac_objext conftest$ac_exeext
20254 if { (ac_try="$ac_link"
20255 case "(($ac_try" in
20256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20257   *) ac_try_echo=$ac_try;;
20258 esac
20259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20260 $as_echo "$ac_try_echo") >&5
20261   (eval "$ac_link") 2>conftest.er1
20262   ac_status=$?
20263   grep -v '^ *+' conftest.er1 >conftest.err
20264   rm -f conftest.er1
20265   cat conftest.err >&5
20266   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267   (exit $ac_status); } && {
20268          test -z "$ac_c_werror_flag" ||
20269          test ! -s conftest.err
20270        } && test -s conftest$ac_exeext && {
20271          test "$cross_compiling" = yes ||
20272          $as_test_x conftest$ac_exeext
20273        }; then
20274   eval "$as_ac_var=yes"
20275 else
20276   $as_echo "$as_me: failed program was:" >&5
20277 sed 's/^/| /' conftest.$ac_ext >&5
20278
20279         eval "$as_ac_var=no"
20280 fi
20281
20282 rm -rf conftest.dSYM
20283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20284       conftest$ac_exeext conftest.$ac_ext
20285 fi
20286 ac_res=`eval 'as_val=${'$as_ac_var'}
20287                  $as_echo "$as_val"'`
20288                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20289 $as_echo "$ac_res" >&6; }
20290 as_val=`eval 'as_val=${'$as_ac_var'}
20291                  $as_echo "$as_val"'`
20292    if test "x$as_val" = x""yes; then
20293   cat >>confdefs.h <<_ACEOF
20294 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20295 _ACEOF
20296
20297 else
20298   pgac_need_repl_snprintf=yes
20299 fi
20300 done
20301
20302 fi
20303
20304
20305 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
20306 # include/c.h will provide declarations.  Note this is a separate test
20307 # from whether the functions exist in the C library --- there are
20308 # systems that have the functions but don't bother to declare them :-(
20309
20310 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
20311 $as_echo_n "checking whether snprintf is declared... " >&6; }
20312 if test "${ac_cv_have_decl_snprintf+set}" = set; then
20313   $as_echo_n "(cached) " >&6
20314 else
20315   cat >conftest.$ac_ext <<_ACEOF
20316 /* confdefs.h.  */
20317 _ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h.  */
20321 $ac_includes_default
20322 int
20323 main ()
20324 {
20325 #ifndef snprintf
20326   (void) snprintf;
20327 #endif
20328
20329   ;
20330   return 0;
20331 }
20332 _ACEOF
20333 rm -f conftest.$ac_objext
20334 if { (ac_try="$ac_compile"
20335 case "(($ac_try" in
20336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20337   *) ac_try_echo=$ac_try;;
20338 esac
20339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20340 $as_echo "$ac_try_echo") >&5
20341   (eval "$ac_compile") 2>conftest.er1
20342   ac_status=$?
20343   grep -v '^ *+' conftest.er1 >conftest.err
20344   rm -f conftest.er1
20345   cat conftest.err >&5
20346   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347   (exit $ac_status); } && {
20348          test -z "$ac_c_werror_flag" ||
20349          test ! -s conftest.err
20350        } && test -s conftest.$ac_objext; then
20351   ac_cv_have_decl_snprintf=yes
20352 else
20353   $as_echo "$as_me: failed program was:" >&5
20354 sed 's/^/| /' conftest.$ac_ext >&5
20355
20356         ac_cv_have_decl_snprintf=no
20357 fi
20358
20359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20360 fi
20361 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
20362 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
20363 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
20364
20365 cat >>confdefs.h <<_ACEOF
20366 #define HAVE_DECL_SNPRINTF 1
20367 _ACEOF
20368
20369
20370 else
20371   cat >>confdefs.h <<_ACEOF
20372 #define HAVE_DECL_SNPRINTF 0
20373 _ACEOF
20374
20375
20376 fi
20377 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
20378 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
20379 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
20380   $as_echo_n "(cached) " >&6
20381 else
20382   cat >conftest.$ac_ext <<_ACEOF
20383 /* confdefs.h.  */
20384 _ACEOF
20385 cat confdefs.h >>conftest.$ac_ext
20386 cat >>conftest.$ac_ext <<_ACEOF
20387 /* end confdefs.h.  */
20388 $ac_includes_default
20389 int
20390 main ()
20391 {
20392 #ifndef vsnprintf
20393   (void) vsnprintf;
20394 #endif
20395
20396   ;
20397   return 0;
20398 }
20399 _ACEOF
20400 rm -f conftest.$ac_objext
20401 if { (ac_try="$ac_compile"
20402 case "(($ac_try" in
20403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20404   *) ac_try_echo=$ac_try;;
20405 esac
20406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20407 $as_echo "$ac_try_echo") >&5
20408   (eval "$ac_compile") 2>conftest.er1
20409   ac_status=$?
20410   grep -v '^ *+' conftest.er1 >conftest.err
20411   rm -f conftest.er1
20412   cat conftest.err >&5
20413   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414   (exit $ac_status); } && {
20415          test -z "$ac_c_werror_flag" ||
20416          test ! -s conftest.err
20417        } && test -s conftest.$ac_objext; then
20418   ac_cv_have_decl_vsnprintf=yes
20419 else
20420   $as_echo "$as_me: failed program was:" >&5
20421 sed 's/^/| /' conftest.$ac_ext >&5
20422
20423         ac_cv_have_decl_vsnprintf=no
20424 fi
20425
20426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20427 fi
20428 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
20429 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
20430 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
20431
20432 cat >>confdefs.h <<_ACEOF
20433 #define HAVE_DECL_VSNPRINTF 1
20434 _ACEOF
20435
20436
20437 else
20438   cat >>confdefs.h <<_ACEOF
20439 #define HAVE_DECL_VSNPRINTF 0
20440 _ACEOF
20441
20442
20443 fi
20444
20445
20446
20447
20448 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
20449 $as_echo_n "checking for isinf... " >&6; }
20450 if test "${ac_cv_func_isinf+set}" = set; then
20451   $as_echo_n "(cached) " >&6
20452 else
20453   cat >conftest.$ac_ext <<_ACEOF
20454 /* confdefs.h.  */
20455 _ACEOF
20456 cat confdefs.h >>conftest.$ac_ext
20457 cat >>conftest.$ac_ext <<_ACEOF
20458 /* end confdefs.h.  */
20459
20460 #include <math.h>
20461 double glob_double;
20462
20463 int
20464 main ()
20465 {
20466 return isinf(glob_double) ? 0 : 1;
20467   ;
20468   return 0;
20469 }
20470 _ACEOF
20471 rm -f conftest.$ac_objext conftest$ac_exeext
20472 if { (ac_try="$ac_link"
20473 case "(($ac_try" in
20474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20475   *) ac_try_echo=$ac_try;;
20476 esac
20477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20478 $as_echo "$ac_try_echo") >&5
20479   (eval "$ac_link") 2>conftest.er1
20480   ac_status=$?
20481   grep -v '^ *+' conftest.er1 >conftest.err
20482   rm -f conftest.er1
20483   cat conftest.err >&5
20484   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485   (exit $ac_status); } && {
20486          test -z "$ac_c_werror_flag" ||
20487          test ! -s conftest.err
20488        } && test -s conftest$ac_exeext && {
20489          test "$cross_compiling" = yes ||
20490          $as_test_x conftest$ac_exeext
20491        }; then
20492   ac_cv_func_isinf=yes
20493 else
20494   $as_echo "$as_me: failed program was:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20496
20497         ac_cv_func_isinf=no
20498 fi
20499
20500 rm -rf conftest.dSYM
20501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20502       conftest$ac_exeext conftest.$ac_ext
20503 fi
20504 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
20505 $as_echo "$ac_cv_func_isinf" >&6; }
20506
20507 if test $ac_cv_func_isinf = yes ; then
20508
20509 cat >>confdefs.h <<\_ACEOF
20510 #define HAVE_ISINF 1
20511 _ACEOF
20512
20513 else
20514   case " $LIBOBJS " in
20515   *" isinf.$ac_objext "* ) ;;
20516   *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
20517  ;;
20518 esac
20519
20520   # Look for a way to implement a substitute for isinf()
20521
20522
20523
20524
20525 for ac_func in fpclass fp_class fp_class_d class
20526 do
20527 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20528 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20529 $as_echo_n "checking for $ac_func... " >&6; }
20530 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20531   $as_echo_n "(cached) " >&6
20532 else
20533   cat >conftest.$ac_ext <<_ACEOF
20534 /* confdefs.h.  */
20535 _ACEOF
20536 cat confdefs.h >>conftest.$ac_ext
20537 cat >>conftest.$ac_ext <<_ACEOF
20538 /* end confdefs.h.  */
20539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20540    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20541 #define $ac_func innocuous_$ac_func
20542
20543 /* System header to define __stub macros and hopefully few prototypes,
20544     which can conflict with char $ac_func (); below.
20545     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20546     <limits.h> exists even on freestanding compilers.  */
20547
20548 #ifdef __STDC__
20549 # include <limits.h>
20550 #else
20551 # include <assert.h>
20552 #endif
20553
20554 #undef $ac_func
20555
20556 /* Override any GCC internal prototype to avoid an error.
20557    Use char because int might match the return type of a GCC
20558    builtin and then its argument prototype would still apply.  */
20559 #ifdef __cplusplus
20560 extern "C"
20561 #endif
20562 char $ac_func ();
20563 /* The GNU C library defines this for functions which it implements
20564     to always fail with ENOSYS.  Some functions are actually named
20565     something starting with __ and the normal name is an alias.  */
20566 #if defined __stub_$ac_func || defined __stub___$ac_func
20567 choke me
20568 #endif
20569
20570 int
20571 main ()
20572 {
20573 return $ac_func ();
20574   ;
20575   return 0;
20576 }
20577 _ACEOF
20578 rm -f conftest.$ac_objext conftest$ac_exeext
20579 if { (ac_try="$ac_link"
20580 case "(($ac_try" in
20581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20582   *) ac_try_echo=$ac_try;;
20583 esac
20584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20585 $as_echo "$ac_try_echo") >&5
20586   (eval "$ac_link") 2>conftest.er1
20587   ac_status=$?
20588   grep -v '^ *+' conftest.er1 >conftest.err
20589   rm -f conftest.er1
20590   cat conftest.err >&5
20591   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592   (exit $ac_status); } && {
20593          test -z "$ac_c_werror_flag" ||
20594          test ! -s conftest.err
20595        } && test -s conftest$ac_exeext && {
20596          test "$cross_compiling" = yes ||
20597          $as_test_x conftest$ac_exeext
20598        }; then
20599   eval "$as_ac_var=yes"
20600 else
20601   $as_echo "$as_me: failed program was:" >&5
20602 sed 's/^/| /' conftest.$ac_ext >&5
20603
20604         eval "$as_ac_var=no"
20605 fi
20606
20607 rm -rf conftest.dSYM
20608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20609       conftest$ac_exeext conftest.$ac_ext
20610 fi
20611 ac_res=`eval 'as_val=${'$as_ac_var'}
20612                  $as_echo "$as_val"'`
20613                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20614 $as_echo "$ac_res" >&6; }
20615 as_val=`eval 'as_val=${'$as_ac_var'}
20616                  $as_echo "$as_val"'`
20617    if test "x$as_val" = x""yes; then
20618   cat >>confdefs.h <<_ACEOF
20619 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20620 _ACEOF
20621  break
20622 fi
20623 done
20624
20625 fi
20626
20627 # Some versions of libedit contain strlcpy(); so disregard that library while
20628 # checking for these standard libc functions.
20629 pgac_save_LIBS="$LIBS"
20630 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646 for ac_func in crypt erand48 getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
20647 do
20648 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20649 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20650 $as_echo_n "checking for $ac_func... " >&6; }
20651 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20652   $as_echo_n "(cached) " >&6
20653 else
20654   cat >conftest.$ac_ext <<_ACEOF
20655 /* confdefs.h.  */
20656 _ACEOF
20657 cat confdefs.h >>conftest.$ac_ext
20658 cat >>conftest.$ac_ext <<_ACEOF
20659 /* end confdefs.h.  */
20660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20661    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20662 #define $ac_func innocuous_$ac_func
20663
20664 /* System header to define __stub macros and hopefully few prototypes,
20665     which can conflict with char $ac_func (); below.
20666     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20667     <limits.h> exists even on freestanding compilers.  */
20668
20669 #ifdef __STDC__
20670 # include <limits.h>
20671 #else
20672 # include <assert.h>
20673 #endif
20674
20675 #undef $ac_func
20676
20677 /* Override any GCC internal prototype to avoid an error.
20678    Use char because int might match the return type of a GCC
20679    builtin and then its argument prototype would still apply.  */
20680 #ifdef __cplusplus
20681 extern "C"
20682 #endif
20683 char $ac_func ();
20684 /* The GNU C library defines this for functions which it implements
20685     to always fail with ENOSYS.  Some functions are actually named
20686     something starting with __ and the normal name is an alias.  */
20687 #if defined __stub_$ac_func || defined __stub___$ac_func
20688 choke me
20689 #endif
20690
20691 int
20692 main ()
20693 {
20694 return $ac_func ();
20695   ;
20696   return 0;
20697 }
20698 _ACEOF
20699 rm -f conftest.$ac_objext conftest$ac_exeext
20700 if { (ac_try="$ac_link"
20701 case "(($ac_try" in
20702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20703   *) ac_try_echo=$ac_try;;
20704 esac
20705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20706 $as_echo "$ac_try_echo") >&5
20707   (eval "$ac_link") 2>conftest.er1
20708   ac_status=$?
20709   grep -v '^ *+' conftest.er1 >conftest.err
20710   rm -f conftest.er1
20711   cat conftest.err >&5
20712   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713   (exit $ac_status); } && {
20714          test -z "$ac_c_werror_flag" ||
20715          test ! -s conftest.err
20716        } && test -s conftest$ac_exeext && {
20717          test "$cross_compiling" = yes ||
20718          $as_test_x conftest$ac_exeext
20719        }; then
20720   eval "$as_ac_var=yes"
20721 else
20722   $as_echo "$as_me: failed program was:" >&5
20723 sed 's/^/| /' conftest.$ac_ext >&5
20724
20725         eval "$as_ac_var=no"
20726 fi
20727
20728 rm -rf conftest.dSYM
20729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20730       conftest$ac_exeext conftest.$ac_ext
20731 fi
20732 ac_res=`eval 'as_val=${'$as_ac_var'}
20733                  $as_echo "$as_val"'`
20734                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20735 $as_echo "$ac_res" >&6; }
20736 as_val=`eval 'as_val=${'$as_ac_var'}
20737                  $as_echo "$as_val"'`
20738    if test "x$as_val" = x""yes; then
20739   cat >>confdefs.h <<_ACEOF
20740 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20741 _ACEOF
20742
20743 else
20744   case " $LIBOBJS " in
20745   *" $ac_func.$ac_objext "* ) ;;
20746   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20747  ;;
20748 esac
20749
20750 fi
20751 done
20752
20753
20754
20755 case $host_os in
20756
20757         # Windows uses a specialised env handler
20758         mingw*)
20759
20760 cat >>confdefs.h <<\_ACEOF
20761 #define HAVE_UNSETENV 1
20762 _ACEOF
20763
20764                 ac_cv_func_unsetenv=yes;;
20765         *)
20766
20767 for ac_func in unsetenv
20768 do
20769 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20770 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20771 $as_echo_n "checking for $ac_func... " >&6; }
20772 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20773   $as_echo_n "(cached) " >&6
20774 else
20775   cat >conftest.$ac_ext <<_ACEOF
20776 /* confdefs.h.  */
20777 _ACEOF
20778 cat confdefs.h >>conftest.$ac_ext
20779 cat >>conftest.$ac_ext <<_ACEOF
20780 /* end confdefs.h.  */
20781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20782    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20783 #define $ac_func innocuous_$ac_func
20784
20785 /* System header to define __stub macros and hopefully few prototypes,
20786     which can conflict with char $ac_func (); below.
20787     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20788     <limits.h> exists even on freestanding compilers.  */
20789
20790 #ifdef __STDC__
20791 # include <limits.h>
20792 #else
20793 # include <assert.h>
20794 #endif
20795
20796 #undef $ac_func
20797
20798 /* Override any GCC internal prototype to avoid an error.
20799    Use char because int might match the return type of a GCC
20800    builtin and then its argument prototype would still apply.  */
20801 #ifdef __cplusplus
20802 extern "C"
20803 #endif
20804 char $ac_func ();
20805 /* The GNU C library defines this for functions which it implements
20806     to always fail with ENOSYS.  Some functions are actually named
20807     something starting with __ and the normal name is an alias.  */
20808 #if defined __stub_$ac_func || defined __stub___$ac_func
20809 choke me
20810 #endif
20811
20812 int
20813 main ()
20814 {
20815 return $ac_func ();
20816   ;
20817   return 0;
20818 }
20819 _ACEOF
20820 rm -f conftest.$ac_objext conftest$ac_exeext
20821 if { (ac_try="$ac_link"
20822 case "(($ac_try" in
20823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20824   *) ac_try_echo=$ac_try;;
20825 esac
20826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20827 $as_echo "$ac_try_echo") >&5
20828   (eval "$ac_link") 2>conftest.er1
20829   ac_status=$?
20830   grep -v '^ *+' conftest.er1 >conftest.err
20831   rm -f conftest.er1
20832   cat conftest.err >&5
20833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834   (exit $ac_status); } && {
20835          test -z "$ac_c_werror_flag" ||
20836          test ! -s conftest.err
20837        } && test -s conftest$ac_exeext && {
20838          test "$cross_compiling" = yes ||
20839          $as_test_x conftest$ac_exeext
20840        }; then
20841   eval "$as_ac_var=yes"
20842 else
20843   $as_echo "$as_me: failed program was:" >&5
20844 sed 's/^/| /' conftest.$ac_ext >&5
20845
20846         eval "$as_ac_var=no"
20847 fi
20848
20849 rm -rf conftest.dSYM
20850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20851       conftest$ac_exeext conftest.$ac_ext
20852 fi
20853 ac_res=`eval 'as_val=${'$as_ac_var'}
20854                  $as_echo "$as_val"'`
20855                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20856 $as_echo "$ac_res" >&6; }
20857 as_val=`eval 'as_val=${'$as_ac_var'}
20858                  $as_echo "$as_val"'`
20859    if test "x$as_val" = x""yes; then
20860   cat >>confdefs.h <<_ACEOF
20861 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20862 _ACEOF
20863
20864 else
20865   case " $LIBOBJS " in
20866   *" $ac_func.$ac_objext "* ) ;;
20867   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20868  ;;
20869 esac
20870
20871 fi
20872 done
20873
20874
20875                 ;;
20876 esac
20877
20878
20879 LIBS="$pgac_save_LIBS"
20880
20881 # System's version of getaddrinfo(), if any, may be used only if we found
20882 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
20883 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
20884 # versions of getaddrinfo don't follow normal C call protocol.  This is OK
20885 # because we want to use our own getaddrinfo.c on Windows anyway.)
20886 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
20887
20888 for ac_func in getaddrinfo
20889 do
20890 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20891 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20892 $as_echo_n "checking for $ac_func... " >&6; }
20893 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20894   $as_echo_n "(cached) " >&6
20895 else
20896   cat >conftest.$ac_ext <<_ACEOF
20897 /* confdefs.h.  */
20898 _ACEOF
20899 cat confdefs.h >>conftest.$ac_ext
20900 cat >>conftest.$ac_ext <<_ACEOF
20901 /* end confdefs.h.  */
20902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20903    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20904 #define $ac_func innocuous_$ac_func
20905
20906 /* System header to define __stub macros and hopefully few prototypes,
20907     which can conflict with char $ac_func (); below.
20908     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20909     <limits.h> exists even on freestanding compilers.  */
20910
20911 #ifdef __STDC__
20912 # include <limits.h>
20913 #else
20914 # include <assert.h>
20915 #endif
20916
20917 #undef $ac_func
20918
20919 /* Override any GCC internal prototype to avoid an error.
20920    Use char because int might match the return type of a GCC
20921    builtin and then its argument prototype would still apply.  */
20922 #ifdef __cplusplus
20923 extern "C"
20924 #endif
20925 char $ac_func ();
20926 /* The GNU C library defines this for functions which it implements
20927     to always fail with ENOSYS.  Some functions are actually named
20928     something starting with __ and the normal name is an alias.  */
20929 #if defined __stub_$ac_func || defined __stub___$ac_func
20930 choke me
20931 #endif
20932
20933 int
20934 main ()
20935 {
20936 return $ac_func ();
20937   ;
20938   return 0;
20939 }
20940 _ACEOF
20941 rm -f conftest.$ac_objext conftest$ac_exeext
20942 if { (ac_try="$ac_link"
20943 case "(($ac_try" in
20944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20945   *) ac_try_echo=$ac_try;;
20946 esac
20947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20948 $as_echo "$ac_try_echo") >&5
20949   (eval "$ac_link") 2>conftest.er1
20950   ac_status=$?
20951   grep -v '^ *+' conftest.er1 >conftest.err
20952   rm -f conftest.er1
20953   cat conftest.err >&5
20954   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955   (exit $ac_status); } && {
20956          test -z "$ac_c_werror_flag" ||
20957          test ! -s conftest.err
20958        } && test -s conftest$ac_exeext && {
20959          test "$cross_compiling" = yes ||
20960          $as_test_x conftest$ac_exeext
20961        }; then
20962   eval "$as_ac_var=yes"
20963 else
20964   $as_echo "$as_me: failed program was:" >&5
20965 sed 's/^/| /' conftest.$ac_ext >&5
20966
20967         eval "$as_ac_var=no"
20968 fi
20969
20970 rm -rf conftest.dSYM
20971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20972       conftest$ac_exeext conftest.$ac_ext
20973 fi
20974 ac_res=`eval 'as_val=${'$as_ac_var'}
20975                  $as_echo "$as_val"'`
20976                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20977 $as_echo "$ac_res" >&6; }
20978 as_val=`eval 'as_val=${'$as_ac_var'}
20979                  $as_echo "$as_val"'`
20980    if test "x$as_val" = x""yes; then
20981   cat >>confdefs.h <<_ACEOF
20982 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20983 _ACEOF
20984
20985 else
20986   case " $LIBOBJS " in
20987   *" $ac_func.$ac_objext "* ) ;;
20988   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20989  ;;
20990 esac
20991
20992 fi
20993 done
20994
20995
20996 else
20997   case " $LIBOBJS " in
20998   *" getaddrinfo.$ac_objext "* ) ;;
20999   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
21000  ;;
21001 esac
21002
21003 fi
21004
21005 # Similarly, use system's getopt_long() only if system provides struct option.
21006 if test x"$ac_cv_type_struct_option" = xyes ; then
21007
21008 for ac_func in getopt_long
21009 do
21010 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21011 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21012 $as_echo_n "checking for $ac_func... " >&6; }
21013 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21014   $as_echo_n "(cached) " >&6
21015 else
21016   cat >conftest.$ac_ext <<_ACEOF
21017 /* confdefs.h.  */
21018 _ACEOF
21019 cat confdefs.h >>conftest.$ac_ext
21020 cat >>conftest.$ac_ext <<_ACEOF
21021 /* end confdefs.h.  */
21022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21023    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21024 #define $ac_func innocuous_$ac_func
21025
21026 /* System header to define __stub macros and hopefully few prototypes,
21027     which can conflict with char $ac_func (); below.
21028     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21029     <limits.h> exists even on freestanding compilers.  */
21030
21031 #ifdef __STDC__
21032 # include <limits.h>
21033 #else
21034 # include <assert.h>
21035 #endif
21036
21037 #undef $ac_func
21038
21039 /* Override any GCC internal prototype to avoid an error.
21040    Use char because int might match the return type of a GCC
21041    builtin and then its argument prototype would still apply.  */
21042 #ifdef __cplusplus
21043 extern "C"
21044 #endif
21045 char $ac_func ();
21046 /* The GNU C library defines this for functions which it implements
21047     to always fail with ENOSYS.  Some functions are actually named
21048     something starting with __ and the normal name is an alias.  */
21049 #if defined __stub_$ac_func || defined __stub___$ac_func
21050 choke me
21051 #endif
21052
21053 int
21054 main ()
21055 {
21056 return $ac_func ();
21057   ;
21058   return 0;
21059 }
21060 _ACEOF
21061 rm -f conftest.$ac_objext conftest$ac_exeext
21062 if { (ac_try="$ac_link"
21063 case "(($ac_try" in
21064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21065   *) ac_try_echo=$ac_try;;
21066 esac
21067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21068 $as_echo "$ac_try_echo") >&5
21069   (eval "$ac_link") 2>conftest.er1
21070   ac_status=$?
21071   grep -v '^ *+' conftest.er1 >conftest.err
21072   rm -f conftest.er1
21073   cat conftest.err >&5
21074   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075   (exit $ac_status); } && {
21076          test -z "$ac_c_werror_flag" ||
21077          test ! -s conftest.err
21078        } && test -s conftest$ac_exeext && {
21079          test "$cross_compiling" = yes ||
21080          $as_test_x conftest$ac_exeext
21081        }; then
21082   eval "$as_ac_var=yes"
21083 else
21084   $as_echo "$as_me: failed program was:" >&5
21085 sed 's/^/| /' conftest.$ac_ext >&5
21086
21087         eval "$as_ac_var=no"
21088 fi
21089
21090 rm -rf conftest.dSYM
21091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21092       conftest$ac_exeext conftest.$ac_ext
21093 fi
21094 ac_res=`eval 'as_val=${'$as_ac_var'}
21095                  $as_echo "$as_val"'`
21096                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21097 $as_echo "$ac_res" >&6; }
21098 as_val=`eval 'as_val=${'$as_ac_var'}
21099                  $as_echo "$as_val"'`
21100    if test "x$as_val" = x""yes; then
21101   cat >>confdefs.h <<_ACEOF
21102 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21103 _ACEOF
21104
21105 else
21106   case " $LIBOBJS " in
21107   *" $ac_func.$ac_objext "* ) ;;
21108   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21109  ;;
21110 esac
21111
21112 fi
21113 done
21114
21115
21116 else
21117   case " $LIBOBJS " in
21118   *" getopt_long.$ac_objext "* ) ;;
21119   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21120  ;;
21121 esac
21122
21123 fi
21124
21125 # Solaris' getopt() doesn't do what we want for long options, so always use
21126 # our version on that platform.
21127 if test "$PORTNAME" = "solaris"; then
21128   case " $LIBOBJS " in
21129   *" getopt.$ac_objext "* ) ;;
21130   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21131  ;;
21132 esac
21133
21134 fi
21135
21136 # mingw has adopted a GNU-centric interpretation of optind/optreset,
21137 # so always use our version on Windows.
21138 if test "$PORTNAME" = "win32"; then
21139   case " $LIBOBJS " in
21140   *" getopt.$ac_objext "* ) ;;
21141   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21142  ;;
21143 esac
21144
21145   case " $LIBOBJS " in
21146   *" getopt_long.$ac_objext "* ) ;;
21147   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21148  ;;
21149 esac
21150
21151 fi
21152
21153 # Cygwin's erand48() is broken (always returns zero) in some releases,
21154 # so force use of ours.
21155 if test "$PORTNAME" = "cygwin"; then
21156   case " $LIBOBJS " in
21157   *" erand48.$ac_objext "* ) ;;
21158   *) LIBOBJS="$LIBOBJS erand48.$ac_objext"
21159  ;;
21160 esac
21161
21162 fi
21163
21164 # Win32 support
21165 if test "$PORTNAME" = "win32"; then
21166
21167 for ac_func in gettimeofday
21168 do
21169 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21170 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21171 $as_echo_n "checking for $ac_func... " >&6; }
21172 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21173   $as_echo_n "(cached) " >&6
21174 else
21175   cat >conftest.$ac_ext <<_ACEOF
21176 /* confdefs.h.  */
21177 _ACEOF
21178 cat confdefs.h >>conftest.$ac_ext
21179 cat >>conftest.$ac_ext <<_ACEOF
21180 /* end confdefs.h.  */
21181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21182    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21183 #define $ac_func innocuous_$ac_func
21184
21185 /* System header to define __stub macros and hopefully few prototypes,
21186     which can conflict with char $ac_func (); below.
21187     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21188     <limits.h> exists even on freestanding compilers.  */
21189
21190 #ifdef __STDC__
21191 # include <limits.h>
21192 #else
21193 # include <assert.h>
21194 #endif
21195
21196 #undef $ac_func
21197
21198 /* Override any GCC internal prototype to avoid an error.
21199    Use char because int might match the return type of a GCC
21200    builtin and then its argument prototype would still apply.  */
21201 #ifdef __cplusplus
21202 extern "C"
21203 #endif
21204 char $ac_func ();
21205 /* The GNU C library defines this for functions which it implements
21206     to always fail with ENOSYS.  Some functions are actually named
21207     something starting with __ and the normal name is an alias.  */
21208 #if defined __stub_$ac_func || defined __stub___$ac_func
21209 choke me
21210 #endif
21211
21212 int
21213 main ()
21214 {
21215 return $ac_func ();
21216   ;
21217   return 0;
21218 }
21219 _ACEOF
21220 rm -f conftest.$ac_objext conftest$ac_exeext
21221 if { (ac_try="$ac_link"
21222 case "(($ac_try" in
21223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21224   *) ac_try_echo=$ac_try;;
21225 esac
21226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21227 $as_echo "$ac_try_echo") >&5
21228   (eval "$ac_link") 2>conftest.er1
21229   ac_status=$?
21230   grep -v '^ *+' conftest.er1 >conftest.err
21231   rm -f conftest.er1
21232   cat conftest.err >&5
21233   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234   (exit $ac_status); } && {
21235          test -z "$ac_c_werror_flag" ||
21236          test ! -s conftest.err
21237        } && test -s conftest$ac_exeext && {
21238          test "$cross_compiling" = yes ||
21239          $as_test_x conftest$ac_exeext
21240        }; then
21241   eval "$as_ac_var=yes"
21242 else
21243   $as_echo "$as_me: failed program was:" >&5
21244 sed 's/^/| /' conftest.$ac_ext >&5
21245
21246         eval "$as_ac_var=no"
21247 fi
21248
21249 rm -rf conftest.dSYM
21250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21251       conftest$ac_exeext conftest.$ac_ext
21252 fi
21253 ac_res=`eval 'as_val=${'$as_ac_var'}
21254                  $as_echo "$as_val"'`
21255                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21256 $as_echo "$ac_res" >&6; }
21257 as_val=`eval 'as_val=${'$as_ac_var'}
21258                  $as_echo "$as_val"'`
21259    if test "x$as_val" = x""yes; then
21260   cat >>confdefs.h <<_ACEOF
21261 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21262 _ACEOF
21263
21264 else
21265   case " $LIBOBJS " in
21266   *" $ac_func.$ac_objext "* ) ;;
21267   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21268  ;;
21269 esac
21270
21271 fi
21272 done
21273
21274
21275   case " $LIBOBJS " in
21276   *" kill.$ac_objext "* ) ;;
21277   *) LIBOBJS="$LIBOBJS kill.$ac_objext"
21278  ;;
21279 esac
21280
21281   case " $LIBOBJS " in
21282   *" open.$ac_objext "* ) ;;
21283   *) LIBOBJS="$LIBOBJS open.$ac_objext"
21284  ;;
21285 esac
21286
21287   case " $LIBOBJS " in
21288   *" win32env.$ac_objext "* ) ;;
21289   *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
21290  ;;
21291 esac
21292
21293   case " $LIBOBJS " in
21294   *" win32error.$ac_objext "* ) ;;
21295   *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
21296  ;;
21297 esac
21298
21299
21300 cat >>confdefs.h <<\_ACEOF
21301 #define HAVE_SYMLINK 1
21302 _ACEOF
21303
21304   { $as_echo "$as_me:$LINENO: checking for MINIDUMP_TYPE" >&5
21305 $as_echo_n "checking for MINIDUMP_TYPE... " >&6; }
21306 if test "${ac_cv_type_MINIDUMP_TYPE+set}" = set; then
21307   $as_echo_n "(cached) " >&6
21308 else
21309   ac_cv_type_MINIDUMP_TYPE=no
21310 cat >conftest.$ac_ext <<_ACEOF
21311 /* confdefs.h.  */
21312 _ACEOF
21313 cat confdefs.h >>conftest.$ac_ext
21314 cat >>conftest.$ac_ext <<_ACEOF
21315 /* end confdefs.h.  */
21316
21317 #define WIN32_LEAN_AND_MEAN
21318 #include <windows.h>
21319 #include <string.h>
21320 #include <dbghelp.h>
21321
21322 int
21323 main ()
21324 {
21325 if (sizeof (MINIDUMP_TYPE))
21326        return 0;
21327   ;
21328   return 0;
21329 }
21330 _ACEOF
21331 rm -f conftest.$ac_objext
21332 if { (ac_try="$ac_compile"
21333 case "(($ac_try" in
21334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21335   *) ac_try_echo=$ac_try;;
21336 esac
21337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21338 $as_echo "$ac_try_echo") >&5
21339   (eval "$ac_compile") 2>conftest.er1
21340   ac_status=$?
21341   grep -v '^ *+' conftest.er1 >conftest.err
21342   rm -f conftest.er1
21343   cat conftest.err >&5
21344   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345   (exit $ac_status); } && {
21346          test -z "$ac_c_werror_flag" ||
21347          test ! -s conftest.err
21348        } && test -s conftest.$ac_objext; then
21349   cat >conftest.$ac_ext <<_ACEOF
21350 /* confdefs.h.  */
21351 _ACEOF
21352 cat confdefs.h >>conftest.$ac_ext
21353 cat >>conftest.$ac_ext <<_ACEOF
21354 /* end confdefs.h.  */
21355
21356 #define WIN32_LEAN_AND_MEAN
21357 #include <windows.h>
21358 #include <string.h>
21359 #include <dbghelp.h>
21360
21361 int
21362 main ()
21363 {
21364 if (sizeof ((MINIDUMP_TYPE)))
21365           return 0;
21366   ;
21367   return 0;
21368 }
21369 _ACEOF
21370 rm -f conftest.$ac_objext
21371 if { (ac_try="$ac_compile"
21372 case "(($ac_try" in
21373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21374   *) ac_try_echo=$ac_try;;
21375 esac
21376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21377 $as_echo "$ac_try_echo") >&5
21378   (eval "$ac_compile") 2>conftest.er1
21379   ac_status=$?
21380   grep -v '^ *+' conftest.er1 >conftest.err
21381   rm -f conftest.er1
21382   cat conftest.err >&5
21383   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384   (exit $ac_status); } && {
21385          test -z "$ac_c_werror_flag" ||
21386          test ! -s conftest.err
21387        } && test -s conftest.$ac_objext; then
21388   :
21389 else
21390   $as_echo "$as_me: failed program was:" >&5
21391 sed 's/^/| /' conftest.$ac_ext >&5
21392
21393         ac_cv_type_MINIDUMP_TYPE=yes
21394 fi
21395
21396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21397 else
21398   $as_echo "$as_me: failed program was:" >&5
21399 sed 's/^/| /' conftest.$ac_ext >&5
21400
21401
21402 fi
21403
21404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21405 fi
21406 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_MINIDUMP_TYPE" >&5
21407 $as_echo "$ac_cv_type_MINIDUMP_TYPE" >&6; }
21408 if test "x$ac_cv_type_MINIDUMP_TYPE" = x""yes; then
21409
21410 cat >>confdefs.h <<_ACEOF
21411 #define HAVE_MINIDUMP_TYPE 1
21412 _ACEOF
21413
21414 pgac_minidump_type=yes
21415 else
21416   pgac_minidump_type=no
21417 fi
21418
21419 fi
21420 if test x"$pgac_minidump_type" = x"yes" ; then
21421   have_win32_dbghelp=yes
21422
21423 else
21424   have_win32_dbghelp=no
21425
21426 fi
21427
21428 if test "$with_readline" = yes; then
21429   { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
21430 $as_echo_n "checking for rl_completion_append_character... " >&6; }
21431 if test "${pgac_cv_var_rl_completion_append_character+set}" = set; then
21432   $as_echo_n "(cached) " >&6
21433 else
21434   cat >conftest.$ac_ext <<_ACEOF
21435 /* confdefs.h.  */
21436 _ACEOF
21437 cat confdefs.h >>conftest.$ac_ext
21438 cat >>conftest.$ac_ext <<_ACEOF
21439 /* end confdefs.h.  */
21440 #include <stdio.h>
21441 #ifdef HAVE_READLINE_READLINE_H
21442 # include <readline/readline.h>
21443 #elif defined(HAVE_READLINE_H)
21444 # include <readline.h>
21445 #endif
21446
21447 int
21448 main ()
21449 {
21450 rl_completion_append_character = 'x';
21451   ;
21452   return 0;
21453 }
21454 _ACEOF
21455 rm -f conftest.$ac_objext conftest$ac_exeext
21456 if { (ac_try="$ac_link"
21457 case "(($ac_try" in
21458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21459   *) ac_try_echo=$ac_try;;
21460 esac
21461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21462 $as_echo "$ac_try_echo") >&5
21463   (eval "$ac_link") 2>conftest.er1
21464   ac_status=$?
21465   grep -v '^ *+' conftest.er1 >conftest.err
21466   rm -f conftest.er1
21467   cat conftest.err >&5
21468   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469   (exit $ac_status); } && {
21470          test -z "$ac_c_werror_flag" ||
21471          test ! -s conftest.err
21472        } && test -s conftest$ac_exeext && {
21473          test "$cross_compiling" = yes ||
21474          $as_test_x conftest$ac_exeext
21475        }; then
21476   pgac_cv_var_rl_completion_append_character=yes
21477 else
21478   $as_echo "$as_me: failed program was:" >&5
21479 sed 's/^/| /' conftest.$ac_ext >&5
21480
21481         pgac_cv_var_rl_completion_append_character=no
21482 fi
21483
21484 rm -rf conftest.dSYM
21485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21486       conftest$ac_exeext conftest.$ac_ext
21487 fi
21488 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_rl_completion_append_character" >&5
21489 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
21490 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
21491
21492 cat >>confdefs.h <<\_ACEOF
21493 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
21494 _ACEOF
21495
21496 fi
21497
21498
21499 for ac_func in rl_completion_matches rl_filename_completion_function
21500 do
21501 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21502 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21503 $as_echo_n "checking for $ac_func... " >&6; }
21504 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21505   $as_echo_n "(cached) " >&6
21506 else
21507   cat >conftest.$ac_ext <<_ACEOF
21508 /* confdefs.h.  */
21509 _ACEOF
21510 cat confdefs.h >>conftest.$ac_ext
21511 cat >>conftest.$ac_ext <<_ACEOF
21512 /* end confdefs.h.  */
21513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21514    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21515 #define $ac_func innocuous_$ac_func
21516
21517 /* System header to define __stub macros and hopefully few prototypes,
21518     which can conflict with char $ac_func (); below.
21519     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21520     <limits.h> exists even on freestanding compilers.  */
21521
21522 #ifdef __STDC__
21523 # include <limits.h>
21524 #else
21525 # include <assert.h>
21526 #endif
21527
21528 #undef $ac_func
21529
21530 /* Override any GCC internal prototype to avoid an error.
21531    Use char because int might match the return type of a GCC
21532    builtin and then its argument prototype would still apply.  */
21533 #ifdef __cplusplus
21534 extern "C"
21535 #endif
21536 char $ac_func ();
21537 /* The GNU C library defines this for functions which it implements
21538     to always fail with ENOSYS.  Some functions are actually named
21539     something starting with __ and the normal name is an alias.  */
21540 #if defined __stub_$ac_func || defined __stub___$ac_func
21541 choke me
21542 #endif
21543
21544 int
21545 main ()
21546 {
21547 return $ac_func ();
21548   ;
21549   return 0;
21550 }
21551 _ACEOF
21552 rm -f conftest.$ac_objext conftest$ac_exeext
21553 if { (ac_try="$ac_link"
21554 case "(($ac_try" in
21555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21556   *) ac_try_echo=$ac_try;;
21557 esac
21558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21559 $as_echo "$ac_try_echo") >&5
21560   (eval "$ac_link") 2>conftest.er1
21561   ac_status=$?
21562   grep -v '^ *+' conftest.er1 >conftest.err
21563   rm -f conftest.er1
21564   cat conftest.err >&5
21565   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566   (exit $ac_status); } && {
21567          test -z "$ac_c_werror_flag" ||
21568          test ! -s conftest.err
21569        } && test -s conftest$ac_exeext && {
21570          test "$cross_compiling" = yes ||
21571          $as_test_x conftest$ac_exeext
21572        }; then
21573   eval "$as_ac_var=yes"
21574 else
21575   $as_echo "$as_me: failed program was:" >&5
21576 sed 's/^/| /' conftest.$ac_ext >&5
21577
21578         eval "$as_ac_var=no"
21579 fi
21580
21581 rm -rf conftest.dSYM
21582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21583       conftest$ac_exeext conftest.$ac_ext
21584 fi
21585 ac_res=`eval 'as_val=${'$as_ac_var'}
21586                  $as_echo "$as_val"'`
21587                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21588 $as_echo "$ac_res" >&6; }
21589 as_val=`eval 'as_val=${'$as_ac_var'}
21590                  $as_echo "$as_val"'`
21591    if test "x$as_val" = x""yes; then
21592   cat >>confdefs.h <<_ACEOF
21593 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21594 _ACEOF
21595
21596 fi
21597 done
21598
21599
21600
21601 for ac_func in append_history history_truncate_file
21602 do
21603 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21604 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21605 $as_echo_n "checking for $ac_func... " >&6; }
21606 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21607   $as_echo_n "(cached) " >&6
21608 else
21609   cat >conftest.$ac_ext <<_ACEOF
21610 /* confdefs.h.  */
21611 _ACEOF
21612 cat confdefs.h >>conftest.$ac_ext
21613 cat >>conftest.$ac_ext <<_ACEOF
21614 /* end confdefs.h.  */
21615 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21616    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21617 #define $ac_func innocuous_$ac_func
21618
21619 /* System header to define __stub macros and hopefully few prototypes,
21620     which can conflict with char $ac_func (); below.
21621     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21622     <limits.h> exists even on freestanding compilers.  */
21623
21624 #ifdef __STDC__
21625 # include <limits.h>
21626 #else
21627 # include <assert.h>
21628 #endif
21629
21630 #undef $ac_func
21631
21632 /* Override any GCC internal prototype to avoid an error.
21633    Use char because int might match the return type of a GCC
21634    builtin and then its argument prototype would still apply.  */
21635 #ifdef __cplusplus
21636 extern "C"
21637 #endif
21638 char $ac_func ();
21639 /* The GNU C library defines this for functions which it implements
21640     to always fail with ENOSYS.  Some functions are actually named
21641     something starting with __ and the normal name is an alias.  */
21642 #if defined __stub_$ac_func || defined __stub___$ac_func
21643 choke me
21644 #endif
21645
21646 int
21647 main ()
21648 {
21649 return $ac_func ();
21650   ;
21651   return 0;
21652 }
21653 _ACEOF
21654 rm -f conftest.$ac_objext conftest$ac_exeext
21655 if { (ac_try="$ac_link"
21656 case "(($ac_try" in
21657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21658   *) ac_try_echo=$ac_try;;
21659 esac
21660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21661 $as_echo "$ac_try_echo") >&5
21662   (eval "$ac_link") 2>conftest.er1
21663   ac_status=$?
21664   grep -v '^ *+' conftest.er1 >conftest.err
21665   rm -f conftest.er1
21666   cat conftest.err >&5
21667   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668   (exit $ac_status); } && {
21669          test -z "$ac_c_werror_flag" ||
21670          test ! -s conftest.err
21671        } && test -s conftest$ac_exeext && {
21672          test "$cross_compiling" = yes ||
21673          $as_test_x conftest$ac_exeext
21674        }; then
21675   eval "$as_ac_var=yes"
21676 else
21677   $as_echo "$as_me: failed program was:" >&5
21678 sed 's/^/| /' conftest.$ac_ext >&5
21679
21680         eval "$as_ac_var=no"
21681 fi
21682
21683 rm -rf conftest.dSYM
21684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21685       conftest$ac_exeext conftest.$ac_ext
21686 fi
21687 ac_res=`eval 'as_val=${'$as_ac_var'}
21688                  $as_echo "$as_val"'`
21689                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21690 $as_echo "$ac_res" >&6; }
21691 as_val=`eval 'as_val=${'$as_ac_var'}
21692                  $as_echo "$as_val"'`
21693    if test "x$as_val" = x""yes; then
21694   cat >>confdefs.h <<_ACEOF
21695 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21696 _ACEOF
21697
21698 fi
21699 done
21700
21701 fi
21702
21703
21704 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
21705 $as_echo_n "checking for sigsetjmp... " >&6; }
21706 if test "${pgac_cv_func_sigsetjmp+set}" = set; then
21707   $as_echo_n "(cached) " >&6
21708 else
21709   cat >conftest.$ac_ext <<_ACEOF
21710 /* confdefs.h.  */
21711 _ACEOF
21712 cat confdefs.h >>conftest.$ac_ext
21713 cat >>conftest.$ac_ext <<_ACEOF
21714 /* end confdefs.h.  */
21715 #include <setjmp.h>
21716 int
21717 main ()
21718 {
21719 sigjmp_buf x; sigsetjmp(x, 1);
21720   ;
21721   return 0;
21722 }
21723 _ACEOF
21724 rm -f conftest.$ac_objext conftest$ac_exeext
21725 if { (ac_try="$ac_link"
21726 case "(($ac_try" in
21727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21728   *) ac_try_echo=$ac_try;;
21729 esac
21730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21731 $as_echo "$ac_try_echo") >&5
21732   (eval "$ac_link") 2>conftest.er1
21733   ac_status=$?
21734   grep -v '^ *+' conftest.er1 >conftest.err
21735   rm -f conftest.er1
21736   cat conftest.err >&5
21737   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738   (exit $ac_status); } && {
21739          test -z "$ac_c_werror_flag" ||
21740          test ! -s conftest.err
21741        } && test -s conftest$ac_exeext && {
21742          test "$cross_compiling" = yes ||
21743          $as_test_x conftest$ac_exeext
21744        }; then
21745   pgac_cv_func_sigsetjmp=yes
21746 else
21747   $as_echo "$as_me: failed program was:" >&5
21748 sed 's/^/| /' conftest.$ac_ext >&5
21749
21750         pgac_cv_func_sigsetjmp=no
21751 fi
21752
21753 rm -rf conftest.dSYM
21754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21755       conftest$ac_exeext conftest.$ac_ext
21756 fi
21757 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_sigsetjmp" >&5
21758 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
21759 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
21760
21761 cat >>confdefs.h <<\_ACEOF
21762 #define HAVE_SIGSETJMP 1
21763 _ACEOF
21764
21765 fi
21766
21767 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
21768 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
21769 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
21770   $as_echo_n "(cached) " >&6
21771 else
21772   cat >conftest.$ac_ext <<_ACEOF
21773 /* confdefs.h.  */
21774 _ACEOF
21775 cat confdefs.h >>conftest.$ac_ext
21776 cat >>conftest.$ac_ext <<_ACEOF
21777 /* end confdefs.h.  */
21778 #include <signal.h>
21779 /* NetBSD declares sys_siglist in unistd.h.  */
21780 #ifdef HAVE_UNISTD_H
21781 # include <unistd.h>
21782 #endif
21783
21784
21785 int
21786 main ()
21787 {
21788 #ifndef sys_siglist
21789   (void) sys_siglist;
21790 #endif
21791
21792   ;
21793   return 0;
21794 }
21795 _ACEOF
21796 rm -f conftest.$ac_objext
21797 if { (ac_try="$ac_compile"
21798 case "(($ac_try" in
21799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21800   *) ac_try_echo=$ac_try;;
21801 esac
21802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21803 $as_echo "$ac_try_echo") >&5
21804   (eval "$ac_compile") 2>conftest.er1
21805   ac_status=$?
21806   grep -v '^ *+' conftest.er1 >conftest.err
21807   rm -f conftest.er1
21808   cat conftest.err >&5
21809   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810   (exit $ac_status); } && {
21811          test -z "$ac_c_werror_flag" ||
21812          test ! -s conftest.err
21813        } && test -s conftest.$ac_objext; then
21814   ac_cv_have_decl_sys_siglist=yes
21815 else
21816   $as_echo "$as_me: failed program was:" >&5
21817 sed 's/^/| /' conftest.$ac_ext >&5
21818
21819         ac_cv_have_decl_sys_siglist=no
21820 fi
21821
21822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21823 fi
21824 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
21825 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
21826 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
21827
21828 cat >>confdefs.h <<_ACEOF
21829 #define HAVE_DECL_SYS_SIGLIST 1
21830 _ACEOF
21831
21832
21833 else
21834   cat >>confdefs.h <<_ACEOF
21835 #define HAVE_DECL_SYS_SIGLIST 0
21836 _ACEOF
21837
21838
21839 fi
21840
21841
21842
21843
21844 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
21845 $as_echo_n "checking for syslog... " >&6; }
21846 if test "${ac_cv_func_syslog+set}" = set; then
21847   $as_echo_n "(cached) " >&6
21848 else
21849   cat >conftest.$ac_ext <<_ACEOF
21850 /* confdefs.h.  */
21851 _ACEOF
21852 cat confdefs.h >>conftest.$ac_ext
21853 cat >>conftest.$ac_ext <<_ACEOF
21854 /* end confdefs.h.  */
21855 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
21856    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21857 #define syslog innocuous_syslog
21858
21859 /* System header to define __stub macros and hopefully few prototypes,
21860     which can conflict with char syslog (); below.
21861     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21862     <limits.h> exists even on freestanding compilers.  */
21863
21864 #ifdef __STDC__
21865 # include <limits.h>
21866 #else
21867 # include <assert.h>
21868 #endif
21869
21870 #undef syslog
21871
21872 /* Override any GCC internal prototype to avoid an error.
21873    Use char because int might match the return type of a GCC
21874    builtin and then its argument prototype would still apply.  */
21875 #ifdef __cplusplus
21876 extern "C"
21877 #endif
21878 char syslog ();
21879 /* The GNU C library defines this for functions which it implements
21880     to always fail with ENOSYS.  Some functions are actually named
21881     something starting with __ and the normal name is an alias.  */
21882 #if defined __stub_syslog || defined __stub___syslog
21883 choke me
21884 #endif
21885
21886 int
21887 main ()
21888 {
21889 return syslog ();
21890   ;
21891   return 0;
21892 }
21893 _ACEOF
21894 rm -f conftest.$ac_objext conftest$ac_exeext
21895 if { (ac_try="$ac_link"
21896 case "(($ac_try" in
21897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21898   *) ac_try_echo=$ac_try;;
21899 esac
21900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21901 $as_echo "$ac_try_echo") >&5
21902   (eval "$ac_link") 2>conftest.er1
21903   ac_status=$?
21904   grep -v '^ *+' conftest.er1 >conftest.err
21905   rm -f conftest.er1
21906   cat conftest.err >&5
21907   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908   (exit $ac_status); } && {
21909          test -z "$ac_c_werror_flag" ||
21910          test ! -s conftest.err
21911        } && test -s conftest$ac_exeext && {
21912          test "$cross_compiling" = yes ||
21913          $as_test_x conftest$ac_exeext
21914        }; then
21915   ac_cv_func_syslog=yes
21916 else
21917   $as_echo "$as_me: failed program was:" >&5
21918 sed 's/^/| /' conftest.$ac_ext >&5
21919
21920         ac_cv_func_syslog=no
21921 fi
21922
21923 rm -rf conftest.dSYM
21924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21925       conftest$ac_exeext conftest.$ac_ext
21926 fi
21927 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
21928 $as_echo "$ac_cv_func_syslog" >&6; }
21929 if test "x$ac_cv_func_syslog" = x""yes; then
21930   if test "${ac_cv_header_syslog_h+set}" = set; then
21931   { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21932 $as_echo_n "checking for syslog.h... " >&6; }
21933 if test "${ac_cv_header_syslog_h+set}" = set; then
21934   $as_echo_n "(cached) " >&6
21935 fi
21936 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21937 $as_echo "$ac_cv_header_syslog_h" >&6; }
21938 else
21939   # Is the header compilable?
21940 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
21941 $as_echo_n "checking syslog.h usability... " >&6; }
21942 cat >conftest.$ac_ext <<_ACEOF
21943 /* confdefs.h.  */
21944 _ACEOF
21945 cat confdefs.h >>conftest.$ac_ext
21946 cat >>conftest.$ac_ext <<_ACEOF
21947 /* end confdefs.h.  */
21948 $ac_includes_default
21949 #include <syslog.h>
21950 _ACEOF
21951 rm -f conftest.$ac_objext
21952 if { (ac_try="$ac_compile"
21953 case "(($ac_try" in
21954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21955   *) ac_try_echo=$ac_try;;
21956 esac
21957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21958 $as_echo "$ac_try_echo") >&5
21959   (eval "$ac_compile") 2>conftest.er1
21960   ac_status=$?
21961   grep -v '^ *+' conftest.er1 >conftest.err
21962   rm -f conftest.er1
21963   cat conftest.err >&5
21964   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965   (exit $ac_status); } && {
21966          test -z "$ac_c_werror_flag" ||
21967          test ! -s conftest.err
21968        } && test -s conftest.$ac_objext; then
21969   ac_header_compiler=yes
21970 else
21971   $as_echo "$as_me: failed program was:" >&5
21972 sed 's/^/| /' conftest.$ac_ext >&5
21973
21974         ac_header_compiler=no
21975 fi
21976
21977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21978 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21979 $as_echo "$ac_header_compiler" >&6; }
21980
21981 # Is the header present?
21982 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
21983 $as_echo_n "checking syslog.h presence... " >&6; }
21984 cat >conftest.$ac_ext <<_ACEOF
21985 /* confdefs.h.  */
21986 _ACEOF
21987 cat confdefs.h >>conftest.$ac_ext
21988 cat >>conftest.$ac_ext <<_ACEOF
21989 /* end confdefs.h.  */
21990 #include <syslog.h>
21991 _ACEOF
21992 if { (ac_try="$ac_cpp conftest.$ac_ext"
21993 case "(($ac_try" in
21994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21995   *) ac_try_echo=$ac_try;;
21996 esac
21997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21998 $as_echo "$ac_try_echo") >&5
21999   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22000   ac_status=$?
22001   grep -v '^ *+' conftest.er1 >conftest.err
22002   rm -f conftest.er1
22003   cat conftest.err >&5
22004   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005   (exit $ac_status); } >/dev/null && {
22006          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22007          test ! -s conftest.err
22008        }; then
22009   ac_header_preproc=yes
22010 else
22011   $as_echo "$as_me: failed program was:" >&5
22012 sed 's/^/| /' conftest.$ac_ext >&5
22013
22014   ac_header_preproc=no
22015 fi
22016
22017 rm -f conftest.err conftest.$ac_ext
22018 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22019 $as_echo "$ac_header_preproc" >&6; }
22020
22021 # So?  What about this header?
22022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22023   yes:no: )
22024     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
22025 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22026     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
22027 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
22028     ac_header_preproc=yes
22029     ;;
22030   no:yes:* )
22031     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
22032 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
22033     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     check for missing prerequisite headers?" >&5
22034 $as_echo "$as_me: WARNING: syslog.h:     check for missing prerequisite headers?" >&2;}
22035     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
22036 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
22037     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&5
22038 $as_echo "$as_me: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22039     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
22040 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
22041     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
22042 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
22043     ( cat <<\_ASBOX
22044 ## ---------------------------------------- ##
22045 ## Report this to pgsql-bugs@postgresql.org ##
22046 ## ---------------------------------------- ##
22047 _ASBOX
22048      ) | sed "s/^/$as_me: WARNING:     /" >&2
22049     ;;
22050 esac
22051 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22052 $as_echo_n "checking for syslog.h... " >&6; }
22053 if test "${ac_cv_header_syslog_h+set}" = set; then
22054   $as_echo_n "(cached) " >&6
22055 else
22056   ac_cv_header_syslog_h=$ac_header_preproc
22057 fi
22058 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22059 $as_echo "$ac_cv_header_syslog_h" >&6; }
22060
22061 fi
22062 if test "x$ac_cv_header_syslog_h" = x""yes; then
22063
22064 cat >>confdefs.h <<\_ACEOF
22065 #define HAVE_SYSLOG 1
22066 _ACEOF
22067
22068 fi
22069
22070
22071 fi
22072
22073
22074 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
22075 $as_echo_n "checking for opterr... " >&6; }
22076 if test "${pgac_cv_var_int_opterr+set}" = set; then
22077   $as_echo_n "(cached) " >&6
22078 else
22079   cat >conftest.$ac_ext <<_ACEOF
22080 /* confdefs.h.  */
22081 _ACEOF
22082 cat confdefs.h >>conftest.$ac_ext
22083 cat >>conftest.$ac_ext <<_ACEOF
22084 /* end confdefs.h.  */
22085 #include <unistd.h>
22086 int
22087 main ()
22088 {
22089 extern int opterr; opterr = 1;
22090   ;
22091   return 0;
22092 }
22093 _ACEOF
22094 rm -f conftest.$ac_objext conftest$ac_exeext
22095 if { (ac_try="$ac_link"
22096 case "(($ac_try" in
22097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22098   *) ac_try_echo=$ac_try;;
22099 esac
22100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22101 $as_echo "$ac_try_echo") >&5
22102   (eval "$ac_link") 2>conftest.er1
22103   ac_status=$?
22104   grep -v '^ *+' conftest.er1 >conftest.err
22105   rm -f conftest.er1
22106   cat conftest.err >&5
22107   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108   (exit $ac_status); } && {
22109          test -z "$ac_c_werror_flag" ||
22110          test ! -s conftest.err
22111        } && test -s conftest$ac_exeext && {
22112          test "$cross_compiling" = yes ||
22113          $as_test_x conftest$ac_exeext
22114        }; then
22115   pgac_cv_var_int_opterr=yes
22116 else
22117   $as_echo "$as_me: failed program was:" >&5
22118 sed 's/^/| /' conftest.$ac_ext >&5
22119
22120         pgac_cv_var_int_opterr=no
22121 fi
22122
22123 rm -rf conftest.dSYM
22124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22125       conftest$ac_exeext conftest.$ac_ext
22126 fi
22127 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
22128 $as_echo "$pgac_cv_var_int_opterr" >&6; }
22129 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
22130
22131 cat >>confdefs.h <<\_ACEOF
22132 #define HAVE_INT_OPTERR 1
22133 _ACEOF
22134
22135 fi
22136
22137 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
22138 $as_echo_n "checking for optreset... " >&6; }
22139 if test "${pgac_cv_var_int_optreset+set}" = set; then
22140   $as_echo_n "(cached) " >&6
22141 else
22142   cat >conftest.$ac_ext <<_ACEOF
22143 /* confdefs.h.  */
22144 _ACEOF
22145 cat confdefs.h >>conftest.$ac_ext
22146 cat >>conftest.$ac_ext <<_ACEOF
22147 /* end confdefs.h.  */
22148 #include <unistd.h>
22149 int
22150 main ()
22151 {
22152 extern int optreset; optreset = 1;
22153   ;
22154   return 0;
22155 }
22156 _ACEOF
22157 rm -f conftest.$ac_objext conftest$ac_exeext
22158 if { (ac_try="$ac_link"
22159 case "(($ac_try" in
22160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22161   *) ac_try_echo=$ac_try;;
22162 esac
22163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22164 $as_echo "$ac_try_echo") >&5
22165   (eval "$ac_link") 2>conftest.er1
22166   ac_status=$?
22167   grep -v '^ *+' conftest.er1 >conftest.err
22168   rm -f conftest.er1
22169   cat conftest.err >&5
22170   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171   (exit $ac_status); } && {
22172          test -z "$ac_c_werror_flag" ||
22173          test ! -s conftest.err
22174        } && test -s conftest$ac_exeext && {
22175          test "$cross_compiling" = yes ||
22176          $as_test_x conftest$ac_exeext
22177        }; then
22178   pgac_cv_var_int_optreset=yes
22179 else
22180   $as_echo "$as_me: failed program was:" >&5
22181 sed 's/^/| /' conftest.$ac_ext >&5
22182
22183         pgac_cv_var_int_optreset=no
22184 fi
22185
22186 rm -rf conftest.dSYM
22187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22188       conftest$ac_exeext conftest.$ac_ext
22189 fi
22190 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
22191 $as_echo "$pgac_cv_var_int_optreset" >&6; }
22192 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
22193
22194 cat >>confdefs.h <<\_ACEOF
22195 #define HAVE_INT_OPTRESET 1
22196 _ACEOF
22197
22198 fi
22199
22200
22201
22202 for ac_func in strtoll strtoq
22203 do
22204 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22205 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22206 $as_echo_n "checking for $ac_func... " >&6; }
22207 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22208   $as_echo_n "(cached) " >&6
22209 else
22210   cat >conftest.$ac_ext <<_ACEOF
22211 /* confdefs.h.  */
22212 _ACEOF
22213 cat confdefs.h >>conftest.$ac_ext
22214 cat >>conftest.$ac_ext <<_ACEOF
22215 /* end confdefs.h.  */
22216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22217    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22218 #define $ac_func innocuous_$ac_func
22219
22220 /* System header to define __stub macros and hopefully few prototypes,
22221     which can conflict with char $ac_func (); below.
22222     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22223     <limits.h> exists even on freestanding compilers.  */
22224
22225 #ifdef __STDC__
22226 # include <limits.h>
22227 #else
22228 # include <assert.h>
22229 #endif
22230
22231 #undef $ac_func
22232
22233 /* Override any GCC internal prototype to avoid an error.
22234    Use char because int might match the return type of a GCC
22235    builtin and then its argument prototype would still apply.  */
22236 #ifdef __cplusplus
22237 extern "C"
22238 #endif
22239 char $ac_func ();
22240 /* The GNU C library defines this for functions which it implements
22241     to always fail with ENOSYS.  Some functions are actually named
22242     something starting with __ and the normal name is an alias.  */
22243 #if defined __stub_$ac_func || defined __stub___$ac_func
22244 choke me
22245 #endif
22246
22247 int
22248 main ()
22249 {
22250 return $ac_func ();
22251   ;
22252   return 0;
22253 }
22254 _ACEOF
22255 rm -f conftest.$ac_objext conftest$ac_exeext
22256 if { (ac_try="$ac_link"
22257 case "(($ac_try" in
22258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22259   *) ac_try_echo=$ac_try;;
22260 esac
22261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22262 $as_echo "$ac_try_echo") >&5
22263   (eval "$ac_link") 2>conftest.er1
22264   ac_status=$?
22265   grep -v '^ *+' conftest.er1 >conftest.err
22266   rm -f conftest.er1
22267   cat conftest.err >&5
22268   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269   (exit $ac_status); } && {
22270          test -z "$ac_c_werror_flag" ||
22271          test ! -s conftest.err
22272        } && test -s conftest$ac_exeext && {
22273          test "$cross_compiling" = yes ||
22274          $as_test_x conftest$ac_exeext
22275        }; then
22276   eval "$as_ac_var=yes"
22277 else
22278   $as_echo "$as_me: failed program was:" >&5
22279 sed 's/^/| /' conftest.$ac_ext >&5
22280
22281         eval "$as_ac_var=no"
22282 fi
22283
22284 rm -rf conftest.dSYM
22285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22286       conftest$ac_exeext conftest.$ac_ext
22287 fi
22288 ac_res=`eval 'as_val=${'$as_ac_var'}
22289                  $as_echo "$as_val"'`
22290                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22291 $as_echo "$ac_res" >&6; }
22292 as_val=`eval 'as_val=${'$as_ac_var'}
22293                  $as_echo "$as_val"'`
22294    if test "x$as_val" = x""yes; then
22295   cat >>confdefs.h <<_ACEOF
22296 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22297 _ACEOF
22298  break
22299 fi
22300 done
22301
22302
22303
22304 for ac_func in strtoull strtouq
22305 do
22306 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22307 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22308 $as_echo_n "checking for $ac_func... " >&6; }
22309 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22310   $as_echo_n "(cached) " >&6
22311 else
22312   cat >conftest.$ac_ext <<_ACEOF
22313 /* confdefs.h.  */
22314 _ACEOF
22315 cat confdefs.h >>conftest.$ac_ext
22316 cat >>conftest.$ac_ext <<_ACEOF
22317 /* end confdefs.h.  */
22318 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22319    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22320 #define $ac_func innocuous_$ac_func
22321
22322 /* System header to define __stub macros and hopefully few prototypes,
22323     which can conflict with char $ac_func (); below.
22324     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22325     <limits.h> exists even on freestanding compilers.  */
22326
22327 #ifdef __STDC__
22328 # include <limits.h>
22329 #else
22330 # include <assert.h>
22331 #endif
22332
22333 #undef $ac_func
22334
22335 /* Override any GCC internal prototype to avoid an error.
22336    Use char because int might match the return type of a GCC
22337    builtin and then its argument prototype would still apply.  */
22338 #ifdef __cplusplus
22339 extern "C"
22340 #endif
22341 char $ac_func ();
22342 /* The GNU C library defines this for functions which it implements
22343     to always fail with ENOSYS.  Some functions are actually named
22344     something starting with __ and the normal name is an alias.  */
22345 #if defined __stub_$ac_func || defined __stub___$ac_func
22346 choke me
22347 #endif
22348
22349 int
22350 main ()
22351 {
22352 return $ac_func ();
22353   ;
22354   return 0;
22355 }
22356 _ACEOF
22357 rm -f conftest.$ac_objext conftest$ac_exeext
22358 if { (ac_try="$ac_link"
22359 case "(($ac_try" in
22360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22361   *) ac_try_echo=$ac_try;;
22362 esac
22363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22364 $as_echo "$ac_try_echo") >&5
22365   (eval "$ac_link") 2>conftest.er1
22366   ac_status=$?
22367   grep -v '^ *+' conftest.er1 >conftest.err
22368   rm -f conftest.er1
22369   cat conftest.err >&5
22370   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371   (exit $ac_status); } && {
22372          test -z "$ac_c_werror_flag" ||
22373          test ! -s conftest.err
22374        } && test -s conftest$ac_exeext && {
22375          test "$cross_compiling" = yes ||
22376          $as_test_x conftest$ac_exeext
22377        }; then
22378   eval "$as_ac_var=yes"
22379 else
22380   $as_echo "$as_me: failed program was:" >&5
22381 sed 's/^/| /' conftest.$ac_ext >&5
22382
22383         eval "$as_ac_var=no"
22384 fi
22385
22386 rm -rf conftest.dSYM
22387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22388       conftest$ac_exeext conftest.$ac_ext
22389 fi
22390 ac_res=`eval 'as_val=${'$as_ac_var'}
22391                  $as_echo "$as_val"'`
22392                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22393 $as_echo "$ac_res" >&6; }
22394 as_val=`eval 'as_val=${'$as_ac_var'}
22395                  $as_echo "$as_val"'`
22396    if test "x$as_val" = x""yes; then
22397   cat >>confdefs.h <<_ACEOF
22398 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22399 _ACEOF
22400  break
22401 fi
22402 done
22403
22404
22405 # Check for one of atexit() or on_exit()
22406
22407 for ac_func in atexit
22408 do
22409 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22410 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22411 $as_echo_n "checking for $ac_func... " >&6; }
22412 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22413   $as_echo_n "(cached) " >&6
22414 else
22415   cat >conftest.$ac_ext <<_ACEOF
22416 /* confdefs.h.  */
22417 _ACEOF
22418 cat confdefs.h >>conftest.$ac_ext
22419 cat >>conftest.$ac_ext <<_ACEOF
22420 /* end confdefs.h.  */
22421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22422    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22423 #define $ac_func innocuous_$ac_func
22424
22425 /* System header to define __stub macros and hopefully few prototypes,
22426     which can conflict with char $ac_func (); below.
22427     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22428     <limits.h> exists even on freestanding compilers.  */
22429
22430 #ifdef __STDC__
22431 # include <limits.h>
22432 #else
22433 # include <assert.h>
22434 #endif
22435
22436 #undef $ac_func
22437
22438 /* Override any GCC internal prototype to avoid an error.
22439    Use char because int might match the return type of a GCC
22440    builtin and then its argument prototype would still apply.  */
22441 #ifdef __cplusplus
22442 extern "C"
22443 #endif
22444 char $ac_func ();
22445 /* The GNU C library defines this for functions which it implements
22446     to always fail with ENOSYS.  Some functions are actually named
22447     something starting with __ and the normal name is an alias.  */
22448 #if defined __stub_$ac_func || defined __stub___$ac_func
22449 choke me
22450 #endif
22451
22452 int
22453 main ()
22454 {
22455 return $ac_func ();
22456   ;
22457   return 0;
22458 }
22459 _ACEOF
22460 rm -f conftest.$ac_objext conftest$ac_exeext
22461 if { (ac_try="$ac_link"
22462 case "(($ac_try" in
22463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22464   *) ac_try_echo=$ac_try;;
22465 esac
22466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22467 $as_echo "$ac_try_echo") >&5
22468   (eval "$ac_link") 2>conftest.er1
22469   ac_status=$?
22470   grep -v '^ *+' conftest.er1 >conftest.err
22471   rm -f conftest.er1
22472   cat conftest.err >&5
22473   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474   (exit $ac_status); } && {
22475          test -z "$ac_c_werror_flag" ||
22476          test ! -s conftest.err
22477        } && test -s conftest$ac_exeext && {
22478          test "$cross_compiling" = yes ||
22479          $as_test_x conftest$ac_exeext
22480        }; then
22481   eval "$as_ac_var=yes"
22482 else
22483   $as_echo "$as_me: failed program was:" >&5
22484 sed 's/^/| /' conftest.$ac_ext >&5
22485
22486         eval "$as_ac_var=no"
22487 fi
22488
22489 rm -rf conftest.dSYM
22490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22491       conftest$ac_exeext conftest.$ac_ext
22492 fi
22493 ac_res=`eval 'as_val=${'$as_ac_var'}
22494                  $as_echo "$as_val"'`
22495                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22496 $as_echo "$ac_res" >&6; }
22497 as_val=`eval 'as_val=${'$as_ac_var'}
22498                  $as_echo "$as_val"'`
22499    if test "x$as_val" = x""yes; then
22500   cat >>confdefs.h <<_ACEOF
22501 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22502 _ACEOF
22503
22504 else
22505
22506 for ac_func in on_exit
22507 do
22508 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22509 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22510 $as_echo_n "checking for $ac_func... " >&6; }
22511 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22512   $as_echo_n "(cached) " >&6
22513 else
22514   cat >conftest.$ac_ext <<_ACEOF
22515 /* confdefs.h.  */
22516 _ACEOF
22517 cat confdefs.h >>conftest.$ac_ext
22518 cat >>conftest.$ac_ext <<_ACEOF
22519 /* end confdefs.h.  */
22520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22521    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22522 #define $ac_func innocuous_$ac_func
22523
22524 /* System header to define __stub macros and hopefully few prototypes,
22525     which can conflict with char $ac_func (); below.
22526     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22527     <limits.h> exists even on freestanding compilers.  */
22528
22529 #ifdef __STDC__
22530 # include <limits.h>
22531 #else
22532 # include <assert.h>
22533 #endif
22534
22535 #undef $ac_func
22536
22537 /* Override any GCC internal prototype to avoid an error.
22538    Use char because int might match the return type of a GCC
22539    builtin and then its argument prototype would still apply.  */
22540 #ifdef __cplusplus
22541 extern "C"
22542 #endif
22543 char $ac_func ();
22544 /* The GNU C library defines this for functions which it implements
22545     to always fail with ENOSYS.  Some functions are actually named
22546     something starting with __ and the normal name is an alias.  */
22547 #if defined __stub_$ac_func || defined __stub___$ac_func
22548 choke me
22549 #endif
22550
22551 int
22552 main ()
22553 {
22554 return $ac_func ();
22555   ;
22556   return 0;
22557 }
22558 _ACEOF
22559 rm -f conftest.$ac_objext conftest$ac_exeext
22560 if { (ac_try="$ac_link"
22561 case "(($ac_try" in
22562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22563   *) ac_try_echo=$ac_try;;
22564 esac
22565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22566 $as_echo "$ac_try_echo") >&5
22567   (eval "$ac_link") 2>conftest.er1
22568   ac_status=$?
22569   grep -v '^ *+' conftest.er1 >conftest.err
22570   rm -f conftest.er1
22571   cat conftest.err >&5
22572   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573   (exit $ac_status); } && {
22574          test -z "$ac_c_werror_flag" ||
22575          test ! -s conftest.err
22576        } && test -s conftest$ac_exeext && {
22577          test "$cross_compiling" = yes ||
22578          $as_test_x conftest$ac_exeext
22579        }; then
22580   eval "$as_ac_var=yes"
22581 else
22582   $as_echo "$as_me: failed program was:" >&5
22583 sed 's/^/| /' conftest.$ac_ext >&5
22584
22585         eval "$as_ac_var=no"
22586 fi
22587
22588 rm -rf conftest.dSYM
22589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22590       conftest$ac_exeext conftest.$ac_ext
22591 fi
22592 ac_res=`eval 'as_val=${'$as_ac_var'}
22593                  $as_echo "$as_val"'`
22594                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22595 $as_echo "$ac_res" >&6; }
22596 as_val=`eval 'as_val=${'$as_ac_var'}
22597                  $as_echo "$as_val"'`
22598    if test "x$as_val" = x""yes; then
22599   cat >>confdefs.h <<_ACEOF
22600 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22601 _ACEOF
22602
22603 else
22604   { { $as_echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
22605 $as_echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
22606    { (exit 1); exit 1; }; }
22607 fi
22608 done
22609
22610 fi
22611 done
22612
22613
22614
22615 #
22616 # Pthreads
22617 #
22618 # For each platform, we need to know about any special compile and link
22619 # libraries, and whether the normal C function names are thread-safe.
22620 # See the comment at the top of src/port/thread.c for more information.
22621 # WIN32 doesn't need the pthread tests;  it always uses threads
22622 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
22623
22624
22625
22626 ac_ext=c
22627 ac_cpp='$CPP $CPPFLAGS'
22628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22631
22632 acx_pthread_ok=no
22633
22634 # We used to check for pthread.h first, but this fails if pthread.h
22635 # requires special compiler flags (e.g. on True64 or Sequent).
22636 # It gets checked for in the link test anyway.
22637
22638 # First of all, check if the user has set any of the PTHREAD_LIBS,
22639 # etcetera environment variables, and if threads linking works using
22640 # them:
22641 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22642         save_CFLAGS="$CFLAGS"
22643         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22644         save_LIBS="$LIBS"
22645         LIBS="$PTHREAD_LIBS $LIBS"
22646         { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22647 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
22648         cat >conftest.$ac_ext <<_ACEOF
22649 /* confdefs.h.  */
22650 _ACEOF
22651 cat confdefs.h >>conftest.$ac_ext
22652 cat >>conftest.$ac_ext <<_ACEOF
22653 /* end confdefs.h.  */
22654
22655 /* Override any GCC internal prototype to avoid an error.
22656    Use char because int might match the return type of a GCC
22657    builtin and then its argument prototype would still apply.  */
22658 #ifdef __cplusplus
22659 extern "C"
22660 #endif
22661 char pthread_join ();
22662 int
22663 main ()
22664 {
22665 return pthread_join ();
22666   ;
22667   return 0;
22668 }
22669 _ACEOF
22670 rm -f conftest.$ac_objext conftest$ac_exeext
22671 if { (ac_try="$ac_link"
22672 case "(($ac_try" in
22673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22674   *) ac_try_echo=$ac_try;;
22675 esac
22676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22677 $as_echo "$ac_try_echo") >&5
22678   (eval "$ac_link") 2>conftest.er1
22679   ac_status=$?
22680   grep -v '^ *+' conftest.er1 >conftest.err
22681   rm -f conftest.er1
22682   cat conftest.err >&5
22683   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684   (exit $ac_status); } && {
22685          test -z "$ac_c_werror_flag" ||
22686          test ! -s conftest.err
22687        } && test -s conftest$ac_exeext && {
22688          test "$cross_compiling" = yes ||
22689          $as_test_x conftest$ac_exeext
22690        }; then
22691   acx_pthread_ok=yes
22692 else
22693   $as_echo "$as_me: failed program was:" >&5
22694 sed 's/^/| /' conftest.$ac_ext >&5
22695
22696
22697 fi
22698
22699 rm -rf conftest.dSYM
22700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22701       conftest$ac_exeext conftest.$ac_ext
22702         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22703 $as_echo "$acx_pthread_ok" >&6; }
22704         if test x"$acx_pthread_ok" = xno; then
22705                 PTHREAD_LIBS=""
22706                 PTHREAD_CFLAGS=""
22707         fi
22708         LIBS="$save_LIBS"
22709         CFLAGS="$save_CFLAGS"
22710 fi
22711
22712 # We must check for the threads library under a number of different
22713 # names; the ordering is very important because some systems
22714 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22715 # libraries is broken (non-POSIX).
22716
22717 # Create a list of thread flags to try.  Items starting with a "-" are
22718 # C compiler flags, and other items are library names, except for "none"
22719 # which indicates that we try without any flags at all, and "pthread-config"
22720 # which is a program returning the flags for the Pth emulation library.
22721
22722 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
22723
22724 # The ordering *is* (sometimes) important.  Some notes on the
22725 # individual items follow:
22726
22727 # pthreads: AIX (must check this before -lpthread)
22728 # none: in case threads are in libc; should be tried before -Kthread and
22729 #       other compiler flags to prevent continual compiler warnings
22730 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22731 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22732 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22733 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22734 # -pthreads: Solaris/gcc
22735 # -mthreads: Mingw32/gcc, Lynx/gcc
22736 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22737 #      doesn't hurt to check since this sometimes defines pthreads too;
22738 #      also defines -D_REENTRANT)
22739 # pthread: Linux, etcetera
22740 # --thread-safe: KAI C++
22741 # pthread-config: use pthread-config program (for GNU Pth library)
22742
22743 case "${host_cpu}-${host_os}" in
22744         *solaris*)
22745
22746         # On Solaris (at least, for some versions), libc contains stubbed
22747         # (non-functional) versions of the pthreads routines, so link-based
22748         # tests will erroneously succeed.  (We need to link with -pthread or
22749         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
22750         # a function called by this macro, so we could check for that, but
22751         # who knows whether they'll stub that too in a future libc.)  So,
22752         # we'll just look for -pthreads and -lpthread first:
22753
22754         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22755         ;;
22756 esac
22757
22758 if test x"$acx_pthread_ok" = xno; then
22759 for flag in $acx_pthread_flags; do
22760
22761         tryPTHREAD_CFLAGS=""
22762         tryPTHREAD_LIBS=""
22763         case $flag in
22764                 none)
22765                 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22766 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
22767                 ;;
22768
22769                 -*)
22770                 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22771 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
22772                 tryPTHREAD_CFLAGS="$flag"
22773                 ;;
22774
22775                 pthread-config)
22776                 # skip this if we already have flags defined, for PostgreSQL
22777                 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
22778                 # Extract the first word of "pthread-config", so it can be a program name with args.
22779 set dummy pthread-config; ac_word=$2
22780 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22781 $as_echo_n "checking for $ac_word... " >&6; }
22782 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22783   $as_echo_n "(cached) " >&6
22784 else
22785   if test -n "$acx_pthread_config"; then
22786   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22787 else
22788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22789 for as_dir in $PATH
22790 do
22791   IFS=$as_save_IFS
22792   test -z "$as_dir" && as_dir=.
22793   for ac_exec_ext in '' $ac_executable_extensions; do
22794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22795     ac_cv_prog_acx_pthread_config="yes"
22796     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22797     break 2
22798   fi
22799 done
22800 done
22801 IFS=$as_save_IFS
22802
22803   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22804 fi
22805 fi
22806 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22807 if test -n "$acx_pthread_config"; then
22808   { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22809 $as_echo "$acx_pthread_config" >&6; }
22810 else
22811   { $as_echo "$as_me:$LINENO: result: no" >&5
22812 $as_echo "no" >&6; }
22813 fi
22814
22815
22816                 if test x"$acx_pthread_config" = xno; then continue; fi
22817                 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
22818                 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22819                 ;;
22820
22821                 *)
22822                 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22823 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
22824                 tryPTHREAD_LIBS="-l$flag"
22825                 ;;
22826         esac
22827
22828         save_LIBS="$LIBS"
22829         save_CFLAGS="$CFLAGS"
22830         LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
22831         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22832
22833         # Check for various functions.  We must include pthread.h,
22834         # since some functions may be macros.  (On the Sequent, we
22835         # need a special flag -Kthread to make this header compile.)
22836         # We check for pthread_join because it is in -lpthread on IRIX
22837         # while pthread_create is in libc.  We check for pthread_attr_init
22838         # due to DEC craziness with -lpthreads.  We check for
22839         # pthread_cleanup_push because it is one of the few pthread
22840         # functions on Solaris that doesn't have a non-functional libc stub.
22841         # We try pthread_create on general principles.
22842         cat >conftest.$ac_ext <<_ACEOF
22843 /* confdefs.h.  */
22844 _ACEOF
22845 cat confdefs.h >>conftest.$ac_ext
22846 cat >>conftest.$ac_ext <<_ACEOF
22847 /* end confdefs.h.  */
22848 #include <pthread.h>
22849 int
22850 main ()
22851 {
22852 pthread_t th; pthread_join(th, 0);
22853                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
22854                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22855   ;
22856   return 0;
22857 }
22858 _ACEOF
22859 rm -f conftest.$ac_objext conftest$ac_exeext
22860 if { (ac_try="$ac_link"
22861 case "(($ac_try" in
22862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22863   *) ac_try_echo=$ac_try;;
22864 esac
22865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22866 $as_echo "$ac_try_echo") >&5
22867   (eval "$ac_link") 2>conftest.er1
22868   ac_status=$?
22869   grep -v '^ *+' conftest.er1 >conftest.err
22870   rm -f conftest.er1
22871   cat conftest.err >&5
22872   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873   (exit $ac_status); } && {
22874          test -z "$ac_c_werror_flag" ||
22875          test ! -s conftest.err
22876        } && test -s conftest$ac_exeext && {
22877          test "$cross_compiling" = yes ||
22878          $as_test_x conftest$ac_exeext
22879        }; then
22880   acx_pthread_ok=yes
22881 else
22882   $as_echo "$as_me: failed program was:" >&5
22883 sed 's/^/| /' conftest.$ac_ext >&5
22884
22885         acx_pthread_ok=no
22886 fi
22887
22888 rm -rf conftest.dSYM
22889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22890       conftest$ac_exeext conftest.$ac_ext
22891
22892         if test "x$acx_pthread_ok" = xyes; then
22893             # Don't use options that are ignored by the compiler.
22894             # We find them by checking stderror.
22895             cat >conftest.$ac_ext <<_ACEOF
22896 int
22897 main (int argc, char **argv)
22898 {
22899   (void) argc;
22900   (void) argv;
22901   return 0;
22902 }
22903 _ACEOF
22904             rm -f conftest.$ac_objext conftest$ac_exeext
22905             # Check both linking and compiling, because they might tolerate different options.
22906             if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
22907                 # we continue with more flags because Linux needs -lpthread
22908                 # for libpq builds on PostgreSQL.  The test above only
22909                 # tests for building binaries, not shared libraries.
22910                 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
22911                 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22912             else   acx_pthread_ok=no
22913             fi
22914         fi
22915
22916         LIBS="$save_LIBS"
22917         CFLAGS="$save_CFLAGS"
22918
22919         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22920 $as_echo "$acx_pthread_ok" >&6; }
22921 done
22922 fi
22923
22924 # Various other checks:
22925 if test "x$acx_pthread_ok" = xyes; then
22926         save_LIBS="$LIBS"
22927         LIBS="$PTHREAD_LIBS $LIBS"
22928         save_CFLAGS="$CFLAGS"
22929         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22930
22931         # Detect AIX lossage: threads are created detached by default
22932         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
22933         { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22934 $as_echo_n "checking for joinable pthread attribute... " >&6; }
22935         cat >conftest.$ac_ext <<_ACEOF
22936 /* confdefs.h.  */
22937 _ACEOF
22938 cat confdefs.h >>conftest.$ac_ext
22939 cat >>conftest.$ac_ext <<_ACEOF
22940 /* end confdefs.h.  */
22941 #include <pthread.h>
22942 int
22943 main ()
22944 {
22945 int attr=PTHREAD_CREATE_JOINABLE;
22946   ;
22947   return 0;
22948 }
22949 _ACEOF
22950 rm -f conftest.$ac_objext conftest$ac_exeext
22951 if { (ac_try="$ac_link"
22952 case "(($ac_try" in
22953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22954   *) ac_try_echo=$ac_try;;
22955 esac
22956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22957 $as_echo "$ac_try_echo") >&5
22958   (eval "$ac_link") 2>conftest.er1
22959   ac_status=$?
22960   grep -v '^ *+' conftest.er1 >conftest.err
22961   rm -f conftest.er1
22962   cat conftest.err >&5
22963   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22964   (exit $ac_status); } && {
22965          test -z "$ac_c_werror_flag" ||
22966          test ! -s conftest.err
22967        } && test -s conftest$ac_exeext && {
22968          test "$cross_compiling" = yes ||
22969          $as_test_x conftest$ac_exeext
22970        }; then
22971   ok=PTHREAD_CREATE_JOINABLE
22972 else
22973   $as_echo "$as_me: failed program was:" >&5
22974 sed 's/^/| /' conftest.$ac_ext >&5
22975
22976         ok=unknown
22977 fi
22978
22979 rm -rf conftest.dSYM
22980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22981       conftest$ac_exeext conftest.$ac_ext
22982         if test x"$ok" = xunknown; then
22983                 cat >conftest.$ac_ext <<_ACEOF
22984 /* confdefs.h.  */
22985 _ACEOF
22986 cat confdefs.h >>conftest.$ac_ext
22987 cat >>conftest.$ac_ext <<_ACEOF
22988 /* end confdefs.h.  */
22989 #include <pthread.h>
22990 int
22991 main ()
22992 {
22993 int attr=PTHREAD_CREATE_UNDETACHED;
22994   ;
22995   return 0;
22996 }
22997 _ACEOF
22998 rm -f conftest.$ac_objext conftest$ac_exeext
22999 if { (ac_try="$ac_link"
23000 case "(($ac_try" in
23001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23002   *) ac_try_echo=$ac_try;;
23003 esac
23004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23005 $as_echo "$ac_try_echo") >&5
23006   (eval "$ac_link") 2>conftest.er1
23007   ac_status=$?
23008   grep -v '^ *+' conftest.er1 >conftest.err
23009   rm -f conftest.er1
23010   cat conftest.err >&5
23011   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23012   (exit $ac_status); } && {
23013          test -z "$ac_c_werror_flag" ||
23014          test ! -s conftest.err
23015        } && test -s conftest$ac_exeext && {
23016          test "$cross_compiling" = yes ||
23017          $as_test_x conftest$ac_exeext
23018        }; then
23019   ok=PTHREAD_CREATE_UNDETACHED
23020 else
23021   $as_echo "$as_me: failed program was:" >&5
23022 sed 's/^/| /' conftest.$ac_ext >&5
23023
23024         ok=unknown
23025 fi
23026
23027 rm -rf conftest.dSYM
23028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23029       conftest$ac_exeext conftest.$ac_ext
23030         fi
23031         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
23032
23033 cat >>confdefs.h <<\_ACEOF
23034 #define PTHREAD_CREATE_JOINABLE $ok
23035 _ACEOF
23036
23037         fi
23038         { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
23039 $as_echo "${ok}" >&6; }
23040         if test x"$ok" = xunknown; then
23041                 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
23042 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
23043         fi
23044
23045         { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
23046 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
23047         flag=no
23048 # We always add these in PostgreSQL
23049 #       case "${host_cpu}-${host_os}" in
23050 #               *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
23051 #               *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
23052 #       esac
23053         { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
23054 $as_echo "${flag}" >&6; }
23055         if test "x$flag" != xno; then
23056                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
23057         fi
23058
23059         LIBS="$save_LIBS"
23060         CFLAGS="$save_CFLAGS"
23061
23062 # Supporting cc_r would require a special CC in all places that
23063 # use libpq, and that is ugly, so we don't do it.  Users can still
23064 # define their compiler as cc_r to do thread builds of everything.
23065         # More AIX lossage: must compile with cc_r
23066         # Extract the first word of "cc_r", so it can be a program name with args.
23067 set dummy cc_r; ac_word=$2
23068 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23069 $as_echo_n "checking for $ac_word... " >&6; }
23070 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
23071   $as_echo_n "(cached) " >&6
23072 else
23073   if test -n "$PTHREAD_CC"; then
23074   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23075 else
23076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23077 for as_dir in $PATH
23078 do
23079   IFS=$as_save_IFS
23080   test -z "$as_dir" && as_dir=.
23081   for ac_exec_ext in '' $ac_executable_extensions; do
23082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23083     ac_cv_prog_PTHREAD_CC="cc_r"
23084     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23085     break 2
23086   fi
23087 done
23088 done
23089 IFS=$as_save_IFS
23090
23091   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
23092 fi
23093 fi
23094 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23095 if test -n "$PTHREAD_CC"; then
23096   { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23097 $as_echo "$PTHREAD_CC" >&6; }
23098 else
23099   { $as_echo "$as_me:$LINENO: result: no" >&5
23100 $as_echo "no" >&6; }
23101 fi
23102
23103
23104 else
23105         PTHREAD_CC="$CC"
23106 fi
23107
23108
23109
23110
23111
23112 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23113 if test x"$acx_pthread_ok" = xyes; then
23114
23115 cat >>confdefs.h <<\_ACEOF
23116 #define HAVE_PTHREAD 1
23117 _ACEOF
23118
23119         :
23120 else
23121         acx_pthread_ok=no
23122
23123 fi
23124 ac_ext=c
23125 ac_cpp='$CPP $CPPFLAGS'
23126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23129
23130         # set thread flags
23131
23132 # Some platforms use these, so just define them.  They can't hurt if they
23133 # are not supported.  For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
23134 # enables 5-arg getpwuid_r, among other things.
23135 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
23136
23137
23138 # At this point, we don't want to muck with the compiler name for threading.
23139 # Let's see who fails, perhaps AIX.  2004-04-23
23140 if test "$PTHREAD_CC" != "$CC"; then
23141 { { $as_echo "$as_me:$LINENO: error:
23142 PostgreSQL does not support platforms that require a special compiler
23143 for thread safety;  use --disable-thread-safety to disable thread safety." >&5
23144 $as_echo "$as_me: error:
23145 PostgreSQL does not support platforms that require a special compiler
23146 for thread safety;  use --disable-thread-safety to disable thread safety." >&2;}
23147    { (exit 1); exit 1; }; }
23148 fi
23149
23150 # Check for *_r functions
23151 _CFLAGS="$CFLAGS"
23152 _LIBS="$LIBS"
23153 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23154 LIBS="$LIBS $PTHREAD_LIBS"
23155
23156 if test "$PORTNAME" != "win32"; then
23157 if test "${ac_cv_header_pthread_h+set}" = set; then
23158   { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23159 $as_echo_n "checking for pthread.h... " >&6; }
23160 if test "${ac_cv_header_pthread_h+set}" = set; then
23161   $as_echo_n "(cached) " >&6
23162 fi
23163 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23164 $as_echo "$ac_cv_header_pthread_h" >&6; }
23165 else
23166   # Is the header compilable?
23167 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
23168 $as_echo_n "checking pthread.h usability... " >&6; }
23169 cat >conftest.$ac_ext <<_ACEOF
23170 /* confdefs.h.  */
23171 _ACEOF
23172 cat confdefs.h >>conftest.$ac_ext
23173 cat >>conftest.$ac_ext <<_ACEOF
23174 /* end confdefs.h.  */
23175 $ac_includes_default
23176 #include <pthread.h>
23177 _ACEOF
23178 rm -f conftest.$ac_objext
23179 if { (ac_try="$ac_compile"
23180 case "(($ac_try" in
23181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23182   *) ac_try_echo=$ac_try;;
23183 esac
23184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23185 $as_echo "$ac_try_echo") >&5
23186   (eval "$ac_compile") 2>conftest.er1
23187   ac_status=$?
23188   grep -v '^ *+' conftest.er1 >conftest.err
23189   rm -f conftest.er1
23190   cat conftest.err >&5
23191   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192   (exit $ac_status); } && {
23193          test -z "$ac_c_werror_flag" ||
23194          test ! -s conftest.err
23195        } && test -s conftest.$ac_objext; then
23196   ac_header_compiler=yes
23197 else
23198   $as_echo "$as_me: failed program was:" >&5
23199 sed 's/^/| /' conftest.$ac_ext >&5
23200
23201         ac_header_compiler=no
23202 fi
23203
23204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23205 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23206 $as_echo "$ac_header_compiler" >&6; }
23207
23208 # Is the header present?
23209 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
23210 $as_echo_n "checking pthread.h presence... " >&6; }
23211 cat >conftest.$ac_ext <<_ACEOF
23212 /* confdefs.h.  */
23213 _ACEOF
23214 cat confdefs.h >>conftest.$ac_ext
23215 cat >>conftest.$ac_ext <<_ACEOF
23216 /* end confdefs.h.  */
23217 #include <pthread.h>
23218 _ACEOF
23219 if { (ac_try="$ac_cpp conftest.$ac_ext"
23220 case "(($ac_try" in
23221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23222   *) ac_try_echo=$ac_try;;
23223 esac
23224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23225 $as_echo "$ac_try_echo") >&5
23226   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23227   ac_status=$?
23228   grep -v '^ *+' conftest.er1 >conftest.err
23229   rm -f conftest.er1
23230   cat conftest.err >&5
23231   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232   (exit $ac_status); } >/dev/null && {
23233          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23234          test ! -s conftest.err
23235        }; then
23236   ac_header_preproc=yes
23237 else
23238   $as_echo "$as_me: failed program was:" >&5
23239 sed 's/^/| /' conftest.$ac_ext >&5
23240
23241   ac_header_preproc=no
23242 fi
23243
23244 rm -f conftest.err conftest.$ac_ext
23245 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23246 $as_echo "$ac_header_preproc" >&6; }
23247
23248 # So?  What about this header?
23249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23250   yes:no: )
23251     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
23252 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23253     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
23254 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
23255     ac_header_preproc=yes
23256     ;;
23257   no:yes:* )
23258     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
23259 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
23260     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
23261 $as_echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
23262     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
23263 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
23264     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
23265 $as_echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23266     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
23267 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
23268     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
23269 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
23270     ( cat <<\_ASBOX
23271 ## ---------------------------------------- ##
23272 ## Report this to pgsql-bugs@postgresql.org ##
23273 ## ---------------------------------------- ##
23274 _ASBOX
23275      ) | sed "s/^/$as_me: WARNING:     /" >&2
23276     ;;
23277 esac
23278 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23279 $as_echo_n "checking for pthread.h... " >&6; }
23280 if test "${ac_cv_header_pthread_h+set}" = set; then
23281   $as_echo_n "(cached) " >&6
23282 else
23283   ac_cv_header_pthread_h=$ac_header_preproc
23284 fi
23285 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23286 $as_echo "$ac_cv_header_pthread_h" >&6; }
23287
23288 fi
23289 if test "x$ac_cv_header_pthread_h" = x""yes; then
23290   :
23291 else
23292   { { $as_echo "$as_me:$LINENO: error:
23293 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&5
23294 $as_echo "$as_me: error:
23295 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&2;}
23296    { (exit 1); exit 1; }; }
23297 fi
23298
23299
23300 fi
23301
23302
23303
23304
23305 for ac_func in strerror_r getpwuid_r gethostbyname_r
23306 do
23307 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23308 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23309 $as_echo_n "checking for $ac_func... " >&6; }
23310 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23311   $as_echo_n "(cached) " >&6
23312 else
23313   cat >conftest.$ac_ext <<_ACEOF
23314 /* confdefs.h.  */
23315 _ACEOF
23316 cat confdefs.h >>conftest.$ac_ext
23317 cat >>conftest.$ac_ext <<_ACEOF
23318 /* end confdefs.h.  */
23319 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23320    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23321 #define $ac_func innocuous_$ac_func
23322
23323 /* System header to define __stub macros and hopefully few prototypes,
23324     which can conflict with char $ac_func (); below.
23325     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23326     <limits.h> exists even on freestanding compilers.  */
23327
23328 #ifdef __STDC__
23329 # include <limits.h>
23330 #else
23331 # include <assert.h>
23332 #endif
23333
23334 #undef $ac_func
23335
23336 /* Override any GCC internal prototype to avoid an error.
23337    Use char because int might match the return type of a GCC
23338    builtin and then its argument prototype would still apply.  */
23339 #ifdef __cplusplus
23340 extern "C"
23341 #endif
23342 char $ac_func ();
23343 /* The GNU C library defines this for functions which it implements
23344     to always fail with ENOSYS.  Some functions are actually named
23345     something starting with __ and the normal name is an alias.  */
23346 #if defined __stub_$ac_func || defined __stub___$ac_func
23347 choke me
23348 #endif
23349
23350 int
23351 main ()
23352 {
23353 return $ac_func ();
23354   ;
23355   return 0;
23356 }
23357 _ACEOF
23358 rm -f conftest.$ac_objext conftest$ac_exeext
23359 if { (ac_try="$ac_link"
23360 case "(($ac_try" in
23361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23362   *) ac_try_echo=$ac_try;;
23363 esac
23364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23365 $as_echo "$ac_try_echo") >&5
23366   (eval "$ac_link") 2>conftest.er1
23367   ac_status=$?
23368   grep -v '^ *+' conftest.er1 >conftest.err
23369   rm -f conftest.er1
23370   cat conftest.err >&5
23371   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23372   (exit $ac_status); } && {
23373          test -z "$ac_c_werror_flag" ||
23374          test ! -s conftest.err
23375        } && test -s conftest$ac_exeext && {
23376          test "$cross_compiling" = yes ||
23377          $as_test_x conftest$ac_exeext
23378        }; then
23379   eval "$as_ac_var=yes"
23380 else
23381   $as_echo "$as_me: failed program was:" >&5
23382 sed 's/^/| /' conftest.$ac_ext >&5
23383
23384         eval "$as_ac_var=no"
23385 fi
23386
23387 rm -rf conftest.dSYM
23388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23389       conftest$ac_exeext conftest.$ac_ext
23390 fi
23391 ac_res=`eval 'as_val=${'$as_ac_var'}
23392                  $as_echo "$as_val"'`
23393                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23394 $as_echo "$ac_res" >&6; }
23395 as_val=`eval 'as_val=${'$as_ac_var'}
23396                  $as_echo "$as_val"'`
23397    if test "x$as_val" = x""yes; then
23398   cat >>confdefs.h <<_ACEOF
23399 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23400 _ACEOF
23401
23402 fi
23403 done
23404
23405
23406 # Do test here with the proper thread flags
23407 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
23408 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
23409 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
23410   $as_echo_n "(cached) " >&6
23411 else
23412   cat >conftest.$ac_ext <<_ACEOF
23413 /* confdefs.h.  */
23414 _ACEOF
23415 cat confdefs.h >>conftest.$ac_ext
23416 cat >>conftest.$ac_ext <<_ACEOF
23417 /* end confdefs.h.  */
23418 #include <sys/types.h>
23419 #include <pwd.h>
23420 int
23421 main ()
23422 {
23423 uid_t uid;
23424 struct passwd *space;
23425 char *buf;
23426 size_t bufsize;
23427 struct passwd **result;
23428 getpwuid_r(uid, space, buf, bufsize, result);
23429   ;
23430   return 0;
23431 }
23432 _ACEOF
23433 rm -f conftest.$ac_objext
23434 if { (ac_try="$ac_compile"
23435 case "(($ac_try" in
23436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23437   *) ac_try_echo=$ac_try;;
23438 esac
23439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23440 $as_echo "$ac_try_echo") >&5
23441   (eval "$ac_compile") 2>conftest.er1
23442   ac_status=$?
23443   grep -v '^ *+' conftest.er1 >conftest.err
23444   rm -f conftest.er1
23445   cat conftest.err >&5
23446   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447   (exit $ac_status); } && {
23448          test -z "$ac_c_werror_flag" ||
23449          test ! -s conftest.err
23450        } && test -s conftest.$ac_objext; then
23451   pgac_cv_func_getpwuid_r_5arg=yes
23452 else
23453   $as_echo "$as_me: failed program was:" >&5
23454 sed 's/^/| /' conftest.$ac_ext >&5
23455
23456         pgac_cv_func_getpwuid_r_5arg=no
23457 fi
23458
23459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23460 fi
23461 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
23462 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
23463 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
23464
23465 cat >>confdefs.h <<\_ACEOF
23466 #define GETPWUID_R_5ARG /**/
23467 _ACEOF
23468
23469 fi
23470
23471 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
23472 $as_echo_n "checking whether strerror_r returns int... " >&6; }
23473 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
23474   $as_echo_n "(cached) " >&6
23475 else
23476   cat >conftest.$ac_ext <<_ACEOF
23477 /* confdefs.h.  */
23478 _ACEOF
23479 cat confdefs.h >>conftest.$ac_ext
23480 cat >>conftest.$ac_ext <<_ACEOF
23481 /* end confdefs.h.  */
23482 #include <string.h>
23483 int
23484 main ()
23485 {
23486 #ifndef _AIX
23487 int strerror_r(int, char *, size_t);
23488 #else
23489 /* Older AIX has 'int' for the third argument so we don't test the args. */
23490 int strerror_r();
23491 #endif
23492   ;
23493   return 0;
23494 }
23495 _ACEOF
23496 rm -f conftest.$ac_objext
23497 if { (ac_try="$ac_compile"
23498 case "(($ac_try" in
23499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23500   *) ac_try_echo=$ac_try;;
23501 esac
23502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23503 $as_echo "$ac_try_echo") >&5
23504   (eval "$ac_compile") 2>conftest.er1
23505   ac_status=$?
23506   grep -v '^ *+' conftest.er1 >conftest.err
23507   rm -f conftest.er1
23508   cat conftest.err >&5
23509   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23510   (exit $ac_status); } && {
23511          test -z "$ac_c_werror_flag" ||
23512          test ! -s conftest.err
23513        } && test -s conftest.$ac_objext; then
23514   pgac_cv_func_strerror_r_int=yes
23515 else
23516   $as_echo "$as_me: failed program was:" >&5
23517 sed 's/^/| /' conftest.$ac_ext >&5
23518
23519         pgac_cv_func_strerror_r_int=no
23520 fi
23521
23522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23523 fi
23524 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
23525 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
23526 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
23527
23528 cat >>confdefs.h <<\_ACEOF
23529 #define STRERROR_R_INT /**/
23530 _ACEOF
23531
23532 fi
23533
23534
23535 CFLAGS="$_CFLAGS"
23536 LIBS="$_LIBS"
23537
23538 else
23539 # do not use values from template file
23540 PTHREAD_CFLAGS=
23541 PTHREAD_LIBS=
23542 fi
23543
23544
23545
23546
23547
23548 # We can test for libldap_r only after we know PTHREAD_LIBS
23549 if test "$with_ldap" = yes ; then
23550   _LIBS="$LIBS"
23551   if test "$PORTNAME" != "win32"; then
23552
23553 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
23554 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
23555 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
23556   $as_echo_n "(cached) " >&6
23557 else
23558   ac_check_lib_save_LIBS=$LIBS
23559 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
23560 cat >conftest.$ac_ext <<_ACEOF
23561 /* confdefs.h.  */
23562 _ACEOF
23563 cat confdefs.h >>conftest.$ac_ext
23564 cat >>conftest.$ac_ext <<_ACEOF
23565 /* end confdefs.h.  */
23566
23567 /* Override any GCC internal prototype to avoid an error.
23568    Use char because int might match the return type of a GCC
23569    builtin and then its argument prototype would still apply.  */
23570 #ifdef __cplusplus
23571 extern "C"
23572 #endif
23573 char ldap_bind ();
23574 int
23575 main ()
23576 {
23577 return ldap_bind ();
23578   ;
23579   return 0;
23580 }
23581 _ACEOF
23582 rm -f conftest.$ac_objext conftest$ac_exeext
23583 if { (ac_try="$ac_link"
23584 case "(($ac_try" in
23585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23586   *) ac_try_echo=$ac_try;;
23587 esac
23588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23589 $as_echo "$ac_try_echo") >&5
23590   (eval "$ac_link") 2>conftest.er1
23591   ac_status=$?
23592   grep -v '^ *+' conftest.er1 >conftest.err
23593   rm -f conftest.er1
23594   cat conftest.err >&5
23595   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23596   (exit $ac_status); } && {
23597          test -z "$ac_c_werror_flag" ||
23598          test ! -s conftest.err
23599        } && test -s conftest$ac_exeext && {
23600          test "$cross_compiling" = yes ||
23601          $as_test_x conftest$ac_exeext
23602        }; then
23603   ac_cv_lib_ldap_ldap_bind=yes
23604 else
23605   $as_echo "$as_me: failed program was:" >&5
23606 sed 's/^/| /' conftest.$ac_ext >&5
23607
23608         ac_cv_lib_ldap_ldap_bind=no
23609 fi
23610
23611 rm -rf conftest.dSYM
23612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23613       conftest$ac_exeext conftest.$ac_ext
23614 LIBS=$ac_check_lib_save_LIBS
23615 fi
23616 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
23617 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
23618 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
23619   cat >>confdefs.h <<_ACEOF
23620 #define HAVE_LIBLDAP 1
23621 _ACEOF
23622
23623   LIBS="-lldap $LIBS"
23624
23625 else
23626   { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
23627 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
23628    { (exit 1); exit 1; }; }
23629 fi
23630
23631     LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
23632     if test "$enable_thread_safety" = yes; then
23633       # on some platforms ldap_r fails to link without PTHREAD_LIBS
23634
23635 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
23636 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
23637 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
23638   $as_echo_n "(cached) " >&6
23639 else
23640   ac_check_lib_save_LIBS=$LIBS
23641 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
23642 cat >conftest.$ac_ext <<_ACEOF
23643 /* confdefs.h.  */
23644 _ACEOF
23645 cat confdefs.h >>conftest.$ac_ext
23646 cat >>conftest.$ac_ext <<_ACEOF
23647 /* end confdefs.h.  */
23648
23649 /* Override any GCC internal prototype to avoid an error.
23650    Use char because int might match the return type of a GCC
23651    builtin and then its argument prototype would still apply.  */
23652 #ifdef __cplusplus
23653 extern "C"
23654 #endif
23655 char ldap_simple_bind ();
23656 int
23657 main ()
23658 {
23659 return ldap_simple_bind ();
23660   ;
23661   return 0;
23662 }
23663 _ACEOF
23664 rm -f conftest.$ac_objext conftest$ac_exeext
23665 if { (ac_try="$ac_link"
23666 case "(($ac_try" in
23667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23668   *) ac_try_echo=$ac_try;;
23669 esac
23670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23671 $as_echo "$ac_try_echo") >&5
23672   (eval "$ac_link") 2>conftest.er1
23673   ac_status=$?
23674   grep -v '^ *+' conftest.er1 >conftest.err
23675   rm -f conftest.er1
23676   cat conftest.err >&5
23677   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678   (exit $ac_status); } && {
23679          test -z "$ac_c_werror_flag" ||
23680          test ! -s conftest.err
23681        } && test -s conftest$ac_exeext && {
23682          test "$cross_compiling" = yes ||
23683          $as_test_x conftest$ac_exeext
23684        }; then
23685   ac_cv_lib_ldap_r_ldap_simple_bind=yes
23686 else
23687   $as_echo "$as_me: failed program was:" >&5
23688 sed 's/^/| /' conftest.$ac_ext >&5
23689
23690         ac_cv_lib_ldap_r_ldap_simple_bind=no
23691 fi
23692
23693 rm -rf conftest.dSYM
23694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23695       conftest$ac_exeext conftest.$ac_ext
23696 LIBS=$ac_check_lib_save_LIBS
23697 fi
23698 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
23699 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
23700 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
23701   cat >>confdefs.h <<_ACEOF
23702 #define HAVE_LIBLDAP_R 1
23703 _ACEOF
23704
23705   LIBS="-lldap_r $LIBS"
23706
23707 else
23708   { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
23709 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
23710    { (exit 1); exit 1; }; }
23711 fi
23712
23713       LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
23714     else
23715       LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
23716     fi
23717   else
23718
23719 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
23720 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
23721 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
23722   $as_echo_n "(cached) " >&6
23723 else
23724   ac_check_lib_save_LIBS=$LIBS
23725 LIBS="-lwldap32  $LIBS"
23726 cat >conftest.$ac_ext <<_ACEOF
23727 /* confdefs.h.  */
23728 _ACEOF
23729 cat confdefs.h >>conftest.$ac_ext
23730 cat >>conftest.$ac_ext <<_ACEOF
23731 /* end confdefs.h.  */
23732
23733 /* Override any GCC internal prototype to avoid an error.
23734    Use char because int might match the return type of a GCC
23735    builtin and then its argument prototype would still apply.  */
23736 #ifdef __cplusplus
23737 extern "C"
23738 #endif
23739 char ldap_bind ();
23740 int
23741 main ()
23742 {
23743 return ldap_bind ();
23744   ;
23745   return 0;
23746 }
23747 _ACEOF
23748 rm -f conftest.$ac_objext conftest$ac_exeext
23749 if { (ac_try="$ac_link"
23750 case "(($ac_try" in
23751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23752   *) ac_try_echo=$ac_try;;
23753 esac
23754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23755 $as_echo "$ac_try_echo") >&5
23756   (eval "$ac_link") 2>conftest.er1
23757   ac_status=$?
23758   grep -v '^ *+' conftest.er1 >conftest.err
23759   rm -f conftest.er1
23760   cat conftest.err >&5
23761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762   (exit $ac_status); } && {
23763          test -z "$ac_c_werror_flag" ||
23764          test ! -s conftest.err
23765        } && test -s conftest$ac_exeext && {
23766          test "$cross_compiling" = yes ||
23767          $as_test_x conftest$ac_exeext
23768        }; then
23769   ac_cv_lib_wldap32_ldap_bind=yes
23770 else
23771   $as_echo "$as_me: failed program was:" >&5
23772 sed 's/^/| /' conftest.$ac_ext >&5
23773
23774         ac_cv_lib_wldap32_ldap_bind=no
23775 fi
23776
23777 rm -rf conftest.dSYM
23778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23779       conftest$ac_exeext conftest.$ac_ext
23780 LIBS=$ac_check_lib_save_LIBS
23781 fi
23782 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
23783 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
23784 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
23785   cat >>confdefs.h <<_ACEOF
23786 #define HAVE_LIBWLDAP32 1
23787 _ACEOF
23788
23789   LIBS="-lwldap32 $LIBS"
23790
23791 else
23792   { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
23793 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
23794    { (exit 1); exit 1; }; }
23795 fi
23796
23797     LDAP_LIBS_FE="-lwldap32"
23798     LDAP_LIBS_BE="-lwldap32"
23799   fi
23800   LIBS="$_LIBS"
23801 fi
23802
23803
23804
23805
23806 # This test makes sure that run tests work at all.  Sometimes a shared
23807 # library is found by the linker, but the runtime linker can't find it.
23808 # This check should come after all modifications of compiler or linker
23809 # variables, and before any other run tests.
23810 { $as_echo "$as_me:$LINENO: checking test program" >&5
23811 $as_echo_n "checking test program... " >&6; }
23812 if test "$cross_compiling" = yes; then
23813   { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
23814 $as_echo "cross-compiling" >&6; }
23815 else
23816   cat >conftest.$ac_ext <<_ACEOF
23817 /* confdefs.h.  */
23818 _ACEOF
23819 cat confdefs.h >>conftest.$ac_ext
23820 cat >>conftest.$ac_ext <<_ACEOF
23821 /* end confdefs.h.  */
23822 int main() { return 0; }
23823 _ACEOF
23824 rm -f conftest$ac_exeext
23825 if { (ac_try="$ac_link"
23826 case "(($ac_try" in
23827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23828   *) ac_try_echo=$ac_try;;
23829 esac
23830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23831 $as_echo "$ac_try_echo") >&5
23832   (eval "$ac_link") 2>&5
23833   ac_status=$?
23834   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23836   { (case "(($ac_try" in
23837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23838   *) ac_try_echo=$ac_try;;
23839 esac
23840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23841 $as_echo "$ac_try_echo") >&5
23842   (eval "$ac_try") 2>&5
23843   ac_status=$?
23844   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23845   (exit $ac_status); }; }; then
23846   { $as_echo "$as_me:$LINENO: result: ok" >&5
23847 $as_echo "ok" >&6; }
23848 else
23849   $as_echo "$as_me: program exited with status $ac_status" >&5
23850 $as_echo "$as_me: failed program was:" >&5
23851 sed 's/^/| /' conftest.$ac_ext >&5
23852
23853 ( exit $ac_status )
23854 { $as_echo "$as_me:$LINENO: result: failed" >&5
23855 $as_echo "failed" >&6; }
23856 { { $as_echo "$as_me:$LINENO: error:
23857 Could not execute a simple test program.  This may be a problem
23858 related to locating shared libraries.  Check the file 'config.log'
23859 for the exact reason." >&5
23860 $as_echo "$as_me: error:
23861 Could not execute a simple test program.  This may be a problem
23862 related to locating shared libraries.  Check the file 'config.log'
23863 for the exact reason." >&2;}
23864    { (exit 1); exit 1; }; }
23865 fi
23866 rm -rf conftest.dSYM
23867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23868 fi
23869
23870
23871
23872 # --------------------
23873 # Run tests below here
23874 # --------------------
23875
23876 # Force use of our snprintf if system's doesn't do arg control
23877 # See comment above at snprintf test for details.
23878 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
23879   { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
23880 $as_echo_n "checking whether printf supports argument control... " >&6; }
23881 if test "${pgac_cv_printf_arg_control+set}" = set; then
23882   $as_echo_n "(cached) " >&6
23883 else
23884   if test "$cross_compiling" = yes; then
23885   pgac_cv_printf_arg_control=cross
23886 else
23887   cat >conftest.$ac_ext <<_ACEOF
23888 /* confdefs.h.  */
23889 _ACEOF
23890 cat confdefs.h >>conftest.$ac_ext
23891 cat >>conftest.$ac_ext <<_ACEOF
23892 /* end confdefs.h.  */
23893 #include <stdio.h>
23894 #include <string.h>
23895
23896 int main()
23897 {
23898   char buf[100];
23899
23900   /* can it swap arguments? */
23901   snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
23902   if (strcmp(buf, "4 3") != 0)
23903     return 1;
23904   return 0;
23905 }
23906 _ACEOF
23907 rm -f conftest$ac_exeext
23908 if { (ac_try="$ac_link"
23909 case "(($ac_try" in
23910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23911   *) ac_try_echo=$ac_try;;
23912 esac
23913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23914 $as_echo "$ac_try_echo") >&5
23915   (eval "$ac_link") 2>&5
23916   ac_status=$?
23917   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23919   { (case "(($ac_try" in
23920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23921   *) ac_try_echo=$ac_try;;
23922 esac
23923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23924 $as_echo "$ac_try_echo") >&5
23925   (eval "$ac_try") 2>&5
23926   ac_status=$?
23927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928   (exit $ac_status); }; }; then
23929   pgac_cv_printf_arg_control=yes
23930 else
23931   $as_echo "$as_me: program exited with status $ac_status" >&5
23932 $as_echo "$as_me: failed program was:" >&5
23933 sed 's/^/| /' conftest.$ac_ext >&5
23934
23935 ( exit $ac_status )
23936 pgac_cv_printf_arg_control=no
23937 fi
23938 rm -rf conftest.dSYM
23939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23940 fi
23941
23942
23943
23944 fi
23945 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
23946 $as_echo "$pgac_cv_printf_arg_control" >&6; }
23947
23948   if test $pgac_cv_printf_arg_control != yes ; then
23949     pgac_need_repl_snprintf=yes
23950   fi
23951 fi
23952
23953
23954
23955
23956 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
23957 $as_echo_n "checking whether long int is 64 bits... " >&6; }
23958 if test "${pgac_cv_type_long_int_64+set}" = set; then
23959   $as_echo_n "(cached) " >&6
23960 else
23961   if test "$cross_compiling" = yes; then
23962   # If cross-compiling, check the size reported by the compiler and
23963 # trust that the arithmetic works.
23964 cat >conftest.$ac_ext <<_ACEOF
23965 /* confdefs.h.  */
23966 _ACEOF
23967 cat confdefs.h >>conftest.$ac_ext
23968 cat >>conftest.$ac_ext <<_ACEOF
23969 /* end confdefs.h.  */
23970
23971 int
23972 main ()
23973 {
23974 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
23975 test_array [0] = 0
23976
23977   ;
23978   return 0;
23979 }
23980 _ACEOF
23981 rm -f conftest.$ac_objext
23982 if { (ac_try="$ac_compile"
23983 case "(($ac_try" in
23984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23985   *) ac_try_echo=$ac_try;;
23986 esac
23987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23988 $as_echo "$ac_try_echo") >&5
23989   (eval "$ac_compile") 2>conftest.er1
23990   ac_status=$?
23991   grep -v '^ *+' conftest.er1 >conftest.err
23992   rm -f conftest.er1
23993   cat conftest.err >&5
23994   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995   (exit $ac_status); } && {
23996          test -z "$ac_c_werror_flag" ||
23997          test ! -s conftest.err
23998        } && test -s conftest.$ac_objext; then
23999   pgac_cv_type_long_int_64=yes
24000 else
24001   $as_echo "$as_me: failed program was:" >&5
24002 sed 's/^/| /' conftest.$ac_ext >&5
24003
24004         pgac_cv_type_long_int_64=no
24005 fi
24006
24007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24008 else
24009   cat >conftest.$ac_ext <<_ACEOF
24010 /* confdefs.h.  */
24011 _ACEOF
24012 cat confdefs.h >>conftest.$ac_ext
24013 cat >>conftest.$ac_ext <<_ACEOF
24014 /* end confdefs.h.  */
24015 typedef long int ac_int64;
24016
24017 /*
24018  * These are globals to discourage the compiler from folding all the
24019  * arithmetic tests down to compile-time constants.
24020  */
24021 ac_int64 a = 20000001;
24022 ac_int64 b = 40000005;
24023
24024 int does_int64_work()
24025 {
24026   ac_int64 c,d;
24027
24028   if (sizeof(ac_int64) != 8)
24029     return 0;                   /* definitely not the right size */
24030
24031   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24032   c = a * b;
24033   d = (c + b) / b;
24034   if (d != a+1)
24035     return 0;
24036   return 1;
24037 }
24038 main() {
24039   exit(! does_int64_work());
24040 }
24041 _ACEOF
24042 rm -f conftest$ac_exeext
24043 if { (ac_try="$ac_link"
24044 case "(($ac_try" in
24045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24046   *) ac_try_echo=$ac_try;;
24047 esac
24048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24049 $as_echo "$ac_try_echo") >&5
24050   (eval "$ac_link") 2>&5
24051   ac_status=$?
24052   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24053   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24054   { (case "(($ac_try" in
24055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24056   *) ac_try_echo=$ac_try;;
24057 esac
24058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24059 $as_echo "$ac_try_echo") >&5
24060   (eval "$ac_try") 2>&5
24061   ac_status=$?
24062   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24063   (exit $ac_status); }; }; then
24064   pgac_cv_type_long_int_64=yes
24065 else
24066   $as_echo "$as_me: program exited with status $ac_status" >&5
24067 $as_echo "$as_me: failed program was:" >&5
24068 sed 's/^/| /' conftest.$ac_ext >&5
24069
24070 ( exit $ac_status )
24071 pgac_cv_type_long_int_64=no
24072 fi
24073 rm -rf conftest.dSYM
24074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24075 fi
24076
24077
24078 fi
24079 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
24080 $as_echo "$pgac_cv_type_long_int_64" >&6; }
24081
24082 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
24083 if test x"$pgac_cv_type_long_int_64" = xyes ; then
24084
24085 cat >>confdefs.h <<\_ACEOF
24086 #define HAVE_LONG_INT_64 1
24087 _ACEOF
24088
24089 fi
24090
24091
24092 if test x"$HAVE_LONG_INT_64" = x"no" ; then
24093   { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
24094 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
24095 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
24096   $as_echo_n "(cached) " >&6
24097 else
24098   if test "$cross_compiling" = yes; then
24099   # If cross-compiling, check the size reported by the compiler and
24100 # trust that the arithmetic works.
24101 cat >conftest.$ac_ext <<_ACEOF
24102 /* confdefs.h.  */
24103 _ACEOF
24104 cat confdefs.h >>conftest.$ac_ext
24105 cat >>conftest.$ac_ext <<_ACEOF
24106 /* end confdefs.h.  */
24107
24108 int
24109 main ()
24110 {
24111 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
24112 test_array [0] = 0
24113
24114   ;
24115   return 0;
24116 }
24117 _ACEOF
24118 rm -f conftest.$ac_objext
24119 if { (ac_try="$ac_compile"
24120 case "(($ac_try" in
24121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24122   *) ac_try_echo=$ac_try;;
24123 esac
24124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24125 $as_echo "$ac_try_echo") >&5
24126   (eval "$ac_compile") 2>conftest.er1
24127   ac_status=$?
24128   grep -v '^ *+' conftest.er1 >conftest.err
24129   rm -f conftest.er1
24130   cat conftest.err >&5
24131   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24132   (exit $ac_status); } && {
24133          test -z "$ac_c_werror_flag" ||
24134          test ! -s conftest.err
24135        } && test -s conftest.$ac_objext; then
24136   pgac_cv_type_long_long_int_64=yes
24137 else
24138   $as_echo "$as_me: failed program was:" >&5
24139 sed 's/^/| /' conftest.$ac_ext >&5
24140
24141         pgac_cv_type_long_long_int_64=no
24142 fi
24143
24144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24145 else
24146   cat >conftest.$ac_ext <<_ACEOF
24147 /* confdefs.h.  */
24148 _ACEOF
24149 cat confdefs.h >>conftest.$ac_ext
24150 cat >>conftest.$ac_ext <<_ACEOF
24151 /* end confdefs.h.  */
24152 typedef long long int ac_int64;
24153
24154 /*
24155  * These are globals to discourage the compiler from folding all the
24156  * arithmetic tests down to compile-time constants.
24157  */
24158 ac_int64 a = 20000001;
24159 ac_int64 b = 40000005;
24160
24161 int does_int64_work()
24162 {
24163   ac_int64 c,d;
24164
24165   if (sizeof(ac_int64) != 8)
24166     return 0;                   /* definitely not the right size */
24167
24168   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24169   c = a * b;
24170   d = (c + b) / b;
24171   if (d != a+1)
24172     return 0;
24173   return 1;
24174 }
24175 main() {
24176   exit(! does_int64_work());
24177 }
24178 _ACEOF
24179 rm -f conftest$ac_exeext
24180 if { (ac_try="$ac_link"
24181 case "(($ac_try" in
24182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24183   *) ac_try_echo=$ac_try;;
24184 esac
24185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24186 $as_echo "$ac_try_echo") >&5
24187   (eval "$ac_link") 2>&5
24188   ac_status=$?
24189   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24190   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24191   { (case "(($ac_try" in
24192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24193   *) ac_try_echo=$ac_try;;
24194 esac
24195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24196 $as_echo "$ac_try_echo") >&5
24197   (eval "$ac_try") 2>&5
24198   ac_status=$?
24199   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200   (exit $ac_status); }; }; then
24201   pgac_cv_type_long_long_int_64=yes
24202 else
24203   $as_echo "$as_me: program exited with status $ac_status" >&5
24204 $as_echo "$as_me: failed program was:" >&5
24205 sed 's/^/| /' conftest.$ac_ext >&5
24206
24207 ( exit $ac_status )
24208 pgac_cv_type_long_long_int_64=no
24209 fi
24210 rm -rf conftest.dSYM
24211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24212 fi
24213
24214
24215 fi
24216 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
24217 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
24218
24219 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
24220 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
24221
24222 cat >>confdefs.h <<\_ACEOF
24223 #define HAVE_LONG_LONG_INT_64 1
24224 _ACEOF
24225
24226 fi
24227
24228   if test x"$HAVE_LONG_LONG_INT_64" = x"no" ; then
24229     { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
24230 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
24231    { (exit 1); exit 1; }; }
24232   fi
24233 fi
24234
24235
24236
24237 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
24238   cat >conftest.$ac_ext <<_ACEOF
24239 /* confdefs.h.  */
24240 _ACEOF
24241 cat confdefs.h >>conftest.$ac_ext
24242 cat >>conftest.$ac_ext <<_ACEOF
24243 /* end confdefs.h.  */
24244
24245 #define INT64CONST(x)  x##LL
24246 long long int foo = INT64CONST(0x1234567890123456);
24247
24248 int
24249 main ()
24250 {
24251
24252   ;
24253   return 0;
24254 }
24255 _ACEOF
24256 rm -f conftest.$ac_objext
24257 if { (ac_try="$ac_compile"
24258 case "(($ac_try" in
24259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24260   *) ac_try_echo=$ac_try;;
24261 esac
24262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24263 $as_echo "$ac_try_echo") >&5
24264   (eval "$ac_compile") 2>conftest.er1
24265   ac_status=$?
24266   grep -v '^ *+' conftest.er1 >conftest.err
24267   rm -f conftest.er1
24268   cat conftest.err >&5
24269   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24270   (exit $ac_status); } && {
24271          test -z "$ac_c_werror_flag" ||
24272          test ! -s conftest.err
24273        } && test -s conftest.$ac_objext; then
24274
24275 cat >>confdefs.h <<\_ACEOF
24276 #define HAVE_LL_CONSTANTS 1
24277 _ACEOF
24278
24279 else
24280   $as_echo "$as_me: failed program was:" >&5
24281 sed 's/^/| /' conftest.$ac_ext >&5
24282
24283
24284 fi
24285
24286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24287 fi
24288
24289
24290 # If we found "long int" is 64 bits, assume snprintf handles it.  If
24291 # we found we need to use "long long int", better check.  We cope with
24292 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
24293 # work, fall back to our own snprintf emulation (which we know uses %lld).
24294
24295 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
24296   if test $pgac_need_repl_snprintf = no; then
24297     { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
24298 $as_echo_n "checking snprintf format for long long int... " >&6; }
24299 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
24300   $as_echo_n "(cached) " >&6
24301 else
24302   for pgac_format in '%lld' '%qd' '%I64d'; do
24303 if test "$cross_compiling" = yes; then
24304   pgac_cv_snprintf_long_long_int_format=cross; break
24305 else
24306   cat >conftest.$ac_ext <<_ACEOF
24307 /* confdefs.h.  */
24308 _ACEOF
24309 cat confdefs.h >>conftest.$ac_ext
24310 cat >>conftest.$ac_ext <<_ACEOF
24311 /* end confdefs.h.  */
24312 #include <stdio.h>
24313 typedef long long int ac_int64;
24314 #define INT64_FORMAT "$pgac_format"
24315
24316 ac_int64 a = 20000001;
24317 ac_int64 b = 40000005;
24318
24319 int does_int64_snprintf_work()
24320 {
24321   ac_int64 c;
24322   char buf[100];
24323
24324   if (sizeof(ac_int64) != 8)
24325     return 0;                   /* doesn't look like the right size */
24326
24327   c = a * b;
24328   snprintf(buf, 100, INT64_FORMAT, c);
24329   if (strcmp(buf, "800000140000005") != 0)
24330     return 0;                   /* either multiply or snprintf is busted */
24331   return 1;
24332 }
24333 main() {
24334   exit(! does_int64_snprintf_work());
24335 }
24336 _ACEOF
24337 rm -f conftest$ac_exeext
24338 if { (ac_try="$ac_link"
24339 case "(($ac_try" in
24340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24341   *) ac_try_echo=$ac_try;;
24342 esac
24343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24344 $as_echo "$ac_try_echo") >&5
24345   (eval "$ac_link") 2>&5
24346   ac_status=$?
24347   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24348   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24349   { (case "(($ac_try" in
24350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24351   *) ac_try_echo=$ac_try;;
24352 esac
24353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24354 $as_echo "$ac_try_echo") >&5
24355   (eval "$ac_try") 2>&5
24356   ac_status=$?
24357   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24358   (exit $ac_status); }; }; then
24359   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
24360 else
24361   $as_echo "$as_me: program exited with status $ac_status" >&5
24362 $as_echo "$as_me: failed program was:" >&5
24363 sed 's/^/| /' conftest.$ac_ext >&5
24364
24365 fi
24366 rm -rf conftest.dSYM
24367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24368 fi
24369
24370
24371 done
24372 fi
24373
24374 LONG_LONG_INT_FORMAT=''
24375
24376 case $pgac_cv_snprintf_long_long_int_format in
24377   cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
24378 $as_echo "cannot test (not on host machine)" >&6; };;
24379   ?*)    { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
24380 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
24381          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
24382   *)     { $as_echo "$as_me:$LINENO: result: none" >&5
24383 $as_echo "none" >&6; };;
24384 esac
24385     if test "$LONG_LONG_INT_FORMAT" = ""; then
24386       # Force usage of our own snprintf, since system snprintf is broken
24387       pgac_need_repl_snprintf=yes
24388       LONG_LONG_INT_FORMAT='%lld'
24389     fi
24390   else
24391     # Here if we previously decided we needed to use our own snprintf
24392     LONG_LONG_INT_FORMAT='%lld'
24393   fi
24394   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
24395   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
24396   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
24397 else
24398   # Here if we are not using 'long long int' at all
24399   INT64_FORMAT='"%ld"'
24400   UINT64_FORMAT='"%lu"'
24401 fi
24402
24403
24404 cat >>confdefs.h <<_ACEOF
24405 #define INT64_FORMAT $INT64_FORMAT
24406 _ACEOF
24407
24408
24409
24410 cat >>confdefs.h <<_ACEOF
24411 #define UINT64_FORMAT $UINT64_FORMAT
24412 _ACEOF
24413
24414
24415 # Now we have checked all the reasons to replace snprintf
24416 if test $pgac_need_repl_snprintf = yes; then
24417
24418 cat >>confdefs.h <<\_ACEOF
24419 #define USE_REPL_SNPRINTF 1
24420 _ACEOF
24421
24422   case " $LIBOBJS " in
24423   *" snprintf.$ac_objext "* ) ;;
24424   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
24425  ;;
24426 esac
24427
24428 fi
24429
24430 # Check size of void *, size_t (enables tweaks for > 32bit address space)
24431 # The cast to long int works around a bug in the HP C Compiler
24432 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24433 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24434 # This bug is HP SR number 8606223364.
24435 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
24436 $as_echo_n "checking size of void *... " >&6; }
24437 if test "${ac_cv_sizeof_void_p+set}" = set; then
24438   $as_echo_n "(cached) " >&6
24439 else
24440   if test "$cross_compiling" = yes; then
24441   # Depending upon the size, compute the lo and hi bounds.
24442 cat >conftest.$ac_ext <<_ACEOF
24443 /* confdefs.h.  */
24444 _ACEOF
24445 cat confdefs.h >>conftest.$ac_ext
24446 cat >>conftest.$ac_ext <<_ACEOF
24447 /* end confdefs.h.  */
24448 $ac_includes_default
24449 int
24450 main ()
24451 {
24452 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
24453 test_array [0] = 0
24454
24455   ;
24456   return 0;
24457 }
24458 _ACEOF
24459 rm -f conftest.$ac_objext
24460 if { (ac_try="$ac_compile"
24461 case "(($ac_try" in
24462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24463   *) ac_try_echo=$ac_try;;
24464 esac
24465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24466 $as_echo "$ac_try_echo") >&5
24467   (eval "$ac_compile") 2>conftest.er1
24468   ac_status=$?
24469   grep -v '^ *+' conftest.er1 >conftest.err
24470   rm -f conftest.er1
24471   cat conftest.err >&5
24472   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24473   (exit $ac_status); } && {
24474          test -z "$ac_c_werror_flag" ||
24475          test ! -s conftest.err
24476        } && test -s conftest.$ac_objext; then
24477   ac_lo=0 ac_mid=0
24478   while :; do
24479     cat >conftest.$ac_ext <<_ACEOF
24480 /* confdefs.h.  */
24481 _ACEOF
24482 cat confdefs.h >>conftest.$ac_ext
24483 cat >>conftest.$ac_ext <<_ACEOF
24484 /* end confdefs.h.  */
24485 $ac_includes_default
24486 int
24487 main ()
24488 {
24489 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24490 test_array [0] = 0
24491
24492   ;
24493   return 0;
24494 }
24495 _ACEOF
24496 rm -f conftest.$ac_objext
24497 if { (ac_try="$ac_compile"
24498 case "(($ac_try" in
24499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24500   *) ac_try_echo=$ac_try;;
24501 esac
24502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24503 $as_echo "$ac_try_echo") >&5
24504   (eval "$ac_compile") 2>conftest.er1
24505   ac_status=$?
24506   grep -v '^ *+' conftest.er1 >conftest.err
24507   rm -f conftest.er1
24508   cat conftest.err >&5
24509   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24510   (exit $ac_status); } && {
24511          test -z "$ac_c_werror_flag" ||
24512          test ! -s conftest.err
24513        } && test -s conftest.$ac_objext; then
24514   ac_hi=$ac_mid; break
24515 else
24516   $as_echo "$as_me: failed program was:" >&5
24517 sed 's/^/| /' conftest.$ac_ext >&5
24518
24519         ac_lo=`expr $ac_mid + 1`
24520                         if test $ac_lo -le $ac_mid; then
24521                           ac_lo= ac_hi=
24522                           break
24523                         fi
24524                         ac_mid=`expr 2 '*' $ac_mid + 1`
24525 fi
24526
24527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24528   done
24529 else
24530   $as_echo "$as_me: failed program was:" >&5
24531 sed 's/^/| /' conftest.$ac_ext >&5
24532
24533         cat >conftest.$ac_ext <<_ACEOF
24534 /* confdefs.h.  */
24535 _ACEOF
24536 cat confdefs.h >>conftest.$ac_ext
24537 cat >>conftest.$ac_ext <<_ACEOF
24538 /* end confdefs.h.  */
24539 $ac_includes_default
24540 int
24541 main ()
24542 {
24543 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
24544 test_array [0] = 0
24545
24546   ;
24547   return 0;
24548 }
24549 _ACEOF
24550 rm -f conftest.$ac_objext
24551 if { (ac_try="$ac_compile"
24552 case "(($ac_try" in
24553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24554   *) ac_try_echo=$ac_try;;
24555 esac
24556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24557 $as_echo "$ac_try_echo") >&5
24558   (eval "$ac_compile") 2>conftest.er1
24559   ac_status=$?
24560   grep -v '^ *+' conftest.er1 >conftest.err
24561   rm -f conftest.er1
24562   cat conftest.err >&5
24563   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24564   (exit $ac_status); } && {
24565          test -z "$ac_c_werror_flag" ||
24566          test ! -s conftest.err
24567        } && test -s conftest.$ac_objext; then
24568   ac_hi=-1 ac_mid=-1
24569   while :; do
24570     cat >conftest.$ac_ext <<_ACEOF
24571 /* confdefs.h.  */
24572 _ACEOF
24573 cat confdefs.h >>conftest.$ac_ext
24574 cat >>conftest.$ac_ext <<_ACEOF
24575 /* end confdefs.h.  */
24576 $ac_includes_default
24577 int
24578 main ()
24579 {
24580 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
24581 test_array [0] = 0
24582
24583   ;
24584   return 0;
24585 }
24586 _ACEOF
24587 rm -f conftest.$ac_objext
24588 if { (ac_try="$ac_compile"
24589 case "(($ac_try" in
24590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24591   *) ac_try_echo=$ac_try;;
24592 esac
24593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24594 $as_echo "$ac_try_echo") >&5
24595   (eval "$ac_compile") 2>conftest.er1
24596   ac_status=$?
24597   grep -v '^ *+' conftest.er1 >conftest.err
24598   rm -f conftest.er1
24599   cat conftest.err >&5
24600   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24601   (exit $ac_status); } && {
24602          test -z "$ac_c_werror_flag" ||
24603          test ! -s conftest.err
24604        } && test -s conftest.$ac_objext; then
24605   ac_lo=$ac_mid; break
24606 else
24607   $as_echo "$as_me: failed program was:" >&5
24608 sed 's/^/| /' conftest.$ac_ext >&5
24609
24610         ac_hi=`expr '(' $ac_mid ')' - 1`
24611                         if test $ac_mid -le $ac_hi; then
24612                           ac_lo= ac_hi=
24613                           break
24614                         fi
24615                         ac_mid=`expr 2 '*' $ac_mid`
24616 fi
24617
24618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24619   done
24620 else
24621   $as_echo "$as_me: failed program was:" >&5
24622 sed 's/^/| /' conftest.$ac_ext >&5
24623
24624         ac_lo= ac_hi=
24625 fi
24626
24627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24628 fi
24629
24630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24631 # Binary search between lo and hi bounds.
24632 while test "x$ac_lo" != "x$ac_hi"; do
24633   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24634   cat >conftest.$ac_ext <<_ACEOF
24635 /* confdefs.h.  */
24636 _ACEOF
24637 cat confdefs.h >>conftest.$ac_ext
24638 cat >>conftest.$ac_ext <<_ACEOF
24639 /* end confdefs.h.  */
24640 $ac_includes_default
24641 int
24642 main ()
24643 {
24644 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24645 test_array [0] = 0
24646
24647   ;
24648   return 0;
24649 }
24650 _ACEOF
24651 rm -f conftest.$ac_objext
24652 if { (ac_try="$ac_compile"
24653 case "(($ac_try" in
24654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24655   *) ac_try_echo=$ac_try;;
24656 esac
24657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24658 $as_echo "$ac_try_echo") >&5
24659   (eval "$ac_compile") 2>conftest.er1
24660   ac_status=$?
24661   grep -v '^ *+' conftest.er1 >conftest.err
24662   rm -f conftest.er1
24663   cat conftest.err >&5
24664   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24665   (exit $ac_status); } && {
24666          test -z "$ac_c_werror_flag" ||
24667          test ! -s conftest.err
24668        } && test -s conftest.$ac_objext; then
24669   ac_hi=$ac_mid
24670 else
24671   $as_echo "$as_me: failed program was:" >&5
24672 sed 's/^/| /' conftest.$ac_ext >&5
24673
24674         ac_lo=`expr '(' $ac_mid ')' + 1`
24675 fi
24676
24677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24678 done
24679 case $ac_lo in
24680 ?*) ac_cv_sizeof_void_p=$ac_lo;;
24681 '') if test "$ac_cv_type_void_p" = yes; then
24682      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24683 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24684 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24685 See \`config.log' for more details." >&5
24686 $as_echo "$as_me: error: cannot compute sizeof (void *)
24687 See \`config.log' for more details." >&2;}
24688    { (exit 77); exit 77; }; }; }
24689    else
24690      ac_cv_sizeof_void_p=0
24691    fi ;;
24692 esac
24693 else
24694   cat >conftest.$ac_ext <<_ACEOF
24695 /* confdefs.h.  */
24696 _ACEOF
24697 cat confdefs.h >>conftest.$ac_ext
24698 cat >>conftest.$ac_ext <<_ACEOF
24699 /* end confdefs.h.  */
24700 $ac_includes_default
24701 static long int longval () { return (long int) (sizeof (void *)); }
24702 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
24703 #include <stdio.h>
24704 #include <stdlib.h>
24705 int
24706 main ()
24707 {
24708
24709   FILE *f = fopen ("conftest.val", "w");
24710   if (! f)
24711     return 1;
24712   if (((long int) (sizeof (void *))) < 0)
24713     {
24714       long int i = longval ();
24715       if (i != ((long int) (sizeof (void *))))
24716         return 1;
24717       fprintf (f, "%ld", i);
24718     }
24719   else
24720     {
24721       unsigned long int i = ulongval ();
24722       if (i != ((long int) (sizeof (void *))))
24723         return 1;
24724       fprintf (f, "%lu", i);
24725     }
24726   /* Do not output a trailing newline, as this causes \r\n confusion
24727      on some platforms.  */
24728   return ferror (f) || fclose (f) != 0;
24729
24730   ;
24731   return 0;
24732 }
24733 _ACEOF
24734 rm -f conftest$ac_exeext
24735 if { (ac_try="$ac_link"
24736 case "(($ac_try" in
24737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24738   *) ac_try_echo=$ac_try;;
24739 esac
24740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24741 $as_echo "$ac_try_echo") >&5
24742   (eval "$ac_link") 2>&5
24743   ac_status=$?
24744   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24745   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24746   { (case "(($ac_try" in
24747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24748   *) ac_try_echo=$ac_try;;
24749 esac
24750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24751 $as_echo "$ac_try_echo") >&5
24752   (eval "$ac_try") 2>&5
24753   ac_status=$?
24754   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24755   (exit $ac_status); }; }; then
24756   ac_cv_sizeof_void_p=`cat conftest.val`
24757 else
24758   $as_echo "$as_me: program exited with status $ac_status" >&5
24759 $as_echo "$as_me: failed program was:" >&5
24760 sed 's/^/| /' conftest.$ac_ext >&5
24761
24762 ( exit $ac_status )
24763 if test "$ac_cv_type_void_p" = yes; then
24764      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24766 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24767 See \`config.log' for more details." >&5
24768 $as_echo "$as_me: error: cannot compute sizeof (void *)
24769 See \`config.log' for more details." >&2;}
24770    { (exit 77); exit 77; }; }; }
24771    else
24772      ac_cv_sizeof_void_p=0
24773    fi
24774 fi
24775 rm -rf conftest.dSYM
24776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24777 fi
24778 rm -f conftest.val
24779 fi
24780 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24781 $as_echo "$ac_cv_sizeof_void_p" >&6; }
24782
24783
24784
24785 cat >>confdefs.h <<_ACEOF
24786 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24787 _ACEOF
24788
24789
24790 # The cast to long int works around a bug in the HP C Compiler
24791 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24792 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24793 # This bug is HP SR number 8606223364.
24794 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
24795 $as_echo_n "checking size of size_t... " >&6; }
24796 if test "${ac_cv_sizeof_size_t+set}" = set; then
24797   $as_echo_n "(cached) " >&6
24798 else
24799   if test "$cross_compiling" = yes; then
24800   # Depending upon the size, compute the lo and hi bounds.
24801 cat >conftest.$ac_ext <<_ACEOF
24802 /* confdefs.h.  */
24803 _ACEOF
24804 cat confdefs.h >>conftest.$ac_ext
24805 cat >>conftest.$ac_ext <<_ACEOF
24806 /* end confdefs.h.  */
24807 $ac_includes_default
24808 int
24809 main ()
24810 {
24811 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
24812 test_array [0] = 0
24813
24814   ;
24815   return 0;
24816 }
24817 _ACEOF
24818 rm -f conftest.$ac_objext
24819 if { (ac_try="$ac_compile"
24820 case "(($ac_try" in
24821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24822   *) ac_try_echo=$ac_try;;
24823 esac
24824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24825 $as_echo "$ac_try_echo") >&5
24826   (eval "$ac_compile") 2>conftest.er1
24827   ac_status=$?
24828   grep -v '^ *+' conftest.er1 >conftest.err
24829   rm -f conftest.er1
24830   cat conftest.err >&5
24831   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24832   (exit $ac_status); } && {
24833          test -z "$ac_c_werror_flag" ||
24834          test ! -s conftest.err
24835        } && test -s conftest.$ac_objext; then
24836   ac_lo=0 ac_mid=0
24837   while :; do
24838     cat >conftest.$ac_ext <<_ACEOF
24839 /* confdefs.h.  */
24840 _ACEOF
24841 cat confdefs.h >>conftest.$ac_ext
24842 cat >>conftest.$ac_ext <<_ACEOF
24843 /* end confdefs.h.  */
24844 $ac_includes_default
24845 int
24846 main ()
24847 {
24848 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24849 test_array [0] = 0
24850
24851   ;
24852   return 0;
24853 }
24854 _ACEOF
24855 rm -f conftest.$ac_objext
24856 if { (ac_try="$ac_compile"
24857 case "(($ac_try" in
24858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24859   *) ac_try_echo=$ac_try;;
24860 esac
24861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24862 $as_echo "$ac_try_echo") >&5
24863   (eval "$ac_compile") 2>conftest.er1
24864   ac_status=$?
24865   grep -v '^ *+' conftest.er1 >conftest.err
24866   rm -f conftest.er1
24867   cat conftest.err >&5
24868   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24869   (exit $ac_status); } && {
24870          test -z "$ac_c_werror_flag" ||
24871          test ! -s conftest.err
24872        } && test -s conftest.$ac_objext; then
24873   ac_hi=$ac_mid; break
24874 else
24875   $as_echo "$as_me: failed program was:" >&5
24876 sed 's/^/| /' conftest.$ac_ext >&5
24877
24878         ac_lo=`expr $ac_mid + 1`
24879                         if test $ac_lo -le $ac_mid; then
24880                           ac_lo= ac_hi=
24881                           break
24882                         fi
24883                         ac_mid=`expr 2 '*' $ac_mid + 1`
24884 fi
24885
24886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24887   done
24888 else
24889   $as_echo "$as_me: failed program was:" >&5
24890 sed 's/^/| /' conftest.$ac_ext >&5
24891
24892         cat >conftest.$ac_ext <<_ACEOF
24893 /* confdefs.h.  */
24894 _ACEOF
24895 cat confdefs.h >>conftest.$ac_ext
24896 cat >>conftest.$ac_ext <<_ACEOF
24897 /* end confdefs.h.  */
24898 $ac_includes_default
24899 int
24900 main ()
24901 {
24902 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
24903 test_array [0] = 0
24904
24905   ;
24906   return 0;
24907 }
24908 _ACEOF
24909 rm -f conftest.$ac_objext
24910 if { (ac_try="$ac_compile"
24911 case "(($ac_try" in
24912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24913   *) ac_try_echo=$ac_try;;
24914 esac
24915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24916 $as_echo "$ac_try_echo") >&5
24917   (eval "$ac_compile") 2>conftest.er1
24918   ac_status=$?
24919   grep -v '^ *+' conftest.er1 >conftest.err
24920   rm -f conftest.er1
24921   cat conftest.err >&5
24922   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24923   (exit $ac_status); } && {
24924          test -z "$ac_c_werror_flag" ||
24925          test ! -s conftest.err
24926        } && test -s conftest.$ac_objext; then
24927   ac_hi=-1 ac_mid=-1
24928   while :; do
24929     cat >conftest.$ac_ext <<_ACEOF
24930 /* confdefs.h.  */
24931 _ACEOF
24932 cat confdefs.h >>conftest.$ac_ext
24933 cat >>conftest.$ac_ext <<_ACEOF
24934 /* end confdefs.h.  */
24935 $ac_includes_default
24936 int
24937 main ()
24938 {
24939 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
24940 test_array [0] = 0
24941
24942   ;
24943   return 0;
24944 }
24945 _ACEOF
24946 rm -f conftest.$ac_objext
24947 if { (ac_try="$ac_compile"
24948 case "(($ac_try" in
24949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24950   *) ac_try_echo=$ac_try;;
24951 esac
24952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24953 $as_echo "$ac_try_echo") >&5
24954   (eval "$ac_compile") 2>conftest.er1
24955   ac_status=$?
24956   grep -v '^ *+' conftest.er1 >conftest.err
24957   rm -f conftest.er1
24958   cat conftest.err >&5
24959   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960   (exit $ac_status); } && {
24961          test -z "$ac_c_werror_flag" ||
24962          test ! -s conftest.err
24963        } && test -s conftest.$ac_objext; then
24964   ac_lo=$ac_mid; break
24965 else
24966   $as_echo "$as_me: failed program was:" >&5
24967 sed 's/^/| /' conftest.$ac_ext >&5
24968
24969         ac_hi=`expr '(' $ac_mid ')' - 1`
24970                         if test $ac_mid -le $ac_hi; then
24971                           ac_lo= ac_hi=
24972                           break
24973                         fi
24974                         ac_mid=`expr 2 '*' $ac_mid`
24975 fi
24976
24977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24978   done
24979 else
24980   $as_echo "$as_me: failed program was:" >&5
24981 sed 's/^/| /' conftest.$ac_ext >&5
24982
24983         ac_lo= ac_hi=
24984 fi
24985
24986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24987 fi
24988
24989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24990 # Binary search between lo and hi bounds.
24991 while test "x$ac_lo" != "x$ac_hi"; do
24992   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24993   cat >conftest.$ac_ext <<_ACEOF
24994 /* confdefs.h.  */
24995 _ACEOF
24996 cat confdefs.h >>conftest.$ac_ext
24997 cat >>conftest.$ac_ext <<_ACEOF
24998 /* end confdefs.h.  */
24999 $ac_includes_default
25000 int
25001 main ()
25002 {
25003 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
25004 test_array [0] = 0
25005
25006   ;
25007   return 0;
25008 }
25009 _ACEOF
25010 rm -f conftest.$ac_objext
25011 if { (ac_try="$ac_compile"
25012 case "(($ac_try" in
25013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25014   *) ac_try_echo=$ac_try;;
25015 esac
25016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25017 $as_echo "$ac_try_echo") >&5
25018   (eval "$ac_compile") 2>conftest.er1
25019   ac_status=$?
25020   grep -v '^ *+' conftest.er1 >conftest.err
25021   rm -f conftest.er1
25022   cat conftest.err >&5
25023   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024   (exit $ac_status); } && {
25025          test -z "$ac_c_werror_flag" ||
25026          test ! -s conftest.err
25027        } && test -s conftest.$ac_objext; then
25028   ac_hi=$ac_mid
25029 else
25030   $as_echo "$as_me: failed program was:" >&5
25031 sed 's/^/| /' conftest.$ac_ext >&5
25032
25033         ac_lo=`expr '(' $ac_mid ')' + 1`
25034 fi
25035
25036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25037 done
25038 case $ac_lo in
25039 ?*) ac_cv_sizeof_size_t=$ac_lo;;
25040 '') if test "$ac_cv_type_size_t" = yes; then
25041      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25043 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25044 See \`config.log' for more details." >&5
25045 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25046 See \`config.log' for more details." >&2;}
25047    { (exit 77); exit 77; }; }; }
25048    else
25049      ac_cv_sizeof_size_t=0
25050    fi ;;
25051 esac
25052 else
25053   cat >conftest.$ac_ext <<_ACEOF
25054 /* confdefs.h.  */
25055 _ACEOF
25056 cat confdefs.h >>conftest.$ac_ext
25057 cat >>conftest.$ac_ext <<_ACEOF
25058 /* end confdefs.h.  */
25059 $ac_includes_default
25060 static long int longval () { return (long int) (sizeof (size_t)); }
25061 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
25062 #include <stdio.h>
25063 #include <stdlib.h>
25064 int
25065 main ()
25066 {
25067
25068   FILE *f = fopen ("conftest.val", "w");
25069   if (! f)
25070     return 1;
25071   if (((long int) (sizeof (size_t))) < 0)
25072     {
25073       long int i = longval ();
25074       if (i != ((long int) (sizeof (size_t))))
25075         return 1;
25076       fprintf (f, "%ld", i);
25077     }
25078   else
25079     {
25080       unsigned long int i = ulongval ();
25081       if (i != ((long int) (sizeof (size_t))))
25082         return 1;
25083       fprintf (f, "%lu", i);
25084     }
25085   /* Do not output a trailing newline, as this causes \r\n confusion
25086      on some platforms.  */
25087   return ferror (f) || fclose (f) != 0;
25088
25089   ;
25090   return 0;
25091 }
25092 _ACEOF
25093 rm -f conftest$ac_exeext
25094 if { (ac_try="$ac_link"
25095 case "(($ac_try" in
25096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25097   *) ac_try_echo=$ac_try;;
25098 esac
25099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25100 $as_echo "$ac_try_echo") >&5
25101   (eval "$ac_link") 2>&5
25102   ac_status=$?
25103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25104   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25105   { (case "(($ac_try" in
25106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25107   *) ac_try_echo=$ac_try;;
25108 esac
25109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25110 $as_echo "$ac_try_echo") >&5
25111   (eval "$ac_try") 2>&5
25112   ac_status=$?
25113   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25114   (exit $ac_status); }; }; then
25115   ac_cv_sizeof_size_t=`cat conftest.val`
25116 else
25117   $as_echo "$as_me: program exited with status $ac_status" >&5
25118 $as_echo "$as_me: failed program was:" >&5
25119 sed 's/^/| /' conftest.$ac_ext >&5
25120
25121 ( exit $ac_status )
25122 if test "$ac_cv_type_size_t" = yes; then
25123      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25125 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25126 See \`config.log' for more details." >&5
25127 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25128 See \`config.log' for more details." >&2;}
25129    { (exit 77); exit 77; }; }; }
25130    else
25131      ac_cv_sizeof_size_t=0
25132    fi
25133 fi
25134 rm -rf conftest.dSYM
25135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25136 fi
25137 rm -f conftest.val
25138 fi
25139 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
25140 $as_echo "$ac_cv_sizeof_size_t" >&6; }
25141
25142
25143
25144 cat >>confdefs.h <<_ACEOF
25145 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
25146 _ACEOF
25147
25148
25149 # The cast to long int works around a bug in the HP C Compiler
25150 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25151 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25152 # This bug is HP SR number 8606223364.
25153 { $as_echo "$as_me:$LINENO: checking size of long" >&5
25154 $as_echo_n "checking size of long... " >&6; }
25155 if test "${ac_cv_sizeof_long+set}" = set; then
25156   $as_echo_n "(cached) " >&6
25157 else
25158   if test "$cross_compiling" = yes; then
25159   # Depending upon the size, compute the lo and hi bounds.
25160 cat >conftest.$ac_ext <<_ACEOF
25161 /* confdefs.h.  */
25162 _ACEOF
25163 cat confdefs.h >>conftest.$ac_ext
25164 cat >>conftest.$ac_ext <<_ACEOF
25165 /* end confdefs.h.  */
25166 $ac_includes_default
25167 int
25168 main ()
25169 {
25170 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
25171 test_array [0] = 0
25172
25173   ;
25174   return 0;
25175 }
25176 _ACEOF
25177 rm -f conftest.$ac_objext
25178 if { (ac_try="$ac_compile"
25179 case "(($ac_try" in
25180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25181   *) ac_try_echo=$ac_try;;
25182 esac
25183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25184 $as_echo "$ac_try_echo") >&5
25185   (eval "$ac_compile") 2>conftest.er1
25186   ac_status=$?
25187   grep -v '^ *+' conftest.er1 >conftest.err
25188   rm -f conftest.er1
25189   cat conftest.err >&5
25190   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25191   (exit $ac_status); } && {
25192          test -z "$ac_c_werror_flag" ||
25193          test ! -s conftest.err
25194        } && test -s conftest.$ac_objext; then
25195   ac_lo=0 ac_mid=0
25196   while :; do
25197     cat >conftest.$ac_ext <<_ACEOF
25198 /* confdefs.h.  */
25199 _ACEOF
25200 cat confdefs.h >>conftest.$ac_ext
25201 cat >>conftest.$ac_ext <<_ACEOF
25202 /* end confdefs.h.  */
25203 $ac_includes_default
25204 int
25205 main ()
25206 {
25207 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25208 test_array [0] = 0
25209
25210   ;
25211   return 0;
25212 }
25213 _ACEOF
25214 rm -f conftest.$ac_objext
25215 if { (ac_try="$ac_compile"
25216 case "(($ac_try" in
25217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25218   *) ac_try_echo=$ac_try;;
25219 esac
25220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25221 $as_echo "$ac_try_echo") >&5
25222   (eval "$ac_compile") 2>conftest.er1
25223   ac_status=$?
25224   grep -v '^ *+' conftest.er1 >conftest.err
25225   rm -f conftest.er1
25226   cat conftest.err >&5
25227   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25228   (exit $ac_status); } && {
25229          test -z "$ac_c_werror_flag" ||
25230          test ! -s conftest.err
25231        } && test -s conftest.$ac_objext; then
25232   ac_hi=$ac_mid; break
25233 else
25234   $as_echo "$as_me: failed program was:" >&5
25235 sed 's/^/| /' conftest.$ac_ext >&5
25236
25237         ac_lo=`expr $ac_mid + 1`
25238                         if test $ac_lo -le $ac_mid; then
25239                           ac_lo= ac_hi=
25240                           break
25241                         fi
25242                         ac_mid=`expr 2 '*' $ac_mid + 1`
25243 fi
25244
25245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25246   done
25247 else
25248   $as_echo "$as_me: failed program was:" >&5
25249 sed 's/^/| /' conftest.$ac_ext >&5
25250
25251         cat >conftest.$ac_ext <<_ACEOF
25252 /* confdefs.h.  */
25253 _ACEOF
25254 cat confdefs.h >>conftest.$ac_ext
25255 cat >>conftest.$ac_ext <<_ACEOF
25256 /* end confdefs.h.  */
25257 $ac_includes_default
25258 int
25259 main ()
25260 {
25261 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
25262 test_array [0] = 0
25263
25264   ;
25265   return 0;
25266 }
25267 _ACEOF
25268 rm -f conftest.$ac_objext
25269 if { (ac_try="$ac_compile"
25270 case "(($ac_try" in
25271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25272   *) ac_try_echo=$ac_try;;
25273 esac
25274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25275 $as_echo "$ac_try_echo") >&5
25276   (eval "$ac_compile") 2>conftest.er1
25277   ac_status=$?
25278   grep -v '^ *+' conftest.er1 >conftest.err
25279   rm -f conftest.er1
25280   cat conftest.err >&5
25281   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25282   (exit $ac_status); } && {
25283          test -z "$ac_c_werror_flag" ||
25284          test ! -s conftest.err
25285        } && test -s conftest.$ac_objext; then
25286   ac_hi=-1 ac_mid=-1
25287   while :; do
25288     cat >conftest.$ac_ext <<_ACEOF
25289 /* confdefs.h.  */
25290 _ACEOF
25291 cat confdefs.h >>conftest.$ac_ext
25292 cat >>conftest.$ac_ext <<_ACEOF
25293 /* end confdefs.h.  */
25294 $ac_includes_default
25295 int
25296 main ()
25297 {
25298 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
25299 test_array [0] = 0
25300
25301   ;
25302   return 0;
25303 }
25304 _ACEOF
25305 rm -f conftest.$ac_objext
25306 if { (ac_try="$ac_compile"
25307 case "(($ac_try" in
25308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25309   *) ac_try_echo=$ac_try;;
25310 esac
25311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25312 $as_echo "$ac_try_echo") >&5
25313   (eval "$ac_compile") 2>conftest.er1
25314   ac_status=$?
25315   grep -v '^ *+' conftest.er1 >conftest.err
25316   rm -f conftest.er1
25317   cat conftest.err >&5
25318   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25319   (exit $ac_status); } && {
25320          test -z "$ac_c_werror_flag" ||
25321          test ! -s conftest.err
25322        } && test -s conftest.$ac_objext; then
25323   ac_lo=$ac_mid; break
25324 else
25325   $as_echo "$as_me: failed program was:" >&5
25326 sed 's/^/| /' conftest.$ac_ext >&5
25327
25328         ac_hi=`expr '(' $ac_mid ')' - 1`
25329                         if test $ac_mid -le $ac_hi; then
25330                           ac_lo= ac_hi=
25331                           break
25332                         fi
25333                         ac_mid=`expr 2 '*' $ac_mid`
25334 fi
25335
25336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25337   done
25338 else
25339   $as_echo "$as_me: failed program was:" >&5
25340 sed 's/^/| /' conftest.$ac_ext >&5
25341
25342         ac_lo= ac_hi=
25343 fi
25344
25345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25346 fi
25347
25348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25349 # Binary search between lo and hi bounds.
25350 while test "x$ac_lo" != "x$ac_hi"; do
25351   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25352   cat >conftest.$ac_ext <<_ACEOF
25353 /* confdefs.h.  */
25354 _ACEOF
25355 cat confdefs.h >>conftest.$ac_ext
25356 cat >>conftest.$ac_ext <<_ACEOF
25357 /* end confdefs.h.  */
25358 $ac_includes_default
25359 int
25360 main ()
25361 {
25362 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25363 test_array [0] = 0
25364
25365   ;
25366   return 0;
25367 }
25368 _ACEOF
25369 rm -f conftest.$ac_objext
25370 if { (ac_try="$ac_compile"
25371 case "(($ac_try" in
25372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25373   *) ac_try_echo=$ac_try;;
25374 esac
25375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25376 $as_echo "$ac_try_echo") >&5
25377   (eval "$ac_compile") 2>conftest.er1
25378   ac_status=$?
25379   grep -v '^ *+' conftest.er1 >conftest.err
25380   rm -f conftest.er1
25381   cat conftest.err >&5
25382   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25383   (exit $ac_status); } && {
25384          test -z "$ac_c_werror_flag" ||
25385          test ! -s conftest.err
25386        } && test -s conftest.$ac_objext; then
25387   ac_hi=$ac_mid
25388 else
25389   $as_echo "$as_me: failed program was:" >&5
25390 sed 's/^/| /' conftest.$ac_ext >&5
25391
25392         ac_lo=`expr '(' $ac_mid ')' + 1`
25393 fi
25394
25395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25396 done
25397 case $ac_lo in
25398 ?*) ac_cv_sizeof_long=$ac_lo;;
25399 '') if test "$ac_cv_type_long" = yes; then
25400      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25402 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25403 See \`config.log' for more details." >&5
25404 $as_echo "$as_me: error: cannot compute sizeof (long)
25405 See \`config.log' for more details." >&2;}
25406    { (exit 77); exit 77; }; }; }
25407    else
25408      ac_cv_sizeof_long=0
25409    fi ;;
25410 esac
25411 else
25412   cat >conftest.$ac_ext <<_ACEOF
25413 /* confdefs.h.  */
25414 _ACEOF
25415 cat confdefs.h >>conftest.$ac_ext
25416 cat >>conftest.$ac_ext <<_ACEOF
25417 /* end confdefs.h.  */
25418 $ac_includes_default
25419 static long int longval () { return (long int) (sizeof (long)); }
25420 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
25421 #include <stdio.h>
25422 #include <stdlib.h>
25423 int
25424 main ()
25425 {
25426
25427   FILE *f = fopen ("conftest.val", "w");
25428   if (! f)
25429     return 1;
25430   if (((long int) (sizeof (long))) < 0)
25431     {
25432       long int i = longval ();
25433       if (i != ((long int) (sizeof (long))))
25434         return 1;
25435       fprintf (f, "%ld", i);
25436     }
25437   else
25438     {
25439       unsigned long int i = ulongval ();
25440       if (i != ((long int) (sizeof (long))))
25441         return 1;
25442       fprintf (f, "%lu", i);
25443     }
25444   /* Do not output a trailing newline, as this causes \r\n confusion
25445      on some platforms.  */
25446   return ferror (f) || fclose (f) != 0;
25447
25448   ;
25449   return 0;
25450 }
25451 _ACEOF
25452 rm -f conftest$ac_exeext
25453 if { (ac_try="$ac_link"
25454 case "(($ac_try" in
25455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25456   *) ac_try_echo=$ac_try;;
25457 esac
25458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25459 $as_echo "$ac_try_echo") >&5
25460   (eval "$ac_link") 2>&5
25461   ac_status=$?
25462   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25463   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25464   { (case "(($ac_try" in
25465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25466   *) ac_try_echo=$ac_try;;
25467 esac
25468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25469 $as_echo "$ac_try_echo") >&5
25470   (eval "$ac_try") 2>&5
25471   ac_status=$?
25472   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25473   (exit $ac_status); }; }; then
25474   ac_cv_sizeof_long=`cat conftest.val`
25475 else
25476   $as_echo "$as_me: program exited with status $ac_status" >&5
25477 $as_echo "$as_me: failed program was:" >&5
25478 sed 's/^/| /' conftest.$ac_ext >&5
25479
25480 ( exit $ac_status )
25481 if test "$ac_cv_type_long" = yes; then
25482      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25484 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25485 See \`config.log' for more details." >&5
25486 $as_echo "$as_me: error: cannot compute sizeof (long)
25487 See \`config.log' for more details." >&2;}
25488    { (exit 77); exit 77; }; }; }
25489    else
25490      ac_cv_sizeof_long=0
25491    fi
25492 fi
25493 rm -rf conftest.dSYM
25494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25495 fi
25496 rm -f conftest.val
25497 fi
25498 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
25499 $as_echo "$ac_cv_sizeof_long" >&6; }
25500
25501
25502
25503 cat >>confdefs.h <<_ACEOF
25504 #define SIZEOF_LONG $ac_cv_sizeof_long
25505 _ACEOF
25506
25507
25508
25509 # Decide whether float4 is passed by value: user-selectable, enabled by default
25510 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
25511 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
25512
25513
25514 # Check whether --enable-float4-byval was given.
25515 if test "${enable_float4_byval+set}" = set; then
25516   enableval=$enable_float4_byval;
25517   case $enableval in
25518     yes)
25519
25520 cat >>confdefs.h <<\_ACEOF
25521 #define USE_FLOAT4_BYVAL 1
25522 _ACEOF
25523
25524                float4passbyval=true
25525       ;;
25526     no)
25527       float4passbyval=false
25528       ;;
25529     *)
25530       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
25531 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
25532    { (exit 1); exit 1; }; }
25533       ;;
25534   esac
25535
25536 else
25537   enable_float4_byval=yes
25538
25539 cat >>confdefs.h <<\_ACEOF
25540 #define USE_FLOAT4_BYVAL 1
25541 _ACEOF
25542
25543                float4passbyval=true
25544 fi
25545
25546
25547 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
25548 $as_echo "$enable_float4_byval" >&6; }
25549
25550 cat >>confdefs.h <<_ACEOF
25551 #define FLOAT4PASSBYVAL $float4passbyval
25552 _ACEOF
25553
25554
25555 # Decide whether float8 is passed by value.
25556 # Note: this setting also controls int8 and related types such as timestamp.
25557 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
25558 # If not, trying to select it is an error.
25559 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
25560 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
25561 if test $ac_cv_sizeof_void_p -ge 8 ; then
25562
25563
25564 # Check whether --enable-float8-byval was given.
25565 if test "${enable_float8_byval+set}" = set; then
25566   enableval=$enable_float8_byval;
25567   case $enableval in
25568     yes)
25569       :
25570       ;;
25571     no)
25572       :
25573       ;;
25574     *)
25575       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25576 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25577    { (exit 1); exit 1; }; }
25578       ;;
25579   esac
25580
25581 else
25582   enable_float8_byval=yes
25583
25584 fi
25585
25586
25587 else
25588
25589
25590 # Check whether --enable-float8-byval was given.
25591 if test "${enable_float8_byval+set}" = set; then
25592   enableval=$enable_float8_byval;
25593   case $enableval in
25594     yes)
25595       :
25596       ;;
25597     no)
25598       :
25599       ;;
25600     *)
25601       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25602 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25603    { (exit 1); exit 1; }; }
25604       ;;
25605   esac
25606
25607 else
25608   enable_float8_byval=no
25609
25610 fi
25611
25612
25613   if test "$enable_float8_byval" = yes ; then
25614     { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
25615 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
25616    { (exit 1); exit 1; }; }
25617   fi
25618 fi
25619 if test "$enable_float8_byval" = yes ; then
25620
25621 cat >>confdefs.h <<\_ACEOF
25622 #define USE_FLOAT8_BYVAL 1
25623 _ACEOF
25624
25625   float8passbyval=true
25626 else
25627   float8passbyval=false
25628 fi
25629 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
25630 $as_echo "$enable_float8_byval" >&6; }
25631
25632 cat >>confdefs.h <<_ACEOF
25633 #define FLOAT8PASSBYVAL $float8passbyval
25634 _ACEOF
25635
25636
25637 # Determine memory alignment requirements for the basic C data types.
25638
25639 # The cast to long int works around a bug in the HP C Compiler,
25640 # see AC_CHECK_SIZEOF for more information.
25641 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
25642 $as_echo_n "checking alignment of short... " >&6; }
25643 if test "${ac_cv_alignof_short+set}" = set; then
25644   $as_echo_n "(cached) " >&6
25645 else
25646   if test "$cross_compiling" = yes; then
25647   # Depending upon the size, compute the lo and hi bounds.
25648 cat >conftest.$ac_ext <<_ACEOF
25649 /* confdefs.h.  */
25650 _ACEOF
25651 cat confdefs.h >>conftest.$ac_ext
25652 cat >>conftest.$ac_ext <<_ACEOF
25653 /* end confdefs.h.  */
25654 $ac_includes_default
25655 #ifndef offsetof
25656 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25657 #endif
25658 typedef struct { char x; short y; } ac__type_alignof_;
25659 int
25660 main ()
25661 {
25662 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25663 test_array [0] = 0
25664
25665   ;
25666   return 0;
25667 }
25668 _ACEOF
25669 rm -f conftest.$ac_objext
25670 if { (ac_try="$ac_compile"
25671 case "(($ac_try" in
25672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25673   *) ac_try_echo=$ac_try;;
25674 esac
25675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25676 $as_echo "$ac_try_echo") >&5
25677   (eval "$ac_compile") 2>conftest.er1
25678   ac_status=$?
25679   grep -v '^ *+' conftest.er1 >conftest.err
25680   rm -f conftest.er1
25681   cat conftest.err >&5
25682   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683   (exit $ac_status); } && {
25684          test -z "$ac_c_werror_flag" ||
25685          test ! -s conftest.err
25686        } && test -s conftest.$ac_objext; then
25687   ac_lo=0 ac_mid=0
25688   while :; do
25689     cat >conftest.$ac_ext <<_ACEOF
25690 /* confdefs.h.  */
25691 _ACEOF
25692 cat confdefs.h >>conftest.$ac_ext
25693 cat >>conftest.$ac_ext <<_ACEOF
25694 /* end confdefs.h.  */
25695 $ac_includes_default
25696 #ifndef offsetof
25697 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25698 #endif
25699 typedef struct { char x; short y; } ac__type_alignof_;
25700 int
25701 main ()
25702 {
25703 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25704 test_array [0] = 0
25705
25706   ;
25707   return 0;
25708 }
25709 _ACEOF
25710 rm -f conftest.$ac_objext
25711 if { (ac_try="$ac_compile"
25712 case "(($ac_try" in
25713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25714   *) ac_try_echo=$ac_try;;
25715 esac
25716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25717 $as_echo "$ac_try_echo") >&5
25718   (eval "$ac_compile") 2>conftest.er1
25719   ac_status=$?
25720   grep -v '^ *+' conftest.er1 >conftest.err
25721   rm -f conftest.er1
25722   cat conftest.err >&5
25723   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25724   (exit $ac_status); } && {
25725          test -z "$ac_c_werror_flag" ||
25726          test ! -s conftest.err
25727        } && test -s conftest.$ac_objext; then
25728   ac_hi=$ac_mid; break
25729 else
25730   $as_echo "$as_me: failed program was:" >&5
25731 sed 's/^/| /' conftest.$ac_ext >&5
25732
25733         ac_lo=`expr $ac_mid + 1`
25734                         if test $ac_lo -le $ac_mid; then
25735                           ac_lo= ac_hi=
25736                           break
25737                         fi
25738                         ac_mid=`expr 2 '*' $ac_mid + 1`
25739 fi
25740
25741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25742   done
25743 else
25744   $as_echo "$as_me: failed program was:" >&5
25745 sed 's/^/| /' conftest.$ac_ext >&5
25746
25747         cat >conftest.$ac_ext <<_ACEOF
25748 /* confdefs.h.  */
25749 _ACEOF
25750 cat confdefs.h >>conftest.$ac_ext
25751 cat >>conftest.$ac_ext <<_ACEOF
25752 /* end confdefs.h.  */
25753 $ac_includes_default
25754 #ifndef offsetof
25755 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25756 #endif
25757 typedef struct { char x; short y; } ac__type_alignof_;
25758 int
25759 main ()
25760 {
25761 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25762 test_array [0] = 0
25763
25764   ;
25765   return 0;
25766 }
25767 _ACEOF
25768 rm -f conftest.$ac_objext
25769 if { (ac_try="$ac_compile"
25770 case "(($ac_try" in
25771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25772   *) ac_try_echo=$ac_try;;
25773 esac
25774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25775 $as_echo "$ac_try_echo") >&5
25776   (eval "$ac_compile") 2>conftest.er1
25777   ac_status=$?
25778   grep -v '^ *+' conftest.er1 >conftest.err
25779   rm -f conftest.er1
25780   cat conftest.err >&5
25781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25782   (exit $ac_status); } && {
25783          test -z "$ac_c_werror_flag" ||
25784          test ! -s conftest.err
25785        } && test -s conftest.$ac_objext; then
25786   ac_hi=-1 ac_mid=-1
25787   while :; do
25788     cat >conftest.$ac_ext <<_ACEOF
25789 /* confdefs.h.  */
25790 _ACEOF
25791 cat confdefs.h >>conftest.$ac_ext
25792 cat >>conftest.$ac_ext <<_ACEOF
25793 /* end confdefs.h.  */
25794 $ac_includes_default
25795 #ifndef offsetof
25796 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25797 #endif
25798 typedef struct { char x; short y; } ac__type_alignof_;
25799 int
25800 main ()
25801 {
25802 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25803 test_array [0] = 0
25804
25805   ;
25806   return 0;
25807 }
25808 _ACEOF
25809 rm -f conftest.$ac_objext
25810 if { (ac_try="$ac_compile"
25811 case "(($ac_try" in
25812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25813   *) ac_try_echo=$ac_try;;
25814 esac
25815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25816 $as_echo "$ac_try_echo") >&5
25817   (eval "$ac_compile") 2>conftest.er1
25818   ac_status=$?
25819   grep -v '^ *+' conftest.er1 >conftest.err
25820   rm -f conftest.er1
25821   cat conftest.err >&5
25822   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25823   (exit $ac_status); } && {
25824          test -z "$ac_c_werror_flag" ||
25825          test ! -s conftest.err
25826        } && test -s conftest.$ac_objext; then
25827   ac_lo=$ac_mid; break
25828 else
25829   $as_echo "$as_me: failed program was:" >&5
25830 sed 's/^/| /' conftest.$ac_ext >&5
25831
25832         ac_hi=`expr '(' $ac_mid ')' - 1`
25833                         if test $ac_mid -le $ac_hi; then
25834                           ac_lo= ac_hi=
25835                           break
25836                         fi
25837                         ac_mid=`expr 2 '*' $ac_mid`
25838 fi
25839
25840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25841   done
25842 else
25843   $as_echo "$as_me: failed program was:" >&5
25844 sed 's/^/| /' conftest.$ac_ext >&5
25845
25846         ac_lo= ac_hi=
25847 fi
25848
25849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25850 fi
25851
25852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25853 # Binary search between lo and hi bounds.
25854 while test "x$ac_lo" != "x$ac_hi"; do
25855   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25856   cat >conftest.$ac_ext <<_ACEOF
25857 /* confdefs.h.  */
25858 _ACEOF
25859 cat confdefs.h >>conftest.$ac_ext
25860 cat >>conftest.$ac_ext <<_ACEOF
25861 /* end confdefs.h.  */
25862 $ac_includes_default
25863 #ifndef offsetof
25864 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25865 #endif
25866 typedef struct { char x; short y; } ac__type_alignof_;
25867 int
25868 main ()
25869 {
25870 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25871 test_array [0] = 0
25872
25873   ;
25874   return 0;
25875 }
25876 _ACEOF
25877 rm -f conftest.$ac_objext
25878 if { (ac_try="$ac_compile"
25879 case "(($ac_try" in
25880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25881   *) ac_try_echo=$ac_try;;
25882 esac
25883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25884 $as_echo "$ac_try_echo") >&5
25885   (eval "$ac_compile") 2>conftest.er1
25886   ac_status=$?
25887   grep -v '^ *+' conftest.er1 >conftest.err
25888   rm -f conftest.er1
25889   cat conftest.err >&5
25890   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25891   (exit $ac_status); } && {
25892          test -z "$ac_c_werror_flag" ||
25893          test ! -s conftest.err
25894        } && test -s conftest.$ac_objext; then
25895   ac_hi=$ac_mid
25896 else
25897   $as_echo "$as_me: failed program was:" >&5
25898 sed 's/^/| /' conftest.$ac_ext >&5
25899
25900         ac_lo=`expr '(' $ac_mid ')' + 1`
25901 fi
25902
25903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25904 done
25905 case $ac_lo in
25906 ?*) ac_cv_alignof_short=$ac_lo;;
25907 '') if test "$ac_cv_type_short" = yes; then
25908      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25910 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25911 See \`config.log' for more details." >&5
25912 $as_echo "$as_me: error: cannot compute alignment of short
25913 See \`config.log' for more details." >&2;}
25914    { (exit 77); exit 77; }; }; }
25915    else
25916      ac_cv_alignof_short=0
25917    fi ;;
25918 esac
25919 else
25920   cat >conftest.$ac_ext <<_ACEOF
25921 /* confdefs.h.  */
25922 _ACEOF
25923 cat confdefs.h >>conftest.$ac_ext
25924 cat >>conftest.$ac_ext <<_ACEOF
25925 /* end confdefs.h.  */
25926 $ac_includes_default
25927 #ifndef offsetof
25928 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25929 #endif
25930 typedef struct { char x; short y; } ac__type_alignof_;
25931 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25932 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25933 #include <stdio.h>
25934 #include <stdlib.h>
25935 int
25936 main ()
25937 {
25938
25939   FILE *f = fopen ("conftest.val", "w");
25940   if (! f)
25941     return 1;
25942   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25943     {
25944       long int i = longval ();
25945       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25946         return 1;
25947       fprintf (f, "%ld", i);
25948     }
25949   else
25950     {
25951       unsigned long int i = ulongval ();
25952       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25953         return 1;
25954       fprintf (f, "%lu", i);
25955     }
25956   /* Do not output a trailing newline, as this causes \r\n confusion
25957      on some platforms.  */
25958   return ferror (f) || fclose (f) != 0;
25959
25960   ;
25961   return 0;
25962 }
25963 _ACEOF
25964 rm -f conftest$ac_exeext
25965 if { (ac_try="$ac_link"
25966 case "(($ac_try" in
25967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25968   *) ac_try_echo=$ac_try;;
25969 esac
25970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25971 $as_echo "$ac_try_echo") >&5
25972   (eval "$ac_link") 2>&5
25973   ac_status=$?
25974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25975   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25976   { (case "(($ac_try" in
25977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25978   *) ac_try_echo=$ac_try;;
25979 esac
25980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25981 $as_echo "$ac_try_echo") >&5
25982   (eval "$ac_try") 2>&5
25983   ac_status=$?
25984   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25985   (exit $ac_status); }; }; then
25986   ac_cv_alignof_short=`cat conftest.val`
25987 else
25988   $as_echo "$as_me: program exited with status $ac_status" >&5
25989 $as_echo "$as_me: failed program was:" >&5
25990 sed 's/^/| /' conftest.$ac_ext >&5
25991
25992 ( exit $ac_status )
25993 if test "$ac_cv_type_short" = yes; then
25994      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25996 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25997 See \`config.log' for more details." >&5
25998 $as_echo "$as_me: error: cannot compute alignment of short
25999 See \`config.log' for more details." >&2;}
26000    { (exit 77); exit 77; }; }; }
26001    else
26002      ac_cv_alignof_short=0
26003    fi
26004 fi
26005 rm -rf conftest.dSYM
26006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26007 fi
26008 rm -f conftest.val
26009 fi
26010 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
26011 $as_echo "$ac_cv_alignof_short" >&6; }
26012
26013
26014
26015 cat >>confdefs.h <<_ACEOF
26016 #define ALIGNOF_SHORT $ac_cv_alignof_short
26017 _ACEOF
26018
26019
26020 # The cast to long int works around a bug in the HP C Compiler,
26021 # see AC_CHECK_SIZEOF for more information.
26022 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
26023 $as_echo_n "checking alignment of int... " >&6; }
26024 if test "${ac_cv_alignof_int+set}" = set; then
26025   $as_echo_n "(cached) " >&6
26026 else
26027   if test "$cross_compiling" = yes; then
26028   # Depending upon the size, compute the lo and hi bounds.
26029 cat >conftest.$ac_ext <<_ACEOF
26030 /* confdefs.h.  */
26031 _ACEOF
26032 cat confdefs.h >>conftest.$ac_ext
26033 cat >>conftest.$ac_ext <<_ACEOF
26034 /* end confdefs.h.  */
26035 $ac_includes_default
26036 #ifndef offsetof
26037 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26038 #endif
26039 typedef struct { char x; int y; } ac__type_alignof_;
26040 int
26041 main ()
26042 {
26043 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26044 test_array [0] = 0
26045
26046   ;
26047   return 0;
26048 }
26049 _ACEOF
26050 rm -f conftest.$ac_objext
26051 if { (ac_try="$ac_compile"
26052 case "(($ac_try" in
26053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26054   *) ac_try_echo=$ac_try;;
26055 esac
26056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26057 $as_echo "$ac_try_echo") >&5
26058   (eval "$ac_compile") 2>conftest.er1
26059   ac_status=$?
26060   grep -v '^ *+' conftest.er1 >conftest.err
26061   rm -f conftest.er1
26062   cat conftest.err >&5
26063   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26064   (exit $ac_status); } && {
26065          test -z "$ac_c_werror_flag" ||
26066          test ! -s conftest.err
26067        } && test -s conftest.$ac_objext; then
26068   ac_lo=0 ac_mid=0
26069   while :; do
26070     cat >conftest.$ac_ext <<_ACEOF
26071 /* confdefs.h.  */
26072 _ACEOF
26073 cat confdefs.h >>conftest.$ac_ext
26074 cat >>conftest.$ac_ext <<_ACEOF
26075 /* end confdefs.h.  */
26076 $ac_includes_default
26077 #ifndef offsetof
26078 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26079 #endif
26080 typedef struct { char x; int y; } ac__type_alignof_;
26081 int
26082 main ()
26083 {
26084 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26085 test_array [0] = 0
26086
26087   ;
26088   return 0;
26089 }
26090 _ACEOF
26091 rm -f conftest.$ac_objext
26092 if { (ac_try="$ac_compile"
26093 case "(($ac_try" in
26094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26095   *) ac_try_echo=$ac_try;;
26096 esac
26097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26098 $as_echo "$ac_try_echo") >&5
26099   (eval "$ac_compile") 2>conftest.er1
26100   ac_status=$?
26101   grep -v '^ *+' conftest.er1 >conftest.err
26102   rm -f conftest.er1
26103   cat conftest.err >&5
26104   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26105   (exit $ac_status); } && {
26106          test -z "$ac_c_werror_flag" ||
26107          test ! -s conftest.err
26108        } && test -s conftest.$ac_objext; then
26109   ac_hi=$ac_mid; break
26110 else
26111   $as_echo "$as_me: failed program was:" >&5
26112 sed 's/^/| /' conftest.$ac_ext >&5
26113
26114         ac_lo=`expr $ac_mid + 1`
26115                         if test $ac_lo -le $ac_mid; then
26116                           ac_lo= ac_hi=
26117                           break
26118                         fi
26119                         ac_mid=`expr 2 '*' $ac_mid + 1`
26120 fi
26121
26122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26123   done
26124 else
26125   $as_echo "$as_me: failed program was:" >&5
26126 sed 's/^/| /' conftest.$ac_ext >&5
26127
26128         cat >conftest.$ac_ext <<_ACEOF
26129 /* confdefs.h.  */
26130 _ACEOF
26131 cat confdefs.h >>conftest.$ac_ext
26132 cat >>conftest.$ac_ext <<_ACEOF
26133 /* end confdefs.h.  */
26134 $ac_includes_default
26135 #ifndef offsetof
26136 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26137 #endif
26138 typedef struct { char x; int y; } ac__type_alignof_;
26139 int
26140 main ()
26141 {
26142 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26143 test_array [0] = 0
26144
26145   ;
26146   return 0;
26147 }
26148 _ACEOF
26149 rm -f conftest.$ac_objext
26150 if { (ac_try="$ac_compile"
26151 case "(($ac_try" in
26152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26153   *) ac_try_echo=$ac_try;;
26154 esac
26155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26156 $as_echo "$ac_try_echo") >&5
26157   (eval "$ac_compile") 2>conftest.er1
26158   ac_status=$?
26159   grep -v '^ *+' conftest.er1 >conftest.err
26160   rm -f conftest.er1
26161   cat conftest.err >&5
26162   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26163   (exit $ac_status); } && {
26164          test -z "$ac_c_werror_flag" ||
26165          test ! -s conftest.err
26166        } && test -s conftest.$ac_objext; then
26167   ac_hi=-1 ac_mid=-1
26168   while :; do
26169     cat >conftest.$ac_ext <<_ACEOF
26170 /* confdefs.h.  */
26171 _ACEOF
26172 cat confdefs.h >>conftest.$ac_ext
26173 cat >>conftest.$ac_ext <<_ACEOF
26174 /* end confdefs.h.  */
26175 $ac_includes_default
26176 #ifndef offsetof
26177 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26178 #endif
26179 typedef struct { char x; int y; } ac__type_alignof_;
26180 int
26181 main ()
26182 {
26183 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26184 test_array [0] = 0
26185
26186   ;
26187   return 0;
26188 }
26189 _ACEOF
26190 rm -f conftest.$ac_objext
26191 if { (ac_try="$ac_compile"
26192 case "(($ac_try" in
26193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26194   *) ac_try_echo=$ac_try;;
26195 esac
26196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26197 $as_echo "$ac_try_echo") >&5
26198   (eval "$ac_compile") 2>conftest.er1
26199   ac_status=$?
26200   grep -v '^ *+' conftest.er1 >conftest.err
26201   rm -f conftest.er1
26202   cat conftest.err >&5
26203   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26204   (exit $ac_status); } && {
26205          test -z "$ac_c_werror_flag" ||
26206          test ! -s conftest.err
26207        } && test -s conftest.$ac_objext; then
26208   ac_lo=$ac_mid; break
26209 else
26210   $as_echo "$as_me: failed program was:" >&5
26211 sed 's/^/| /' conftest.$ac_ext >&5
26212
26213         ac_hi=`expr '(' $ac_mid ')' - 1`
26214                         if test $ac_mid -le $ac_hi; then
26215                           ac_lo= ac_hi=
26216                           break
26217                         fi
26218                         ac_mid=`expr 2 '*' $ac_mid`
26219 fi
26220
26221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26222   done
26223 else
26224   $as_echo "$as_me: failed program was:" >&5
26225 sed 's/^/| /' conftest.$ac_ext >&5
26226
26227         ac_lo= ac_hi=
26228 fi
26229
26230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26231 fi
26232
26233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26234 # Binary search between lo and hi bounds.
26235 while test "x$ac_lo" != "x$ac_hi"; do
26236   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26237   cat >conftest.$ac_ext <<_ACEOF
26238 /* confdefs.h.  */
26239 _ACEOF
26240 cat confdefs.h >>conftest.$ac_ext
26241 cat >>conftest.$ac_ext <<_ACEOF
26242 /* end confdefs.h.  */
26243 $ac_includes_default
26244 #ifndef offsetof
26245 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26246 #endif
26247 typedef struct { char x; int y; } ac__type_alignof_;
26248 int
26249 main ()
26250 {
26251 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26252 test_array [0] = 0
26253
26254   ;
26255   return 0;
26256 }
26257 _ACEOF
26258 rm -f conftest.$ac_objext
26259 if { (ac_try="$ac_compile"
26260 case "(($ac_try" in
26261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26262   *) ac_try_echo=$ac_try;;
26263 esac
26264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26265 $as_echo "$ac_try_echo") >&5
26266   (eval "$ac_compile") 2>conftest.er1
26267   ac_status=$?
26268   grep -v '^ *+' conftest.er1 >conftest.err
26269   rm -f conftest.er1
26270   cat conftest.err >&5
26271   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26272   (exit $ac_status); } && {
26273          test -z "$ac_c_werror_flag" ||
26274          test ! -s conftest.err
26275        } && test -s conftest.$ac_objext; then
26276   ac_hi=$ac_mid
26277 else
26278   $as_echo "$as_me: failed program was:" >&5
26279 sed 's/^/| /' conftest.$ac_ext >&5
26280
26281         ac_lo=`expr '(' $ac_mid ')' + 1`
26282 fi
26283
26284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26285 done
26286 case $ac_lo in
26287 ?*) ac_cv_alignof_int=$ac_lo;;
26288 '') if test "$ac_cv_type_int" = yes; then
26289      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26291 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26292 See \`config.log' for more details." >&5
26293 $as_echo "$as_me: error: cannot compute alignment of int
26294 See \`config.log' for more details." >&2;}
26295    { (exit 77); exit 77; }; }; }
26296    else
26297      ac_cv_alignof_int=0
26298    fi ;;
26299 esac
26300 else
26301   cat >conftest.$ac_ext <<_ACEOF
26302 /* confdefs.h.  */
26303 _ACEOF
26304 cat confdefs.h >>conftest.$ac_ext
26305 cat >>conftest.$ac_ext <<_ACEOF
26306 /* end confdefs.h.  */
26307 $ac_includes_default
26308 #ifndef offsetof
26309 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26310 #endif
26311 typedef struct { char x; int y; } ac__type_alignof_;
26312 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26313 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26314 #include <stdio.h>
26315 #include <stdlib.h>
26316 int
26317 main ()
26318 {
26319
26320   FILE *f = fopen ("conftest.val", "w");
26321   if (! f)
26322     return 1;
26323   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26324     {
26325       long int i = longval ();
26326       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26327         return 1;
26328       fprintf (f, "%ld", i);
26329     }
26330   else
26331     {
26332       unsigned long int i = ulongval ();
26333       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26334         return 1;
26335       fprintf (f, "%lu", i);
26336     }
26337   /* Do not output a trailing newline, as this causes \r\n confusion
26338      on some platforms.  */
26339   return ferror (f) || fclose (f) != 0;
26340
26341   ;
26342   return 0;
26343 }
26344 _ACEOF
26345 rm -f conftest$ac_exeext
26346 if { (ac_try="$ac_link"
26347 case "(($ac_try" in
26348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26349   *) ac_try_echo=$ac_try;;
26350 esac
26351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26352 $as_echo "$ac_try_echo") >&5
26353   (eval "$ac_link") 2>&5
26354   ac_status=$?
26355   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26356   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26357   { (case "(($ac_try" in
26358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26359   *) ac_try_echo=$ac_try;;
26360 esac
26361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26362 $as_echo "$ac_try_echo") >&5
26363   (eval "$ac_try") 2>&5
26364   ac_status=$?
26365   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26366   (exit $ac_status); }; }; then
26367   ac_cv_alignof_int=`cat conftest.val`
26368 else
26369   $as_echo "$as_me: program exited with status $ac_status" >&5
26370 $as_echo "$as_me: failed program was:" >&5
26371 sed 's/^/| /' conftest.$ac_ext >&5
26372
26373 ( exit $ac_status )
26374 if test "$ac_cv_type_int" = yes; then
26375      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26377 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26378 See \`config.log' for more details." >&5
26379 $as_echo "$as_me: error: cannot compute alignment of int
26380 See \`config.log' for more details." >&2;}
26381    { (exit 77); exit 77; }; }; }
26382    else
26383      ac_cv_alignof_int=0
26384    fi
26385 fi
26386 rm -rf conftest.dSYM
26387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26388 fi
26389 rm -f conftest.val
26390 fi
26391 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
26392 $as_echo "$ac_cv_alignof_int" >&6; }
26393
26394
26395
26396 cat >>confdefs.h <<_ACEOF
26397 #define ALIGNOF_INT $ac_cv_alignof_int
26398 _ACEOF
26399
26400
26401 # The cast to long int works around a bug in the HP C Compiler,
26402 # see AC_CHECK_SIZEOF for more information.
26403 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
26404 $as_echo_n "checking alignment of long... " >&6; }
26405 if test "${ac_cv_alignof_long+set}" = set; then
26406   $as_echo_n "(cached) " >&6
26407 else
26408   if test "$cross_compiling" = yes; then
26409   # Depending upon the size, compute the lo and hi bounds.
26410 cat >conftest.$ac_ext <<_ACEOF
26411 /* confdefs.h.  */
26412 _ACEOF
26413 cat confdefs.h >>conftest.$ac_ext
26414 cat >>conftest.$ac_ext <<_ACEOF
26415 /* end confdefs.h.  */
26416 $ac_includes_default
26417 #ifndef offsetof
26418 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26419 #endif
26420 typedef struct { char x; long y; } ac__type_alignof_;
26421 int
26422 main ()
26423 {
26424 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26425 test_array [0] = 0
26426
26427   ;
26428   return 0;
26429 }
26430 _ACEOF
26431 rm -f conftest.$ac_objext
26432 if { (ac_try="$ac_compile"
26433 case "(($ac_try" in
26434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26435   *) ac_try_echo=$ac_try;;
26436 esac
26437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26438 $as_echo "$ac_try_echo") >&5
26439   (eval "$ac_compile") 2>conftest.er1
26440   ac_status=$?
26441   grep -v '^ *+' conftest.er1 >conftest.err
26442   rm -f conftest.er1
26443   cat conftest.err >&5
26444   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26445   (exit $ac_status); } && {
26446          test -z "$ac_c_werror_flag" ||
26447          test ! -s conftest.err
26448        } && test -s conftest.$ac_objext; then
26449   ac_lo=0 ac_mid=0
26450   while :; do
26451     cat >conftest.$ac_ext <<_ACEOF
26452 /* confdefs.h.  */
26453 _ACEOF
26454 cat confdefs.h >>conftest.$ac_ext
26455 cat >>conftest.$ac_ext <<_ACEOF
26456 /* end confdefs.h.  */
26457 $ac_includes_default
26458 #ifndef offsetof
26459 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26460 #endif
26461 typedef struct { char x; long y; } ac__type_alignof_;
26462 int
26463 main ()
26464 {
26465 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26466 test_array [0] = 0
26467
26468   ;
26469   return 0;
26470 }
26471 _ACEOF
26472 rm -f conftest.$ac_objext
26473 if { (ac_try="$ac_compile"
26474 case "(($ac_try" in
26475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26476   *) ac_try_echo=$ac_try;;
26477 esac
26478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26479 $as_echo "$ac_try_echo") >&5
26480   (eval "$ac_compile") 2>conftest.er1
26481   ac_status=$?
26482   grep -v '^ *+' conftest.er1 >conftest.err
26483   rm -f conftest.er1
26484   cat conftest.err >&5
26485   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26486   (exit $ac_status); } && {
26487          test -z "$ac_c_werror_flag" ||
26488          test ! -s conftest.err
26489        } && test -s conftest.$ac_objext; then
26490   ac_hi=$ac_mid; break
26491 else
26492   $as_echo "$as_me: failed program was:" >&5
26493 sed 's/^/| /' conftest.$ac_ext >&5
26494
26495         ac_lo=`expr $ac_mid + 1`
26496                         if test $ac_lo -le $ac_mid; then
26497                           ac_lo= ac_hi=
26498                           break
26499                         fi
26500                         ac_mid=`expr 2 '*' $ac_mid + 1`
26501 fi
26502
26503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26504   done
26505 else
26506   $as_echo "$as_me: failed program was:" >&5
26507 sed 's/^/| /' conftest.$ac_ext >&5
26508
26509         cat >conftest.$ac_ext <<_ACEOF
26510 /* confdefs.h.  */
26511 _ACEOF
26512 cat confdefs.h >>conftest.$ac_ext
26513 cat >>conftest.$ac_ext <<_ACEOF
26514 /* end confdefs.h.  */
26515 $ac_includes_default
26516 #ifndef offsetof
26517 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26518 #endif
26519 typedef struct { char x; long y; } ac__type_alignof_;
26520 int
26521 main ()
26522 {
26523 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26524 test_array [0] = 0
26525
26526   ;
26527   return 0;
26528 }
26529 _ACEOF
26530 rm -f conftest.$ac_objext
26531 if { (ac_try="$ac_compile"
26532 case "(($ac_try" in
26533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26534   *) ac_try_echo=$ac_try;;
26535 esac
26536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26537 $as_echo "$ac_try_echo") >&5
26538   (eval "$ac_compile") 2>conftest.er1
26539   ac_status=$?
26540   grep -v '^ *+' conftest.er1 >conftest.err
26541   rm -f conftest.er1
26542   cat conftest.err >&5
26543   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26544   (exit $ac_status); } && {
26545          test -z "$ac_c_werror_flag" ||
26546          test ! -s conftest.err
26547        } && test -s conftest.$ac_objext; then
26548   ac_hi=-1 ac_mid=-1
26549   while :; do
26550     cat >conftest.$ac_ext <<_ACEOF
26551 /* confdefs.h.  */
26552 _ACEOF
26553 cat confdefs.h >>conftest.$ac_ext
26554 cat >>conftest.$ac_ext <<_ACEOF
26555 /* end confdefs.h.  */
26556 $ac_includes_default
26557 #ifndef offsetof
26558 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26559 #endif
26560 typedef struct { char x; long y; } ac__type_alignof_;
26561 int
26562 main ()
26563 {
26564 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26565 test_array [0] = 0
26566
26567   ;
26568   return 0;
26569 }
26570 _ACEOF
26571 rm -f conftest.$ac_objext
26572 if { (ac_try="$ac_compile"
26573 case "(($ac_try" in
26574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26575   *) ac_try_echo=$ac_try;;
26576 esac
26577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26578 $as_echo "$ac_try_echo") >&5
26579   (eval "$ac_compile") 2>conftest.er1
26580   ac_status=$?
26581   grep -v '^ *+' conftest.er1 >conftest.err
26582   rm -f conftest.er1
26583   cat conftest.err >&5
26584   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585   (exit $ac_status); } && {
26586          test -z "$ac_c_werror_flag" ||
26587          test ! -s conftest.err
26588        } && test -s conftest.$ac_objext; then
26589   ac_lo=$ac_mid; break
26590 else
26591   $as_echo "$as_me: failed program was:" >&5
26592 sed 's/^/| /' conftest.$ac_ext >&5
26593
26594         ac_hi=`expr '(' $ac_mid ')' - 1`
26595                         if test $ac_mid -le $ac_hi; then
26596                           ac_lo= ac_hi=
26597                           break
26598                         fi
26599                         ac_mid=`expr 2 '*' $ac_mid`
26600 fi
26601
26602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26603   done
26604 else
26605   $as_echo "$as_me: failed program was:" >&5
26606 sed 's/^/| /' conftest.$ac_ext >&5
26607
26608         ac_lo= ac_hi=
26609 fi
26610
26611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26612 fi
26613
26614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26615 # Binary search between lo and hi bounds.
26616 while test "x$ac_lo" != "x$ac_hi"; do
26617   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26618   cat >conftest.$ac_ext <<_ACEOF
26619 /* confdefs.h.  */
26620 _ACEOF
26621 cat confdefs.h >>conftest.$ac_ext
26622 cat >>conftest.$ac_ext <<_ACEOF
26623 /* end confdefs.h.  */
26624 $ac_includes_default
26625 #ifndef offsetof
26626 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26627 #endif
26628 typedef struct { char x; long y; } ac__type_alignof_;
26629 int
26630 main ()
26631 {
26632 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26633 test_array [0] = 0
26634
26635   ;
26636   return 0;
26637 }
26638 _ACEOF
26639 rm -f conftest.$ac_objext
26640 if { (ac_try="$ac_compile"
26641 case "(($ac_try" in
26642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26643   *) ac_try_echo=$ac_try;;
26644 esac
26645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26646 $as_echo "$ac_try_echo") >&5
26647   (eval "$ac_compile") 2>conftest.er1
26648   ac_status=$?
26649   grep -v '^ *+' conftest.er1 >conftest.err
26650   rm -f conftest.er1
26651   cat conftest.err >&5
26652   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26653   (exit $ac_status); } && {
26654          test -z "$ac_c_werror_flag" ||
26655          test ! -s conftest.err
26656        } && test -s conftest.$ac_objext; then
26657   ac_hi=$ac_mid
26658 else
26659   $as_echo "$as_me: failed program was:" >&5
26660 sed 's/^/| /' conftest.$ac_ext >&5
26661
26662         ac_lo=`expr '(' $ac_mid ')' + 1`
26663 fi
26664
26665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26666 done
26667 case $ac_lo in
26668 ?*) ac_cv_alignof_long=$ac_lo;;
26669 '') if test "$ac_cv_type_long" = yes; then
26670      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26672 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26673 See \`config.log' for more details." >&5
26674 $as_echo "$as_me: error: cannot compute alignment of long
26675 See \`config.log' for more details." >&2;}
26676    { (exit 77); exit 77; }; }; }
26677    else
26678      ac_cv_alignof_long=0
26679    fi ;;
26680 esac
26681 else
26682   cat >conftest.$ac_ext <<_ACEOF
26683 /* confdefs.h.  */
26684 _ACEOF
26685 cat confdefs.h >>conftest.$ac_ext
26686 cat >>conftest.$ac_ext <<_ACEOF
26687 /* end confdefs.h.  */
26688 $ac_includes_default
26689 #ifndef offsetof
26690 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26691 #endif
26692 typedef struct { char x; long y; } ac__type_alignof_;
26693 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26694 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26695 #include <stdio.h>
26696 #include <stdlib.h>
26697 int
26698 main ()
26699 {
26700
26701   FILE *f = fopen ("conftest.val", "w");
26702   if (! f)
26703     return 1;
26704   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26705     {
26706       long int i = longval ();
26707       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26708         return 1;
26709       fprintf (f, "%ld", i);
26710     }
26711   else
26712     {
26713       unsigned long int i = ulongval ();
26714       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26715         return 1;
26716       fprintf (f, "%lu", i);
26717     }
26718   /* Do not output a trailing newline, as this causes \r\n confusion
26719      on some platforms.  */
26720   return ferror (f) || fclose (f) != 0;
26721
26722   ;
26723   return 0;
26724 }
26725 _ACEOF
26726 rm -f conftest$ac_exeext
26727 if { (ac_try="$ac_link"
26728 case "(($ac_try" in
26729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26730   *) ac_try_echo=$ac_try;;
26731 esac
26732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26733 $as_echo "$ac_try_echo") >&5
26734   (eval "$ac_link") 2>&5
26735   ac_status=$?
26736   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26737   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26738   { (case "(($ac_try" in
26739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26740   *) ac_try_echo=$ac_try;;
26741 esac
26742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26743 $as_echo "$ac_try_echo") >&5
26744   (eval "$ac_try") 2>&5
26745   ac_status=$?
26746   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26747   (exit $ac_status); }; }; then
26748   ac_cv_alignof_long=`cat conftest.val`
26749 else
26750   $as_echo "$as_me: program exited with status $ac_status" >&5
26751 $as_echo "$as_me: failed program was:" >&5
26752 sed 's/^/| /' conftest.$ac_ext >&5
26753
26754 ( exit $ac_status )
26755 if test "$ac_cv_type_long" = yes; then
26756      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26758 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26759 See \`config.log' for more details." >&5
26760 $as_echo "$as_me: error: cannot compute alignment of long
26761 See \`config.log' for more details." >&2;}
26762    { (exit 77); exit 77; }; }; }
26763    else
26764      ac_cv_alignof_long=0
26765    fi
26766 fi
26767 rm -rf conftest.dSYM
26768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26769 fi
26770 rm -f conftest.val
26771 fi
26772 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
26773 $as_echo "$ac_cv_alignof_long" >&6; }
26774
26775
26776
26777 cat >>confdefs.h <<_ACEOF
26778 #define ALIGNOF_LONG $ac_cv_alignof_long
26779 _ACEOF
26780
26781
26782 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
26783   # The cast to long int works around a bug in the HP C Compiler,
26784 # see AC_CHECK_SIZEOF for more information.
26785 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
26786 $as_echo_n "checking alignment of long long int... " >&6; }
26787 if test "${ac_cv_alignof_long_long_int+set}" = set; then
26788   $as_echo_n "(cached) " >&6
26789 else
26790   if test "$cross_compiling" = yes; then
26791   # Depending upon the size, compute the lo and hi bounds.
26792 cat >conftest.$ac_ext <<_ACEOF
26793 /* confdefs.h.  */
26794 _ACEOF
26795 cat confdefs.h >>conftest.$ac_ext
26796 cat >>conftest.$ac_ext <<_ACEOF
26797 /* end confdefs.h.  */
26798 $ac_includes_default
26799 #ifndef offsetof
26800 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26801 #endif
26802 typedef struct { char x; long long int y; } ac__type_alignof_;
26803 int
26804 main ()
26805 {
26806 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26807 test_array [0] = 0
26808
26809   ;
26810   return 0;
26811 }
26812 _ACEOF
26813 rm -f conftest.$ac_objext
26814 if { (ac_try="$ac_compile"
26815 case "(($ac_try" in
26816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26817   *) ac_try_echo=$ac_try;;
26818 esac
26819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26820 $as_echo "$ac_try_echo") >&5
26821   (eval "$ac_compile") 2>conftest.er1
26822   ac_status=$?
26823   grep -v '^ *+' conftest.er1 >conftest.err
26824   rm -f conftest.er1
26825   cat conftest.err >&5
26826   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827   (exit $ac_status); } && {
26828          test -z "$ac_c_werror_flag" ||
26829          test ! -s conftest.err
26830        } && test -s conftest.$ac_objext; then
26831   ac_lo=0 ac_mid=0
26832   while :; do
26833     cat >conftest.$ac_ext <<_ACEOF
26834 /* confdefs.h.  */
26835 _ACEOF
26836 cat confdefs.h >>conftest.$ac_ext
26837 cat >>conftest.$ac_ext <<_ACEOF
26838 /* end confdefs.h.  */
26839 $ac_includes_default
26840 #ifndef offsetof
26841 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26842 #endif
26843 typedef struct { char x; long long int y; } ac__type_alignof_;
26844 int
26845 main ()
26846 {
26847 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26848 test_array [0] = 0
26849
26850   ;
26851   return 0;
26852 }
26853 _ACEOF
26854 rm -f conftest.$ac_objext
26855 if { (ac_try="$ac_compile"
26856 case "(($ac_try" in
26857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26858   *) ac_try_echo=$ac_try;;
26859 esac
26860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26861 $as_echo "$ac_try_echo") >&5
26862   (eval "$ac_compile") 2>conftest.er1
26863   ac_status=$?
26864   grep -v '^ *+' conftest.er1 >conftest.err
26865   rm -f conftest.er1
26866   cat conftest.err >&5
26867   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26868   (exit $ac_status); } && {
26869          test -z "$ac_c_werror_flag" ||
26870          test ! -s conftest.err
26871        } && test -s conftest.$ac_objext; then
26872   ac_hi=$ac_mid; break
26873 else
26874   $as_echo "$as_me: failed program was:" >&5
26875 sed 's/^/| /' conftest.$ac_ext >&5
26876
26877         ac_lo=`expr $ac_mid + 1`
26878                         if test $ac_lo -le $ac_mid; then
26879                           ac_lo= ac_hi=
26880                           break
26881                         fi
26882                         ac_mid=`expr 2 '*' $ac_mid + 1`
26883 fi
26884
26885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26886   done
26887 else
26888   $as_echo "$as_me: failed program was:" >&5
26889 sed 's/^/| /' conftest.$ac_ext >&5
26890
26891         cat >conftest.$ac_ext <<_ACEOF
26892 /* confdefs.h.  */
26893 _ACEOF
26894 cat confdefs.h >>conftest.$ac_ext
26895 cat >>conftest.$ac_ext <<_ACEOF
26896 /* end confdefs.h.  */
26897 $ac_includes_default
26898 #ifndef offsetof
26899 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26900 #endif
26901 typedef struct { char x; long long int y; } ac__type_alignof_;
26902 int
26903 main ()
26904 {
26905 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26906 test_array [0] = 0
26907
26908   ;
26909   return 0;
26910 }
26911 _ACEOF
26912 rm -f conftest.$ac_objext
26913 if { (ac_try="$ac_compile"
26914 case "(($ac_try" in
26915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26916   *) ac_try_echo=$ac_try;;
26917 esac
26918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26919 $as_echo "$ac_try_echo") >&5
26920   (eval "$ac_compile") 2>conftest.er1
26921   ac_status=$?
26922   grep -v '^ *+' conftest.er1 >conftest.err
26923   rm -f conftest.er1
26924   cat conftest.err >&5
26925   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26926   (exit $ac_status); } && {
26927          test -z "$ac_c_werror_flag" ||
26928          test ! -s conftest.err
26929        } && test -s conftest.$ac_objext; then
26930   ac_hi=-1 ac_mid=-1
26931   while :; do
26932     cat >conftest.$ac_ext <<_ACEOF
26933 /* confdefs.h.  */
26934 _ACEOF
26935 cat confdefs.h >>conftest.$ac_ext
26936 cat >>conftest.$ac_ext <<_ACEOF
26937 /* end confdefs.h.  */
26938 $ac_includes_default
26939 #ifndef offsetof
26940 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26941 #endif
26942 typedef struct { char x; long long int y; } ac__type_alignof_;
26943 int
26944 main ()
26945 {
26946 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26947 test_array [0] = 0
26948
26949   ;
26950   return 0;
26951 }
26952 _ACEOF
26953 rm -f conftest.$ac_objext
26954 if { (ac_try="$ac_compile"
26955 case "(($ac_try" in
26956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26957   *) ac_try_echo=$ac_try;;
26958 esac
26959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26960 $as_echo "$ac_try_echo") >&5
26961   (eval "$ac_compile") 2>conftest.er1
26962   ac_status=$?
26963   grep -v '^ *+' conftest.er1 >conftest.err
26964   rm -f conftest.er1
26965   cat conftest.err >&5
26966   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26967   (exit $ac_status); } && {
26968          test -z "$ac_c_werror_flag" ||
26969          test ! -s conftest.err
26970        } && test -s conftest.$ac_objext; then
26971   ac_lo=$ac_mid; break
26972 else
26973   $as_echo "$as_me: failed program was:" >&5
26974 sed 's/^/| /' conftest.$ac_ext >&5
26975
26976         ac_hi=`expr '(' $ac_mid ')' - 1`
26977                         if test $ac_mid -le $ac_hi; then
26978                           ac_lo= ac_hi=
26979                           break
26980                         fi
26981                         ac_mid=`expr 2 '*' $ac_mid`
26982 fi
26983
26984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26985   done
26986 else
26987   $as_echo "$as_me: failed program was:" >&5
26988 sed 's/^/| /' conftest.$ac_ext >&5
26989
26990         ac_lo= ac_hi=
26991 fi
26992
26993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26994 fi
26995
26996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26997 # Binary search between lo and hi bounds.
26998 while test "x$ac_lo" != "x$ac_hi"; do
26999   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27000   cat >conftest.$ac_ext <<_ACEOF
27001 /* confdefs.h.  */
27002 _ACEOF
27003 cat confdefs.h >>conftest.$ac_ext
27004 cat >>conftest.$ac_ext <<_ACEOF
27005 /* end confdefs.h.  */
27006 $ac_includes_default
27007 #ifndef offsetof
27008 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27009 #endif
27010 typedef struct { char x; long long int y; } ac__type_alignof_;
27011 int
27012 main ()
27013 {
27014 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27015 test_array [0] = 0
27016
27017   ;
27018   return 0;
27019 }
27020 _ACEOF
27021 rm -f conftest.$ac_objext
27022 if { (ac_try="$ac_compile"
27023 case "(($ac_try" in
27024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27025   *) ac_try_echo=$ac_try;;
27026 esac
27027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27028 $as_echo "$ac_try_echo") >&5
27029   (eval "$ac_compile") 2>conftest.er1
27030   ac_status=$?
27031   grep -v '^ *+' conftest.er1 >conftest.err
27032   rm -f conftest.er1
27033   cat conftest.err >&5
27034   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27035   (exit $ac_status); } && {
27036          test -z "$ac_c_werror_flag" ||
27037          test ! -s conftest.err
27038        } && test -s conftest.$ac_objext; then
27039   ac_hi=$ac_mid
27040 else
27041   $as_echo "$as_me: failed program was:" >&5
27042 sed 's/^/| /' conftest.$ac_ext >&5
27043
27044         ac_lo=`expr '(' $ac_mid ')' + 1`
27045 fi
27046
27047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27048 done
27049 case $ac_lo in
27050 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
27051 '') if test "$ac_cv_type_long_long_int" = yes; then
27052      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27054 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27055 See \`config.log' for more details." >&5
27056 $as_echo "$as_me: error: cannot compute alignment of long long int
27057 See \`config.log' for more details." >&2;}
27058    { (exit 77); exit 77; }; }; }
27059    else
27060      ac_cv_alignof_long_long_int=0
27061    fi ;;
27062 esac
27063 else
27064   cat >conftest.$ac_ext <<_ACEOF
27065 /* confdefs.h.  */
27066 _ACEOF
27067 cat confdefs.h >>conftest.$ac_ext
27068 cat >>conftest.$ac_ext <<_ACEOF
27069 /* end confdefs.h.  */
27070 $ac_includes_default
27071 #ifndef offsetof
27072 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27073 #endif
27074 typedef struct { char x; long long int y; } ac__type_alignof_;
27075 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27076 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27077 #include <stdio.h>
27078 #include <stdlib.h>
27079 int
27080 main ()
27081 {
27082
27083   FILE *f = fopen ("conftest.val", "w");
27084   if (! f)
27085     return 1;
27086   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27087     {
27088       long int i = longval ();
27089       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27090         return 1;
27091       fprintf (f, "%ld", i);
27092     }
27093   else
27094     {
27095       unsigned long int i = ulongval ();
27096       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27097         return 1;
27098       fprintf (f, "%lu", i);
27099     }
27100   /* Do not output a trailing newline, as this causes \r\n confusion
27101      on some platforms.  */
27102   return ferror (f) || fclose (f) != 0;
27103
27104   ;
27105   return 0;
27106 }
27107 _ACEOF
27108 rm -f conftest$ac_exeext
27109 if { (ac_try="$ac_link"
27110 case "(($ac_try" in
27111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27112   *) ac_try_echo=$ac_try;;
27113 esac
27114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27115 $as_echo "$ac_try_echo") >&5
27116   (eval "$ac_link") 2>&5
27117   ac_status=$?
27118   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27119   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27120   { (case "(($ac_try" in
27121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27122   *) ac_try_echo=$ac_try;;
27123 esac
27124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27125 $as_echo "$ac_try_echo") >&5
27126   (eval "$ac_try") 2>&5
27127   ac_status=$?
27128   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27129   (exit $ac_status); }; }; then
27130   ac_cv_alignof_long_long_int=`cat conftest.val`
27131 else
27132   $as_echo "$as_me: program exited with status $ac_status" >&5
27133 $as_echo "$as_me: failed program was:" >&5
27134 sed 's/^/| /' conftest.$ac_ext >&5
27135
27136 ( exit $ac_status )
27137 if test "$ac_cv_type_long_long_int" = yes; then
27138      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27140 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27141 See \`config.log' for more details." >&5
27142 $as_echo "$as_me: error: cannot compute alignment of long long int
27143 See \`config.log' for more details." >&2;}
27144    { (exit 77); exit 77; }; }; }
27145    else
27146      ac_cv_alignof_long_long_int=0
27147    fi
27148 fi
27149 rm -rf conftest.dSYM
27150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27151 fi
27152 rm -f conftest.val
27153 fi
27154 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
27155 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
27156
27157
27158
27159 cat >>confdefs.h <<_ACEOF
27160 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
27161 _ACEOF
27162
27163
27164 fi
27165 # The cast to long int works around a bug in the HP C Compiler,
27166 # see AC_CHECK_SIZEOF for more information.
27167 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
27168 $as_echo_n "checking alignment of double... " >&6; }
27169 if test "${ac_cv_alignof_double+set}" = set; then
27170   $as_echo_n "(cached) " >&6
27171 else
27172   if test "$cross_compiling" = yes; then
27173   # Depending upon the size, compute the lo and hi bounds.
27174 cat >conftest.$ac_ext <<_ACEOF
27175 /* confdefs.h.  */
27176 _ACEOF
27177 cat confdefs.h >>conftest.$ac_ext
27178 cat >>conftest.$ac_ext <<_ACEOF
27179 /* end confdefs.h.  */
27180 $ac_includes_default
27181 #ifndef offsetof
27182 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27183 #endif
27184 typedef struct { char x; double y; } ac__type_alignof_;
27185 int
27186 main ()
27187 {
27188 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27189 test_array [0] = 0
27190
27191   ;
27192   return 0;
27193 }
27194 _ACEOF
27195 rm -f conftest.$ac_objext
27196 if { (ac_try="$ac_compile"
27197 case "(($ac_try" in
27198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27199   *) ac_try_echo=$ac_try;;
27200 esac
27201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27202 $as_echo "$ac_try_echo") >&5
27203   (eval "$ac_compile") 2>conftest.er1
27204   ac_status=$?
27205   grep -v '^ *+' conftest.er1 >conftest.err
27206   rm -f conftest.er1
27207   cat conftest.err >&5
27208   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27209   (exit $ac_status); } && {
27210          test -z "$ac_c_werror_flag" ||
27211          test ! -s conftest.err
27212        } && test -s conftest.$ac_objext; then
27213   ac_lo=0 ac_mid=0
27214   while :; do
27215     cat >conftest.$ac_ext <<_ACEOF
27216 /* confdefs.h.  */
27217 _ACEOF
27218 cat confdefs.h >>conftest.$ac_ext
27219 cat >>conftest.$ac_ext <<_ACEOF
27220 /* end confdefs.h.  */
27221 $ac_includes_default
27222 #ifndef offsetof
27223 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27224 #endif
27225 typedef struct { char x; double y; } ac__type_alignof_;
27226 int
27227 main ()
27228 {
27229 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27230 test_array [0] = 0
27231
27232   ;
27233   return 0;
27234 }
27235 _ACEOF
27236 rm -f conftest.$ac_objext
27237 if { (ac_try="$ac_compile"
27238 case "(($ac_try" in
27239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27240   *) ac_try_echo=$ac_try;;
27241 esac
27242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27243 $as_echo "$ac_try_echo") >&5
27244   (eval "$ac_compile") 2>conftest.er1
27245   ac_status=$?
27246   grep -v '^ *+' conftest.er1 >conftest.err
27247   rm -f conftest.er1
27248   cat conftest.err >&5
27249   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250   (exit $ac_status); } && {
27251          test -z "$ac_c_werror_flag" ||
27252          test ! -s conftest.err
27253        } && test -s conftest.$ac_objext; then
27254   ac_hi=$ac_mid; break
27255 else
27256   $as_echo "$as_me: failed program was:" >&5
27257 sed 's/^/| /' conftest.$ac_ext >&5
27258
27259         ac_lo=`expr $ac_mid + 1`
27260                         if test $ac_lo -le $ac_mid; then
27261                           ac_lo= ac_hi=
27262                           break
27263                         fi
27264                         ac_mid=`expr 2 '*' $ac_mid + 1`
27265 fi
27266
27267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27268   done
27269 else
27270   $as_echo "$as_me: failed program was:" >&5
27271 sed 's/^/| /' conftest.$ac_ext >&5
27272
27273         cat >conftest.$ac_ext <<_ACEOF
27274 /* confdefs.h.  */
27275 _ACEOF
27276 cat confdefs.h >>conftest.$ac_ext
27277 cat >>conftest.$ac_ext <<_ACEOF
27278 /* end confdefs.h.  */
27279 $ac_includes_default
27280 #ifndef offsetof
27281 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27282 #endif
27283 typedef struct { char x; double y; } ac__type_alignof_;
27284 int
27285 main ()
27286 {
27287 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27288 test_array [0] = 0
27289
27290   ;
27291   return 0;
27292 }
27293 _ACEOF
27294 rm -f conftest.$ac_objext
27295 if { (ac_try="$ac_compile"
27296 case "(($ac_try" in
27297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27298   *) ac_try_echo=$ac_try;;
27299 esac
27300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27301 $as_echo "$ac_try_echo") >&5
27302   (eval "$ac_compile") 2>conftest.er1
27303   ac_status=$?
27304   grep -v '^ *+' conftest.er1 >conftest.err
27305   rm -f conftest.er1
27306   cat conftest.err >&5
27307   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27308   (exit $ac_status); } && {
27309          test -z "$ac_c_werror_flag" ||
27310          test ! -s conftest.err
27311        } && test -s conftest.$ac_objext; then
27312   ac_hi=-1 ac_mid=-1
27313   while :; do
27314     cat >conftest.$ac_ext <<_ACEOF
27315 /* confdefs.h.  */
27316 _ACEOF
27317 cat confdefs.h >>conftest.$ac_ext
27318 cat >>conftest.$ac_ext <<_ACEOF
27319 /* end confdefs.h.  */
27320 $ac_includes_default
27321 #ifndef offsetof
27322 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27323 #endif
27324 typedef struct { char x; double y; } ac__type_alignof_;
27325 int
27326 main ()
27327 {
27328 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27329 test_array [0] = 0
27330
27331   ;
27332   return 0;
27333 }
27334 _ACEOF
27335 rm -f conftest.$ac_objext
27336 if { (ac_try="$ac_compile"
27337 case "(($ac_try" in
27338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27339   *) ac_try_echo=$ac_try;;
27340 esac
27341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27342 $as_echo "$ac_try_echo") >&5
27343   (eval "$ac_compile") 2>conftest.er1
27344   ac_status=$?
27345   grep -v '^ *+' conftest.er1 >conftest.err
27346   rm -f conftest.er1
27347   cat conftest.err >&5
27348   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27349   (exit $ac_status); } && {
27350          test -z "$ac_c_werror_flag" ||
27351          test ! -s conftest.err
27352        } && test -s conftest.$ac_objext; then
27353   ac_lo=$ac_mid; break
27354 else
27355   $as_echo "$as_me: failed program was:" >&5
27356 sed 's/^/| /' conftest.$ac_ext >&5
27357
27358         ac_hi=`expr '(' $ac_mid ')' - 1`
27359                         if test $ac_mid -le $ac_hi; then
27360                           ac_lo= ac_hi=
27361                           break
27362                         fi
27363                         ac_mid=`expr 2 '*' $ac_mid`
27364 fi
27365
27366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27367   done
27368 else
27369   $as_echo "$as_me: failed program was:" >&5
27370 sed 's/^/| /' conftest.$ac_ext >&5
27371
27372         ac_lo= ac_hi=
27373 fi
27374
27375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27376 fi
27377
27378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27379 # Binary search between lo and hi bounds.
27380 while test "x$ac_lo" != "x$ac_hi"; do
27381   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27382   cat >conftest.$ac_ext <<_ACEOF
27383 /* confdefs.h.  */
27384 _ACEOF
27385 cat confdefs.h >>conftest.$ac_ext
27386 cat >>conftest.$ac_ext <<_ACEOF
27387 /* end confdefs.h.  */
27388 $ac_includes_default
27389 #ifndef offsetof
27390 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27391 #endif
27392 typedef struct { char x; double y; } ac__type_alignof_;
27393 int
27394 main ()
27395 {
27396 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27397 test_array [0] = 0
27398
27399   ;
27400   return 0;
27401 }
27402 _ACEOF
27403 rm -f conftest.$ac_objext
27404 if { (ac_try="$ac_compile"
27405 case "(($ac_try" in
27406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27407   *) ac_try_echo=$ac_try;;
27408 esac
27409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27410 $as_echo "$ac_try_echo") >&5
27411   (eval "$ac_compile") 2>conftest.er1
27412   ac_status=$?
27413   grep -v '^ *+' conftest.er1 >conftest.err
27414   rm -f conftest.er1
27415   cat conftest.err >&5
27416   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27417   (exit $ac_status); } && {
27418          test -z "$ac_c_werror_flag" ||
27419          test ! -s conftest.err
27420        } && test -s conftest.$ac_objext; then
27421   ac_hi=$ac_mid
27422 else
27423   $as_echo "$as_me: failed program was:" >&5
27424 sed 's/^/| /' conftest.$ac_ext >&5
27425
27426         ac_lo=`expr '(' $ac_mid ')' + 1`
27427 fi
27428
27429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27430 done
27431 case $ac_lo in
27432 ?*) ac_cv_alignof_double=$ac_lo;;
27433 '') if test "$ac_cv_type_double" = yes; then
27434      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27436 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27437 See \`config.log' for more details." >&5
27438 $as_echo "$as_me: error: cannot compute alignment of double
27439 See \`config.log' for more details." >&2;}
27440    { (exit 77); exit 77; }; }; }
27441    else
27442      ac_cv_alignof_double=0
27443    fi ;;
27444 esac
27445 else
27446   cat >conftest.$ac_ext <<_ACEOF
27447 /* confdefs.h.  */
27448 _ACEOF
27449 cat confdefs.h >>conftest.$ac_ext
27450 cat >>conftest.$ac_ext <<_ACEOF
27451 /* end confdefs.h.  */
27452 $ac_includes_default
27453 #ifndef offsetof
27454 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27455 #endif
27456 typedef struct { char x; double y; } ac__type_alignof_;
27457 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27458 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27459 #include <stdio.h>
27460 #include <stdlib.h>
27461 int
27462 main ()
27463 {
27464
27465   FILE *f = fopen ("conftest.val", "w");
27466   if (! f)
27467     return 1;
27468   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27469     {
27470       long int i = longval ();
27471       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27472         return 1;
27473       fprintf (f, "%ld", i);
27474     }
27475   else
27476     {
27477       unsigned long int i = ulongval ();
27478       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27479         return 1;
27480       fprintf (f, "%lu", i);
27481     }
27482   /* Do not output a trailing newline, as this causes \r\n confusion
27483      on some platforms.  */
27484   return ferror (f) || fclose (f) != 0;
27485
27486   ;
27487   return 0;
27488 }
27489 _ACEOF
27490 rm -f conftest$ac_exeext
27491 if { (ac_try="$ac_link"
27492 case "(($ac_try" in
27493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27494   *) ac_try_echo=$ac_try;;
27495 esac
27496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27497 $as_echo "$ac_try_echo") >&5
27498   (eval "$ac_link") 2>&5
27499   ac_status=$?
27500   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27501   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27502   { (case "(($ac_try" in
27503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27504   *) ac_try_echo=$ac_try;;
27505 esac
27506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27507 $as_echo "$ac_try_echo") >&5
27508   (eval "$ac_try") 2>&5
27509   ac_status=$?
27510   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27511   (exit $ac_status); }; }; then
27512   ac_cv_alignof_double=`cat conftest.val`
27513 else
27514   $as_echo "$as_me: program exited with status $ac_status" >&5
27515 $as_echo "$as_me: failed program was:" >&5
27516 sed 's/^/| /' conftest.$ac_ext >&5
27517
27518 ( exit $ac_status )
27519 if test "$ac_cv_type_double" = yes; then
27520      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27522 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27523 See \`config.log' for more details." >&5
27524 $as_echo "$as_me: error: cannot compute alignment of double
27525 See \`config.log' for more details." >&2;}
27526    { (exit 77); exit 77; }; }; }
27527    else
27528      ac_cv_alignof_double=0
27529    fi
27530 fi
27531 rm -rf conftest.dSYM
27532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27533 fi
27534 rm -f conftest.val
27535 fi
27536 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
27537 $as_echo "$ac_cv_alignof_double" >&6; }
27538
27539
27540
27541 cat >>confdefs.h <<_ACEOF
27542 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
27543 _ACEOF
27544
27545
27546
27547 # Compute maximum alignment of any basic type.
27548 # We assume long's alignment is at least as strong as char, short, or int;
27549 # but we must check long long (if it exists) and double.
27550
27551 MAX_ALIGNOF=$ac_cv_alignof_long
27552 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
27553   MAX_ALIGNOF=$ac_cv_alignof_double
27554 fi
27555 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
27556   MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
27557 fi
27558
27559 cat >>confdefs.h <<_ACEOF
27560 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
27561 _ACEOF
27562
27563
27564
27565 # Some platforms predefine the types int8, int16, etc.  Only check
27566 # a (hopefully) representative subset.
27567 { $as_echo "$as_me:$LINENO: checking for int8" >&5
27568 $as_echo_n "checking for int8... " >&6; }
27569 if test "${ac_cv_type_int8+set}" = set; then
27570   $as_echo_n "(cached) " >&6
27571 else
27572   ac_cv_type_int8=no
27573 cat >conftest.$ac_ext <<_ACEOF
27574 /* confdefs.h.  */
27575 _ACEOF
27576 cat confdefs.h >>conftest.$ac_ext
27577 cat >>conftest.$ac_ext <<_ACEOF
27578 /* end confdefs.h.  */
27579 #include <stdio.h>
27580 #ifdef HAVE_SUPPORTDEFS_H
27581 #include <SupportDefs.h>
27582 #endif
27583
27584 int
27585 main ()
27586 {
27587 if (sizeof (int8))
27588        return 0;
27589   ;
27590   return 0;
27591 }
27592 _ACEOF
27593 rm -f conftest.$ac_objext
27594 if { (ac_try="$ac_compile"
27595 case "(($ac_try" in
27596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27597   *) ac_try_echo=$ac_try;;
27598 esac
27599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27600 $as_echo "$ac_try_echo") >&5
27601   (eval "$ac_compile") 2>conftest.er1
27602   ac_status=$?
27603   grep -v '^ *+' conftest.er1 >conftest.err
27604   rm -f conftest.er1
27605   cat conftest.err >&5
27606   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27607   (exit $ac_status); } && {
27608          test -z "$ac_c_werror_flag" ||
27609          test ! -s conftest.err
27610        } && test -s conftest.$ac_objext; then
27611   cat >conftest.$ac_ext <<_ACEOF
27612 /* confdefs.h.  */
27613 _ACEOF
27614 cat confdefs.h >>conftest.$ac_ext
27615 cat >>conftest.$ac_ext <<_ACEOF
27616 /* end confdefs.h.  */
27617 #include <stdio.h>
27618 #ifdef HAVE_SUPPORTDEFS_H
27619 #include <SupportDefs.h>
27620 #endif
27621
27622 int
27623 main ()
27624 {
27625 if (sizeof ((int8)))
27626           return 0;
27627   ;
27628   return 0;
27629 }
27630 _ACEOF
27631 rm -f conftest.$ac_objext
27632 if { (ac_try="$ac_compile"
27633 case "(($ac_try" in
27634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27635   *) ac_try_echo=$ac_try;;
27636 esac
27637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27638 $as_echo "$ac_try_echo") >&5
27639   (eval "$ac_compile") 2>conftest.er1
27640   ac_status=$?
27641   grep -v '^ *+' conftest.er1 >conftest.err
27642   rm -f conftest.er1
27643   cat conftest.err >&5
27644   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27645   (exit $ac_status); } && {
27646          test -z "$ac_c_werror_flag" ||
27647          test ! -s conftest.err
27648        } && test -s conftest.$ac_objext; then
27649   :
27650 else
27651   $as_echo "$as_me: failed program was:" >&5
27652 sed 's/^/| /' conftest.$ac_ext >&5
27653
27654         ac_cv_type_int8=yes
27655 fi
27656
27657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27658 else
27659   $as_echo "$as_me: failed program was:" >&5
27660 sed 's/^/| /' conftest.$ac_ext >&5
27661
27662
27663 fi
27664
27665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27666 fi
27667 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
27668 $as_echo "$ac_cv_type_int8" >&6; }
27669 if test "x$ac_cv_type_int8" = x""yes; then
27670
27671 cat >>confdefs.h <<_ACEOF
27672 #define HAVE_INT8 1
27673 _ACEOF
27674
27675
27676 fi
27677 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
27678 $as_echo_n "checking for uint8... " >&6; }
27679 if test "${ac_cv_type_uint8+set}" = set; then
27680   $as_echo_n "(cached) " >&6
27681 else
27682   ac_cv_type_uint8=no
27683 cat >conftest.$ac_ext <<_ACEOF
27684 /* confdefs.h.  */
27685 _ACEOF
27686 cat confdefs.h >>conftest.$ac_ext
27687 cat >>conftest.$ac_ext <<_ACEOF
27688 /* end confdefs.h.  */
27689 #include <stdio.h>
27690 #ifdef HAVE_SUPPORTDEFS_H
27691 #include <SupportDefs.h>
27692 #endif
27693
27694 int
27695 main ()
27696 {
27697 if (sizeof (uint8))
27698        return 0;
27699   ;
27700   return 0;
27701 }
27702 _ACEOF
27703 rm -f conftest.$ac_objext
27704 if { (ac_try="$ac_compile"
27705 case "(($ac_try" in
27706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27707   *) ac_try_echo=$ac_try;;
27708 esac
27709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27710 $as_echo "$ac_try_echo") >&5
27711   (eval "$ac_compile") 2>conftest.er1
27712   ac_status=$?
27713   grep -v '^ *+' conftest.er1 >conftest.err
27714   rm -f conftest.er1
27715   cat conftest.err >&5
27716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27717   (exit $ac_status); } && {
27718          test -z "$ac_c_werror_flag" ||
27719          test ! -s conftest.err
27720        } && test -s conftest.$ac_objext; then
27721   cat >conftest.$ac_ext <<_ACEOF
27722 /* confdefs.h.  */
27723 _ACEOF
27724 cat confdefs.h >>conftest.$ac_ext
27725 cat >>conftest.$ac_ext <<_ACEOF
27726 /* end confdefs.h.  */
27727 #include <stdio.h>
27728 #ifdef HAVE_SUPPORTDEFS_H
27729 #include <SupportDefs.h>
27730 #endif
27731
27732 int
27733 main ()
27734 {
27735 if (sizeof ((uint8)))
27736           return 0;
27737   ;
27738   return 0;
27739 }
27740 _ACEOF
27741 rm -f conftest.$ac_objext
27742 if { (ac_try="$ac_compile"
27743 case "(($ac_try" in
27744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27745   *) ac_try_echo=$ac_try;;
27746 esac
27747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27748 $as_echo "$ac_try_echo") >&5
27749   (eval "$ac_compile") 2>conftest.er1
27750   ac_status=$?
27751   grep -v '^ *+' conftest.er1 >conftest.err
27752   rm -f conftest.er1
27753   cat conftest.err >&5
27754   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27755   (exit $ac_status); } && {
27756          test -z "$ac_c_werror_flag" ||
27757          test ! -s conftest.err
27758        } && test -s conftest.$ac_objext; then
27759   :
27760 else
27761   $as_echo "$as_me: failed program was:" >&5
27762 sed 's/^/| /' conftest.$ac_ext >&5
27763
27764         ac_cv_type_uint8=yes
27765 fi
27766
27767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27768 else
27769   $as_echo "$as_me: failed program was:" >&5
27770 sed 's/^/| /' conftest.$ac_ext >&5
27771
27772
27773 fi
27774
27775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27776 fi
27777 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
27778 $as_echo "$ac_cv_type_uint8" >&6; }
27779 if test "x$ac_cv_type_uint8" = x""yes; then
27780
27781 cat >>confdefs.h <<_ACEOF
27782 #define HAVE_UINT8 1
27783 _ACEOF
27784
27785
27786 fi
27787 { $as_echo "$as_me:$LINENO: checking for int64" >&5
27788 $as_echo_n "checking for int64... " >&6; }
27789 if test "${ac_cv_type_int64+set}" = set; then
27790   $as_echo_n "(cached) " >&6
27791 else
27792   ac_cv_type_int64=no
27793 cat >conftest.$ac_ext <<_ACEOF
27794 /* confdefs.h.  */
27795 _ACEOF
27796 cat confdefs.h >>conftest.$ac_ext
27797 cat >>conftest.$ac_ext <<_ACEOF
27798 /* end confdefs.h.  */
27799 #include <stdio.h>
27800 #ifdef HAVE_SUPPORTDEFS_H
27801 #include <SupportDefs.h>
27802 #endif
27803
27804 int
27805 main ()
27806 {
27807 if (sizeof (int64))
27808        return 0;
27809   ;
27810   return 0;
27811 }
27812 _ACEOF
27813 rm -f conftest.$ac_objext
27814 if { (ac_try="$ac_compile"
27815 case "(($ac_try" in
27816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27817   *) ac_try_echo=$ac_try;;
27818 esac
27819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27820 $as_echo "$ac_try_echo") >&5
27821   (eval "$ac_compile") 2>conftest.er1
27822   ac_status=$?
27823   grep -v '^ *+' conftest.er1 >conftest.err
27824   rm -f conftest.er1
27825   cat conftest.err >&5
27826   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27827   (exit $ac_status); } && {
27828          test -z "$ac_c_werror_flag" ||
27829          test ! -s conftest.err
27830        } && test -s conftest.$ac_objext; then
27831   cat >conftest.$ac_ext <<_ACEOF
27832 /* confdefs.h.  */
27833 _ACEOF
27834 cat confdefs.h >>conftest.$ac_ext
27835 cat >>conftest.$ac_ext <<_ACEOF
27836 /* end confdefs.h.  */
27837 #include <stdio.h>
27838 #ifdef HAVE_SUPPORTDEFS_H
27839 #include <SupportDefs.h>
27840 #endif
27841
27842 int
27843 main ()
27844 {
27845 if (sizeof ((int64)))
27846           return 0;
27847   ;
27848   return 0;
27849 }
27850 _ACEOF
27851 rm -f conftest.$ac_objext
27852 if { (ac_try="$ac_compile"
27853 case "(($ac_try" in
27854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27855   *) ac_try_echo=$ac_try;;
27856 esac
27857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27858 $as_echo "$ac_try_echo") >&5
27859   (eval "$ac_compile") 2>conftest.er1
27860   ac_status=$?
27861   grep -v '^ *+' conftest.er1 >conftest.err
27862   rm -f conftest.er1
27863   cat conftest.err >&5
27864   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27865   (exit $ac_status); } && {
27866          test -z "$ac_c_werror_flag" ||
27867          test ! -s conftest.err
27868        } && test -s conftest.$ac_objext; then
27869   :
27870 else
27871   $as_echo "$as_me: failed program was:" >&5
27872 sed 's/^/| /' conftest.$ac_ext >&5
27873
27874         ac_cv_type_int64=yes
27875 fi
27876
27877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27878 else
27879   $as_echo "$as_me: failed program was:" >&5
27880 sed 's/^/| /' conftest.$ac_ext >&5
27881
27882
27883 fi
27884
27885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27886 fi
27887 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
27888 $as_echo "$ac_cv_type_int64" >&6; }
27889 if test "x$ac_cv_type_int64" = x""yes; then
27890
27891 cat >>confdefs.h <<_ACEOF
27892 #define HAVE_INT64 1
27893 _ACEOF
27894
27895
27896 fi
27897 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
27898 $as_echo_n "checking for uint64... " >&6; }
27899 if test "${ac_cv_type_uint64+set}" = set; then
27900   $as_echo_n "(cached) " >&6
27901 else
27902   ac_cv_type_uint64=no
27903 cat >conftest.$ac_ext <<_ACEOF
27904 /* confdefs.h.  */
27905 _ACEOF
27906 cat confdefs.h >>conftest.$ac_ext
27907 cat >>conftest.$ac_ext <<_ACEOF
27908 /* end confdefs.h.  */
27909 #include <stdio.h>
27910 #ifdef HAVE_SUPPORTDEFS_H
27911 #include <SupportDefs.h>
27912 #endif
27913
27914 int
27915 main ()
27916 {
27917 if (sizeof (uint64))
27918        return 0;
27919   ;
27920   return 0;
27921 }
27922 _ACEOF
27923 rm -f conftest.$ac_objext
27924 if { (ac_try="$ac_compile"
27925 case "(($ac_try" in
27926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27927   *) ac_try_echo=$ac_try;;
27928 esac
27929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27930 $as_echo "$ac_try_echo") >&5
27931   (eval "$ac_compile") 2>conftest.er1
27932   ac_status=$?
27933   grep -v '^ *+' conftest.er1 >conftest.err
27934   rm -f conftest.er1
27935   cat conftest.err >&5
27936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27937   (exit $ac_status); } && {
27938          test -z "$ac_c_werror_flag" ||
27939          test ! -s conftest.err
27940        } && test -s conftest.$ac_objext; then
27941   cat >conftest.$ac_ext <<_ACEOF
27942 /* confdefs.h.  */
27943 _ACEOF
27944 cat confdefs.h >>conftest.$ac_ext
27945 cat >>conftest.$ac_ext <<_ACEOF
27946 /* end confdefs.h.  */
27947 #include <stdio.h>
27948 #ifdef HAVE_SUPPORTDEFS_H
27949 #include <SupportDefs.h>
27950 #endif
27951
27952 int
27953 main ()
27954 {
27955 if (sizeof ((uint64)))
27956           return 0;
27957   ;
27958   return 0;
27959 }
27960 _ACEOF
27961 rm -f conftest.$ac_objext
27962 if { (ac_try="$ac_compile"
27963 case "(($ac_try" in
27964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27965   *) ac_try_echo=$ac_try;;
27966 esac
27967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27968 $as_echo "$ac_try_echo") >&5
27969   (eval "$ac_compile") 2>conftest.er1
27970   ac_status=$?
27971   grep -v '^ *+' conftest.er1 >conftest.err
27972   rm -f conftest.er1
27973   cat conftest.err >&5
27974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27975   (exit $ac_status); } && {
27976          test -z "$ac_c_werror_flag" ||
27977          test ! -s conftest.err
27978        } && test -s conftest.$ac_objext; then
27979   :
27980 else
27981   $as_echo "$as_me: failed program was:" >&5
27982 sed 's/^/| /' conftest.$ac_ext >&5
27983
27984         ac_cv_type_uint64=yes
27985 fi
27986
27987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27988 else
27989   $as_echo "$as_me: failed program was:" >&5
27990 sed 's/^/| /' conftest.$ac_ext >&5
27991
27992
27993 fi
27994
27995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27996 fi
27997 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
27998 $as_echo "$ac_cv_type_uint64" >&6; }
27999 if test "x$ac_cv_type_uint64" = x""yes; then
28000
28001 cat >>confdefs.h <<_ACEOF
28002 #define HAVE_UINT64 1
28003 _ACEOF
28004
28005
28006 fi
28007
28008
28009 # We also check for sig_atomic_t, which *should* be defined per ANSI
28010 # C, but is missing on some old platforms.
28011 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
28012 $as_echo_n "checking for sig_atomic_t... " >&6; }
28013 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
28014   $as_echo_n "(cached) " >&6
28015 else
28016   ac_cv_type_sig_atomic_t=no
28017 cat >conftest.$ac_ext <<_ACEOF
28018 /* confdefs.h.  */
28019 _ACEOF
28020 cat confdefs.h >>conftest.$ac_ext
28021 cat >>conftest.$ac_ext <<_ACEOF
28022 /* end confdefs.h.  */
28023 #include <signal.h>
28024
28025 int
28026 main ()
28027 {
28028 if (sizeof (sig_atomic_t))
28029        return 0;
28030   ;
28031   return 0;
28032 }
28033 _ACEOF
28034 rm -f conftest.$ac_objext
28035 if { (ac_try="$ac_compile"
28036 case "(($ac_try" in
28037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28038   *) ac_try_echo=$ac_try;;
28039 esac
28040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28041 $as_echo "$ac_try_echo") >&5
28042   (eval "$ac_compile") 2>conftest.er1
28043   ac_status=$?
28044   grep -v '^ *+' conftest.er1 >conftest.err
28045   rm -f conftest.er1
28046   cat conftest.err >&5
28047   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28048   (exit $ac_status); } && {
28049          test -z "$ac_c_werror_flag" ||
28050          test ! -s conftest.err
28051        } && test -s conftest.$ac_objext; then
28052   cat >conftest.$ac_ext <<_ACEOF
28053 /* confdefs.h.  */
28054 _ACEOF
28055 cat confdefs.h >>conftest.$ac_ext
28056 cat >>conftest.$ac_ext <<_ACEOF
28057 /* end confdefs.h.  */
28058 #include <signal.h>
28059
28060 int
28061 main ()
28062 {
28063 if (sizeof ((sig_atomic_t)))
28064           return 0;
28065   ;
28066   return 0;
28067 }
28068 _ACEOF
28069 rm -f conftest.$ac_objext
28070 if { (ac_try="$ac_compile"
28071 case "(($ac_try" in
28072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28073   *) ac_try_echo=$ac_try;;
28074 esac
28075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28076 $as_echo "$ac_try_echo") >&5
28077   (eval "$ac_compile") 2>conftest.er1
28078   ac_status=$?
28079   grep -v '^ *+' conftest.er1 >conftest.err
28080   rm -f conftest.er1
28081   cat conftest.err >&5
28082   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28083   (exit $ac_status); } && {
28084          test -z "$ac_c_werror_flag" ||
28085          test ! -s conftest.err
28086        } && test -s conftest.$ac_objext; then
28087   :
28088 else
28089   $as_echo "$as_me: failed program was:" >&5
28090 sed 's/^/| /' conftest.$ac_ext >&5
28091
28092         ac_cv_type_sig_atomic_t=yes
28093 fi
28094
28095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28096 else
28097   $as_echo "$as_me: failed program was:" >&5
28098 sed 's/^/| /' conftest.$ac_ext >&5
28099
28100
28101 fi
28102
28103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28104 fi
28105 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
28106 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
28107 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
28108
28109 cat >>confdefs.h <<_ACEOF
28110 #define HAVE_SIG_ATOMIC_T 1
28111 _ACEOF
28112
28113
28114 fi
28115
28116
28117
28118 if test "$PORTNAME" != "win32"
28119 then
28120 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
28121 $as_echo_n "checking for POSIX signal interface... " >&6; }
28122 if test "${pgac_cv_func_posix_signals+set}" = set; then
28123   $as_echo_n "(cached) " >&6
28124 else
28125   cat >conftest.$ac_ext <<_ACEOF
28126 /* confdefs.h.  */
28127 _ACEOF
28128 cat confdefs.h >>conftest.$ac_ext
28129 cat >>conftest.$ac_ext <<_ACEOF
28130 /* end confdefs.h.  */
28131 #include <signal.h>
28132
28133 int
28134 main ()
28135 {
28136 struct sigaction act, oact;
28137 sigemptyset(&act.sa_mask);
28138 act.sa_flags = SA_RESTART;
28139 sigaction(0, &act, &oact);
28140   ;
28141   return 0;
28142 }
28143 _ACEOF
28144 rm -f conftest.$ac_objext conftest$ac_exeext
28145 if { (ac_try="$ac_link"
28146 case "(($ac_try" in
28147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28148   *) ac_try_echo=$ac_try;;
28149 esac
28150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28151 $as_echo "$ac_try_echo") >&5
28152   (eval "$ac_link") 2>conftest.er1
28153   ac_status=$?
28154   grep -v '^ *+' conftest.er1 >conftest.err
28155   rm -f conftest.er1
28156   cat conftest.err >&5
28157   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28158   (exit $ac_status); } && {
28159          test -z "$ac_c_werror_flag" ||
28160          test ! -s conftest.err
28161        } && test -s conftest$ac_exeext && {
28162          test "$cross_compiling" = yes ||
28163          $as_test_x conftest$ac_exeext
28164        }; then
28165   pgac_cv_func_posix_signals=yes
28166 else
28167   $as_echo "$as_me: failed program was:" >&5
28168 sed 's/^/| /' conftest.$ac_ext >&5
28169
28170         pgac_cv_func_posix_signals=no
28171 fi
28172
28173 rm -rf conftest.dSYM
28174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28175       conftest$ac_exeext conftest.$ac_ext
28176 fi
28177 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
28178 $as_echo "$pgac_cv_func_posix_signals" >&6; }
28179 if test x"$pgac_cv_func_posix_signals" = xyes ; then
28180
28181 cat >>confdefs.h <<\_ACEOF
28182 #define HAVE_POSIX_SIGNALS /**/
28183 _ACEOF
28184
28185 fi
28186 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
28187
28188 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
28189   { { $as_echo "$as_me:$LINENO: error:
28190 Thread-safety requires POSIX signals, which are not supported by this
28191 operating system;  use --disable-thread-safety to disable thread safety." >&5
28192 $as_echo "$as_me: error:
28193 Thread-safety requires POSIX signals, which are not supported by this
28194 operating system;  use --disable-thread-safety to disable thread safety." >&2;}
28195    { (exit 1); exit 1; }; }
28196 fi
28197 fi
28198
28199 # SunOS doesn't handle negative byte comparisons properly with +/- return
28200 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
28201 $as_echo_n "checking for working memcmp... " >&6; }
28202 if test "${ac_cv_func_memcmp_working+set}" = set; then
28203   $as_echo_n "(cached) " >&6
28204 else
28205   if test "$cross_compiling" = yes; then
28206   ac_cv_func_memcmp_working=no
28207 else
28208   cat >conftest.$ac_ext <<_ACEOF
28209 /* confdefs.h.  */
28210 _ACEOF
28211 cat confdefs.h >>conftest.$ac_ext
28212 cat >>conftest.$ac_ext <<_ACEOF
28213 /* end confdefs.h.  */
28214 $ac_includes_default
28215 int
28216 main ()
28217 {
28218
28219   /* Some versions of memcmp are not 8-bit clean.  */
28220   char c0 = '\100', c1 = '\200', c2 = '\201';
28221   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
28222     return 1;
28223
28224   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
28225      or more and with at least one buffer not starting on a 4-byte boundary.
28226      William Lewis provided this test program.   */
28227   {
28228     char foo[21];
28229     char bar[21];
28230     int i;
28231     for (i = 0; i < 4; i++)
28232       {
28233         char *a = foo + i;
28234         char *b = bar + i;
28235         strcpy (a, "--------01111111");
28236         strcpy (b, "--------10000000");
28237         if (memcmp (a, b, 16) >= 0)
28238           return 1;
28239       }
28240     return 0;
28241   }
28242
28243   ;
28244   return 0;
28245 }
28246 _ACEOF
28247 rm -f conftest$ac_exeext
28248 if { (ac_try="$ac_link"
28249 case "(($ac_try" in
28250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28251   *) ac_try_echo=$ac_try;;
28252 esac
28253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28254 $as_echo "$ac_try_echo") >&5
28255   (eval "$ac_link") 2>&5
28256   ac_status=$?
28257   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28259   { (case "(($ac_try" in
28260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28261   *) ac_try_echo=$ac_try;;
28262 esac
28263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28264 $as_echo "$ac_try_echo") >&5
28265   (eval "$ac_try") 2>&5
28266   ac_status=$?
28267   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28268   (exit $ac_status); }; }; then
28269   ac_cv_func_memcmp_working=yes
28270 else
28271   $as_echo "$as_me: program exited with status $ac_status" >&5
28272 $as_echo "$as_me: failed program was:" >&5
28273 sed 's/^/| /' conftest.$ac_ext >&5
28274
28275 ( exit $ac_status )
28276 ac_cv_func_memcmp_working=no
28277 fi
28278 rm -rf conftest.dSYM
28279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28280 fi
28281
28282
28283 fi
28284 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
28285 $as_echo "$ac_cv_func_memcmp_working" >&6; }
28286 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
28287   *" memcmp.$ac_objext "* ) ;;
28288   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
28289  ;;
28290 esac
28291
28292
28293
28294
28295 # Select semaphore implementation type.
28296 if test "$PORTNAME" != "win32"; then
28297   if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
28298
28299 cat >>confdefs.h <<\_ACEOF
28300 #define USE_NAMED_POSIX_SEMAPHORES 1
28301 _ACEOF
28302
28303     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28304   else
28305     if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
28306
28307 cat >>confdefs.h <<\_ACEOF
28308 #define USE_UNNAMED_POSIX_SEMAPHORES 1
28309 _ACEOF
28310
28311       SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28312     else
28313
28314 cat >>confdefs.h <<\_ACEOF
28315 #define USE_SYSV_SEMAPHORES 1
28316 _ACEOF
28317
28318       SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
28319     fi
28320   fi
28321 else
28322
28323 cat >>confdefs.h <<\_ACEOF
28324 #define USE_WIN32_SEMAPHORES 1
28325 _ACEOF
28326
28327   SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
28328 fi
28329
28330
28331 # Select shared-memory implementation type.
28332 if test "$PORTNAME" != "win32"; then
28333
28334 cat >>confdefs.h <<\_ACEOF
28335 #define USE_SYSV_SHARED_MEMORY 1
28336 _ACEOF
28337
28338   SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
28339 else
28340
28341 cat >>confdefs.h <<\_ACEOF
28342 #define USE_WIN32_SHARED_MEMORY 1
28343 _ACEOF
28344
28345   SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
28346 fi
28347
28348 # Select latch implementation type.
28349 if test "$PORTNAME" != "win32"; then
28350   LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
28351 else
28352   LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
28353 fi
28354
28355 # If not set in template file, set bytes to use libc memset()
28356 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
28357   MEMSET_LOOP_LIMIT=1024
28358 fi
28359
28360 cat >>confdefs.h <<_ACEOF
28361 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
28362 _ACEOF
28363
28364
28365
28366 if test "$enable_nls" = yes ; then
28367
28368   { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
28369 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
28370 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28371   $as_echo_n "(cached) " >&6
28372 else
28373   ac_func_search_save_LIBS=$LIBS
28374 cat >conftest.$ac_ext <<_ACEOF
28375 /* confdefs.h.  */
28376 _ACEOF
28377 cat confdefs.h >>conftest.$ac_ext
28378 cat >>conftest.$ac_ext <<_ACEOF
28379 /* end confdefs.h.  */
28380
28381 /* Override any GCC internal prototype to avoid an error.
28382    Use char because int might match the return type of a GCC
28383    builtin and then its argument prototype would still apply.  */
28384 #ifdef __cplusplus
28385 extern "C"
28386 #endif
28387 char bind_textdomain_codeset ();
28388 int
28389 main ()
28390 {
28391 return bind_textdomain_codeset ();
28392   ;
28393   return 0;
28394 }
28395 _ACEOF
28396 for ac_lib in '' intl; do
28397   if test -z "$ac_lib"; then
28398     ac_res="none required"
28399   else
28400     ac_res=-l$ac_lib
28401     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28402   fi
28403   rm -f conftest.$ac_objext conftest$ac_exeext
28404 if { (ac_try="$ac_link"
28405 case "(($ac_try" in
28406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28407   *) ac_try_echo=$ac_try;;
28408 esac
28409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28410 $as_echo "$ac_try_echo") >&5
28411   (eval "$ac_link") 2>conftest.er1
28412   ac_status=$?
28413   grep -v '^ *+' conftest.er1 >conftest.err
28414   rm -f conftest.er1
28415   cat conftest.err >&5
28416   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28417   (exit $ac_status); } && {
28418          test -z "$ac_c_werror_flag" ||
28419          test ! -s conftest.err
28420        } && test -s conftest$ac_exeext && {
28421          test "$cross_compiling" = yes ||
28422          $as_test_x conftest$ac_exeext
28423        }; then
28424   ac_cv_search_bind_textdomain_codeset=$ac_res
28425 else
28426   $as_echo "$as_me: failed program was:" >&5
28427 sed 's/^/| /' conftest.$ac_ext >&5
28428
28429
28430 fi
28431
28432 rm -rf conftest.dSYM
28433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28434       conftest$ac_exeext
28435   if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28436   break
28437 fi
28438 done
28439 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28440   :
28441 else
28442   ac_cv_search_bind_textdomain_codeset=no
28443 fi
28444 rm conftest.$ac_ext
28445 LIBS=$ac_func_search_save_LIBS
28446 fi
28447 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
28448 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
28449 ac_res=$ac_cv_search_bind_textdomain_codeset
28450 if test "$ac_res" != no; then
28451   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28452
28453 else
28454   { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
28455 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
28456    { (exit 1); exit 1; }; }
28457 fi
28458
28459   if test "${ac_cv_header_libintl_h+set}" = set; then
28460   { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28461 $as_echo_n "checking for libintl.h... " >&6; }
28462 if test "${ac_cv_header_libintl_h+set}" = set; then
28463   $as_echo_n "(cached) " >&6
28464 fi
28465 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28466 $as_echo "$ac_cv_header_libintl_h" >&6; }
28467 else
28468   # Is the header compilable?
28469 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
28470 $as_echo_n "checking libintl.h usability... " >&6; }
28471 cat >conftest.$ac_ext <<_ACEOF
28472 /* confdefs.h.  */
28473 _ACEOF
28474 cat confdefs.h >>conftest.$ac_ext
28475 cat >>conftest.$ac_ext <<_ACEOF
28476 /* end confdefs.h.  */
28477 $ac_includes_default
28478 #include <libintl.h>
28479 _ACEOF
28480 rm -f conftest.$ac_objext
28481 if { (ac_try="$ac_compile"
28482 case "(($ac_try" in
28483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28484   *) ac_try_echo=$ac_try;;
28485 esac
28486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28487 $as_echo "$ac_try_echo") >&5
28488   (eval "$ac_compile") 2>conftest.er1
28489   ac_status=$?
28490   grep -v '^ *+' conftest.er1 >conftest.err
28491   rm -f conftest.er1
28492   cat conftest.err >&5
28493   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28494   (exit $ac_status); } && {
28495          test -z "$ac_c_werror_flag" ||
28496          test ! -s conftest.err
28497        } && test -s conftest.$ac_objext; then
28498   ac_header_compiler=yes
28499 else
28500   $as_echo "$as_me: failed program was:" >&5
28501 sed 's/^/| /' conftest.$ac_ext >&5
28502
28503         ac_header_compiler=no
28504 fi
28505
28506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28507 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28508 $as_echo "$ac_header_compiler" >&6; }
28509
28510 # Is the header present?
28511 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
28512 $as_echo_n "checking libintl.h presence... " >&6; }
28513 cat >conftest.$ac_ext <<_ACEOF
28514 /* confdefs.h.  */
28515 _ACEOF
28516 cat confdefs.h >>conftest.$ac_ext
28517 cat >>conftest.$ac_ext <<_ACEOF
28518 /* end confdefs.h.  */
28519 #include <libintl.h>
28520 _ACEOF
28521 if { (ac_try="$ac_cpp conftest.$ac_ext"
28522 case "(($ac_try" in
28523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28524   *) ac_try_echo=$ac_try;;
28525 esac
28526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28527 $as_echo "$ac_try_echo") >&5
28528   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28529   ac_status=$?
28530   grep -v '^ *+' conftest.er1 >conftest.err
28531   rm -f conftest.er1
28532   cat conftest.err >&5
28533   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28534   (exit $ac_status); } >/dev/null && {
28535          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28536          test ! -s conftest.err
28537        }; then
28538   ac_header_preproc=yes
28539 else
28540   $as_echo "$as_me: failed program was:" >&5
28541 sed 's/^/| /' conftest.$ac_ext >&5
28542
28543   ac_header_preproc=no
28544 fi
28545
28546 rm -f conftest.err conftest.$ac_ext
28547 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28548 $as_echo "$ac_header_preproc" >&6; }
28549
28550 # So?  What about this header?
28551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28552   yes:no: )
28553     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28554 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28555     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
28556 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
28557     ac_header_preproc=yes
28558     ;;
28559   no:yes:* )
28560     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
28561 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
28562     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
28563 $as_echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
28564     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
28565 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
28566     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
28567 $as_echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28568     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
28569 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
28570     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
28571 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
28572     ( cat <<\_ASBOX
28573 ## ---------------------------------------- ##
28574 ## Report this to pgsql-bugs@postgresql.org ##
28575 ## ---------------------------------------- ##
28576 _ASBOX
28577      ) | sed "s/^/$as_me: WARNING:     /" >&2
28578     ;;
28579 esac
28580 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28581 $as_echo_n "checking for libintl.h... " >&6; }
28582 if test "${ac_cv_header_libintl_h+set}" = set; then
28583   $as_echo_n "(cached) " >&6
28584 else
28585   ac_cv_header_libintl_h=$ac_header_preproc
28586 fi
28587 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28588 $as_echo "$ac_cv_header_libintl_h" >&6; }
28589
28590 fi
28591 if test "x$ac_cv_header_libintl_h" = x""yes; then
28592   :
28593 else
28594   { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
28595 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
28596    { (exit 1); exit 1; }; }
28597 fi
28598
28599
28600   for ac_prog in msgfmt
28601 do
28602   # Extract the first word of "$ac_prog", so it can be a program name with args.
28603 set dummy $ac_prog; ac_word=$2
28604 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28605 $as_echo_n "checking for $ac_word... " >&6; }
28606 if test "${ac_cv_prog_MSGFMT+set}" = set; then
28607   $as_echo_n "(cached) " >&6
28608 else
28609   if test -n "$MSGFMT"; then
28610   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
28611 else
28612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28613 for as_dir in $PATH
28614 do
28615   IFS=$as_save_IFS
28616   test -z "$as_dir" && as_dir=.
28617   for ac_exec_ext in '' $ac_executable_extensions; do
28618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28619     ac_cv_prog_MSGFMT="$ac_prog"
28620     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28621     break 2
28622   fi
28623 done
28624 done
28625 IFS=$as_save_IFS
28626
28627 fi
28628 fi
28629 MSGFMT=$ac_cv_prog_MSGFMT
28630 if test -n "$MSGFMT"; then
28631   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
28632 $as_echo "$MSGFMT" >&6; }
28633 else
28634   { $as_echo "$as_me:$LINENO: result: no" >&5
28635 $as_echo "no" >&6; }
28636 fi
28637
28638
28639   test -n "$MSGFMT" && break
28640 done
28641
28642   if test -z "$MSGFMT"; then
28643     { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
28644 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
28645    { (exit 1); exit 1; }; }
28646   fi
28647   for ac_prog in msgmerge
28648 do
28649   # Extract the first word of "$ac_prog", so it can be a program name with args.
28650 set dummy $ac_prog; ac_word=$2
28651 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28652 $as_echo_n "checking for $ac_word... " >&6; }
28653 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
28654   $as_echo_n "(cached) " >&6
28655 else
28656   if test -n "$MSGMERGE"; then
28657   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
28658 else
28659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28660 for as_dir in $PATH
28661 do
28662   IFS=$as_save_IFS
28663   test -z "$as_dir" && as_dir=.
28664   for ac_exec_ext in '' $ac_executable_extensions; do
28665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28666     ac_cv_prog_MSGMERGE="$ac_prog"
28667     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28668     break 2
28669   fi
28670 done
28671 done
28672 IFS=$as_save_IFS
28673
28674 fi
28675 fi
28676 MSGMERGE=$ac_cv_prog_MSGMERGE
28677 if test -n "$MSGMERGE"; then
28678   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
28679 $as_echo "$MSGMERGE" >&6; }
28680 else
28681   { $as_echo "$as_me:$LINENO: result: no" >&5
28682 $as_echo "no" >&6; }
28683 fi
28684
28685
28686   test -n "$MSGMERGE" && break
28687 done
28688
28689   for ac_prog in xgettext
28690 do
28691   # Extract the first word of "$ac_prog", so it can be a program name with args.
28692 set dummy $ac_prog; ac_word=$2
28693 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28694 $as_echo_n "checking for $ac_word... " >&6; }
28695 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
28696   $as_echo_n "(cached) " >&6
28697 else
28698   if test -n "$XGETTEXT"; then
28699   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
28700 else
28701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28702 for as_dir in $PATH
28703 do
28704   IFS=$as_save_IFS
28705   test -z "$as_dir" && as_dir=.
28706   for ac_exec_ext in '' $ac_executable_extensions; do
28707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28708     ac_cv_prog_XGETTEXT="$ac_prog"
28709     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28710     break 2
28711   fi
28712 done
28713 done
28714 IFS=$as_save_IFS
28715
28716 fi
28717 fi
28718 XGETTEXT=$ac_cv_prog_XGETTEXT
28719 if test -n "$XGETTEXT"; then
28720   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
28721 $as_echo "$XGETTEXT" >&6; }
28722 else
28723   { $as_echo "$as_me:$LINENO: result: no" >&5
28724 $as_echo "no" >&6; }
28725 fi
28726
28727
28728   test -n "$XGETTEXT" && break
28729 done
28730
28731
28732 fi
28733
28734 # Check for Tcl configuration script tclConfig.sh
28735 if test "$with_tcl" = yes; then
28736     for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
28737 do
28738   # Extract the first word of "$ac_prog", so it can be a program name with args.
28739 set dummy $ac_prog; ac_word=$2
28740 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28741 $as_echo_n "checking for $ac_word... " >&6; }
28742 if test "${ac_cv_path_TCLSH+set}" = set; then
28743   $as_echo_n "(cached) " >&6
28744 else
28745   case $TCLSH in
28746   [\\/]* | ?:[\\/]*)
28747   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
28748   ;;
28749   *)
28750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28751 for as_dir in $PATH
28752 do
28753   IFS=$as_save_IFS
28754   test -z "$as_dir" && as_dir=.
28755   for ac_exec_ext in '' $ac_executable_extensions; do
28756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28757     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
28758     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28759     break 2
28760   fi
28761 done
28762 done
28763 IFS=$as_save_IFS
28764
28765   ;;
28766 esac
28767 fi
28768 TCLSH=$ac_cv_path_TCLSH
28769 if test -n "$TCLSH"; then
28770   { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
28771 $as_echo "$TCLSH" >&6; }
28772 else
28773   { $as_echo "$as_me:$LINENO: result: no" >&5
28774 $as_echo "no" >&6; }
28775 fi
28776
28777
28778   test -n "$TCLSH" && break
28779 done
28780
28781 if test x"$TCLSH" = x""; then
28782   { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
28783 $as_echo "$as_me: error: Tcl shell not found" >&2;}
28784    { (exit 1); exit 1; }; }
28785 fi
28786
28787 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
28788 $as_echo_n "checking for tclConfig.sh... " >&6; }
28789 # Let user override test
28790 if test -z "$TCL_CONFIG_SH"; then
28791     pgac_test_dirs="$with_tclconfig"
28792
28793     set X $pgac_test_dirs; shift
28794     if test $# -eq 0; then
28795         test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
28796 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
28797    { (exit 1); exit 1; }; }
28798         set X `echo 'puts $auto_path' | $TCLSH`; shift
28799     fi
28800
28801     for pgac_dir do
28802         if test -r "$pgac_dir/tclConfig.sh"; then
28803             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
28804             break
28805         fi
28806     done
28807 fi
28808
28809 if test -z "$TCL_CONFIG_SH"; then
28810     { $as_echo "$as_me:$LINENO: result: no" >&5
28811 $as_echo "no" >&6; }
28812     { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
28813 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
28814    { (exit 1); exit 1; }; }
28815 else
28816     { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
28817 $as_echo "$TCL_CONFIG_SH" >&6; }
28818 fi
28819
28820
28821
28822     . "$TCL_CONFIG_SH"
28823 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
28824 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
28825 eval TCL_LIBS=\"$TCL_LIBS\"
28826 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
28827 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
28828
28829         # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
28830     ac_save_CPPFLAGS=$CPPFLAGS
28831     CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
28832     if test "${ac_cv_header_tcl_h+set}" = set; then
28833   { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28834 $as_echo_n "checking for tcl.h... " >&6; }
28835 if test "${ac_cv_header_tcl_h+set}" = set; then
28836   $as_echo_n "(cached) " >&6
28837 fi
28838 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28839 $as_echo "$ac_cv_header_tcl_h" >&6; }
28840 else
28841   # Is the header compilable?
28842 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
28843 $as_echo_n "checking tcl.h usability... " >&6; }
28844 cat >conftest.$ac_ext <<_ACEOF
28845 /* confdefs.h.  */
28846 _ACEOF
28847 cat confdefs.h >>conftest.$ac_ext
28848 cat >>conftest.$ac_ext <<_ACEOF
28849 /* end confdefs.h.  */
28850 $ac_includes_default
28851 #include <tcl.h>
28852 _ACEOF
28853 rm -f conftest.$ac_objext
28854 if { (ac_try="$ac_compile"
28855 case "(($ac_try" in
28856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28857   *) ac_try_echo=$ac_try;;
28858 esac
28859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28860 $as_echo "$ac_try_echo") >&5
28861   (eval "$ac_compile") 2>conftest.er1
28862   ac_status=$?
28863   grep -v '^ *+' conftest.er1 >conftest.err
28864   rm -f conftest.er1
28865   cat conftest.err >&5
28866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28867   (exit $ac_status); } && {
28868          test -z "$ac_c_werror_flag" ||
28869          test ! -s conftest.err
28870        } && test -s conftest.$ac_objext; then
28871   ac_header_compiler=yes
28872 else
28873   $as_echo "$as_me: failed program was:" >&5
28874 sed 's/^/| /' conftest.$ac_ext >&5
28875
28876         ac_header_compiler=no
28877 fi
28878
28879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28880 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28881 $as_echo "$ac_header_compiler" >&6; }
28882
28883 # Is the header present?
28884 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
28885 $as_echo_n "checking tcl.h presence... " >&6; }
28886 cat >conftest.$ac_ext <<_ACEOF
28887 /* confdefs.h.  */
28888 _ACEOF
28889 cat confdefs.h >>conftest.$ac_ext
28890 cat >>conftest.$ac_ext <<_ACEOF
28891 /* end confdefs.h.  */
28892 #include <tcl.h>
28893 _ACEOF
28894 if { (ac_try="$ac_cpp conftest.$ac_ext"
28895 case "(($ac_try" in
28896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28897   *) ac_try_echo=$ac_try;;
28898 esac
28899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28900 $as_echo "$ac_try_echo") >&5
28901   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28902   ac_status=$?
28903   grep -v '^ *+' conftest.er1 >conftest.err
28904   rm -f conftest.er1
28905   cat conftest.err >&5
28906   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28907   (exit $ac_status); } >/dev/null && {
28908          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28909          test ! -s conftest.err
28910        }; then
28911   ac_header_preproc=yes
28912 else
28913   $as_echo "$as_me: failed program was:" >&5
28914 sed 's/^/| /' conftest.$ac_ext >&5
28915
28916   ac_header_preproc=no
28917 fi
28918
28919 rm -f conftest.err conftest.$ac_ext
28920 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28921 $as_echo "$ac_header_preproc" >&6; }
28922
28923 # So?  What about this header?
28924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28925   yes:no: )
28926     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28927 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28928     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
28929 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
28930     ac_header_preproc=yes
28931     ;;
28932   no:yes:* )
28933     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
28934 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
28935     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     check for missing prerequisite headers?" >&5
28936 $as_echo "$as_me: WARNING: tcl.h:     check for missing prerequisite headers?" >&2;}
28937     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
28938 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
28939     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
28940 $as_echo "$as_me: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28941     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
28942 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
28943     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
28944 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
28945     ( cat <<\_ASBOX
28946 ## ---------------------------------------- ##
28947 ## Report this to pgsql-bugs@postgresql.org ##
28948 ## ---------------------------------------- ##
28949 _ASBOX
28950      ) | sed "s/^/$as_me: WARNING:     /" >&2
28951     ;;
28952 esac
28953 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28954 $as_echo_n "checking for tcl.h... " >&6; }
28955 if test "${ac_cv_header_tcl_h+set}" = set; then
28956   $as_echo_n "(cached) " >&6
28957 else
28958   ac_cv_header_tcl_h=$ac_header_preproc
28959 fi
28960 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28961 $as_echo "$ac_cv_header_tcl_h" >&6; }
28962
28963 fi
28964 if test "x$ac_cv_header_tcl_h" = x""yes; then
28965   :
28966 else
28967   { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
28968 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
28969    { (exit 1); exit 1; }; }
28970 fi
28971
28972
28973     CPPFLAGS=$ac_save_CPPFLAGS
28974 fi
28975
28976 # check for <Python.h>
28977 if test "$with_python" = yes; then
28978   ac_save_CPPFLAGS=$CPPFLAGS
28979   CPPFLAGS="$python_includespec $CPPFLAGS"
28980   if test "${ac_cv_header_Python_h+set}" = set; then
28981   { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
28982 $as_echo_n "checking for Python.h... " >&6; }
28983 if test "${ac_cv_header_Python_h+set}" = set; then
28984   $as_echo_n "(cached) " >&6
28985 fi
28986 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
28987 $as_echo "$ac_cv_header_Python_h" >&6; }
28988 else
28989   # Is the header compilable?
28990 { $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
28991 $as_echo_n "checking Python.h usability... " >&6; }
28992 cat >conftest.$ac_ext <<_ACEOF
28993 /* confdefs.h.  */
28994 _ACEOF
28995 cat confdefs.h >>conftest.$ac_ext
28996 cat >>conftest.$ac_ext <<_ACEOF
28997 /* end confdefs.h.  */
28998 $ac_includes_default
28999 #include <Python.h>
29000 _ACEOF
29001 rm -f conftest.$ac_objext
29002 if { (ac_try="$ac_compile"
29003 case "(($ac_try" in
29004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29005   *) ac_try_echo=$ac_try;;
29006 esac
29007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29008 $as_echo "$ac_try_echo") >&5
29009   (eval "$ac_compile") 2>conftest.er1
29010   ac_status=$?
29011   grep -v '^ *+' conftest.er1 >conftest.err
29012   rm -f conftest.er1
29013   cat conftest.err >&5
29014   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29015   (exit $ac_status); } && {
29016          test -z "$ac_c_werror_flag" ||
29017          test ! -s conftest.err
29018        } && test -s conftest.$ac_objext; then
29019   ac_header_compiler=yes
29020 else
29021   $as_echo "$as_me: failed program was:" >&5
29022 sed 's/^/| /' conftest.$ac_ext >&5
29023
29024         ac_header_compiler=no
29025 fi
29026
29027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29028 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29029 $as_echo "$ac_header_compiler" >&6; }
29030
29031 # Is the header present?
29032 { $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
29033 $as_echo_n "checking Python.h presence... " >&6; }
29034 cat >conftest.$ac_ext <<_ACEOF
29035 /* confdefs.h.  */
29036 _ACEOF
29037 cat confdefs.h >>conftest.$ac_ext
29038 cat >>conftest.$ac_ext <<_ACEOF
29039 /* end confdefs.h.  */
29040 #include <Python.h>
29041 _ACEOF
29042 if { (ac_try="$ac_cpp conftest.$ac_ext"
29043 case "(($ac_try" in
29044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29045   *) ac_try_echo=$ac_try;;
29046 esac
29047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29048 $as_echo "$ac_try_echo") >&5
29049   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29050   ac_status=$?
29051   grep -v '^ *+' conftest.er1 >conftest.err
29052   rm -f conftest.er1
29053   cat conftest.err >&5
29054   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29055   (exit $ac_status); } >/dev/null && {
29056          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29057          test ! -s conftest.err
29058        }; then
29059   ac_header_preproc=yes
29060 else
29061   $as_echo "$as_me: failed program was:" >&5
29062 sed 's/^/| /' conftest.$ac_ext >&5
29063
29064   ac_header_preproc=no
29065 fi
29066
29067 rm -f conftest.err conftest.$ac_ext
29068 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29069 $as_echo "$ac_header_preproc" >&6; }
29070
29071 # So?  What about this header?
29072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29073   yes:no: )
29074     { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
29075 $as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29076     { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
29077 $as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
29078     ac_header_preproc=yes
29079     ;;
29080   no:yes:* )
29081     { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
29082 $as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
29083     { $as_echo "$as_me:$LINENO: WARNING: Python.h:     check for missing prerequisite headers?" >&5
29084 $as_echo "$as_me: WARNING: Python.h:     check for missing prerequisite headers?" >&2;}
29085     { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
29086 $as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
29087     { $as_echo "$as_me:$LINENO: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&5
29088 $as_echo "$as_me: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29089     { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
29090 $as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
29091     { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
29092 $as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
29093     ( cat <<\_ASBOX
29094 ## ---------------------------------------- ##
29095 ## Report this to pgsql-bugs@postgresql.org ##
29096 ## ---------------------------------------- ##
29097 _ASBOX
29098      ) | sed "s/^/$as_me: WARNING:     /" >&2
29099     ;;
29100 esac
29101 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29102 $as_echo_n "checking for Python.h... " >&6; }
29103 if test "${ac_cv_header_Python_h+set}" = set; then
29104   $as_echo_n "(cached) " >&6
29105 else
29106   ac_cv_header_Python_h=$ac_header_preproc
29107 fi
29108 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29109 $as_echo "$ac_cv_header_Python_h" >&6; }
29110
29111 fi
29112 if test "x$ac_cv_header_Python_h" = x""yes; then
29113   :
29114 else
29115   { { $as_echo "$as_me:$LINENO: error: header file <Python.h> is required for Python" >&5
29116 $as_echo "$as_me: error: header file <Python.h> is required for Python" >&2;}
29117    { (exit 1); exit 1; }; }
29118 fi
29119
29120
29121   CPPFLAGS=$ac_save_CPPFLAGS
29122 fi
29123
29124 #
29125 # Check for DocBook and tools
29126 #
29127 for ac_prog in onsgmls nsgmls
29128 do
29129   # Extract the first word of "$ac_prog", so it can be a program name with args.
29130 set dummy $ac_prog; ac_word=$2
29131 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29132 $as_echo_n "checking for $ac_word... " >&6; }
29133 if test "${ac_cv_prog_NSGMLS+set}" = set; then
29134   $as_echo_n "(cached) " >&6
29135 else
29136   if test -n "$NSGMLS"; then
29137   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
29138 else
29139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29140 for as_dir in $PATH
29141 do
29142   IFS=$as_save_IFS
29143   test -z "$as_dir" && as_dir=.
29144   for ac_exec_ext in '' $ac_executable_extensions; do
29145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29146     ac_cv_prog_NSGMLS="$ac_prog"
29147     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29148     break 2
29149   fi
29150 done
29151 done
29152 IFS=$as_save_IFS
29153
29154 fi
29155 fi
29156 NSGMLS=$ac_cv_prog_NSGMLS
29157 if test -n "$NSGMLS"; then
29158   { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
29159 $as_echo "$NSGMLS" >&6; }
29160 else
29161   { $as_echo "$as_me:$LINENO: result: no" >&5
29162 $as_echo "no" >&6; }
29163 fi
29164
29165
29166   test -n "$NSGMLS" && break
29167 done
29168
29169 for ac_prog in openjade jade
29170 do
29171   # Extract the first word of "$ac_prog", so it can be a program name with args.
29172 set dummy $ac_prog; ac_word=$2
29173 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29174 $as_echo_n "checking for $ac_word... " >&6; }
29175 if test "${ac_cv_prog_JADE+set}" = set; then
29176   $as_echo_n "(cached) " >&6
29177 else
29178   if test -n "$JADE"; then
29179   ac_cv_prog_JADE="$JADE" # Let the user override the test.
29180 else
29181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29182 for as_dir in $PATH
29183 do
29184   IFS=$as_save_IFS
29185   test -z "$as_dir" && as_dir=.
29186   for ac_exec_ext in '' $ac_executable_extensions; do
29187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29188     ac_cv_prog_JADE="$ac_prog"
29189     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29190     break 2
29191   fi
29192 done
29193 done
29194 IFS=$as_save_IFS
29195
29196 fi
29197 fi
29198 JADE=$ac_cv_prog_JADE
29199 if test -n "$JADE"; then
29200   { $as_echo "$as_me:$LINENO: result: $JADE" >&5
29201 $as_echo "$JADE" >&6; }
29202 else
29203   { $as_echo "$as_me:$LINENO: result: no" >&5
29204 $as_echo "no" >&6; }
29205 fi
29206
29207
29208   test -n "$JADE" && break
29209 done
29210
29211
29212 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
29213 $as_echo_n "checking for DocBook V4.2... " >&6; }
29214 if test "${pgac_cv_check_docbook+set}" = set; then
29215   $as_echo_n "(cached) " >&6
29216 else
29217   cat >conftest.sgml <<EOF
29218 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
29219 <book>
29220  <title>test</title>
29221  <chapter>
29222   <title>random</title>
29223    <sect1>
29224     <title>testsect</title>
29225     <para>text</para>
29226   </sect1>
29227  </chapter>
29228 </book>
29229 EOF
29230
29231 pgac_cv_check_docbook=no
29232
29233 if test -n "$NSGMLS"; then
29234   $NSGMLS -s conftest.sgml 1>&5 2>&1
29235   if test $? -eq 0; then
29236     pgac_cv_check_docbook=yes
29237   fi
29238 fi
29239 rm -f conftest.sgml
29240 fi
29241 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
29242 $as_echo "$pgac_cv_check_docbook" >&6; }
29243
29244 have_docbook=$pgac_cv_check_docbook
29245
29246
29247 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
29248 $as_echo_n "checking for DocBook stylesheets... " >&6; }
29249 if test "${pgac_cv_path_stylesheets+set}" = set; then
29250   $as_echo_n "(cached) " >&6
29251 else
29252   if test -n "$DOCBOOKSTYLE"; then
29253   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
29254 else
29255   for pgac_prefix in /usr /usr/local /opt /sw; do
29256     for pgac_infix in share lib; do
29257       for pgac_postfix in \
29258         sgml/stylesheets/nwalsh-modular \
29259         sgml/stylesheets/docbook \
29260         sgml/stylesheets/dsssl/docbook \
29261         sgml/docbook-dsssl \
29262         sgml/docbook/dsssl/modular \
29263         sgml/docbook/stylesheet/dsssl/modular \
29264         sgml/docbook/dsssl-stylesheets \
29265         sgml/dsssl/docbook-dsssl-nwalsh
29266       do
29267         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
29268         if test -r "$pgac_candidate/html/docbook.dsl" \
29269            && test -r "$pgac_candidate/print/docbook.dsl"
29270         then
29271           pgac_cv_path_stylesheets=$pgac_candidate
29272           break 3
29273         fi
29274       done
29275     done
29276   done
29277 fi
29278 fi
29279
29280 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
29281
29282 if test -n "$DOCBOOKSTYLE"; then
29283   { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
29284 $as_echo "$DOCBOOKSTYLE" >&6; }
29285 else
29286   { $as_echo "$as_me:$LINENO: result: no" >&5
29287 $as_echo "no" >&6; }
29288 fi
29289 if test -n "$DOCBOOKSTYLE"; then
29290   for ac_prog in collateindex.pl
29291 do
29292   # Extract the first word of "$ac_prog", so it can be a program name with args.
29293 set dummy $ac_prog; ac_word=$2
29294 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29295 $as_echo_n "checking for $ac_word... " >&6; }
29296 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29297   $as_echo_n "(cached) " >&6
29298 else
29299   case $COLLATEINDEX in
29300   [\\/]* | ?:[\\/]*)
29301   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29302   ;;
29303   *)
29304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29305 for as_dir in $DOCBOOKSTYLE/bin $PATH
29306 do
29307   IFS=$as_save_IFS
29308   test -z "$as_dir" && as_dir=.
29309   for ac_exec_ext in '' $ac_executable_extensions; do
29310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29311     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29312     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29313     break 2
29314   fi
29315 done
29316 done
29317 IFS=$as_save_IFS
29318
29319   ;;
29320 esac
29321 fi
29322 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29323 if test -n "$COLLATEINDEX"; then
29324   { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29325 $as_echo "$COLLATEINDEX" >&6; }
29326 else
29327   { $as_echo "$as_me:$LINENO: result: no" >&5
29328 $as_echo "no" >&6; }
29329 fi
29330
29331
29332   test -n "$COLLATEINDEX" && break
29333 done
29334
29335 else
29336   for ac_prog in collateindex.pl
29337 do
29338   # Extract the first word of "$ac_prog", so it can be a program name with args.
29339 set dummy $ac_prog; ac_word=$2
29340 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29341 $as_echo_n "checking for $ac_word... " >&6; }
29342 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29343   $as_echo_n "(cached) " >&6
29344 else
29345   case $COLLATEINDEX in
29346   [\\/]* | ?:[\\/]*)
29347   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29348   ;;
29349   *)
29350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29351 for as_dir in $PATH
29352 do
29353   IFS=$as_save_IFS
29354   test -z "$as_dir" && as_dir=.
29355   for ac_exec_ext in '' $ac_executable_extensions; do
29356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29357     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29358     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29359     break 2
29360   fi
29361 done
29362 done
29363 IFS=$as_save_IFS
29364
29365   ;;
29366 esac
29367 fi
29368 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29369 if test -n "$COLLATEINDEX"; then
29370   { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29371 $as_echo "$COLLATEINDEX" >&6; }
29372 else
29373   { $as_echo "$as_me:$LINENO: result: no" >&5
29374 $as_echo "no" >&6; }
29375 fi
29376
29377
29378   test -n "$COLLATEINDEX" && break
29379 done
29380
29381 fi
29382 for ac_prog in xsltproc
29383 do
29384   # Extract the first word of "$ac_prog", so it can be a program name with args.
29385 set dummy $ac_prog; ac_word=$2
29386 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29387 $as_echo_n "checking for $ac_word... " >&6; }
29388 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
29389   $as_echo_n "(cached) " >&6
29390 else
29391   if test -n "$XSLTPROC"; then
29392   ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
29393 else
29394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29395 for as_dir in $PATH
29396 do
29397   IFS=$as_save_IFS
29398   test -z "$as_dir" && as_dir=.
29399   for ac_exec_ext in '' $ac_executable_extensions; do
29400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29401     ac_cv_prog_XSLTPROC="$ac_prog"
29402     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29403     break 2
29404   fi
29405 done
29406 done
29407 IFS=$as_save_IFS
29408
29409 fi
29410 fi
29411 XSLTPROC=$ac_cv_prog_XSLTPROC
29412 if test -n "$XSLTPROC"; then
29413   { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
29414 $as_echo "$XSLTPROC" >&6; }
29415 else
29416   { $as_echo "$as_me:$LINENO: result: no" >&5
29417 $as_echo "no" >&6; }
29418 fi
29419
29420
29421   test -n "$XSLTPROC" && break
29422 done
29423
29424 for ac_prog in osx sgml2xml sx
29425 do
29426   # Extract the first word of "$ac_prog", so it can be a program name with args.
29427 set dummy $ac_prog; ac_word=$2
29428 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29429 $as_echo_n "checking for $ac_word... " >&6; }
29430 if test "${ac_cv_prog_OSX+set}" = set; then
29431   $as_echo_n "(cached) " >&6
29432 else
29433   if test -n "$OSX"; then
29434   ac_cv_prog_OSX="$OSX" # Let the user override the test.
29435 else
29436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29437 for as_dir in $PATH
29438 do
29439   IFS=$as_save_IFS
29440   test -z "$as_dir" && as_dir=.
29441   for ac_exec_ext in '' $ac_executable_extensions; do
29442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29443     ac_cv_prog_OSX="$ac_prog"
29444     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29445     break 2
29446   fi
29447 done
29448 done
29449 IFS=$as_save_IFS
29450
29451 fi
29452 fi
29453 OSX=$ac_cv_prog_OSX
29454 if test -n "$OSX"; then
29455   { $as_echo "$as_me:$LINENO: result: $OSX" >&5
29456 $as_echo "$OSX" >&6; }
29457 else
29458   { $as_echo "$as_me:$LINENO: result: no" >&5
29459 $as_echo "no" >&6; }
29460 fi
29461
29462
29463   test -n "$OSX" && break
29464 done
29465
29466
29467 # Thread testing
29468
29469 # We have to run the thread test near the end so we have all our symbols
29470 # defined.  Cross compiling throws a warning.
29471 #
29472 if test "$enable_thread_safety" = yes; then
29473 if test "$PORTNAME" != "win32"
29474 then
29475 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
29476 $as_echo_n "checking thread safety of required library functions... " >&6; }
29477
29478 _CFLAGS="$CFLAGS"
29479 _LIBS="$LIBS"
29480 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
29481 LIBS="$LIBS $PTHREAD_LIBS"
29482 if test "$cross_compiling" = yes; then
29483   { $as_echo "$as_me:$LINENO: result: maybe" >&5
29484 $as_echo "maybe" >&6; }
29485   { $as_echo "$as_me:$LINENO: WARNING:
29486 *** Skipping thread test program because of cross-compile build.
29487 *** Run the program in src/test/thread on the target machine.
29488 " >&5
29489 $as_echo "$as_me: WARNING:
29490 *** Skipping thread test program because of cross-compile build.
29491 *** Run the program in src/test/thread on the target machine.
29492 " >&2;}
29493 else
29494   cat >conftest.$ac_ext <<_ACEOF
29495 /* confdefs.h.  */
29496 _ACEOF
29497 cat confdefs.h >>conftest.$ac_ext
29498 cat >>conftest.$ac_ext <<_ACEOF
29499 /* end confdefs.h.  */
29500 #include "$srcdir/src/test/thread/thread_test.c"
29501 _ACEOF
29502 rm -f conftest$ac_exeext
29503 if { (ac_try="$ac_link"
29504 case "(($ac_try" in
29505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29506   *) ac_try_echo=$ac_try;;
29507 esac
29508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29509 $as_echo "$ac_try_echo") >&5
29510   (eval "$ac_link") 2>&5
29511   ac_status=$?
29512   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29513   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29514   { (case "(($ac_try" in
29515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29516   *) ac_try_echo=$ac_try;;
29517 esac
29518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29519 $as_echo "$ac_try_echo") >&5
29520   (eval "$ac_try") 2>&5
29521   ac_status=$?
29522   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29523   (exit $ac_status); }; }; then
29524   { $as_echo "$as_me:$LINENO: result: yes" >&5
29525 $as_echo "yes" >&6; }
29526 else
29527   $as_echo "$as_me: program exited with status $ac_status" >&5
29528 $as_echo "$as_me: failed program was:" >&5
29529 sed 's/^/| /' conftest.$ac_ext >&5
29530
29531 ( exit $ac_status )
29532 { $as_echo "$as_me:$LINENO: result: no" >&5
29533 $as_echo "no" >&6; }
29534   { { $as_echo "$as_me:$LINENO: error: thread test program failed
29535 This platform is not thread-safe.  Check the file 'config.log' or compile
29536 and run src/test/thread/thread_test for the exact reason.
29537 Use --disable-thread-safety to disable thread safety." >&5
29538 $as_echo "$as_me: error: thread test program failed
29539 This platform is not thread-safe.  Check the file 'config.log' or compile
29540 and run src/test/thread/thread_test for the exact reason.
29541 Use --disable-thread-safety to disable thread safety." >&2;}
29542    { (exit 1); exit 1; }; }
29543 fi
29544 rm -rf conftest.dSYM
29545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29546 fi
29547
29548
29549 CFLAGS="$_CFLAGS"
29550 LIBS="$_LIBS"
29551 else
29552 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
29553 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
29554 fi
29555 fi
29556
29557 # If compiler will take -Wl,--as-needed (or various platform-specific
29558 # spellings thereof) then add that to LDFLAGS.  This is much easier than
29559 # trying to filter LIBS to the minimum for each executable.
29560 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
29561 # libreadline; therefore we postpone testing it until we know what library
29562 # dependencies readline has.  The test code will try to link with $LIBS.
29563 if test "$with_readline" = yes; then
29564   link_test_func=readline
29565 else
29566   link_test_func=exit
29567 fi
29568
29569 if test "$PORTNAME" = "darwin"; then
29570   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
29571 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
29572 if test "${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+set}" = set; then
29573   $as_echo_n "(cached) " >&6
29574 else
29575   pgac_save_LDFLAGS=$LDFLAGS
29576 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
29577 if test "$cross_compiling" = yes; then
29578   pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
29579 else
29580   cat >conftest.$ac_ext <<_ACEOF
29581 /* confdefs.h.  */
29582 _ACEOF
29583 cat confdefs.h >>conftest.$ac_ext
29584 cat >>conftest.$ac_ext <<_ACEOF
29585 /* end confdefs.h.  */
29586 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29587 int
29588 main ()
29589 {
29590
29591   ;
29592   return 0;
29593 }
29594 _ACEOF
29595 rm -f conftest$ac_exeext
29596 if { (ac_try="$ac_link"
29597 case "(($ac_try" in
29598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29599   *) ac_try_echo=$ac_try;;
29600 esac
29601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29602 $as_echo "$ac_try_echo") >&5
29603   (eval "$ac_link") 2>&5
29604   ac_status=$?
29605   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29606   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29607   { (case "(($ac_try" in
29608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29609   *) ac_try_echo=$ac_try;;
29610 esac
29611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29612 $as_echo "$ac_try_echo") >&5
29613   (eval "$ac_try") 2>&5
29614   ac_status=$?
29615   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29616   (exit $ac_status); }; }; then
29617   pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
29618 else
29619   $as_echo "$as_me: program exited with status $ac_status" >&5
29620 $as_echo "$as_me: failed program was:" >&5
29621 sed 's/^/| /' conftest.$ac_ext >&5
29622
29623 ( exit $ac_status )
29624 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
29625 fi
29626 rm -rf conftest.dSYM
29627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29628 fi
29629
29630
29631 LDFLAGS="$pgac_save_LDFLAGS"
29632 fi
29633 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
29634 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
29635 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
29636   LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
29637 fi
29638
29639 elif test "$PORTNAME" = "openbsd"; then
29640   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-Bdynamic" >&5
29641 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
29642 if test "${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+set}" = set; then
29643   $as_echo_n "(cached) " >&6
29644 else
29645   pgac_save_LDFLAGS=$LDFLAGS
29646 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
29647 if test "$cross_compiling" = yes; then
29648   pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
29649 else
29650   cat >conftest.$ac_ext <<_ACEOF
29651 /* confdefs.h.  */
29652 _ACEOF
29653 cat confdefs.h >>conftest.$ac_ext
29654 cat >>conftest.$ac_ext <<_ACEOF
29655 /* end confdefs.h.  */
29656 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29657 int
29658 main ()
29659 {
29660
29661   ;
29662   return 0;
29663 }
29664 _ACEOF
29665 rm -f conftest$ac_exeext
29666 if { (ac_try="$ac_link"
29667 case "(($ac_try" in
29668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29669   *) ac_try_echo=$ac_try;;
29670 esac
29671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29672 $as_echo "$ac_try_echo") >&5
29673   (eval "$ac_link") 2>&5
29674   ac_status=$?
29675   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29676   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29677   { (case "(($ac_try" in
29678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29679   *) ac_try_echo=$ac_try;;
29680 esac
29681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29682 $as_echo "$ac_try_echo") >&5
29683   (eval "$ac_try") 2>&5
29684   ac_status=$?
29685   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29686   (exit $ac_status); }; }; then
29687   pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
29688 else
29689   $as_echo "$as_me: program exited with status $ac_status" >&5
29690 $as_echo "$as_me: failed program was:" >&5
29691 sed 's/^/| /' conftest.$ac_ext >&5
29692
29693 ( exit $ac_status )
29694 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
29695 fi
29696 rm -rf conftest.dSYM
29697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29698 fi
29699
29700
29701 LDFLAGS="$pgac_save_LDFLAGS"
29702 fi
29703 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
29704 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
29705 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
29706   LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
29707 fi
29708
29709 else
29710   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,--as-needed" >&5
29711 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
29712 if test "${pgac_cv_prog_cc_ldflags__Wl___as_needed+set}" = set; then
29713   $as_echo_n "(cached) " >&6
29714 else
29715   pgac_save_LDFLAGS=$LDFLAGS
29716 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
29717 if test "$cross_compiling" = yes; then
29718   pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
29719 else
29720   cat >conftest.$ac_ext <<_ACEOF
29721 /* confdefs.h.  */
29722 _ACEOF
29723 cat confdefs.h >>conftest.$ac_ext
29724 cat >>conftest.$ac_ext <<_ACEOF
29725 /* end confdefs.h.  */
29726 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29727 int
29728 main ()
29729 {
29730
29731   ;
29732   return 0;
29733 }
29734 _ACEOF
29735 rm -f conftest$ac_exeext
29736 if { (ac_try="$ac_link"
29737 case "(($ac_try" in
29738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29739   *) ac_try_echo=$ac_try;;
29740 esac
29741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29742 $as_echo "$ac_try_echo") >&5
29743   (eval "$ac_link") 2>&5
29744   ac_status=$?
29745   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29746   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29747   { (case "(($ac_try" in
29748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29749   *) ac_try_echo=$ac_try;;
29750 esac
29751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29752 $as_echo "$ac_try_echo") >&5
29753   (eval "$ac_try") 2>&5
29754   ac_status=$?
29755   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29756   (exit $ac_status); }; }; then
29757   pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
29758 else
29759   $as_echo "$as_me: program exited with status $ac_status" >&5
29760 $as_echo "$as_me: failed program was:" >&5
29761 sed 's/^/| /' conftest.$ac_ext >&5
29762
29763 ( exit $ac_status )
29764 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
29765 fi
29766 rm -rf conftest.dSYM
29767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29768 fi
29769
29770
29771 LDFLAGS="$pgac_save_LDFLAGS"
29772 fi
29773 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
29774 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
29775 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
29776   LDFLAGS="$LDFLAGS -Wl,--as-needed"
29777 fi
29778
29779 fi
29780
29781
29782 # Begin output steps
29783
29784 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
29785 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
29786 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
29787 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
29788 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
29789 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
29790
29791 # Create compiler version string
29792 if test x"$GCC" = x"yes" ; then
29793   cc_string=`${CC} --version | sed q`
29794   case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
29795 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
29796   cc_string=`${CC} -V 2>&1 | sed q`
29797 else
29798   cc_string=$CC
29799 fi
29800
29801
29802 cat >>confdefs.h <<_ACEOF
29803 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
29804 _ACEOF
29805
29806
29807 # Supply a numeric version string for use by 3rd party add-ons
29808 # awk -F is a regex on some platforms, and not on others, so make "." a tab
29809 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
29810 tr '.' '        ' |
29811 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
29812
29813 cat >>confdefs.h <<_ACEOF
29814 #define PG_VERSION_NUM $PG_VERSION_NUM
29815 _ACEOF
29816
29817
29818
29819 # prepare build tree if outside source tree
29820 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
29821 # Note 2: /bin/pwd might be better than shell's built-in at getting
29822 #         a symlink-free name.
29823 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
29824   vpath_build=no
29825 else
29826   vpath_build=yes
29827   if test "$no_create" != yes; then
29828     $as_echo_n "preparing build tree... " >&6
29829     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
29830     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
29831       || { { $as_echo "$as_me:$LINENO: error: failed" >&5
29832 $as_echo "$as_me: error: failed" >&2;}
29833    { (exit 1); exit 1; }; }
29834     { $as_echo "$as_me:$LINENO: result: done" >&5
29835 $as_echo "done" >&6; }
29836   fi
29837 fi
29838
29839
29840
29841 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
29842
29843
29844 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}"
29845
29846
29847 if test "$PORTNAME" = "win32"; then
29848 ac_config_commands="$ac_config_commands check_win32_symlinks"
29849
29850 fi
29851
29852 ac_config_headers="$ac_config_headers src/include/pg_config.h"
29853
29854
29855 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
29856
29857
29858 cat >confcache <<\_ACEOF
29859 # This file is a shell script that caches the results of configure
29860 # tests run on this system so they can be shared between configure
29861 # scripts and configure runs, see configure's option --config-cache.
29862 # It is not useful on other systems.  If it contains results you don't
29863 # want to keep, you may remove or edit it.
29864 #
29865 # config.status only pays attention to the cache file if you give it
29866 # the --recheck option to rerun configure.
29867 #
29868 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29869 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29870 # following values.
29871
29872 _ACEOF
29873
29874 # The following way of writing the cache mishandles newlines in values,
29875 # but we know of no workaround that is simple, portable, and efficient.
29876 # So, we kill variables containing newlines.
29877 # Ultrix sh set writes to stderr and can't be redirected directly,
29878 # and sets the high bit in the cache file unless we assign to the vars.
29879 (
29880   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29881     eval ac_val=\$$ac_var
29882     case $ac_val in #(
29883     *${as_nl}*)
29884       case $ac_var in #(
29885       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
29886 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29887       esac
29888       case $ac_var in #(
29889       _ | IFS | as_nl) ;; #(
29890       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29891       *) $as_unset $ac_var ;;
29892       esac ;;
29893     esac
29894   done
29895
29896   (set) 2>&1 |
29897     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29898     *${as_nl}ac_space=\ *)
29899       # `set' does not quote correctly, so add quotes (double-quote
29900       # substitution turns \\\\ into \\, and sed turns \\ into \).
29901       sed -n \
29902         "s/'/'\\\\''/g;
29903           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29904       ;; #(
29905     *)
29906       # `set' quotes correctly as required by POSIX, so do not add quotes.
29907       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29908       ;;
29909     esac |
29910     sort
29911 ) |
29912   sed '
29913      /^ac_cv_env_/b end
29914      t clear
29915      :clear
29916      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29917      t end
29918      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29919      :end' >>confcache
29920 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29921   if test -w "$cache_file"; then
29922     test "x$cache_file" != "x/dev/null" &&
29923       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
29924 $as_echo "$as_me: updating cache $cache_file" >&6;}
29925     cat confcache >$cache_file
29926   else
29927     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29928 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29929   fi
29930 fi
29931 rm -f confcache
29932
29933 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29934 # Let make expand exec_prefix.
29935 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29936
29937 DEFS=-DHAVE_CONFIG_H
29938
29939 ac_libobjs=
29940 ac_ltlibobjs=
29941 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29942   # 1. Remove the extension, and $U if already installed.
29943   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29944   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29945   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29946   #    will be set to the directory where LIBOBJS objects are built.
29947   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29948   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29949 done
29950 LIBOBJS=$ac_libobjs
29951
29952 LTLIBOBJS=$ac_ltlibobjs
29953
29954
29955
29956
29957 : ${CONFIG_STATUS=./config.status}
29958 ac_write_fail=0
29959 ac_clean_files_save=$ac_clean_files
29960 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29961 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29962 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29963 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29964 #! $SHELL
29965 # Generated by $as_me.
29966 # Run this file to recreate the current configuration.
29967 # Compiler output produced by configure, useful for debugging
29968 # configure, is in config.log if it exists.
29969
29970 debug=false
29971 ac_cs_recheck=false
29972 ac_cs_silent=false
29973 SHELL=\${CONFIG_SHELL-$SHELL}
29974 _ACEOF
29975
29976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29977 ## --------------------- ##
29978 ## M4sh Initialization.  ##
29979 ## --------------------- ##
29980
29981 # Be more Bourne compatible
29982 DUALCASE=1; export DUALCASE # for MKS sh
29983 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29984   emulate sh
29985   NULLCMD=:
29986   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29987   # is contrary to our usage.  Disable this feature.
29988   alias -g '${1+"$@"}'='"$@"'
29989   setopt NO_GLOB_SUBST
29990 else
29991   case `(set -o) 2>/dev/null` in
29992   *posix*) set -o posix ;;
29993 esac
29994
29995 fi
29996
29997
29998
29999
30000 # PATH needs CR
30001 # Avoid depending upon Character Ranges.
30002 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30003 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30004 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30005 as_cr_digits='0123456789'
30006 as_cr_alnum=$as_cr_Letters$as_cr_digits
30007
30008 as_nl='
30009 '
30010 export as_nl
30011 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30012 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30013 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30014 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30015 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30016   as_echo='printf %s\n'
30017   as_echo_n='printf %s'
30018 else
30019   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30020     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30021     as_echo_n='/usr/ucb/echo -n'
30022   else
30023     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30024     as_echo_n_body='eval
30025       arg=$1;
30026       case $arg in
30027       *"$as_nl"*)
30028         expr "X$arg" : "X\\(.*\\)$as_nl";
30029         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30030       esac;
30031       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30032     '
30033     export as_echo_n_body
30034     as_echo_n='sh -c $as_echo_n_body as_echo'
30035   fi
30036   export as_echo_body
30037   as_echo='sh -c $as_echo_body as_echo'
30038 fi
30039
30040 # The user is always right.
30041 if test "${PATH_SEPARATOR+set}" != set; then
30042   PATH_SEPARATOR=:
30043   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30044     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30045       PATH_SEPARATOR=';'
30046   }
30047 fi
30048
30049 # Support unset when possible.
30050 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30051   as_unset=unset
30052 else
30053   as_unset=false
30054 fi
30055
30056
30057 # IFS
30058 # We need space, tab and new line, in precisely that order.  Quoting is
30059 # there to prevent editors from complaining about space-tab.
30060 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30061 # splitting by setting IFS to empty value.)
30062 IFS=" ""        $as_nl"
30063
30064 # Find who we are.  Look in the path if we contain no directory separator.
30065 case $0 in
30066   *[\\/]* ) as_myself=$0 ;;
30067   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30068 for as_dir in $PATH
30069 do
30070   IFS=$as_save_IFS
30071   test -z "$as_dir" && as_dir=.
30072   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30073 done
30074 IFS=$as_save_IFS
30075
30076      ;;
30077 esac
30078 # We did not find ourselves, most probably we were run as `sh COMMAND'
30079 # in which case we are not to be found in the path.
30080 if test "x$as_myself" = x; then
30081   as_myself=$0
30082 fi
30083 if test ! -f "$as_myself"; then
30084   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30085   { (exit 1); exit 1; }
30086 fi
30087
30088 # Work around bugs in pre-3.0 UWIN ksh.
30089 for as_var in ENV MAIL MAILPATH
30090 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30091 done
30092 PS1='$ '
30093 PS2='> '
30094 PS4='+ '
30095
30096 # NLS nuisances.
30097 LC_ALL=C
30098 export LC_ALL
30099 LANGUAGE=C
30100 export LANGUAGE
30101
30102 # Required to use basename.
30103 if expr a : '\(a\)' >/dev/null 2>&1 &&
30104    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30105   as_expr=expr
30106 else
30107   as_expr=false
30108 fi
30109
30110 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30111   as_basename=basename
30112 else
30113   as_basename=false
30114 fi
30115
30116
30117 # Name of the executable.
30118 as_me=`$as_basename -- "$0" ||
30119 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30120          X"$0" : 'X\(//\)$' \| \
30121          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30122 $as_echo X/"$0" |
30123     sed '/^.*\/\([^/][^/]*\)\/*$/{
30124             s//\1/
30125             q
30126           }
30127           /^X\/\(\/\/\)$/{
30128             s//\1/
30129             q
30130           }
30131           /^X\/\(\/\).*/{
30132             s//\1/
30133             q
30134           }
30135           s/.*/./; q'`
30136
30137 # CDPATH.
30138 $as_unset CDPATH
30139
30140
30141
30142   as_lineno_1=$LINENO
30143   as_lineno_2=$LINENO
30144   test "x$as_lineno_1" != "x$as_lineno_2" &&
30145   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30146
30147   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30148   # uniformly replaced by the line number.  The first 'sed' inserts a
30149   # line-number line after each line using $LINENO; the second 'sed'
30150   # does the real work.  The second script uses 'N' to pair each
30151   # line-number line with the line containing $LINENO, and appends
30152   # trailing '-' during substitution so that $LINENO is not a special
30153   # case at line end.
30154   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30155   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30156   # E. McMahon (1931-1989) for sed's syntax.  :-)
30157   sed -n '
30158     p
30159     /[$]LINENO/=
30160   ' <$as_myself |
30161     sed '
30162       s/[$]LINENO.*/&-/
30163       t lineno
30164       b
30165       :lineno
30166       N
30167       :loop
30168       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30169       t loop
30170       s/-\n.*//
30171     ' >$as_me.lineno &&
30172   chmod +x "$as_me.lineno" ||
30173     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30174    { (exit 1); exit 1; }; }
30175
30176   # Don't try to exec as it changes $[0], causing all sort of problems
30177   # (the dirname of $[0] is not the place where we might find the
30178   # original and so on.  Autoconf is especially sensitive to this).
30179   . "./$as_me.lineno"
30180   # Exit status is that of the last command.
30181   exit
30182 }
30183
30184
30185 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30186   as_dirname=dirname
30187 else
30188   as_dirname=false
30189 fi
30190
30191 ECHO_C= ECHO_N= ECHO_T=
30192 case `echo -n x` in
30193 -n*)
30194   case `echo 'x\c'` in
30195   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30196   *)   ECHO_C='\c';;
30197   esac;;
30198 *)
30199   ECHO_N='-n';;
30200 esac
30201 if expr a : '\(a\)' >/dev/null 2>&1 &&
30202    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30203   as_expr=expr
30204 else
30205   as_expr=false
30206 fi
30207
30208 rm -f conf$$ conf$$.exe conf$$.file
30209 if test -d conf$$.dir; then
30210   rm -f conf$$.dir/conf$$.file
30211 else
30212   rm -f conf$$.dir
30213   mkdir conf$$.dir 2>/dev/null
30214 fi
30215 if (echo >conf$$.file) 2>/dev/null; then
30216   if ln -s conf$$.file conf$$ 2>/dev/null; then
30217     as_ln_s='ln -s'
30218     # ... but there are two gotchas:
30219     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30220     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30221     # In both cases, we have to default to `cp -p'.
30222     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30223       as_ln_s='cp -p'
30224   elif ln conf$$.file conf$$ 2>/dev/null; then
30225     as_ln_s=ln
30226   else
30227     as_ln_s='cp -p'
30228   fi
30229 else
30230   as_ln_s='cp -p'
30231 fi
30232 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30233 rmdir conf$$.dir 2>/dev/null
30234
30235 if mkdir -p . 2>/dev/null; then
30236   as_mkdir_p=:
30237 else
30238   test -d ./-p && rmdir ./-p
30239   as_mkdir_p=false
30240 fi
30241
30242 if test -x / >/dev/null 2>&1; then
30243   as_test_x='test -x'
30244 else
30245   if ls -dL / >/dev/null 2>&1; then
30246     as_ls_L_option=L
30247   else
30248     as_ls_L_option=
30249   fi
30250   as_test_x='
30251     eval sh -c '\''
30252       if test -d "$1"; then
30253         test -d "$1/.";
30254       else
30255         case $1 in
30256         -*)set "./$1";;
30257         esac;
30258         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30259         ???[sx]*):;;*)false;;esac;fi
30260     '\'' sh
30261   '
30262 fi
30263 as_executable_p=$as_test_x
30264
30265 # Sed expression to map a string onto a valid CPP name.
30266 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30267
30268 # Sed expression to map a string onto a valid variable name.
30269 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30270
30271
30272 exec 6>&1
30273
30274 # Save the log message, to keep $[0] and so on meaningful, and to
30275 # report actual input values of CONFIG_FILES etc. instead of their
30276 # values after options handling.
30277 ac_log="
30278 This file was extended by PostgreSQL $as_me 9.1beta1, which was
30279 generated by GNU Autoconf 2.63.  Invocation command line was
30280
30281   CONFIG_FILES    = $CONFIG_FILES
30282   CONFIG_HEADERS  = $CONFIG_HEADERS
30283   CONFIG_LINKS    = $CONFIG_LINKS
30284   CONFIG_COMMANDS = $CONFIG_COMMANDS
30285   $ $0 $@
30286
30287 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30288 "
30289
30290 _ACEOF
30291
30292 case $ac_config_files in *"
30293 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30294 esac
30295
30296 case $ac_config_headers in *"
30297 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30298 esac
30299
30300
30301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30302 # Files that config.status was made for.
30303 config_files="$ac_config_files"
30304 config_headers="$ac_config_headers"
30305 config_links="$ac_config_links"
30306 config_commands="$ac_config_commands"
30307
30308 _ACEOF
30309
30310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30311 ac_cs_usage="\
30312 \`$as_me' instantiates files from templates according to the
30313 current configuration.
30314
30315 Usage: $0 [OPTION]... [FILE]...
30316
30317   -h, --help       print this help, then exit
30318   -V, --version    print version number and configuration settings, then exit
30319   -q, --quiet, --silent
30320                    do not print progress messages
30321   -d, --debug      don't remove temporary files
30322       --recheck    update $as_me by reconfiguring in the same conditions
30323       --file=FILE[:TEMPLATE]
30324                    instantiate the configuration file FILE
30325       --header=FILE[:TEMPLATE]
30326                    instantiate the configuration header FILE
30327
30328 Configuration files:
30329 $config_files
30330
30331 Configuration headers:
30332 $config_headers
30333
30334 Configuration links:
30335 $config_links
30336
30337 Configuration commands:
30338 $config_commands
30339
30340 Report bugs to <bug-autoconf@gnu.org>."
30341
30342 _ACEOF
30343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30344 ac_cs_version="\\
30345 PostgreSQL config.status 9.1beta1
30346 configured by $0, generated by GNU Autoconf 2.63,
30347   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30348
30349 Copyright (C) 2008 Free Software Foundation, Inc.
30350 This config.status script is free software; the Free Software Foundation
30351 gives unlimited permission to copy, distribute and modify it."
30352
30353 ac_pwd='$ac_pwd'
30354 srcdir='$srcdir'
30355 MKDIR_P='$MKDIR_P'
30356 AWK='$AWK'
30357 test -n "\$AWK" || AWK=awk
30358 _ACEOF
30359
30360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30361 # The default lists apply if the user does not specify any file.
30362 ac_need_defaults=:
30363 while test $# != 0
30364 do
30365   case $1 in
30366   --*=*)
30367     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30368     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30369     ac_shift=:
30370     ;;
30371   *)
30372     ac_option=$1
30373     ac_optarg=$2
30374     ac_shift=shift
30375     ;;
30376   esac
30377
30378   case $ac_option in
30379   # Handling of the options.
30380   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30381     ac_cs_recheck=: ;;
30382   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30383     $as_echo "$ac_cs_version"; exit ;;
30384   --debug | --debu | --deb | --de | --d | -d )
30385     debug=: ;;
30386   --file | --fil | --fi | --f )
30387     $ac_shift
30388     case $ac_optarg in
30389     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30390     esac
30391     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
30392     ac_need_defaults=false;;
30393   --header | --heade | --head | --hea )
30394     $ac_shift
30395     case $ac_optarg in
30396     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30397     esac
30398     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
30399     ac_need_defaults=false;;
30400   --he | --h)
30401     # Conflict between --help and --header
30402     { $as_echo "$as_me: error: ambiguous option: $1
30403 Try \`$0 --help' for more information." >&2
30404    { (exit 1); exit 1; }; };;
30405   --help | --hel | -h )
30406     $as_echo "$ac_cs_usage"; exit ;;
30407   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30408   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30409     ac_cs_silent=: ;;
30410
30411   # This is an error.
30412   -*) { $as_echo "$as_me: error: unrecognized option: $1
30413 Try \`$0 --help' for more information." >&2
30414    { (exit 1); exit 1; }; } ;;
30415
30416   *) ac_config_targets="$ac_config_targets $1"
30417      ac_need_defaults=false ;;
30418
30419   esac
30420   shift
30421 done
30422
30423 ac_configure_extra_args=
30424
30425 if $ac_cs_silent; then
30426   exec 6>/dev/null
30427   ac_configure_extra_args="$ac_configure_extra_args --silent"
30428 fi
30429
30430 _ACEOF
30431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30432 if \$ac_cs_recheck; then
30433   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30434   shift
30435   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30436   CONFIG_SHELL='$SHELL'
30437   export CONFIG_SHELL
30438   exec "\$@"
30439 fi
30440
30441 _ACEOF
30442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30443 exec 5>>config.log
30444 {
30445   echo
30446   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30447 ## Running $as_me. ##
30448 _ASBOX
30449   $as_echo "$ac_log"
30450 } >&5
30451
30452 _ACEOF
30453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30454 _ACEOF
30455
30456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30457
30458 # Handling of arguments.
30459 for ac_config_target in $ac_config_targets
30460 do
30461   case $ac_config_target in
30462     "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
30463     "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
30464     "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
30465     "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
30466     "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
30467     "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
30468     "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
30469     "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
30470     "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
30471     "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
30472     "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
30473     "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
30474     "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
30475
30476   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30477 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30478    { (exit 1); exit 1; }; };;
30479   esac
30480 done
30481
30482
30483 # If the user did not use the arguments to specify the items to instantiate,
30484 # then the envvar interface is used.  Set only those that are not.
30485 # We use the long form for the default assignment because of an extremely
30486 # bizarre bug on SunOS 4.1.3.
30487 if $ac_need_defaults; then
30488   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30489   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30490   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30491   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30492 fi
30493
30494 # Have a temporary directory for convenience.  Make it in the build tree
30495 # simply because there is no reason against having it here, and in addition,
30496 # creating and moving files from /tmp can sometimes cause problems.
30497 # Hook for its removal unless debugging.
30498 # Note that there is a small window in which the directory will not be cleaned:
30499 # after its creation but before its name has been assigned to `$tmp'.
30500 $debug ||
30501 {
30502   tmp=
30503   trap 'exit_status=$?
30504   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30505 ' 0
30506   trap '{ (exit 1); exit 1; }' 1 2 13 15
30507 }
30508 # Create a (secure) tmp directory for tmp files.
30509
30510 {
30511   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30512   test -n "$tmp" && test -d "$tmp"
30513 }  ||
30514 {
30515   tmp=./conf$$-$RANDOM
30516   (umask 077 && mkdir "$tmp")
30517 } ||
30518 {
30519    $as_echo "$as_me: cannot create a temporary directory in ." >&2
30520    { (exit 1); exit 1; }
30521 }
30522
30523 # Set up the scripts for CONFIG_FILES section.
30524 # No need to generate them if there are no CONFIG_FILES.
30525 # This happens for instance with `./config.status config.h'.
30526 if test -n "$CONFIG_FILES"; then
30527
30528
30529 ac_cr='\r'
30530 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30531 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30532   ac_cs_awk_cr='\\r'
30533 else
30534   ac_cs_awk_cr=$ac_cr
30535 fi
30536
30537 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30538 _ACEOF
30539
30540
30541 {
30542   echo "cat >conf$$subs.awk <<_ACEOF" &&
30543   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30544   echo "_ACEOF"
30545 } >conf$$subs.sh ||
30546   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30547 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30548    { (exit 1); exit 1; }; }
30549 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30550 ac_delim='%!_!# '
30551 for ac_last_try in false false false false false :; do
30552   . ./conf$$subs.sh ||
30553     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30554 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30555    { (exit 1); exit 1; }; }
30556
30557   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30558   if test $ac_delim_n = $ac_delim_num; then
30559     break
30560   elif $ac_last_try; then
30561     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30562 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30563    { (exit 1); exit 1; }; }
30564   else
30565     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30566   fi
30567 done
30568 rm -f conf$$subs.sh
30569
30570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30571 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30572 _ACEOF
30573 sed -n '
30574 h
30575 s/^/S["/; s/!.*/"]=/
30576 p
30577 g
30578 s/^[^!]*!//
30579 :repl
30580 t repl
30581 s/'"$ac_delim"'$//
30582 t delim
30583 :nl
30584 h
30585 s/\(.\{148\}\).*/\1/
30586 t more1
30587 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30588 p
30589 n
30590 b repl
30591 :more1
30592 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30593 p
30594 g
30595 s/.\{148\}//
30596 t nl
30597 :delim
30598 h
30599 s/\(.\{148\}\).*/\1/
30600 t more2
30601 s/["\\]/\\&/g; s/^/"/; s/$/"/
30602 p
30603 b
30604 :more2
30605 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30606 p
30607 g
30608 s/.\{148\}//
30609 t delim
30610 ' <conf$$subs.awk | sed '
30611 /^[^""]/{
30612   N
30613   s/\n//
30614 }
30615 ' >>$CONFIG_STATUS || ac_write_fail=1
30616 rm -f conf$$subs.awk
30617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30618 _ACAWK
30619 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30620   for (key in S) S_is_set[key] = 1
30621   FS = "\a"
30622
30623 }
30624 {
30625   line = $ 0
30626   nfields = split(line, field, "@")
30627   substed = 0
30628   len = length(field[1])
30629   for (i = 2; i < nfields; i++) {
30630     key = field[i]
30631     keylen = length(key)
30632     if (S_is_set[key]) {
30633       value = S[key]
30634       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30635       len += length(value) + length(field[++i])
30636       substed = 1
30637     } else
30638       len += 1 + keylen
30639   }
30640
30641   print line
30642 }
30643
30644 _ACAWK
30645 _ACEOF
30646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30647 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30648   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30649 else
30650   cat
30651 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30652   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
30653 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
30654    { (exit 1); exit 1; }; }
30655 _ACEOF
30656
30657 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30658 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30659 # trailing colons and then remove the whole line if VPATH becomes empty
30660 # (actually we leave an empty line to preserve line numbers).
30661 if test "x$srcdir" = x.; then
30662   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30663 s/:*\$(srcdir):*/:/
30664 s/:*\${srcdir}:*/:/
30665 s/:*@srcdir@:*/:/
30666 s/^\([^=]*=[     ]*\):*/\1/
30667 s/:*$//
30668 s/^[^=]*=[       ]*$//
30669 }'
30670 fi
30671
30672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30673 fi # test -n "$CONFIG_FILES"
30674
30675 # Set up the scripts for CONFIG_HEADERS section.
30676 # No need to generate them if there are no CONFIG_HEADERS.
30677 # This happens for instance with `./config.status Makefile'.
30678 if test -n "$CONFIG_HEADERS"; then
30679 cat >"$tmp/defines.awk" <<\_ACAWK ||
30680 BEGIN {
30681 _ACEOF
30682
30683 # Transform confdefs.h into an awk script `defines.awk', embedded as
30684 # here-document in config.status, that substitutes the proper values into
30685 # config.h.in to produce config.h.
30686
30687 # Create a delimiter string that does not exist in confdefs.h, to ease
30688 # handling of long lines.
30689 ac_delim='%!_!# '
30690 for ac_last_try in false false :; do
30691   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30692   if test -z "$ac_t"; then
30693     break
30694   elif $ac_last_try; then
30695     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
30696 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
30697    { (exit 1); exit 1; }; }
30698   else
30699     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30700   fi
30701 done
30702
30703 # For the awk script, D is an array of macro values keyed by name,
30704 # likewise P contains macro parameters if any.  Preserve backslash
30705 # newline sequences.
30706
30707 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30708 sed -n '
30709 s/.\{148\}/&'"$ac_delim"'/g
30710 t rset
30711 :rset
30712 s/^[     ]*#[    ]*define[       ][      ]*/ /
30713 t def
30714 d
30715 :def
30716 s/\\$//
30717 t bsnl
30718 s/["\\]/\\&/g
30719 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30720 D["\1"]=" \3"/p
30721 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
30722 d
30723 :bsnl
30724 s/["\\]/\\&/g
30725 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30726 D["\1"]=" \3\\\\\\n"\\/p
30727 t cont
30728 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30729 t cont
30730 d
30731 :cont
30732 n
30733 s/.\{148\}/&'"$ac_delim"'/g
30734 t clear
30735 :clear
30736 s/\\$//
30737 t bsnlc
30738 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30739 d
30740 :bsnlc
30741 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30742 b cont
30743 ' <confdefs.h | sed '
30744 s/'"$ac_delim"'/"\\\
30745 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30746
30747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30748   for (key in D) D_is_set[key] = 1
30749   FS = "\a"
30750 }
30751 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30752   line = \$ 0
30753   split(line, arg, " ")
30754   if (arg[1] == "#") {
30755     defundef = arg[2]
30756     mac1 = arg[3]
30757   } else {
30758     defundef = substr(arg[1], 2)
30759     mac1 = arg[2]
30760   }
30761   split(mac1, mac2, "(") #)
30762   macro = mac2[1]
30763   prefix = substr(line, 1, index(line, defundef) - 1)
30764   if (D_is_set[macro]) {
30765     # Preserve the white space surrounding the "#".
30766     print prefix "define", macro P[macro] D[macro]
30767     next
30768   } else {
30769     # Replace #undef with comments.  This is necessary, for example,
30770     # in the case of _POSIX_SOURCE, which is predefined and required
30771     # on some systems where configure will not decide to define it.
30772     if (defundef == "undef") {
30773       print "/*", prefix defundef, macro, "*/"
30774       next
30775     }
30776   }
30777 }
30778 { print }
30779 _ACAWK
30780 _ACEOF
30781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30782   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
30783 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
30784    { (exit 1); exit 1; }; }
30785 fi # test -n "$CONFIG_HEADERS"
30786
30787
30788 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
30789 shift
30790 for ac_tag
30791 do
30792   case $ac_tag in
30793   :[FHLC]) ac_mode=$ac_tag; continue;;
30794   esac
30795   case $ac_mode$ac_tag in
30796   :[FHL]*:*);;
30797   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
30798 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
30799    { (exit 1); exit 1; }; };;
30800   :[FH]-) ac_tag=-:-;;
30801   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30802   esac
30803   ac_save_IFS=$IFS
30804   IFS=:
30805   set x $ac_tag
30806   IFS=$ac_save_IFS
30807   shift
30808   ac_file=$1
30809   shift
30810
30811   case $ac_mode in
30812   :L) ac_source=$1;;
30813   :[FH])
30814     ac_file_inputs=
30815     for ac_f
30816     do
30817       case $ac_f in
30818       -) ac_f="$tmp/stdin";;
30819       *) # Look for the file first in the build tree, then in the source tree
30820          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30821          # because $ac_f cannot contain `:'.
30822          test -f "$ac_f" ||
30823            case $ac_f in
30824            [\\/$]*) false;;
30825            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30826            esac ||
30827            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30828 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30829    { (exit 1); exit 1; }; };;
30830       esac
30831       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30832       ac_file_inputs="$ac_file_inputs '$ac_f'"
30833     done
30834
30835     # Let's still pretend it is `configure' which instantiates (i.e., don't
30836     # use $as_me), people would be surprised to read:
30837     #    /* config.h.  Generated by config.status.  */
30838     configure_input='Generated from '`
30839           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30840         `' by configure.'
30841     if test x"$ac_file" != x-; then
30842       configure_input="$ac_file.  $configure_input"
30843       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
30844 $as_echo "$as_me: creating $ac_file" >&6;}
30845     fi
30846     # Neutralize special characters interpreted by sed in replacement strings.
30847     case $configure_input in #(
30848     *\&* | *\|* | *\\* )
30849        ac_sed_conf_input=`$as_echo "$configure_input" |
30850        sed 's/[\\\\&|]/\\\\&/g'`;; #(
30851     *) ac_sed_conf_input=$configure_input;;
30852     esac
30853
30854     case $ac_tag in
30855     *:-:* | *:-) cat >"$tmp/stdin" \
30856       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30857 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30858    { (exit 1); exit 1; }; } ;;
30859     esac
30860     ;;
30861   esac
30862
30863   ac_dir=`$as_dirname -- "$ac_file" ||
30864 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30865          X"$ac_file" : 'X\(//\)[^/]' \| \
30866          X"$ac_file" : 'X\(//\)$' \| \
30867          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30868 $as_echo X"$ac_file" |
30869     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30870             s//\1/
30871             q
30872           }
30873           /^X\(\/\/\)[^/].*/{
30874             s//\1/
30875             q
30876           }
30877           /^X\(\/\/\)$/{
30878             s//\1/
30879             q
30880           }
30881           /^X\(\/\).*/{
30882             s//\1/
30883             q
30884           }
30885           s/.*/./; q'`
30886   { as_dir="$ac_dir"
30887   case $as_dir in #(
30888   -*) as_dir=./$as_dir;;
30889   esac
30890   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30891     as_dirs=
30892     while :; do
30893       case $as_dir in #(
30894       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30895       *) as_qdir=$as_dir;;
30896       esac
30897       as_dirs="'$as_qdir' $as_dirs"
30898       as_dir=`$as_dirname -- "$as_dir" ||
30899 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30900          X"$as_dir" : 'X\(//\)[^/]' \| \
30901          X"$as_dir" : 'X\(//\)$' \| \
30902          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30903 $as_echo X"$as_dir" |
30904     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30905             s//\1/
30906             q
30907           }
30908           /^X\(\/\/\)[^/].*/{
30909             s//\1/
30910             q
30911           }
30912           /^X\(\/\/\)$/{
30913             s//\1/
30914             q
30915           }
30916           /^X\(\/\).*/{
30917             s//\1/
30918             q
30919           }
30920           s/.*/./; q'`
30921       test -d "$as_dir" && break
30922     done
30923     test -z "$as_dirs" || eval "mkdir $as_dirs"
30924   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30925 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
30926    { (exit 1); exit 1; }; }; }
30927   ac_builddir=.
30928
30929 case "$ac_dir" in
30930 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30931 *)
30932   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30933   # A ".." for each directory in $ac_dir_suffix.
30934   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30935   case $ac_top_builddir_sub in
30936   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30937   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30938   esac ;;
30939 esac
30940 ac_abs_top_builddir=$ac_pwd
30941 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30942 # for backward compatibility:
30943 ac_top_builddir=$ac_top_build_prefix
30944
30945 case $srcdir in
30946   .)  # We are building in place.
30947     ac_srcdir=.
30948     ac_top_srcdir=$ac_top_builddir_sub
30949     ac_abs_top_srcdir=$ac_pwd ;;
30950   [\\/]* | ?:[\\/]* )  # Absolute name.
30951     ac_srcdir=$srcdir$ac_dir_suffix;
30952     ac_top_srcdir=$srcdir
30953     ac_abs_top_srcdir=$srcdir ;;
30954   *) # Relative name.
30955     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30956     ac_top_srcdir=$ac_top_build_prefix$srcdir
30957     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30958 esac
30959 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30960
30961
30962   case $ac_mode in
30963   :F)
30964   #
30965   # CONFIG_FILE
30966   #
30967
30968   ac_MKDIR_P=$MKDIR_P
30969   case $MKDIR_P in
30970   [\\/$]* | ?:[\\/]* ) ;;
30971   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30972   esac
30973 _ACEOF
30974
30975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30976 # If the template does not know about datarootdir, expand it.
30977 # FIXME: This hack should be removed a few years after 2.60.
30978 ac_datarootdir_hack=; ac_datarootdir_seen=
30979
30980 ac_sed_dataroot='
30981 /datarootdir/ {
30982   p
30983   q
30984 }
30985 /@datadir@/p
30986 /@docdir@/p
30987 /@infodir@/p
30988 /@localedir@/p
30989 /@mandir@/p
30990 '
30991 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30992 *datarootdir*) ac_datarootdir_seen=yes;;
30993 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30994   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30995 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30996 _ACEOF
30997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30998   ac_datarootdir_hack='
30999   s&@datadir@&$datadir&g
31000   s&@docdir@&$docdir&g
31001   s&@infodir@&$infodir&g
31002   s&@localedir@&$localedir&g
31003   s&@mandir@&$mandir&g
31004     s&\\\${datarootdir}&$datarootdir&g' ;;
31005 esac
31006 _ACEOF
31007
31008 # Neutralize VPATH when `$srcdir' = `.'.
31009 # Shell code in configure.ac might set extrasub.
31010 # FIXME: do we really want to maintain this feature?
31011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31012 ac_sed_extra="$ac_vpsub
31013 $extrasub
31014 _ACEOF
31015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31016 :t
31017 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31018 s|@configure_input@|$ac_sed_conf_input|;t t
31019 s&@top_builddir@&$ac_top_builddir_sub&;t t
31020 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31021 s&@srcdir@&$ac_srcdir&;t t
31022 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31023 s&@top_srcdir@&$ac_top_srcdir&;t t
31024 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31025 s&@builddir@&$ac_builddir&;t t
31026 s&@abs_builddir@&$ac_abs_builddir&;t t
31027 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31028 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31029 $ac_datarootdir_hack
31030 "
31031 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
31032   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31033 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31034    { (exit 1); exit 1; }; }
31035
31036 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31037   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31038   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31039   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31040 which seems to be undefined.  Please make sure it is defined." >&5
31041 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31042 which seems to be undefined.  Please make sure it is defined." >&2;}
31043
31044   rm -f "$tmp/stdin"
31045   case $ac_file in
31046   -) cat "$tmp/out" && rm -f "$tmp/out";;
31047   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31048   esac \
31049   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31050 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31051    { (exit 1); exit 1; }; }
31052  ;;
31053   :H)
31054   #
31055   # CONFIG_HEADER
31056   #
31057   if test x"$ac_file" != x-; then
31058     {
31059       $as_echo "/* $configure_input  */" \
31060       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31061     } >"$tmp/config.h" \
31062       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31063 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31064    { (exit 1); exit 1; }; }
31065     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31066       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31067 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31068     else
31069       rm -f "$ac_file"
31070       mv "$tmp/config.h" "$ac_file" \
31071         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31072 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31073    { (exit 1); exit 1; }; }
31074     fi
31075   else
31076     $as_echo "/* $configure_input  */" \
31077       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31078       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31079 $as_echo "$as_me: error: could not create -" >&2;}
31080    { (exit 1); exit 1; }; }
31081   fi
31082  ;;
31083   :L)
31084   #
31085   # CONFIG_LINK
31086   #
31087
31088   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31089     :
31090   else
31091     # Prefer the file from the source tree if names are identical.
31092     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31093       ac_source=$srcdir/$ac_source
31094     fi
31095
31096     { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
31097 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31098
31099     if test ! -r "$ac_source"; then
31100       { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
31101 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
31102    { (exit 1); exit 1; }; }
31103     fi
31104     rm -f "$ac_file"
31105
31106     # Try a relative symlink, then a hard link, then a copy.
31107     case $srcdir in
31108     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31109         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31110     esac
31111     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31112       ln "$ac_source" "$ac_file" 2>/dev/null ||
31113       cp -p "$ac_source" "$ac_file" ||
31114       { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
31115 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
31116    { (exit 1); exit 1; }; }
31117   fi
31118  ;;
31119   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31120 $as_echo "$as_me: executing $ac_file commands" >&6;}
31121  ;;
31122   esac
31123
31124
31125   case $ac_file$ac_mode in
31126     "check_win32_symlinks":C)
31127 # Links sometimes fail undetected on Mingw -
31128 # so here we detect it and warn the user
31129 for FILE in $CONFIG_LINKS
31130  do
31131         # test -e works for symlinks in the MinGW console
31132         test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
31133 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
31134  done
31135  ;;
31136     "src/include/pg_config.h":H)
31137 # Update timestamp for pg_config.h (see Makefile.global)
31138 echo >src/include/stamp-h
31139  ;;
31140     "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
31141
31142   esac
31143 done # for ac_tag
31144
31145
31146 { (exit 0); exit 0; }
31147 _ACEOF
31148 chmod +x $CONFIG_STATUS
31149 ac_clean_files=$ac_clean_files_save
31150
31151 test $ac_write_fail = 0 ||
31152   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
31153 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
31154    { (exit 1); exit 1; }; }
31155
31156
31157 # configure is writing to config.log, and then calls config.status.
31158 # config.status does its own redirection, appending to config.log.
31159 # Unfortunately, on DOS this fails, as config.log is still kept open
31160 # by configure, so config.status won't be able to write to it; its
31161 # output is simply discarded.  So we exec the FD to /dev/null,
31162 # effectively closing config.log, so it can be properly (re)opened and
31163 # appended to by config.status.  When coming back to configure, we
31164 # need to make the FD available again.
31165 if test "$no_create" != yes; then
31166   ac_cs_success=:
31167   ac_config_status_args=
31168   test "$silent" = yes &&
31169     ac_config_status_args="$ac_config_status_args --quiet"
31170   exec 5>/dev/null
31171   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31172   exec 5>>config.log
31173   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31174   # would make configure fail if this is the last instruction.
31175   $ac_cs_success || { (exit 1); exit 1; }
31176 fi
31177 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31178   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31179 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31180 fi
31181